aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: wxGTK problems?  (Read 4381 times)

Merlin-TC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
wxGTK problems?
« on: November 14, 2004, 02:04:06 PM »

HI,

I am having some problems in getting amule to work on my system.

I am using gentoo and I just can't get it to compile because of a problem with wxGTK.

I am using version 2.5.3 right now.

When I do a configure of amule it cannot find the wx-config simply because it doesn't exist anymore in the 2.5.3 version.
Is this the fault of the gentoo ebuild and something went wrong there?

This is all I have:
Code: [Select]
(/home/merlin/compiled_programs/sim) # ls -l /usr/bin/wx*
lrwxrwxrwx  1 root root     8 Nov 14 19:18 /usr/bin/wxrc -> wxrc-2.5
-rwxr-xr-x  1 root root 61692 Nov 14 19:18 /usr/bin/wxrc-2.5

Code: [Select]
aMule enabled options:

  **** aMule Core ****
  Should aMule be compiled in debug mode?                  no
  Should aMule be compiled with verbose console output?    no
  Should aMule be compiled with upload speed sense?        no
  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 UTF-8 systray?             no
  Should aMule be compiled with pure GTK code?             yes
  Should aMule be linked against patched gsocket?          no
  Should aMule daemon version be built? (EXPERIMENTAL)     no
  Should aMule remote gui be built? (EXPERIMENTAL)         no
  Crypto++ library/headers style?                          embeded

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

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

  **** General Libraries and Tools ****
  Should ccache support be enabled?                        no
  Libraries aMule will use to build:
                                       wxWidgets          Not detected
                                       GTK                1.2.10

  NOTICE: With wxWidgets versions prior 2.5, you need wxBase library to compile:
          amuleweb amulecmd and alcc

I am sorry if I overlooked something or there was a missunderstanding.

Any help would be really appreciated.
Thanks in advance.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: wxGTK problems?
« Reply #1 on: November 14, 2004, 02:17:44 PM »

hmmm
reemerge wxGTK2.5.3...should be there
I have 2.5.3 aswell

ls -l /usr/bin/wx*
lrwxr-xr-x  1 root root     38 Nov 11 18:09 /usr/bin/wx-config -> /usr//lib/wx/config/gtk-ansi-debug-2.5
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."

Merlin-TC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: wxGTK problems?
« Reply #2 on: November 14, 2004, 03:28:15 PM »

Thanks for the quick reply.

I have no idea why the symlink wasn't created but I did it now and it seems to work though it's still compiling.

Are you using gentoo as well?
With what useflags did you emerge wxGTK?
Could you give me your output of emerge -pv wxGTK ?

Thanks a lot and I will let you know if it works or not.
Logged

Merlin-TC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: wxGTK problems?
« Reply #3 on: November 14, 2004, 03:37:52 PM »

Well, guessed my comment was a bit too early because I cannot compile it.

I get the following error:

Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..      -I/usr/lib/wx/include/gtk-ansi-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA   -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include    -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0   -MT amule-ServerList.o -MD -MP -MF ".deps/amule-ServerList.Tpo" \
  -c -o amule-ServerList.o `test -f 'ServerList.cpp' || echo './'`ServerList.cpp; \
then mv -f ".deps/amule-ServerList.Tpo" ".deps/amule-ServerList.Po"; \
else rm -f ".deps/amule-ServerList.Tpo"; exit 1; \
fi
ServerList.cpp: In member function `bool CServerList::AddServermetToList(const wxString&, bool)':
ServerList.cpp:152: warning: comparison of unsigned expression < 0 is always false
ServerList.cpp:323:5: warning: #warning ENDIANESS -> Take care of this htonl
if g++ -DHAVE_CONFIG_H -I. -I. -I..      -I/usr/lib/wx/include/gtk-ansi-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA   -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include    -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0   -MT amule-ServerListCtrl.o -MD -MP -MF ".deps/amule-ServerListCtrl.Tpo" \
  -c -o amule-ServerListCtrl.o `test -f 'ServerListCtrl.cpp' || echo './'`ServerListCtrl.cpp; \
then mv -f ".deps/amule-ServerListCtrl.Tpo" ".deps/amule-ServerListCtrl.Po"; \
else rm -f ".deps/amule-ServerListCtrl.Tpo"; exit 1; \
fi
ServerListCtrl.cpp: In static member function `static int CServerListCtrl::SortProc(long int, long int, long int)':
ServerListCtrl.cpp:591: error: `CmpAny' undeclared (first use this function)
ServerListCtrl.cpp:591: error: (Each undeclared identifier is reported only once for each function it appears in.)
ServerListCtrl.cpp:593: error: duplicate case value
ServerListCtrl.cpp:577: error: previously used here
make[4]: *** [amule-ServerListCtrl.o] Error 1
make[4]: Leaving directory `/home/merlin/source/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/merlin/source/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/merlin/source/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/merlin/source/amule-cvs'
make: *** [all] Error 2

Could you tell me your configure options as well?
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: wxGTK problems?
« Reply #4 on: November 14, 2004, 05:55:05 PM »

In ServerListCtrl.cpp line 591 change CmpAny for otherfunctions:CmpAny

Then compile
Greetigns!
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: wxGTK problems?
« Reply #5 on: November 14, 2004, 06:15:08 PM »

hey

I use gentoo but I dont use emerge for amule and wxGTK
since I run wx-cvs here and also cvs build of amule....

but use you can mostly leave normal flags except
USE="-gtk2"
if you want good mem and cpu usage.

stefanero
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."

Merlin-TC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: wxGTK problems?
« Reply #6 on: November 14, 2004, 11:39:45 PM »

Thanks for all your help guys, I really appreciate it :)
Sorry I didn't reply again but I am living in another timezone and it was time for bed :)

Stefanero: Where did you get the ebuild for amule CVS from?
Is there also an cvs ebuild for wxgtk?
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: wxGTK problems?
« Reply #7 on: November 14, 2004, 11:53:01 PM »

stefanero means self-compiled ;)

cheers

Merlin-TC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: wxGTK problems?
« Reply #8 on: November 15, 2004, 12:07:05 AM »

Just read it again and yeah....
Guess I should have a shower first because I reply any threads LOL

Ok guys, thanks for your help.
Gotta go to work now but try it when I came back.

Thanks again
Logged

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: wxGTK problems?
« Reply #9 on: November 15, 2004, 12:27:22 AM »

there are a few problem now with gentoo, because wxGTK 2.5.3 are now hard-masked again and the fixed amule ebuild can't go into portage

if you want to use wxgtk 2.5.3 try with this one (with USE gtk2 enabled, of course)

http://bugs.gentoo.org/show_bug.cgi?id=71108
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

Merlin-TC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: wxGTK problems?
« Reply #10 on: November 30, 2004, 12:10:17 PM »

Hi again,
sorry for my late reply but I was very busy with my work lately so I didn't have a chance to play around with amule.

But now I've got a bit time again so I tried to compile everything from CVS.
My problem now is that the CVS server of wxGTK seems to be so slow.

Does anyone experience these problems as well?
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: wxGTK problems?
« Reply #11 on: November 30, 2004, 03:56:04 PM »

iirc, the wx's cvs is on sourceforge and sourceforge isn't a fast server at all :( patience is the key

Greetings!
Logged