aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2] 3 4

Author Topic: Compilation problem  (Read 21408 times)

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Compilation problem
« Reply #15 on: October 07, 2010, 11:06:25 PM »

Also I found wx 2.9 doesn't like to be built static. At least not in Linux. Windows works fine, but in Linux I got lots of link errors when I had built it static. No idea about Mac.
Any reason for you to use 2.9 at all? You know, that's quite unstable and not the ideal subject to get started with building.  ;)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

markellos

  • Approved Newbie
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: Compilation problem
« Reply #16 on: October 08, 2010, 01:20:43 AM »

In your case? whatever port wxwidgets reports. Chances are osx_cocoa or something similar if it's 2.9. Check it on the summary after running configure on wx.

Yes, I know. But if don't specify which toolkit to use the amule configure can't recognize and reports an error. But even if I set --toolkit=osx_cocoa, configure skip this parameter and fail in the same error:
Code: [Select]
checking which wxWidgets toolkit was selected... configure: error:
        Cannot detect the currently installed wxWidgets port !
        Please check your 'wx-config --cxxflags'...
Logged

markellos

  • Approved Newbie
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: Compilation problem
« Reply #17 on: October 08, 2010, 01:33:05 AM »

Also I found wx 2.9 doesn't like to be built static. At least not in Linux. Windows works fine, but in Linux I got lots of link errors when I had built it static. No idea about Mac.
Any reason for you to use 2.9 at all? You know, that's quite unstable and not the ideal subject to get started with building.  ;)

Because I read that's the only way to get aMule in 64bits. And also because some days ago I tried with 2.8.11 but I obtained errors too, so I thought: "There are errors in both cases, let's try to compile the newer version!" I noticed something interesting:
Code: [Select]
configure:18644: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead.

...
Configured wxWidgets 2.9.1 for `i686-apple-darwin10.4.0'

  Which GUI toolkit should wxWidgets use?                 osx_carbon

This automatically means no 64bits. Who tell it that I want to build a version compatible with previous OS? This was my configure:
Code: [Select]
./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local/var/macports/software/libiconv/1.13.1_0/opt/local && make
Any idea? I'm getting crazy today....
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compilation problem
« Reply #18 on: October 08, 2010, 09:27:40 PM »

There are wxWidgets options for osx_cocoa. I actually believe the configure flag is --with-osx_cocoa , but check ./configure --help
Logged

markellos

  • Approved Newbie
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: Compilation problem
« Reply #19 on: October 08, 2010, 10:42:13 PM »

There are wxWidgets options for osx_cocoa. I actually believe the configure flag is --with-osx_cocoa , but check ./configure --help

You were right! I though, don't know why, that the flag was --toolkit-os_cocoa. However the problems still remain:
Code: [Select]

Making all in wxCas
Making all in src
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT onlinesig.o -MD -MP -MF ".deps/onlinesig.Tpo" -c -o onlinesig.o onlinesig.cpp; \
then mv -f ".deps/onlinesig.Tpo" ".deps/onlinesig.Po"; else rm -f ".deps/onlinesig.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT linuxmon.o -MD -MP -MF ".deps/linuxmon.Tpo" -c -o linuxmon.o linuxmon.cpp; \
then mv -f ".deps/linuxmon.Tpo" ".deps/linuxmon.Po"; else rm -f ".deps/linuxmon.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT wxcas.o -MD -MP -MF ".deps/wxcas.Tpo" -c -o wxcas.o wxcas.cpp; \
then mv -f ".deps/wxcas.Tpo" ".deps/wxcas.Po"; else rm -f ".deps/wxcas.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT wxcasprint.o -MD -MP -MF ".deps/wxcasprint.Tpo" -c -o wxcasprint.o wxcasprint.cpp; \
then mv -f ".deps/wxcasprint.Tpo" ".deps/wxcasprint.Po"; else rm -f ".deps/wxcasprint.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT wxcasframe.o -MD -MP -MF ".deps/wxcasframe.Tpo" -c -o wxcasframe.o wxcasframe.cpp; \
then mv -f ".deps/wxcasframe.Tpo" ".deps/wxcasframe.Po"; else rm -f ".deps/wxcasframe.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT wxcasprefs.o -MD -MP -MF ".deps/wxcasprefs.Tpo" -c -o wxcasprefs.o wxcasprefs.cpp; \
then mv -f ".deps/wxcasprefs.Tpo" ".deps/wxcasprefs.Po"; else rm -f ".deps/wxcasprefs.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT wxcascte.o -MD -MP -MF ".deps/wxcascte.Tpo" -c -o wxcascte.o wxcascte.cpp; \
then mv -f ".deps/wxcascte.Tpo" ".deps/wxcascte.Po"; else rm -f ".deps/wxcascte.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -MT wxcaspix.o -MD -MP -MF ".deps/wxcaspix.Tpo" -c -o wxcaspix.o wxcaspix.cpp; \
then mv -f ".deps/wxcaspix.Tpo" ".deps/wxcaspix.Po"; else rm -f ".deps/wxcaspix.Tpo"; exit 1; fi
g++ -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2  -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/include -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -bind_at_load -lpthread  -o wxcas  onlinesig.o linuxmon.o wxcas.o wxcasprint.o wxcasframe.o wxcasprefs.o wxcascte.o wxcaspix.o -L/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib   -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime /Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/libwx_osx_cocoau_adv-2.9.a /Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/libwx_osx_cocoau_core-2.9.a /Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/libwx_baseu_net-2.9.a /Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1/lib/libwx_baseu-2.9.a -framework WebKit -lwxregexu-2.9 -lwxtiff-2.9 -lwxjpeg-2.9 -lwxpng-2.9 -lz -lpthread -liconv  
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file
Undefined symbols:
  "_libiconv_open", referenced from:
      wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_baseu-2.9.a(baselib_strconv.o)
  "_libiconv", referenced from:
      wxMBConv_iconv::GetMBNulLen() const  in libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::FromWChar(char*, unsigned long, wchar_t const*, unsigned long) constin libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::FromWChar(char*, unsigned long, wchar_t const*, unsigned long) constin libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::ToWChar(wchar_t*, unsigned long, char const*, unsigned long) constin libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::ToWChar(wchar_t*, unsigned long, char const*, unsigned long) constin libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_baseu-2.9.a(baselib_strconv.o)
  "_libiconv_close", referenced from:
      wxMBConv_iconv::~wxMBConv_iconv()in libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::~wxMBConv_iconv()in libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::~wxMBConv_iconv()in libwx_baseu-2.9.a(baselib_strconv.o)
      wxMBConv_iconv::~wxMBConv_iconv()in libwx_baseu-2.9.a(baselib_strconv.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[5]: *** [wxcas] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compilation problem
« Reply #20 on: October 08, 2010, 11:37:29 PM »

That's a funny one, because -liconv is right there at the end of the link command.

Can you post revised versions of every configure/make you're using, what you have compiled, and versions? This way I will review it locally as well, as I have a snow leopard machine next to me.

Logged

markellos

  • Approved Newbie
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: Compilation problem
« Reply #21 on: October 09, 2010, 12:35:26 AM »

That's a funny one, because -liconv is right there at the end of the link command.

Can you post revised versions of every configure/make you're using, what you have compiled, and versions? This way I will review it locally as well, as I have a snow leopard machine next to me.



Can you explain me better what you want and how can I obtain it? You don't need only wx and amule version, don't you?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compilation problem
« Reply #22 on: October 09, 2010, 02:56:49 AM »

Yous configure commands for both aMule and wx, versions of aMule and wx, and if you installed anything extra on your macosx related to compiling this.
Logged

markellos

  • Approved Newbie
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: Compilation problem
« Reply #23 on: October 09, 2010, 12:46:18 PM »

Yous configure commands for both aMule and wx, versions of aMule and wx, and if you installed anything extra on your macosx related to compiling this.

Ok, then: wxWidgets 2.9.1
Code: [Select]
./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local/var/macports/software/libiconv/1.13.1_0/opt/local --with-osx_cocoa && make
aMule SVN 10306
Code: [Select]
./configure --with-wxdir=/Users/admin/Desktop/aMuleSVN/Build2/wxWidgets-2.9.1  --enable-optimize --with-crypto-prefix=/opt/local  --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local/var/macports/software/libiconv/1.13.1_0/opt/local/bin --enable-cas --enable-webserver  --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon --enable-geoip  --with-geoip-lib=/opt/local/var/macports/software/libgeoip/1.4.6_0/opt/local --with-geoip-headers=/opt/local/var/macports/software/libgeoip/1.4.6_0/opt/local/include --enable-geoip-static --enable-debug
Ah I installed the following ports with MacPort:
Code: [Select]
automake binutils flex libpng libcryptopp gd2 libgeoip libupnp
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Compilation problem
« Reply #24 on: October 09, 2010, 06:52:55 PM »

Also I found wx 2.9 doesn't like to be built static. At least not in Linux.
I got similar linker errors in Linux when I tried it with a statically built wx 2.9.
Anyway, your libiconv appears to be located in /opt/local/var/macports/software/libiconv/1.13.1_0/opt/local , but you don't pass this path to your link command so it probably can't find it.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

markellos

  • Approved Newbie
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: Compilation problem
« Reply #25 on: October 10, 2010, 01:17:36 PM »

Anyway, your libiconv appears to be located in /opt/local/var/macports/software/libiconv/1.13.1_0/opt/local , but you don't pass this path to your link command so it probably can't find it.

Can you explain me what are the differences between a static and a shared build? How can I pass the path to the link command?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Compilation problem
« Reply #26 on: October 10, 2010, 01:49:43 PM »

Can you explain me what are the differences between a static and a shared build?
Shared: library code is located in a "dynamic library" (.so, .dll in Windows) which must be present at runtime (and be found by the exec loader, so be in the search path or dynamic lib path). Executables are smaller and link faster.
Static: library code is linked fully into the executable which can be run without extra libs.

Problem I experienced with wx2.9 was that the static libs were linked dynamically themselves or something, so the functions used by the libs were not present when linking aMule.

Quote
How can I pass the path to the link command?
-L/opt/local/var/macports/software/libiconv/1.13.1_0/opt/local
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Compilation problem
« Reply #27 on: October 13, 2010, 11:52:28 PM »

Code: [Select]
$ LDFLAGS="-L/opt/local/var/macports/software/libiconv/1.13.1_0/opt/local" make
Logged
concordia cum veritate

markellos

  • Approved Newbie
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 23
Re: Compilation problem
« Reply #28 on: October 15, 2010, 11:52:07 PM »

Code: [Select]
$ LDFLAGS="-L/opt/local/var/macports/software/libiconv/1.13.1_0/opt/local" make
Ok I tried this command both with SVN 10306 and 10313 and in both cases failed with the same error. I post it here:
Code: [Select]
g++     -o amuleweb -bind_at_load -lpthread -L../../libs/common -L../../libs/ec/cpp -L/opt/local/lib  -L/opt/local/lib   amuleweb-WebServer.o amuleweb-WebInterface.o amuleweb-WebSocket.o amuleweb-ExternalConnector.o amuleweb-OtherFunctions.o amuleweb-RLE.o amuleweb-NetworkFunctions.o amuleweb-LoggerConsole.o amuleweb-UPnPBase.o amuleweb-php_parser.o amuleweb-php_lexer.o amuleweb-php_syntree.o amuleweb-php_amule_lib.o amuleweb-php_core_lib.o  -lec -lmulecommon -L/Users/admin/Desktop/aMuleSVN/Build3/wxWidgets-2.9.1/lib   -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime -lwx_baseu_net-2.9 -lwx_baseu-2.9   -lz -lreadline -lpng12  ../../../intl/libintl.a -liconv -lupnp -lthreadutil -lixml   
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file
Undefined symbols:
  "_iconv_close", referenced from:
      __nl_free_domain_conv in libintl.a(loadmsgcat.o)
  "_iconv_open", referenced from:
      __nl_init_domain_conv in libintl.a(loadmsgcat.o)
      __nl_init_domain_conv in libintl.a(loadmsgcat.o)
  "_iconv", referenced from:
      __nl_find_msg in libintl.a(dcigettext.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [amuleweb] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Do I need to perform some sort of clean up very time I try to compile aMule or wx?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compilation problem
« Reply #29 on: October 16, 2010, 12:42:44 AM »

do a

make clean

, then run that command again.
Logged
Pages: 1 [2] 3 4