aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: tarball compilation stoped : wxWidgets problem?  (Read 3290 times)

mugen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
tarball compilation stoped : wxWidgets problem?
« on: January 31, 2008, 11:37:38 AM »

I'm stucked here :

Code: [Select]
+ make -j4
+ make install
+ cd ..
+ WXWIDGETS_INSTALL_DIR=/home/myself/usr/wxWidgets
+ tar zxf
tar: Old option `f' requires an argument.
Try `tar --help' or `tar --usage' for more information.
+ cd 'wxWidgets-?.?.?'
./amule_build_install.sh: line 47: cd: wxWidgets-?.?.?: No such file or directory
+ ./configure --enable-mem_tracing --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=/home/myself/usr/wxWidgets
./amule_build_install.sh: line 49: ./configure: No such file or directory

here is the full output

Code: [Select]
++ echo /home/myself
+ USERHOME=/home/myself
+ JOBS=4
+ CRYPTOPP_INSTALL_DIR=/home/myself/usr/cryptopp
+ CRYPTOPP_SOURCES_DIR=cryptopp_tmpdir
+ rm -rf cryptopp_tmpdir
+ mkdir -p cryptopp_tmpdir
+ cd cryptopp_tmpdir
+ unzip ../
unzip:  cannot find or open ../, ../.zip or ../.ZIP.
+ make -f GNUmakefile -j4
make: GNUmakefile: No such file or directory
make: *** No rule to make target `GNUmakefile'.  Stop.
+ PREFIX=/home/myself/usr/cryptopp
+ make install
make: *** No rule to make target `install'.  Stop.
+ cd ..
+ LIBUPNP_INSTALL_DIR=/home/myself/usr/libupnp
+ tar jxf
tar: Old option `f' requires an argument.
Try `tar --help' or `tar --usage' for more information.
+ cd 'libupnp-?.?.?'
./amule_build_install.sh: line 33: cd: libupnp-?.?.?: No such file or directory
+ ./configure --enable-debug --prefix=/home/myself/usr/libupnp
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
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 egrep... grep -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
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.3)
checking for File::Copy... ok
checking whether we need the GUI... 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... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... yes (version 2.8.4)
checking for wxWidgets static library... no
checking if wxWidgets was built in DEBUG mode... no
checking if wxWidgets was built in STATIC mode... no
checking which wxWidgets toolkit was selected... gtk2
checking that wxWidgets has support for large files... yes
checking for crypto++ version >= 5.1... yes (version 5.5, gentoo_debian)
configure: Crypto++ version number is 5005000
checking for bfd headers... no
configure: WARNING: bfd.h not found, please install binutils development package if you are a developer or want to help testing aMule
checking for autopoint... ./configure: line 8630: autopoint: command not found
no ()
configure: You need to install GNU gettext/gettext-tools to compile aMule with i18n support
checking for X... no
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... 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 inttypes.h usability... yes
checking inttypes.h presence... yes
checking for inttypes.h... 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 nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking stdint.h usability... yes
checking stdint.h presence... yes
checking for stdint.h... yes
checking stdio_ext.h usability... yes
checking stdio_ext.h presence... yes
checking for stdio_ext.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... yes
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... yes
checking for string.h... yes
checking strings.h usability... yes
checking strings.h presence... yes
checking for strings.h... 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/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.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 sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/types.h usability... yes
checking sys/types.h presence... yes
checking for sys/types.h... yes
checking unistd.h usability... yes
checking unistd.h presence... yes
checking for unistd.h... 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... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
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... yes
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 for nl_types.h... (cached) 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... no
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... no
checking whether lstat accepts an empty string... no
checking whether lstat dereferences a symlink specified with a trailing slash... (cached) no
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 sys/select.h... (cached) 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 vprintf... yes
checking for _doprnt... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... 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 localeconv... 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 pow... no
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 for mkdir... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking if the applications should be statically linked... no
checking for docdir... ${prefix}/share/doc/aMule-SVN
checking for SVNDATE... Thu Jan 31 07:01:56 CET 2008
checking if this is a FreeBSD 4 or earlier system... no
Generating po/LINGUAS... Done
checking denoising level... 0
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/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/pixmaps/flags_xpm/Makefile
config.status: creating src/libs/Makefile
config.status: creating src/libs/ec/Makefile
config.status: creating src/libs/ec/abstracts/Makefile
config.status: creating src/libs/ec/cpp/Makefile
config.status: creating src/libs/common/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/autostart-xas
config.status: creating src/utils/xas/docs/Makefile
config.status: creating src/skins/Makefile
config.status: creating src/webserver/Makefile
config.status: creating src/webserver/src/Makefile
config.status: creating src/webserver/default/Makefile
config.status: creating src/webserver/php-default/Makefile
config.status: creating src/webserver/chicane/Makefile
config.status: creating unittests/Makefile
config.status: creating unittests/muleunit/Makefile
config.status: creating unittests/tests/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
config.status: executing denoiser commands


  Configure script has finished system check.

  Configured aMule SVN for 'i686-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /home/myself/usr/libupnp
  Should aMule be compiled with i18n support?                no
  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 UPnP support?                yes
  Should aMule be compiled with IP2country support?          no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            gentoo_debian

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

  **** aMule WebServer ****
  Should aMule WebServer 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.8.4 (gtk2,shared)
                                       crypto++              5.5 (gentoo_debian)
                                       zlib                  1.2.3.3
+ make -j4
+ make install
+ cd ..
+ WXWIDGETS_INSTALL_DIR=/home/myself/usr/wxWidgets
+ tar zxf
tar: Old option `f' requires an argument.
Try `tar --help' or `tar --usage' for more information.
+ cd 'wxWidgets-?.?.?'
./amule_build_install.sh: line 47: cd: wxWidgets-?.?.?: No such file or directory
+ ./configure --enable-mem_tracing --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=/home/myself/usr/wxWidgets
./amule_build_install.sh: line 49: ./configure: No such file or directory
+ cd ..
+ AMULE_INSTALL_DIR=/home/myself/usr/amule
+ tar jxf
tar: Old option `f' requires an argument.
Try `tar --help' or `tar --usage' for more information.
+ cd amule-cvs
./amule_build_install.sh: line 70: cd: amule-cvs: No such file or directory
+ ./configure --enable-ccache --with-denoise-level=3 --enable-debug --disable-optimize --enable-verbose --enable-geoip --enable-cas --enable-wxcas --enable-amule-gui --enable-webserver --enable-amulecmd --enable-amule-daemon --with-wx-config=/home/myself/usr/wxWidgets/bin/wx-config --prefix=/home/myself/usr/amule --with-crypto-prefix=/home/myself/usr/cryptopp
./amule_build_install.sh: line 72: ./configure: No such file or directory
+ echo

+ echo Finished compilation
Finished compilation
+ echo You should run aMule like this:
You should run aMule like this:
+ echo '$LD_LIBRARY_PATH=/home/myself/usr/wxWidgets/lib:/home/myself/usr/libupnp/lib' LANG=en_US.UTF-8 /home/myself/usr/amule/bin/amule
$LD_LIBRARY_PATH=/home/myself/usr/wxWidgets/lib:/home/myself/usr/libupnp/lib LANG=en_US.UTF-8 /home/myself/usr/amule/bin/amule
+ echo

+ echo Of course you may use a different locale.
Of course you may use a different locale.
+ echo
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: tarball compilation stoped : wxWidgets problem?
« Reply #1 on: January 31, 2008, 12:48:27 PM »

What command do you use to start the build process? You are missing an argument to the tar xzf -function, which means that there was no wx-tarball specified.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: tarball compilation stoped : wxWidgets problem?
« Reply #2 on: January 31, 2008, 01:23:25 PM »

The easy way:

$ mkdir tmp
$ cd tmp
$ copy all the necessary tarballs here, e.g. aMule-CVS-20080131.tar.bz2, cryptopp552.zip, libupnp-1.6.4.tar.bz2, wxWidgets-2.8.7.tar.gz
$ /path/to/amule_build_install.sh cryptopp552.zip libupnp-1.6.4.tar.bz2 wxWidgets-2.8.7.tar.gz aMule-CVS-20080131.tar.bz2

I recomend that you read the script first. The example usage line is the first thing in the file. Of course it can be more sophisticated, like telling the user that there are not enough parameters on the line, but I am accepting patches :D

If you don't want to build some library, you can enter only some of the commands by hand. But you will need to understand what you are doing.
Logged

mugen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: tarball compilation stoped : wxWidgets problem?
« Reply #3 on: February 01, 2008, 04:04:19 PM »

Ok after installing missing librairies until the compile fails and ask for the next missing one and repeat this for mors than an hour it seems that finally it compiled despite hundreds of warning for "unused parameters".
But here I might look really dumb but no matter.
at the end of the compile it says :
Code: [Select]
+ echo Finished compilation
Finished compilation
+ echo You should run aMule like this:
You should run aMule like this:
+ echo '$LD_LIBRARY_PATH=/home/myself/usr/wxWidgets/lib:/home/myself/usr/libupnp/lib' LANG=en_US.UTF-8 /home/myself/usr/amule/bin/amule
$LD_LIBRARY_PATH=/home/myself/usr/wxWidgets/lib:/home/myself/usr/libupnp/lib LANG=en_US.UTF-8 /home/myself/usr/amule/bin/amule
I tried to look on the web but couldn't figure out the answer. Might be so obvious to you guys but now what's the real command line to start amule? because when I type /home/myself/usr/amule/bin/amule it comes back to me with this error :
Code: [Select]
/home/myself/usr/amule/bin/amule: error while loading shared libraries: libwx_gtk2ud_adv-2.8.so.0: cannot open shared object file: No such file or directorybut the librairy is correctly placed into /home/myself/usr/wxWidgets/lib
Logged

mugen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: tarball compilation stoped : wxWidgets problem?
« Reply #4 on: February 01, 2008, 06:06:26 PM »

Sorry for last post, I got it running by adding the LD_LIBRARY_PATH and LANG variable to the environment variable.
Though I still wonder why it's says something different in the compilation script...
I'll test the latest version
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: tarball compilation stoped : wxWidgets problem?
« Reply #5 on: February 01, 2008, 06:44:49 PM »

Well I don't know what went wrong, that is how I actualy do myself.

Except for the fact that all the occurrences of  /home/myself get replaced with the proper username here. You actually created a user named "myself", right?

If you have these variables set in the environment, then there is no need to set them in the command line. The script line was supposed to be failproof. I'll se if I can reproduce the problem here.
Logged