Search found 9 matches
- Wed Jan 31, 2007 10:23 am
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
Ok, I've played a little with compiler options and since you all now that we are developing with g++, I get only about 30 errors when I put before the *.a libraries a '-Wl' command, meaning this is passed through direct to the linker. I assume g++ interpretes all files given to him either as object ...
- Wed Jan 31, 2007 9:36 am
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
Praise the samples
Hi, one of our glorious team members got it tonight finally with this linker command working :) g++ -O3 -march=athlon -g -o gui ./*.o ../*.o -L/home/me/test/wxWidgets-2.8.0/buildgtk-static/lib -Wl,--rpath -Wl,`pkg-config libgvc --variable=libdir` `pkg-config libgvc --libs` -lwx_gtk2_adv-2.8 -lwx_gtk...
- Wed Jan 31, 2007 8:57 am
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
As you can see the dynamic version contains the adv, html, xml, base modules linked to it though I specified only adv,ogl,base however, in the last trying (see above), I've modified the linker command to just what you've said 'wx-config --libs'. However, now I start all over again with one of those ...
- Tue Jan 30, 2007 2:27 pm
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
Hmm. If the samples build and run OK, then the static wxWidgets build must be OK. I really don't know what's going wrong. So some random ideas that you might or might not want to try: Compare the 'minimal' sample makefile with yours. If that doesn't reveal anything obvious, try hacking your files i...
- Tue Jan 30, 2007 1:08 pm
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
If that was indeed your linker command, it seems to be missing quite a lot of wx stuff. This is the relevant bit of mine (unicode debug): /home/david/devel/wxWindows/wxGTK-2.8.0/static-buildU/lib/libwx_gtk2ud_xrc-2.8.a /home/david/devel/wxWindows/wxGTK-2.8.0/static-buildU/lib/libwx_baseud_xml-2.8.a...
- Tue Jan 30, 2007 10:01 am
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
It might be that the linker is finding the wrong libs. If there is both a libfoo,so and a libfoo.a available to it, the linker will choose the .so version. The way I solve this is to create each wxWidgets '--prefix=' build in a different directory, as you have, and don't 'make install'. I then crea...
- Mon Jan 29, 2007 10:26 am
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
Thanks, but this doesn't work either :(. At this point I copied all static libraries (libwx_*.a) into the project directory and tried it with the '-L.' option but this doesn't work too. So I assume the linker finds the corresponding files, but cannot read them? I've configured wxWidgets only with '....
- Mon Jan 29, 2007 8:39 am
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
Yes, I allready configured with the --disable-shared option. I use the following command: `~me/test/wxWidgets-2.8.0/buildgtk-static/wx-config --prefix=~me/test/wxWidgets-2.8.0/buildgtk-static --static=yes --libs base,ogl,adv` which results in: -L/home/me/test/wxWidgets-2.8.0/buildgtk-static/lib -pth...
- Fri Jan 26, 2007 10:20 am
- Forum: Compiler / Linking / IDE Related
- Topic: building static binary
- Replies: 15
- Views: 4150
building static binary
Hello, please help me building a static binary of "my" application. First of all I'm using wx 2.8 from a directory install. And normally linking succeeds without any errors and the application is running. The corresponding wx-commands are: CXXFLAGS= ... `~me/test/wxWidgets-2.8.0/buildgtk/w...