aMule Forum
English => Multiplatform => Mac OSX => Topic started by: jnozsc on May 16, 2010, 12:53:22 PM
-
I want to compile aMule by myself
but I have some trouble when I comlile wxMac ( which is need for amule complie )
I use snow Leopard and download the wxMac version 2.8.11
I followed the guide from here
http://wiki.amule.org/index.php/HowTo_compile_on_Mac
and I found something wrong like
../src/common/intl.cpp:2061: warning: ‘GetScriptManagerVariable’ is deprecated (declared at
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:993)
make: *** [baselib_intl.o] Error 1
so I google the answer and find that topic
http://wiki.wxwidgets.org/Development:_wxMac#Building_under_10.6_Snow_Leopard
BUT , I still cannot make it .
I wrote as
./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local && make -j8
still error error and error.
So , I guess maybe wxMac v2.8.x cannot work as well under Snow Leopard.
Then I tried wxWidget 2.9.0
OH, it wasted my time. It didn't make any change.
Who can teach how to write a CORRECT command to compile wxMac under Snow Leopard
HELP! Please!
-
To configure wxWidgets 2.8.x on snow leopard with the options you want, use:
./configure CC=gcc-4.0 CXX=g++-4.0 LD=g++-4.0 --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local --disable-shared
You can't compile wxWidgets 2.8.x with gcc 4.2 as it produces 64bits targets by default, so specifying 4.0 will do the trick. Or you can use your configure line, but you need to replace every $arch_flags with "-arch i386".
-
Oh, and this is important: run "make clean" before running the configure script again.
-
Thank you Kry . It workes
I passed the compline ,however , after I run the " make "command , I got new error log
ld: warning: in /opt/local/lib/libexpat.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_XML_ParserFree", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_SetElementHandler", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_ErrorString", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_SetCharacterDataHandler", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_SetUnknownEncodingHandler", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_SetDefaultHandler", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_SetCommentHandler", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_SetStartCdataSectionHandler", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_SetUserData", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_Parse", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_GetCurrentLineNumber", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_ParserCreate", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
"_XML_GetErrorCode", referenced from:
wxXmlDocument::Load(wxInputStream&, wxString const&, int)in libwx_base_carbonu_xml-2.8.a(xmllib_xml.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [wxrc] Error 1
make: *** [wxrc] Error 2
This time google tell me nothing , do you know something ?
-
I found some topics said that's an bug of MacPort . well well well a long and wild road