aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: trying to compile amuled on text-only opensuse 10.3  (Read 4083 times)

felipe1982

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • Felipe Alvarez
trying to compile amuled on text-only opensuse 10.3
« on: December 12, 2007, 07:12:15 AM »

I'm going to run a aMule server (amuled + amuleWEB + amuleCMD) but I don't want a GUI. The GUI will be on another machine and connect to the server remotely.

I downloaded 'wxBase-2.8.7' and 'amule-2.1.3' and untarred them both into my home dir (into their respective directories)
I download the 'aMule-wx.patch' file and patched amule with 'patch -p 1 < aMule-wx.patch' and was successful.
I then followed directions for compiling amuled (beginning with wxBase) but compilation failed with:

checking for mspack.h... no
checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

'pkg-config' is installed and  up-to-date. 'gtk-config' not found. I do not have a desktop environment. I don't even have X installed. I need help getting amuled installed. Please help.

Output of zypper -r search gtk on attached file.
« Last Edit: December 12, 2007, 07:16:25 AM by felipe1982 »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #1 on: December 12, 2007, 11:21:09 AM »

I've updated the wiki with new instructions, you have to add the --with-toolkit=base option.
Logged

felipe1982

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • Felipe Alvarez
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #2 on: December 13, 2007, 02:58:01 AM »

About compiling wxBase: No more "--prefix=/usr" ?

I compiled just like this ./configure --enable-unicode --without-subdirs --disable-gui --disable-expat Compiling wxBase was succesful. "Make" was unsuccessful. How do I get around this one? I got this error:

make: *** No rule to make target `src/expat/lib/xmlparse.c', needed by `wxexpat_xmlparse.o'.  Stop.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #3 on: December 13, 2007, 09:59:30 AM »

The prefix doesn't really matter (although it may cause problems), you can of course use it, depends on where you want the files to be installed.

But you are right, it doesn't work with my line. For instance, I should have used --without-expat and even then there's still the xml.cpp problem. I'll try to have a look at it later again, please use the wxall-source in the meanwhile. As long as you use --disable-gui, you get the same as with wxbase, i.e. no GUI libraries.
Logged

felipe1982

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • Felipe Alvarez
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #4 on: December 14, 2007, 07:44:29 AM »

It comiled and installed with wxall (aka wxWidgets). Thanks for your help! I am so thankful to you! I tried to make the wiki a little bit clearer - hope it helps for the "next guy".

How can I make them into an RPM (wxWidgets (base only -- no GUI) and amulecmd + amuled + amuleweb) instead of compiling from source EVERY single time?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #5 on: December 14, 2007, 02:15:45 PM »

Hi,

thanks a lot for your help improving the wiki! I appreciate it a lot!

To create a RPM package, you can use checkinstall (execute checkinstall instead of make install und follow the instructions) or you can work with spec-files. I'm unfortunately not familiar with the design of spec files, but I think you can ask OldFrog about this, he is creating Mandriva packages.
Logged

felipe1982

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • Felipe Alvarez
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #6 on: December 15, 2007, 11:08:28 PM »

Firstly, can I use "checkinstall" AFTER having already executed "make install"?
Secondly, how does one "uninstall?" Do we use "make uninstall"?

Wiki's are great for tutorials. Forums are shit for stuff like that, but awesome for support ;-)
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #7 on: December 15, 2007, 11:50:11 PM »

Yes, you can execute checkinstall even after executing make install. Yes, you can use make uninstall to remove a package, although you should use rpm once you've used checkinstall to create a package.
Logged

felipe1982

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • Felipe Alvarez
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #8 on: December 16, 2007, 06:07:23 PM »

did ./configure
did makeError on checkinstall:
Quote
felipe@anarchy:~/wxWidgets-2.8.7> sudo sudo checkinstall -R

checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


**************************************
**** RPM package creation selected ***
**************************************
This package will be built according to these values:
1 -  Summary: [ wxWidgets-base ]2 -  Name:    [ wxWidgets ]3 -  Version: [ 2.8.7 ]4 -  Release: [ 1 ]5 -  License: [ GPL ]6 -  Group:   [ Applications/System ]7 -  Architecture: [ i386 ]8 -  Source location: [ wxWidgets-2.8.7 ]9 -  Alternate source location: [  ]10 - Requires: [  ]11 - Provides: [ wxWidgets ]
Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================/usr/bin/install -c -d /usr/local/lib
/usr/bin/install -c -m 644 /home/felipe/wxWidgets-2.8.7/lib/libwx_baseu-2.8.so /usr/local/lib
/usr/bin/install -c /home/felipe/wxWidgets-2.8.7/lib/libwx_baseu-2.8.so.0.4.0 /usr/local/lib
(cd /usr/local/lib ; rm -f libwx_baseu-2.8.so libwx_baseu-2.8.so.0; ln -s libwx_baseu-2.8.so.0.4.0 libwx_baseu-2.8.so.0; ln -s libwx_baseu-2.8.so.0 libwx_baseu-2.8.so)
ln: creating symbolic link `libwx_baseu-2.8.so': File exists
make: *** [install_basedll] Error 1

****  Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #9 on: December 17, 2007, 01:33:43 AM »

I think you need fakeroot to do that, but it's been a while since I built packages, please see the checkinstall manpage for further reference.
Logged

felipe1982

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • Felipe Alvarez
Re: trying to compile amuled on text-only opensuse 10.3
« Reply #10 on: December 17, 2007, 02:24:48 AM »

I figured it out. For history's sake:
"sudo sudo checkinstall --fstrans=no --install=no --pakdir=/home/username

will NOT install the program/application, and will make RPM package in directory /home/username
Logged