Difference between revisions of "Talk:HowTo compile on Mac"

From AMule Project FAQ
Jump to: navigation, search
 
(29 intermediate revisions by 10 users not shown)
Line 1: Line 1:
Please note wxmac installation now is available optimized on http://fink.sourceforge.net fink unstable 
+
wxWidgets from MacPorts is unusable since it misses some needed files... ;-) --[[User:Mirko.grewing|Mirko Grewing]]
  
New installation steps (based on fink presence)
+
----
  
# install Xcode Tools
+
Ah, good call, Mirko.grewing. Much more generic and versatile ;) --[[User:PacoBell|PacoBell]] 13:29, 28 April 2009 (CEST)
  
# http://developer.apple.com/tools/download/
+
----
  
# Getting ADC ID > Log In > Download Software > Developer Tools > Download Xcode Tools last release > Install
+
Is there any reason we're not using wxWidgets from MacPorts instead of wxMac? Which is more stable/feature complete? --[[User:PacoBell|PacoBell]] 00:05, 20 April 2009 (CEST)
  
# install Fink too, since gettext is needed
+
----
  
# install Fink too, since wxmac is needed
+
I need to install newer versions of flex and automake to compile amule successfully on my machine. Maybe we should just add those as dependencies that should be installed through Fink. -- lionel77
  
# http://fink.sourceforge.net
+
i have this:
 +
port installed
 +
The following ports are currently installed:
 +
  autoconf @2.61_1 (active)
 +
  automake @1.10.1_0 (active)
 +
  expat @2.0.1_0 (active)
 +
  flex @2.5.34_0 (active)
 +
  gettext @0.17_3 (active)
 +
  help2man @1.36.4_1 (active)
 +
  libiconv @1.12_0 (active)
 +
  libpng @1.2.24_0 (active)
 +
  libtool @1.5.24_1 (active)
 +
  m4 @1.4.10_1 (active)
 +
  ncurses @5.6_0 (active)
 +
  ncursesw @5.6_1 (active)
 +
  p5-locale-gettext @1.05_0 (active)
 +
  perl5.8 @5.8.8_1 (active)
 +
  zlib @1.2.3_1 (active)
  
# read the info at http://fink.sourceforge.net/download to learn how to install gettext
 
  
# read the info at http://fink.sourceforge.net/download to learn how to install wxmac
 
  
# make amule dir in home
+
when i tried to "./configure" amule, i got this
cd ~
+
<pre>
 
+
emac-bureau:amule-cvs maitedx$ ./configure --disable-systray --disable-gtk --enable-embedded_crypto    \
mkdir amule
+
>            --with-wx-config=../wxMac-2.8.7/build/wx-config    \
 
+
>            --enable-cas --enable-webserver --enable-amulecmd    \
cd amule
+
>            --enable-debug --disable-optimize --with-cryptopp=/usr/local/cryptopp
 
+
checking build system type... powerpc-apple-darwin9.2.0
# get source from the internet and unpack it
+
checking host system type... powerpc-apple-darwin9.2.0
curl -O http://download.berlios.de/amule/aMule-2.0.0rc7.tar.bz2
+
checking for a BSD-compatible install... /usr/bin/install -c
 
+
checking whether build environment is sane... yes
tar -xjf aMule-2.0.0rc7.tar.bz2
+
checking for gawk... no
 
+
checking for mawk... no
# remove downloaded archive after unpacking
+
checking for nawk... no
rm aMule-2.0.0rc7.tar.bz2
+
checking for awk... awk
 
+
checking whether make sets $(MAKE)... yes
# compile aMule
+
checking whether to enable maintainer-specific portions of Makefiles... no
cd aMule-2.0.0rc7
+
checking for g++... g++
./configure --disable-systray  --disable-gtk --enable-embedded_crypto
+
checking for C++ compiler default output file name... a.out
make
+
checking whether the C++ compiler works... yes
 
+
checking whether we are cross compiling... no
# optional: reduce size of amule from 44 MB to 3 MB while loosing
+
checking for suffix of executables...
 
+
checking for suffix of object files... o
# debug info :-(
+
checking whether we are using the GNU C++ compiler... yes
strip src/amule
+
checking whether g++ accepts -g... yes
 
+
checking for style of include used by make... GNU
cd ..
+
checking dependency style of g++... gcc3
 
+
checking how to run the C++ preprocessor... g++ -E
# create app-Container
+
checking for gcc... gcc
curl -O http://download.berlios.de/amule/aMule-App-Container.tar.bz2
+
checking whether we are using the GNU C compiler... yes
 
+
checking whether gcc accepts -g... yes
tar -xjf aMule-App-Container.tar.bz2
+
checking for gcc option to accept ANSI C... none needed
 
+
checking dependency style of gcc... gcc3
rm aMule-App-Container.tar.bz2
+
checking how to run the C preprocessor... gcc -E
 
+
checking for gawk... (cached) awk
# the following line is just in case the app container failed to extract
+
checking for egrep... grep -E
mkdir -p amule.app/Contents/MacOS/
+
checking whether make sets $(MAKE)... (cached) yes
 
+
checking for flex... flex
cp aMule-2.0.0rc7/src/amule amule.app/Contents/MacOS/
+
checking for yywrap in -lfl... yes
 
+
checking lex output file root... lex.yy
# move amule to your Applications folder
+
checking whether yytext is a pointer... yes
mv amule.app /Applications
+
checking for a BSD-compatible install... /usr/bin/install -c
 
+
checking for ranlib... ranlib
 
+
checking for bison... bison -y
 
+
checking for ranlib... (cached) ranlib
 
+
checking for strip... strip
 
+
checking for ar... ar
 
+
checking for ld... ld
If you get an error like this: You cannot open the application "amule" because it may be damaged or incomplete, right click on amule then click on Show Packages Contents, go to Contents>MacOS> and double click on amule. Next time you start from amule.app it will run fine. If you still get the same error, move amule.app to the desktop and run it from there.
+
checking for zlib >= 1.1.4... yes (version 1.2.3)
 +
checking for ANSI C header files... yes
 +
checking for sys/types.h... yes
 +
checking for sys/stat.h... yes
 +
checking for stdlib.h... yes
 +
checking for string.h... yes
 +
checking for memory.h... yes
 +
checking for strings.h... yes
 +
checking for inttypes.h... yes
 +
checking for stdint.h... yes
 +
checking for unistd.h... yes
 +
checking for gdlib-config... no
 +
configure:
 +
WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
 +
Please check that gdlib-config is in your default path, check out
 +
LD_LIBRARY_PATH or equivalent variable.
 +
Or this might also be that your gdlib-config has other name.
 +
Please try again with --with-gdlib-config=/usr/bin/gdlib-config
 +
(replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
 +
If you use compiled packages check if you have devel pack installed.
 +
To download the latest version check http://www.boutell.com/gd
 +
for sources.
 +
   
 +
checking for libpng-config... /opt/local/bin/libpng-config
 +
checking for libpng version >= 1.2.0... yes (version 1.2.24)
 +
checking for File::Copy... ok
 +
checking whether we need the GUI... no
 +
checking for exception-handling... yes
 +
checking for the --with-toolkit option... will be automatically detected
 +
checking for the --with-wxshared option... will be automatically detected
 +
checking for the --with-wxdebug option... will be automatically detected
 +
checking for the --with-wxversion option... will be automatically detected
 +
checking for wx-config... ../wxMac-2.8.7/build/wx-config
 +
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... yes (version 2.8.7)
 +
checking for wxWidgets static library... yes
 +
checking if wxWidgets was built in DEBUG mode... yes
 +
checking if wxWidgets was built in STATIC mode... yes
 +
checking which wxWidgets toolkit was selected... mac
 +
checking that wxWidgets has support for large files... yes
 +
checking for crypto++ version >= 5.1... configure: error:
 +
Specifying the cryptopp source files directory for "--with-crypto-prefix="
 +
will not work because cryptopp uses headers with the same name of system
 +
headers (e.g. zlib.h) and you must be able to distinguish the system
 +
headers from cryptopp headers in an #include directive.
 +
Please run "PREFIX=/home/YourUserName/usr/cryptopp make install" on
 +
the cryptopp directory to properly install cryptopp in your system.
 +
emac-bureau:amule-cvs maitedx$ make
 +
make: *** No targets specified and no makefile found. Stop.
 +
emac-bureau:amule-cvs maitedx$
 +
</pre>
 +
what do i have to do ?

Latest revision as of 07:45, 5 May 2009

wxWidgets from MacPorts is unusable since it misses some needed files... ;-) --Mirko Grewing


Ah, good call, Mirko.grewing. Much more generic and versatile ;) --PacoBell 13:29, 28 April 2009 (CEST)


Is there any reason we're not using wxWidgets from MacPorts instead of wxMac? Which is more stable/feature complete? --PacoBell 00:05, 20 April 2009 (CEST)


I need to install newer versions of flex and automake to compile amule successfully on my machine. Maybe we should just add those as dependencies that should be installed through Fink. -- lionel77

i have this: port installed The following ports are currently installed:

 autoconf @2.61_1 (active)
 automake @1.10.1_0 (active)
 expat @2.0.1_0 (active)
 flex @2.5.34_0 (active)
 gettext @0.17_3 (active)
 help2man @1.36.4_1 (active)
 libiconv @1.12_0 (active)
 libpng @1.2.24_0 (active)
 libtool @1.5.24_1 (active)
 m4 @1.4.10_1 (active)
 ncurses @5.6_0 (active)
 ncursesw @5.6_1 (active)
 p5-locale-gettext @1.05_0 (active)
 perl5.8 @5.8.8_1 (active)
 zlib @1.2.3_1 (active)


when i tried to "./configure" amule, i got this

emac-bureau:amule-cvs maitedx$ ./configure --disable-systray --disable-gtk --enable-embedded_crypto    \
>            --with-wx-config=../wxMac-2.8.7/build/wx-config    \
>            --enable-cas --enable-webserver --enable-amulecmd    \
>            --enable-debug --disable-optimize --with-cryptopp=/usr/local/cryptopp
checking build system type... powerpc-apple-darwin9.2.0
checking host system type... powerpc-apple-darwin9.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) awk
checking for egrep... grep -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for zlib >= 1.1.4... yes (version 1.2.3)
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for gdlib-config... no
configure:
	WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
	Please check that gdlib-config is in your default path, check out
	LD_LIBRARY_PATH or equivalent variable.
	Or this might also be that your gdlib-config has other name.
	Please try again with --with-gdlib-config=/usr/bin/gdlib-config
	(replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
	If you use compiled packages check if you have devel pack installed.
	To download the latest version check http://www.boutell.com/gd
	for sources.
    
checking for libpng-config... /opt/local/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.24)
checking for File::Copy... ok
checking whether we need the GUI... no
checking for exception-handling... yes
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... ../wxMac-2.8.7/build/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... yes (version 2.8.7)
checking for wxWidgets static library... yes
checking if wxWidgets was built in DEBUG mode... yes
checking if wxWidgets was built in STATIC mode... yes
checking which wxWidgets toolkit was selected... mac
checking that wxWidgets has support for large files... yes
checking for crypto++ version >= 5.1... configure: error:
	Specifying the cryptopp source files directory for "--with-crypto-prefix="
	will not work because cryptopp uses headers with the same name of system
	headers (e.g. zlib.h) and you must be able to distinguish the system
	headers from cryptopp headers in an #include directive.
	Please run "PREFIX=/home/YourUserName/usr/cryptopp make install" on
	the cryptopp directory to properly install cryptopp in your system.
emac-bureau:amule-cvs maitedx$ make
make: *** No targets specified and no makefile found.  Stop.
emac-bureau:amule-cvs maitedx$

what do i have to do ?