aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Can't compile (wx or libpng problem)  (Read 3539 times)

bitocul

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Can't compile (wx or libpng problem)
« on: September 15, 2005, 09:02:49 AM »

Hello,
I'm under Fedora Core 4 on a mac mini and i haven't any compilation success.
I tried to install wxGTK by recompiling it (to have the last version), but i saw the warning too late (i've installed wxBase after it). So I tried the given command as you can see below.
Could you help me ? I'm on that for hours and begin to make me crazy...
thanks !



[admin@macmini aMule-2.0.3]$ ls -l /usr/bin/wx*
lrwxrwxrwx  1 root root     40 sep 15 08:44 /usr/bin/wx-config -> /usr/lib/wx/config/base-ansi-release-2.6
-rwxr-xr-x  1 root root   5107 mai  8 20:07 /usr/bin/wxgtk-2.4-config
lrwxrwxrwx  1 root root      8 sep 14 21:09 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x  1 root root 110166 sep 14 21:09 /usr/bin/wxrc-2.6
[admin@macmini aMule-2.0.3]$ ls -l /usr/local/bin/wx*
lrwxrwxrwx  1 root root    49 sep 13 21:49 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/x11univ-ansi-release-2.6
lrwxrwxrwx  1 root root     8 sep 13 21:49 /usr/local/bin/wxrc -> wxrc-2.6
-rwxr-xr-x  1 root root 87578 sep 13 21:49 /usr/local/bin/wxrc-2.6
[admin@macmini aMule-2.0.3]$ rpm -qa | grep wx
wxGTK-gl-2.4.2-12
wxGTK-devel-2.4.2-12
wxGTK-2.4.2-12
wxPythonGTK2-2.4.2.4-7
wxBase-2.3.2-4
wxGTK2-2.4.2-12
wxGTK-common-devel-2.4.2-12
wxGTK-xrc-2.4.2-12
wxGTK-common-2.4.2-12
wxwin-common-2.3.2-4
wxGTK2-gl-2.4.2-12
wxGTK-stc-2.4.2-12



[admin@macmini aMule-2.0.3]$ wx_config_args="--toolkit=gtk" ./configure --prefix=/usr --enable-wxcas --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amulecmd --enable-amulecmdgui --enable-webserver --enable-webservergui --without-gdlib > ../../configure-amule2.txt

  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk --version
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

configure: error:
         Please check that wx-config is in path, the directory
         where wxWidgets libraries are installed (returned by
         'wx-config --libs' command) is in LD_LIBRARY_PATH or
         equivalent variable and wxWidgets version is new enough.
         Or this might also be a bug in our configure. Please try again
         with --with-wx-config=/usr/bin/wx-config
         (replace /usr/bin/wx-config with a valid path to your wx-config)
         * Note:
         Most probably, either one of the above aren't correct, you don't
         have wxGTK installed, or are missing wxGTK-devel (or equivalent) package.












whithout the beginning :

[admin@macmini aMule-2.0.3]$ ./configure --prefix=/usr --enable-optimize --disable-debug --enable-wxcas --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amulecmd --enable-amulecmdgui --enable-webserver --enable-webservergui
checking build system type... powerpc-unknown-linux
checking host system type... powerpc-unknown-linux
checking target system type... powerpc-unknown-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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 whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
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 zlib >= 1.1.4... yes (version 1.2.2.2)
checking for gdlib-config... /usr/local/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.33)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking for gd.h... (cached) yes
checking whether we need the GUI... yes
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.6.1)
configure: WARNING: wxWidgets >=2.5.0: Using wx-config --libs base,net
checking for GUI toolkit to use... X11,UNIVERSAL
checking whether to use embedded Crypto... yes
checking for bfd headers... yes
checking for autopoint... yes (4.3)
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for working volatile... yes
checking for ptrdiff_t... yes
checking whether closedir returns void... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for library containing strerror... none required
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... no
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.0, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... yes
checking whether gcc needs -traditional... no
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat dereferences a symlink specified with a trailing slash... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for __argz_count... (cached) yes
checking for __argz_next... (cached) yes
checking for __argz_stringify... (cached) yes
checking for endpwent... yes
checking for floor... no
checking for ftruncate... yes
checking for getcwd... (cached) yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getmntent... (cached) yes
checking for getmntinfo... no
checking for getpass... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for mempcpy... (cached) yes
checking for memset... yes
checking for munmap... (cached) yes
checking for nl_langinfo... yes
checking for select... yes
checking for setlocale... (cached) yes
checking for socket... yes
checking for sqrt... no
checking for stpcpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... (cached) yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtoul... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for mkdir... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking whether taskbar icon support should be compiled... yes
checking whether taskbar icon should use UTF-8 strings... no
checking if the applications should be statically linked... no
checking if this is a FreeBSD 4 or earlier system... no
checking for a readline compatible library... -lreadline -ltermcap
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether readline supports history... yes
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking whether ccache support should be added... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/man/Makefile
config.status: creating intl/Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating src/kademlia/Makefile
config.status: creating src/kademlia/utils/Makefile
config.status: creating src/kademlia/io/Makefile
config.status: creating src/kademlia/kademlia/Makefile
config.status: creating src/kademlia/routing/Makefile
config.status: creating src/kademlia/net/Makefile
config.status: creating src/pixmaps/Makefile
config.status: creating src/utils/Makefile
config.status: creating src/utils/aLinkCreator/Makefile
config.status: creating src/utils/aLinkCreator/docs/Makefile
config.status: creating src/utils/aLinkCreator/src/Makefile
config.status: creating src/utils/cas/Makefile
config.status: creating src/utils/cas/docs/Makefile
config.status: creating src/utils/wxCas/Makefile
config.status: creating src/utils/wxCas/docs/Makefile
config.status: creating src/utils/wxCas/src/Makefile
config.status: creating src/utils/xas/Makefile
config.status: creating src/utils/xas/docs/Makefile
config.status: creating src/webserver/Makefile
config.status: creating src/webserver/default/Makefile
config.status: creating src/webserver/chicane/Makefile
config.status: creating po/Makefile.in
config.status: creating Compilation.flags
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile


  Configure script has finished system check.

  Configured aMule 2.0.3 for 'powerpc-unknown-linux'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr
  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 taskbar icon support?        yes
  Should aMule be compiled with old GTK taskbar icon?        no
  Should aMule be compiled with UTF-8 taskbar icon support?  no
  Should aMule be linked against patched gsocket?            no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes
  Should aMule GUI Client be built?                          yes

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes
  Should aMule WebServer GUI 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

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.1
                                       crypto++              embedded
                                       libpng                1.2.8
                                       libgd                 2.0.33
                                       zlib                  1.2.2.2

[admin@macmini aMule-2.0.3]$ make
make  all-recursive
make[1]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3'
Making all in m4
make[2]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/m4'
make[2]: Rien à faire pour « all ».
make[2]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/m4'
Making all in docs
make[2]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
Making all in man
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/docs/man'
make[3]: Rien à faire pour « all ».
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/docs/man'
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
make[3]: Rien à faire pour « all-am ».
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
make[2]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
Making all in src
make[2]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src'
Making all in utils
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils'
Making all in xas
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
Making all in docs
make[5]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas/docs'
make[5]: Rien à faire pour « all ».
make[5]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas/docs'
make[5]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
make[5]: Rien à faire pour « all-am ».
make[5]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
Making all in cas
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/cas'
Making all in docs
make[5]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/cas/docs'
make[5]: Rien à faire pour « all ».
make[5]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/cas/docs'
make[5]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/cas'
gcc  -O2   -lpthread -o cas  cas-cas.o cas-configfile.o cas-functions.o cas-graphics.o cas-html.o cas-lines.o -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/X11R6/lib -lXpm -lX11 -lfontconfig -lfreetype -lz -lm -lgd
cas-graphics.o(.text+0x5c): In function `createimage':
graphics.c: undefined reference to `gdImageCreateFromPng'
cas-graphics.o(.text+0xec):graphics.c: undefined reference to `gdImagePng'
collect2: ld a retourné 1 code d'état d'exécution
make[5]: *** [cas] Erreur 1
make[5]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/cas'
make[4]: *** [all-recursive] Erreur 1
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/cas'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3'
make: *** [all] Erreur 2
Logged

bitocul

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Can't compile (wx or libpng problem)
« Reply #1 on: September 15, 2005, 09:03:20 AM »

even amuled doesn't like me anymore (not the same error) :

[admin@macmini aMule-2.0.3]$ ./configure --prefix=/usr --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
checking build system type... powerpc-unknown-linux
checking host system type... powerpc-unknown-linux
checking target system type... powerpc-unknown-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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 whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
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 zlib >= 1.1.4... yes (version 1.2.2.2)
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking whether we need the GUI... no
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.6.1)
configure: WARNING: wxWidgets >=2.5.0: Using wx-config --libs base,net
configure: WARNING: Disabling taskbar icon support as we have no GUI.
checking whether to use embedded Crypto... yes
checking for bfd headers... yes
checking for autopoint... yes (4.3)
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for working volatile... yes
checking for ptrdiff_t... yes
checking whether closedir returns void... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for library containing strerror... none required
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... no
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.0, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... yes
checking whether gcc needs -traditional... no
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat dereferences a symlink specified with a trailing slash... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for __argz_count... (cached) yes
checking for __argz_next... (cached) yes
checking for __argz_stringify... (cached) yes
checking for endpwent... yes
checking for floor... no
checking for ftruncate... yes
checking for getcwd... (cached) yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getmntent... (cached) yes
checking for getmntinfo... no
checking for getpass... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for mempcpy... (cached) yes
checking for memset... yes
checking for munmap... (cached) yes
checking for nl_langinfo... yes
checking for select... yes
checking for setlocale... (cached) yes
checking for socket... yes
checking for sqrt... no
checking for stpcpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... (cached) yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtoul... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for mkdir... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking whether taskbar icon support should be compiled... no
checking whether taskbar icon should use UTF-8 strings... no
checking if the applications should be statically linked... no
checking if this is a FreeBSD 4 or earlier system... no
checking for a readline compatible library... -lreadline -ltermcap
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether readline supports history... yes
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking whether ccache support should be added... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/man/Makefile
config.status: creating intl/Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating src/kademlia/Makefile
config.status: creating src/kademlia/utils/Makefile
config.status: creating src/kademlia/io/Makefile
config.status: creating src/kademlia/kademlia/Makefile
config.status: creating src/kademlia/routing/Makefile
config.status: creating src/kademlia/net/Makefile
config.status: creating src/pixmaps/Makefile
config.status: creating src/utils/Makefile
config.status: creating src/utils/aLinkCreator/Makefile
config.status: creating src/utils/aLinkCreator/docs/Makefile
config.status: creating src/utils/aLinkCreator/src/Makefile
config.status: creating src/utils/cas/Makefile
config.status: creating src/utils/cas/docs/Makefile
config.status: creating src/utils/wxCas/Makefile
config.status: creating src/utils/wxCas/docs/Makefile
config.status: creating src/utils/wxCas/src/Makefile
config.status: creating src/utils/xas/Makefile
config.status: creating src/utils/xas/docs/Makefile
config.status: creating src/webserver/Makefile
config.status: creating src/webserver/default/Makefile
config.status: creating src/webserver/chicane/Makefile
config.status: creating po/Makefile.in
config.status: creating Compilation.flags
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile


  Configure script has finished system check.

  Configured aMule 2.0.3 for 'powerpc-unknown-linux'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule be compiled with taskbar icon support?        no
  Should aMule be compiled with old GTK taskbar icon?        no
  Should aMule be compiled with UTF-8 taskbar icon support?  no
  Should aMule be linked against patched gsocket?            no
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes
  Should aMule GUI Client be built?                          no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes
  Should aMule WebServer GUI be built?                       no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.1
                                       crypto++              embedded
                                       libpng                1.2.8
                                       zlib                  1.2.2.2


 WARNING! gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
 amuleweb will be compiled but file download progress bar images will NOT be generated.
 See the above error on gd check for solutions.


[admin@macmini aMule-2.0.3]$ make
make  all-recursive
make[1]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3'
Making all in m4
make[2]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/m4'
make[2]: Rien à faire pour « all ».
make[2]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/m4'
Making all in docs
make[2]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
Making all in man
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/docs/man'
make[3]: Rien à faire pour « all ».
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/docs/man'
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
make[3]: Rien à faire pour « all-am ».
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
make[2]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/docs'
Making all in src
make[2]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src'
Making all in utils
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils'
Making all in xas
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
Making all in docs
make[5]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas/docs'
make[5]: Rien à faire pour « all ».
make[5]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas/docs'
make[5]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
make[5]: Rien à faire pour « all-am ».
make[5]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils/xas'
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils'
make[4]: Rien à faire pour « all-am ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils'
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/utils'
Making all in pixmaps
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/pixmaps'
make[3]: Rien à faire pour « all ».
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/pixmaps'
Making all in kademlia
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia'
Making all in io
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/io'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/io'
Making all in kademlia
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/kademlia'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/kademlia'
Making all in net
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/net'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/net'
Making all in routing
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/routing'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/routing'
Making all in utils
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/utils'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia/utils'
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia'
make[4]: Rien à faire pour « all-am ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia'
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/kademlia'
Making all in webserver
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver'
Making all in default
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver/default'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver/default'
Making all in chicane
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver/chicane'
make[4]: Rien à faire pour « all ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver/chicane'
make[4]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver'
make[4]: Rien à faire pour « all-am ».
make[4]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver'
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src/webserver'
make[3]: Entering directory `/home/admin/Desktop/clean/aMule-2.0.3/src'
g++  -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0    -lpthread -o amuleweb  amuleweb-WebServer.o amuleweb-WebInterface.o amuleweb-WebSocket.o amuleweb-MD5Sum.o amuleweb-ECSocket.o amuleweb-ExternalConnector.o amuleweb-ECPacket.o amuleweb-OtherFunctions.o amuleweb-ECSpecialTags.o amuleweb-StringFunctions.o amuleweb-NetworkFunctions.o amuleweb-Format.o -L/usr/local/lib -pthread   -L/usr/X11R6/lib  -lwx_base-2.6 -lwx_base_net-2.6  -lz -lreadline -ltermcap -L/usr/lib -lpng12 -lpng12 -lpng  -lbfd -liberty
amuleweb-WebInterface.o(.gnu.linkonce.t._ZN19wxThemeUserForwin32C1Ev[wxThemeUserForwin32::wxThemeUserForwin32()]+0x12): In function `wxThemeUserForwin32::wxThemeUserForwin32()':
/home/admin/Desktop/clean/aMule-2.0.3/src/WebInterface.cpp:89: undefined reference to `wxThemeUsewin32'
amuleweb-WebInterface.o(.gnu.linkonce.t._ZN19wxThemeUserForwin32C1Ev[wxThemeUserForwin32::wxThemeUserForwin32()]+0x1a):/home/admin/Desktop/clean/aMule-2.0.3/src/WebInterface.cpp:89: undefined reference to `wxThemeUsewin32'
amuleweb-WebInterface.o(.gnu.linkonce.t._ZN17wxThemeUserForgtkC1Ev[wxThemeUserForgtk::wxThemeUserForgtk()]+0x12): In function `wxThemeUserForgtk::wxThemeUserForgtk()':
/home/admin/Desktop/clean/aMule-2.0.3/src/WebInterface.cpp:89: undefined reference to `wxThemeUsegtk'
amuleweb-WebInterface.o(.gnu.linkonce.t._ZN17wxThemeUserForgtkC1Ev[wxThemeUserForgtk::wxThemeUserForgtk()]+0x1a):/home/admin/Desktop/clean/aMule-2.0.3/src/WebInterface.cpp:89: undefined reference to `wxThemeUsegtk'
collect2: ld a retourné 1 code d'état d'exécution
make[3]: *** [amuleweb] Erreur 1
make[3]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/admin/Desktop/clean/aMule-2.0.3'
make: *** [all] Erreur 2
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: Can't compile (wx or libpng problem)
« Reply #2 on: September 15, 2005, 02:30:12 PM »

I am not sure about the problem but if you want to compile amule and not only the daemon or cmd or webinterface you need wxGTK.
You can use wxBase but then you have to compile aMule with --disable-monolithic to prevent it from compiling amule.
It seems that there are some wxGTK libs missing or they aren't installed in a path directory. The possiblity is to tell the configuration script of aMule where is it installed (e.g. --with-wx-config=/home/localuser/usr/wx/bin/wx-config) or just install wxGTK with the command "make install".

I compile wxGTK with this script:
I have removed all computer specific optimizations! If you want to install wxGTK in standard path you have to remove --prefix or replace the path with /usr. Otherwise just replace localuser with your username.
Code: [Select]
make clean
./configure --enable-unicode --disable-compat24 --prefix=/home/localuser/usr/wx --enable-debug --enable-debug_gdb
make
rm -rf /home/p2p/usr/wx
make install

I use this script to compile aMule without the daemon.
Code: [Select]
make clean
./configure --enable-kad-compile --enable-debug --enable-verbose --enable-webserver --enable-webserver-php --enable-amulecmd --prefix=/home/localuser/usr/amule --with-wx-config=/home/localuser/usr/wx/bin/wx-config
make
rm -rf /home/localuser/usr/amule
make install

cu
Mr Faber
Logged