aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [Solved]From long long time ago ...Compile on Slackware 64bit arch still fail...  (Read 5936 times)

cyberZ

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11

Hi all,

are year which I wait for amule on 64bit. I have used slamd64 aprox. up to yesterday. Now I use slackware64 13, but the result is the same:

is impossible to run amule on it! With slam64, sometime, i have succesfully compiled and installed(with all dependencies; wx, libmspack, etc)
and launched aMule2.x, but after few-few seconds it crashed.

With slackware64 13, the problem is which aMule don't understand I have compiled wxWidget, and after wxGTK, with large files support(this is a
64bit system, is needed -largefile option?)and both, aMule2.2.5 and amuleCVS say me:

cecking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for File::Copy... ok
checking whether we need the GUI... yes
checking GeoIP.h usability... yes
checking GeoIP.h presence... yes
checking for GeoIP.h... yes
checking for GeoIP_open in -lGeoIP... 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/local/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... yes (version 2.8.10)
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 for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libupnp version >= 1.6.6... no (try to use --with-libupnp-prefix=PREFIX)
checking for crypto++ version >= 5.1... yes (version 5.6.0, installed)
checking if we're using the GNU
checking that wxWidgets has support for large files... no
configure: error:
        Support for large files in wxWidgets is required by aMule.
        To continue you must recompile wxWidgets with support for
        large files enabled.


Unfortunately, Slackware64 is multilib but not have 32bit libs installed(Slamd64 have). This mean, which
I cannot run 32bit executable. Probably, i must download Slackware13 32bit and install 32bit libs on my
Slackware64 13 system. After, probably can install aMule and requires libs of the 32bit version.

However, Tanks you for your efforts.

OUTPUT:

[tinux@Athos:~]$ ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root    45 2009-09-13 21:18 /usr/bin/wx-config -> /usr/lib64/wx/config/gtk2-unicode-release-2.8
-rwxr-xr-x 1 root root  9672 2009-06-09 22:06 /usr/bin/wxcopy
-rwxr-xr-x 1 root root  8232 2009-06-09 22:06 /usr/bin/wxpaste
lrwxrwxrwx 1 root root     8 2009-09-13 21:18 /usr/bin/wxrc -> wxrc-2.8
-rwxr-xr-x 1 root root 95830 2009-09-13 21:18 /usr/bin/wxrc-2.8
[tinux@Athos:~]$ ls -l /usr/local/bin/wx*
lrwxrwxrwx 1 root root    49 2009-09-13 19:42 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/gtk2-unicode-release-2.8
lrwxrwxrwx 1 root root     8 2009-09-13 19:42 /usr/local/bin/wxrc -> wxrc-2.8
-rwxr-xr-x 1 root root 95830 2009-09-13 19:42 /usr/local/bin/wxrc-2.8

Sorry, cannot query rpm, because Slackware 13 not use it.  The package are .txz or .tgz.


p.s. I have voluntary omitted libupnp because I prefer configure my router manually.
« Last Edit: September 15, 2009, 08:29:55 AM by wuischke »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292

It is possible to use aMule on 64 bit for some years now. So the good news is, that it is no impossible mission. :) And it should be stable, too, but software is never perfect... :( We had a lot of problems with crypto++ crashes in the past years, too.

First of all: Which version of aMule do you use? We don't call the developmental version CVS for quite a while now, is it a current developmental snapshot?

Anyway, you have two installations of wxWidgets. One in /usr/ and another in /usr/local. I'm afraid you install to /usr/local when re-compiling aMule wxGTK, but aMule checks the installation in /usr first.

Please uninstall wx in /usr and it should compile better now. (Also see wiki article)
« Last Edit: September 14, 2009, 08:56:15 AM by wuischke »
Logged

wires

  • Jr. Member
  • **
  • Karma: 6
  • Offline Offline
  • Posts: 83


With slackware64 13, the problem is which aMule don't understand I have compiled wxWidget, and after wxGTK, with large files support(this is a
64bit system, is needed -largefile option?)and both, aMule2.2.5 and amuleCVS say me:

checking that wxWidgets has support for large files... no
configure: error:
        Support for large files in wxWidgets is required by aMule.
        To continue you must recompile wxWidgets with support for
        large files enabled.


I'm running aMule on a 64 bits system (Fedora) for a while so you should be able to compile it without any problem. Few days ago I gave a try to wx 2.9.0 and I got that large file support error BUT wx 2.9.0 is a development version. Please make sure you are using wx 2.8.10 (latest stable).

Regards
Logged

cyberZ

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11

Hi,

seem which have 2 version of wx because first I have installed it with default. After, I have removed it, some dir in /usr/lib deleted by hands because uninstaller not remove it, but surely I have
leaved some files in /usr/local/bin. I have installed it with --libdir=/usr/lib64 because in Slackware/Slackware64 all user libraries are prefixed with /usr. /usr/lib for 32bit and /usr/lib64 for 64bit.
However, no 32 bit libs are present for now.
I have tryed with amule 2.2.5 and, after, with latest tarball snapshot from cvs, not trunk.
However, is strange which i get the message "support for large files=no".
I have downloaded and installed wxWidget(wxALL) and, after wxGTK of 2.8.10 version. Not 2.90.

Now I re-try. First uninstall all wx-widgets. After, try to re-install it with this(the same of yesterday) command line parameters:
./configure --prefix=/usr --libdir=/usr/lib64 --disable-debug --enable-optimize --enable-unicode
none options exist in configure for enable largefiles, because largefiles are the default. I only see the option:
--disable-largefile

Effectively, I have must do rm as the wiki, because after make uninstall(as root) many wx* was still present on the system.
I have deleted all "old" dir too. I have created a new clean dir with wxWidgets 2.8.10.

tar xjvf ~tinux/Arrivi/wxWidgets-2.8.10.tar.bz2

##some optimizations for make

export CHOST="x86_64-pc-linux-gnu"
export CFLAGS="-march=native -O2 -pipe"
export CXXFLAGS="${CFLAGS}"

./configure --prefix=/usr --libdir=/usr/lib64 --disable-debug --enable-optimize --enable-unicode

##the result of configure:

Configured wxWidgets 2.8.10 for `x86_64-unknown-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           yes
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.4      no
                                       wxWidgets 2.6      yes
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               sys
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          yes
                                       sdl                no

##I hope all is ok
##Now run make and wait ... :-)-~

make -j2

##ok, all seem   good, for now :)

make install

        if test ! -d /usr/include/wx-2.8/`dirname $f` ; then \
        /bin/ginstall -c -d /usr/include/wx-2.8/`dirname $f`; \
        fi; \
        /bin/ginstall -c -m 644 ./include/$f /usr/include/wx-2.8/$f; \
        done
 
 ------------------------------------------------------
 
 The installation of wxWidgets is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.
 
 wxWidgets comes with no guarantees and doesn't claim
 to be suitable for any purpose.
 
 Read the wxWidgets Licence on licencing conditions.
 
 ------------------------------------------------------

##all ok for now!
## Now, try to compile aMule from svn TRUNK: aMule-SVN-r9802.tar 9802 4.27 MB Mon, 14 Sep 2009 21:48:43 UTC

## same optimizations for make as above and run configure

./configure --prefix=/usr --libdir=/usr/lib64 --enable-optimize --enable-geoip --enable-amule-gui --enable-alc --enable-wxcas --enable-cas --disable-debug --enable-ccache

###WoW! All ok!! :)

Configure script has finished system check.

  Configured aMule SVN (rev. 9802) for 'x86_64-unknown-linux-gnu'.

  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 UPnP support?                disabled
  Should aMule be compiled with IP2country support?          yes
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           yes
  Crypto++ library/headers style?                            installed

  **** 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?        yes
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  yes
  Should aMule GUI Statistics (wxCas) be built?              yes
  Should xas XChat2 plugin be installed?                     no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          yes
  Libraries aMule will use to build:
                                       wxWidgets             2.8.10 (gtk2,shared)
                                       crypto++              5.6.0 (installed, in /usr)
                                       libintl               system
                                       libGeoIP              system
                                       libgd                 2.0.35
                                       zlib                  1.2.3


 *** Warnings during configuration ***

* UPnP code has been disabled because libupnp >= 1.6.6 not found (try to use --with-libupnp-prefix=PREFIX).


## Ok, I not need upnp. Now run make ... :-)-~

make -j2

make install

##all ok!

Now I hope it work ...Incredible! After few minutes it not crash .. I have access to preferences, ecc without crash!
Old problem which I has with one of the slamd64 library, not remember the name of that lib but was always the same, now are not present! :)
However, for security, run aMule for my own script which restart it if crash.
Surely, the problem was many wx installed, as you sayd.

Many thanks for your support and good download with aMule! :)

Best regards

p.s. excuse me for my bad English!



« Last Edit: September 15, 2009, 01:20:02 AM by cyberZ »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292

I'm glad to hear it works now. :)
Logged