aMule Forum
English => Compilation problems => Topic started by: btkaos on January 12, 2011, 02:29:44 PM
-
I tried to compile amule against wx svn and it seem ed2k doens't respect the --with-wx-prefix option, instead it tries to use the standard library path.
mv -f .deps/ed2k-MagnetURI.Tpo .deps/ed2k-MagnetURI.Po
mv -f .deps/ed2k-MuleCollection.Tpo .deps/ed2k-MuleCollection.Po
g++ -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2 -o ed2k ed2k-ED2KLinkParser.o ed2k-MagnetURI.o ed2k-MuleCollection.o
libs/ec/cpp/libec.a(ECMuleSocket.o): In function `CECMuleSocket::InternalConnect(unsigned int, unsigned short, bool)':
/home/egallego/tmp/amule/src/libs/ec/cpp/ECMuleSocket.cpp:110: undefined reference to `wxIPV4address::Service(unsigned short)'
/home/egallego/tmp/amule/src/libs/ec/cpp/ECMuleSocket.cpp:111: undefined reference to `wxSocketClient::Connect(wxSockAddress&, bool)'
libs/ec/cpp/libec.a(ECMuleSocket.o): In function `wxStringBase':
/usr/include/wx-2.8/wx/string.h:368: undefined reference to `wxStringBase::npos'
/usr/include/wx-2.8/wx/string.h:368: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)'
Disabling ed2k it build and run perfectly (well, let's see if it crashes as much ;) )
-
ed2k is pure C++ and doesn't use wx at all. That's why it doesn't respect the --with-wx-prefix option.
The problem occurs in libec.a, which is not even referred to in the g++ command line. I don't see how they can be related...
-
Compilation threads, gonosz...
-
You are right Kry, this may be related to make clean not deleting .deps directories or something like that. Unfortunately my knowledge of autotools is (intentionally) null.
If I delete all the .deps directories this kind of problem goes away.
-
No, I mean, the error may come from a different thread than what's shown on the previous message. When make uses parallel jobs, the output is mashed together.
Try using make with just one job (make -j 1) and pasted the error output again (with the messages before it).
-
Compilation threads, gonosz...
I'm so much used to single-thread make, that I completely forgot about that.
-
That was my first thought too, but it didn't explain why it worked with ed2k disabled.
Disabling ed2k it build and run perfectly (well, let's see if it crashes as much ;) )