Difference between revisions of "Talk:HowTo compile on Mac"
From AMule Project FAQ
Mirko.grewing (Talk | contribs | merge | delete) |
|||
(25 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
− | + | wxWidgets from MacPorts is unusable since it misses some needed files... ;-) --[[User:Mirko.grewing|Mirko Grewing]] | |
− | + | ---- | |
− | + | Ah, good call, Mirko.grewing. Much more generic and versatile ;) --[[User:PacoBell|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? --[[User:PacoBell|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 | |
− | + | <pre> | |
− | + | 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... | |
− | strip | + | 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$ | ||
+ | </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 ?