Re: [CMake] Weird linking error while cross compiling

2011-11-01 Thread Michael Hertling
On 10/28/2011 06:20 PM, Jose wrote: > I give up. [...] Never say die. ;) > [...] I solved the problem with the solution Michael gave me. Actually > this linking flag : -Bstatic > was the causant of the troubles. Out of curiosity: We've seen the failing link line; how does the successful one look

Re: [CMake] Weird linking error while cross compiling

2011-10-28 Thread Jose
I give up. I solved the problem with the solution Michael gave me. Actually this linking flag : -Bstatic was the causant of the troubles. Nevertheless now I get undefined references to functions defined in the library "portablexdr" . I have been trying to fix it for two days without success. The

Re: [CMake] Weird linking error while cross compiling

2011-10-26 Thread Michael Hertling
On 10/26/2011 10:28 AM, Andreas Pakulat wrote: > On 26.10.11 03:54:02, Jose wrote: >> Sorry for not being very specific. >> >> This is the command that Cmake is running while linking : >> >> /usr/bin/i686-pc-mingw32-g++ -O3 -O3-Wl,-Bstatic -static-libgcc >> -Wl,--whole-archive CMakeFiles/sqt2p

Re: [CMake] Weird linking error while cross compiling

2011-10-26 Thread Andreas Pakulat
On 26.10.11 03:54:02, Jose wrote: > Sorry for not being very specific. > > This is the command that Cmake is running while linking : > > /usr/bin/i686-pc-mingw32-g++ -O3 -O3-Wl,-Bstatic -static-libgcc > -Wl,--whole-archive CMakeFiles/sqt2pin.dir/objects.a -Wl,--no-whole-archive > -o sqt2pin.

Re: [CMake] Weird linking error while cross compiling

2011-10-26 Thread Jose
Sorry for not being very specific. This is the command that Cmake is running while linking : /usr/bin/i686-pc-mingw32-g++ -O3 -O3-Wl,-Bstatic -static-libgcc -Wl,--whole-archive CMakeFiles/sqt2pin.dir/objects.a -Wl,--no-whole-archive -o sqt2pin.exe -Wl,--out-implib,libsqt2pin.dll.a -Wl,--majo

Re: [CMake] Weird linking error while cross compiling

2011-10-25 Thread Andreas Pakulat
On 25.10.11 13:15:37, Jose wrote: > Hi all, > > I'm cross compiling an app under Fedora. I get this linking errors while > building with cmake : > > /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: > cannot find -lxerces-c > /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i6

Re: [CMake] Weird linking error while cross compiling

2011-10-25 Thread Dan Kegel
On Tue, Oct 25, 2011 at 10:15 AM, Jose wrote: > /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: > cannot find -lsqlite3 The way I usually track down things like this is to find the broken commandline (e.g. make VERBOSE=1), put it in a shell script with any needed cd, and ve

[CMake] Weird linking error while cross compiling

2011-10-25 Thread Jose
Hi all, I'm cross compiling an app under Fedora. I get this linking errors while building with cmake : /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: cannot find -lxerces-c /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: cannot find -lportablexdr /u