aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Compile problems  (Read 7737 times)

galen

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Compile problems
« on: January 11, 2004, 05:30:32 AM »

Hi All,

I'm having some compile problems, can you please direct me in the right direction.

This is a fresh install of rh9 with the latest wx rpm librarys installed.

below is some system info.

I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

     B. wxWindows Info
        Version: 2.4.2
        -pthread -lwx_base-2.4

     C. GTK Info
./get-info.sh: line 1: gtk-config: command not found
        GTK 1:
        GTK 2: 2.2.1

II.  System Environment

     A. CPU Info
        Type:  AuthenticAMD
        Model: AMD Athlon(tm) XP 1700+
        Speed: 1470.051
        BMips: 2929.45
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow

     B. Memory Info
        Total:   514512 kB
        Unused:

     C. Kernel Info
        Version: 2.4.20-28.9

     D. Library Info
        wxWindows library: libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.so

Also just a note, i've got xMule to work fine.

Galen
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile problems
« Reply #1 on: January 11, 2004, 05:46:38 AM »

Logged

galen

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Compile problems
« Reply #2 on: January 11, 2004, 05:59:35 AM »

i already have wxWindows running with gtk2 support and that is needed for other programs,

Will this directly effect these programs?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile problems
« Reply #3 on: January 11, 2004, 07:07:58 AM »

the problem is you have wx-config pointing to wxbase instead of wxGTK.

and PLEASE use GTK1 for aMule.
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compile problems
« Reply #4 on: January 11, 2004, 01:53:49 PM »

look here in forum howto link wxBase ..
must look like:

-rwxr-xr-x    1 root     root         4864 2003-11-28 13:08 /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 2003-12-26 19:41 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 2003-12-26 19:40 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5159 2003-09-21 15:14 /usr/bin/wxgtk-2.4-config

galen

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Compile problems
« Reply #5 on: January 11, 2004, 04:48:46 PM »

Thanks for the feedback,

After a little playing around I got all to work.

Thanks
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
hhhmmmmm
« Reply #6 on: January 12, 2004, 01:31:49 PM »

Hi there,
as you can tell it does not work for me.
and I did the install like it was posted in

http://www.amule.org/amule/thread.php?threadid=272&sid=

everything worked fine (ok had to reinstall, gtk, glin und curl) but other than that no problems.
until the final step

make install && ldconfig && sync

the error message is

TextClient.cpp:32:2: #error There is a problem with the WX_CXXFLAGS.
TextClient.cpp:33:2: #error This is probably caused by having a link from wx-config to wxbase-*-config.
TextClient.cpp:34:2: #error PLEASE MAKE SURE THAT YOUR wx-config POINTS TO THE CORRECT CONFIGURE SCRIPT!
TextClient.cpp:35:2: #error Then run: config.status --recheck; config.status
TextClient.cpp:36:2: #error


problem is that I have it likend the right way in /usr/bin/

-rwxr-xr-x    1 root     root         4865 2004-01-12 10:06 wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 2004-01-12 12:25 wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 2004-01-12 12:39 wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5071 2004-01-12 11:25 wxgtk-2.4-config


 ?(

anybody has an idea what else could have gone wrong?
thanks a lot  :)

carpe diem
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compile problems
« Reply #7 on: January 12, 2004, 01:34:35 PM »

paste the configure output plz

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compile problems
« Reply #8 on: January 12, 2004, 01:49:54 PM »

no problem :)

but I am pretty sure I did it the same way as bigbob posted since I just copy and pasted his commands

for the wxbase I did:
# ./configure --prefix=/usr && make

for the wxgtk I did:
#./configure --prefix=/usr/ --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile

or could it be due to I try to compile CVS version? but that should not make a difference am I right?

thanks
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compile problems
« Reply #9 on: January 12, 2004, 01:51:10 PM »

ups
1 sec you wanted the output :)
my bad
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
aMule configure output
« Reply #10 on: January 12, 2004, 01:55:12 PM »

:) better?

Quote
:~/Desktop/testing/aMule-1.2.4> ./configure

......


checking for GNU gettext in libc... yes
checking for wx-config... /usr/local/bin/wx-config
checking for wxWindows version >= 2.4.0... yes (version 2.4.2)
checking for wxbase-2.4-config... /usr/bin/wxbase-2.4-config
checking for wxWindows base version >= 2.4.0... yes (version 2.4.2)
checking for curl >= 7.9.7... yes (version 7.10.8)
checking if wxWindows was linked with GTK2... no
checking for gtk-config... /usr/local/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking if wxWindows version >=2.5.0 ... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes

.......


  Configure script has finished system check.

  Configured aMule 1.2.4 for `i686-pc-linux-gnu'.

  Should aMule be compiled in debug mode?                  no
  Should aMule be compiled with release grp code?          no
  Should aMule be compiled without debug reporting?        yes
  Should aMule be compiled with profiling?                 no
  Should aMule be compiled with optimizations?             no
  Should aMule be compiled with systray?                   yes
  Should aMule be compiled with safe systray?              no
  Should aMule be compiled with pure GTK code?             yes
  Should aMule be compiled without bar drawing?            no
  Should aMule be linked against patched gsocket?          yes
  Should amulecmd be built?                                yes
  Should amulecmd (TextClient) be linked against wxbase?   yes

  Which libraries should aMule use?
                                       wxWindows          2.4.2
                                       GTK                1.2.10

thanks for the help  :)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compile problems
« Reply #11 on: January 12, 2004, 01:59:31 PM »

checking for wx-config... /usr/local/bin/wx-config

checking for wxbase-2.4-config... /usr/bin/wxbase-2.4-config

/usr/local/bin & /usr/bin ?!?  ?(

well, does amule compile now ?

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compile problems
« Reply #12 on: January 12, 2004, 02:40:17 PM »

hmm sorry
maybe I got up to early  ;)

what is the right file?

there are files in /usr/bin/ and /usr/local/bin
both have the files wxgtk-2.4-config

so what should I link to what? My first thought was linking /usr/bin/wxgtk-2.4-config to /usr/bin/wx-config

but there is also a wx-config file in /usr/local/bin/ , what should it be linked to? the link right now is the wxgtk-2.4-config file in the /usr/local/bin/ folder.

sorry, thanks for the help  :baby:
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compile problems
« Reply #13 on: January 12, 2004, 04:40:16 PM »

alright
seams to be my bad. (of course)  :]
redid the whole thing on a different computer and worked without any problems.

so now back to debugging on the other system  :(

thanks anyways  :)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Compile problems
« Reply #14 on: January 12, 2004, 04:44:24 PM »

uninstall wxGTK on the 1st pc and compile it --with-prefix=/usr
Pages: [1] 2