aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilation Error  (Read 2395 times)

Naztheros

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • http://www.lemmings.com.br
Compilation Error
« on: December 17, 2006, 03:45:02 AM »

Hello,

Ive been trying to compile amule-cvs, but everytime i get a lot of wx errors.
Im configuring with the command:
Code: [Select]
./configure --disable-debug --enable-optimize --disable-monolithic --enable-amule-daemonat the end heres what i get:

Code: [Select]
 Configure script has finished system check.

  Configured aMule CVS for 'i686-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    no
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               yes
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.3
                                       crypto++              embedded
                                       zlib                  1.2.3

Since i only use the amule daemon (and connect via amule remote-gui) these options suits me very well.
But after the configure is done in the middle of the compilation i get the following errors:

Code: [Select]
make[3]: Entering directory `/usr/src/amule-cvs/src'
g++  -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS  -lpthread -o amuled  amuled-amuled.o amuled-Timer.o amuled-ThreadTasks.o amuled-amule.o amuled-BaseClient.o amuled-ClientList.o amuled-ClientCreditsList.o amuled-ClientTCPSocket.o amuled-ClientUDPSocket.o amuled-DownloadClient.o amuled-DownloadQueue.o amuled-EMSocket.o amuled-ECSpecialCoreTags.o amuled-ExternalConn.o amuled-Friend.o amuled-FriendList.o amuled-HTTPDownload.o amuled-IPFilter.o amuled-KnownFileList.o amuled-ListenSocket.o amuled-MuleUDPSocket.o amuled-SearchFile.o amuled-SearchList.o amuled-ServerConnect.o amuled-ServerList.o amuled-ServerSocket.o amuled-ServerUDPSocket.o amuled-SharedFileList.o amuled-UploadBandwidthThrottler.o amuled-UploadClient.o amuled-UploadQueue.o amuled-Kademlia.o amuled-Search.o amuled-Indexed.o amuled-KademliaUDPListener.o amuled-Prefs.o amuled-RoutingZone.o amuled-Contact.o amuled-UPnP.o amuled-UPnPCompatibility.o amuled-ClientCredits.o amuled-ECSpecialMuleTags.o amuled-KnownFile.o amuled-GetTickCount.o amuled-GuiEvents.o amuled-Logger.o amuled-PartFile.o amuled-Preferences.o amuled-Proxy.o amuled-Server.o amuled-Statistics.o amuled-StatTree.o amuled-SHAHashSet.o amuled-UserEvents.o amuled-OtherFunctions.o amuled-NetworkFunctions.o -L. -lmuleappcommon -Llibs/common -Llibs/ec -lmulecommon -lec   -lbfd -liberty  -L. -lmuleappcore -L/usr/local/lib -pthread   -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lz



: undefined reference to `wxCSConv::wxCSConv(wchar_t const*)'
libs/ec/libec.a(libec_a-ECTag.o)(.text+0x2bf4): In function `global constructors keyed to _ZN6CECTag12s_theNullTagE':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
libs/ec/libec.a(libec_a-ECTag.o)(.text+0x2c19): In function `global constructors keyed to _ZN6CECTag12s_theNullTagE':
: undefined reference to `wxCSConv::wxCSConv(wchar_t const*)'
libs/ec/libec.a(libec_a-ECSocket.o)(.text+0x2720): In function `global constructors keyed to _Z11utf8_mbtowcPjPKhi':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
libs/ec/libec.a(libec_a-ECSocket.o)(.text+0x2745): In function `global constructors keyed to _Z11utf8_mbtowcPjPKhi':
: undefined reference to `wxCSConv::wxCSConv(wchar_t const*)'
libs/ec/libec.a(libec_a-ECMuleSocket.o)(.text+0x47a): In function `CECMuleSocket::InternalConnect(unsigned int, unsigned short, bool)':
: undefined reference to `wxString::Format(wchar_t const*, ...)'
libs/ec/libec.a(libec_a-ECMuleSocket.o)(.text+0x683): In function `global constructors keyed to _ZN20CECMuleSocketHandler13sm_eventTableE':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'



./libmuleappcore.a(libmuleappcore_a-Parser.o)(.text+0xb97): In function `yyparse()':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
./libmuleappcore.a(libmuleappcore_a-Parser.o)(.text+0xbee): more undefined references to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)' follow
./libmuleappcore.a(libmuleappcore_a-Parser.o)(.text+0x14c4): In function `global constructors keyed to yydebug':
: undefined reference to `wxCSConv::wxCSConv(wchar_t const*)'
./libmuleappcore.a(libmuleappcore_a-SearchManager.o)(.text+0x77f): In function `Kademlia::CSearchManager::GetWords(wxString const&, std::list >*)':
: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
./libmuleappcore.a(libmuleappcore_a-SearchManager.o)(.text+0xffc): In function `Kademlia::CSearchManager::PrepareFindKeywords(wxString const&, CMemFile*, unsigned int)':
: undefined reference to `wxLocale::GetString(wchar_t const*, wchar_t const*) const'



They are all about the wxpackage.. since i'm only trying to compile the amule daemon, i instaled just the wxBase package, it worked very well for my aMule 2.1.3, it compiled nice and runs very stable on my system, but the cvs code won't compile and i have no clue why.. could someone help me please?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Compilation Error
« Reply #1 on: December 17, 2006, 11:13:21 AM »

Please install wx 2.8 and try compiling CVS again, If you don't want to break your system you can install wx 2.8 to /usr/local/lib and leave wx 2.6.3 at /usr/lib.
Maybe you have to point the configure script to the right wx-config path.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Compilation Error
« Reply #2 on: December 17, 2006, 12:12:38 PM »

Naztheros,

I have tested your options here, and on my system it compiles. But yes, I have wxGTK installed, not just wxBase. But you are right, the references you need should all be in libwx_base*. I dont know how you got your wx packages, but there is probably a problem with its instalation, maybe a missing lib?

I have both 2.6.3 and 2.8.0 wx packages here, and I found 2.6.3 to be more stable for my system. But the instability I have here comes from gtk interaction, so maybe you should try to install 2.8.0 wxBase and see what happens.

Cheers!
Logged

Naztheros

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • http://www.lemmings.com.br
Re: Compilation Error
« Reply #3 on: December 17, 2006, 08:59:08 PM »

Thanks for the replies!  :D

I've compiled the wxBase-2.6.3 with no extra options in configure, only the --enable-unicode (or something like that), worked fine.. since it worked even for the amule 2.1.3   :)

I will try and see if i can install the 2.8 on a place i can remove after.. and see what happens.. maybe it can work  ;)
Logged