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 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