aMule Forum
English => Multiplatform => Mac OSX => Topic started by: wodanymir on January 31, 2012, 01:27:38 AM
-
Hi everybody.
I'd like to use amuleweb, so I decide to try to compile aMule with it.
My platform is:
uname -m = x86_64
uname -r = 11.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 11.2.0
(Lion 10.7.2)
Following the wiki HowTo compile on Mac (http://wiki.amule.org/index.php/HowTo_compile_on_Mac) and some other threads of forum I have:
- downloaded and installed Xcode 4.2.1 from App Store (with SDK only for 10.6 and 10.7)
- installed MacPorts 2.0.3 and listed ports for i386 architecture
- compiled wxMac 2.8.12
$ ./configure CC="gcc -arch i386" CXX="g++ -arch i386" CFLAGS="-arch i386" CXXFLAGS="-arch i386" \
CPPFLAGS="-arch i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386" OBJCXXFLAGS="-arch i386" \
--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 --disable-shared \
--enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local
$ ./configure CC="gcc -arch i386" CXX="g++ -arch i386" CFLAGS="-arch i386" CXXFLAGS="-arch i386" \
CPPFLAGS="-arch i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386" OBJCXXFLAGS="-arch i386" \
--with-wx-config=../wxMac-2.8.12/wx-config --enable-optimize --with-crypto-prefix=/opt/local \
--with-gdlib-config=/opt/local/bin/gdlib-config --with-libiconv-prefix=/opt/local --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/lib --with-geoip-headers=/opt/local/include --disable-debug
I achieved these warnings:
[...]
checking for gdlib version >= 2.0.0... yes (version 2.0.35)
checking gd.h usability... yes
checking gd.h presence... no
configure: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gd.h: proceeding with the compiler's result
checking for gd.h... yes
checking for libpng-config... /opt/local/bin/libpng-config
[...]
checking for requested languages... all
checking for bfd... no
configure: WARNING:
bfd.h not found or unusable, please install binutils development
package if you are a developer or want to help testing aMule
checking for <execinfo.h> and backtrace()... yes
[...]
config.status: creating po/Makefile
config.status: executing denoiser commands
sed: 2: "1{x;s/.*/1/;x;};/^[ ]* ...": unexpected EOF (pending }'s)
Configure script has finished system check.
Configured aMule 2.3.1 for 'i386-apple-darwin11.2.0'.
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 be compiled with UPnP support? yes
Should aMule be compiled with IP2country support? yes
Should aMule monolithic application be built? yes
Should aMule daemon version be built? yes
Should aMule remote gui be built? yes
Crypto++ library/headers style? installed
**** aMule TextClient ****
Should aMule Command Line Client be built? yes
**** aMule WebServer ****
Should aMule WebServer be built? yes
**** aMule ED2K Links Handler ****
Should aMule ED2K Links Handler be built? yes
**** aMuleLinkCreator ****
Should aMuleLinkCreator GUI version (alc) be built? yes
Should aMuleLinkCreator for console (alcc) be built? yes
**** aMule Statistics ****
Should C aMule Statistics (CAS) be built? yes
Should aMule GUI Statistics (wxCas) be built? yes
Should xas XChat2 plugin be installed? no
Should plasmaMule plasma-applet be build? no
**** General Libraries and Tools ****
Should ccache support be enabled? no
Libraries aMule will use to build:
wxWidgets 2.8.12 (mac,static)
crypto++ 5.6.1 (installed, in /opt/local)
libupnp 1.6.6
libintl included
libGeoIP user
libpng 1.4.8
libgd 2.0.35
zlib 1.2.5
*** Warnings during configuration ***
* bfd.h not found or unusable, please install binutils development package if
you are a developer or want to help testing aMule
$
Is it an error the line?
sed: 2: "1{x;s/.*/1/;x;};/^[ ]* ...": unexpected EOF (pending }'s)
Can I go on with "make -j8" or not? I don't understand very well what I'm doing… :(
Thanks a lot,
wo
-
Which sed version do you have?
Probably you can go on without worries, but to be safe configure aMule with --with-denoiser-level=0
-
Thank you for the answer.
Which sed version do you have?
Can I say "I don't know"? :(
$ sed -v
sed: illegal option -- v
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
$ sed -V
sed: illegal option -- V
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
$ sed --version
sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
$
Searching I find these two links: could they be helpful?
- sed(1) Mac OS X Manual Page (http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/sed.1.html)
- SED - not working correctly in Snow Leopard (http://hintsforums.macworld.com/showthread.php?t=110571).
Probably you can go on without worries, but to be safe configure aMule with --with-denoiser-level=0
Ok, I try to go on!
wo
-
Probably you can go on without worries, but to be safe configure aMule with --with-denoiser-level=0
Ok, I try to go on!
I'm unlucky :(
$ make -j8
[...]
mv -f .deps/strerror_r.Tpo .deps/strerror_r.Po
In file included from /opt/local/include/zlib.h:34,
from FileFunctions.cpp:35:
/opt/local/include/zconf.h:373:6: warning: "_LARGEFILE64_SOURCE" is not defined
In file included from FileFunctions.cpp:35:
/opt/local/include/zlib.h:1574:61: warning: "_LFS64_LARGEFILE" is not defined
mv -f .deps/Format.Tpo .deps/Format.Po
mv -f .deps/MD5Sum.Tpo .deps/MD5Sum.Po
MuleDebug.cpp: In function ‘void OnUnhandledException()’:
MuleDebug.cpp:81: error: invalid use of incomplete type ‘struct std::type_info’
<built-in>:0: error: forward declaration of ‘struct std::type_info’
mv -f .deps/TextFile.Tpo .deps/TextFile.Po
mv -f .deps/StringFunctions.Tpo .deps/StringFunctions.Po
MuleDebug.cpp: In function ‘wxString get_backtrace(unsigned int)’:
MuleDebug.cpp:553: warning: comparison between signed and unsigned integer expressions
make[4]: *** [MuleDebug.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/FileFunctions.Tpo .deps/FileFunctions.Po
mv -f .deps/Path.Tpo .deps/Path.Po
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
$
Compile with the option "--with-denoiser-level=0" returns:
$ ./configure CC="gcc -arch i386" CXX="g++ -arch i386" CFLAGS="-arch i386" CXXFLAGS="-arch i386" CPPFLAGS="-arch i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386" OBJCXXFLAGS="-arch i386" --with-wx-config=../wxMac-2.8.12/wx-config --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config --with-libiconv-prefix=/opt/local --with-denoiser-level=0 --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/lib --with-geoip-headers=/opt/local/include --disable-debug
[...]
config.status: executing denoiser commands
sed: 2: "1{x;s/.*/1/;x;};/^[ ]* ...": unexpected EOF (pending }'s)
configure: WARNING: unrecognized options: --with-denoiser-level
Configure script has finished system check.
Configured aMule 2.3.1 for 'i386-apple-darwin11.3.0'.
aMule enabled options:
[...]
*** Warnings during configuration ***
* bfd.h not found or unusable, please install binutils development package if
you are a developer or want to help testing aMule
$
Any suggestions? Where am I mistaken?
wo
-
Fortunately compilation does not depend on luck. ;)
Index: src/libs/common/MuleDebug.cpp
===================================================================
--- src/libs/common/MuleDebug.cpp (revision 10740)
+++ src/libs/common/MuleDebug.cpp (working copy)
@@ -39,6 +39,7 @@
#ifdef HAVE_CXXABI
# include <cxxabi.h>
+# include <typeinfo>
#endif
#include <wx/thread.h> // Do_not_auto_remove (Old wx < 2.7)
And it's --with-denoise-level=0
./configure --help would have shown you.
-
Following the wiki HowTo compile on Mac (http://wiki.amule.org/index.php/HowTo_compile_on_Mac) and some other threads of forum I have:
- downloaded and installed Xcode 4.2.1 from App Store (with SDK only for 10.6 and 10.7)
- installed MacPorts 2.0.3 and listed ports for i386 architecture
- compiled wxMac 2.8.12
$ ./configure CC="gcc -arch i386" CXX="g++ -arch i386" CFLAGS="-arch i386" CXXFLAGS="-arch i386" \
CPPFLAGS="-arch i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386" OBJCXXFLAGS="-arch i386" \
--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 --disable-shared \
--enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local
On lion 10.7.3, followed the wiki, when i try to execute the command to compile wxwidgets it returns error about missing symbols for i386.... it seems related to 64bit machine but i forced a 32bit compile with -arch 1386!