aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Problems compiling wxWidgets 2.8.4  (Read 6278 times)

helrunar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Problems compiling wxWidgets 2.8.4
« on: July 07, 2007, 08:40:26 PM »

Hello

I get errors when compiling wxWidgets 2.8.4

Code: [Select]
./configure --prefix=/usr/
gives me following error at the end:

Code: [Select]
checking for png.h > 0.90... no
checking for png.h... (cached) no
configure: WARNING: system png library not found or too old, will use built-in instead
checking for jpeglib.h... no
configure: WARNING: system jpeg library not found, will use built-in instead
checking for tiffio.h... no
configure: WARNING: system tiff library not found, will use built-in instead
checking for expat.h... no
configure: WARNING: system expat library not found, will use built-in instead
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.

Is there a deb Package to get GTK+ installed via apt-get install?

Please help me I'm totally noob to get libraries installed

thanks..
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Problems compiling wxWidgets 2.8.4
« Reply #1 on: July 07, 2007, 08:44:07 PM »

libgtk2.0-dev
Logged

helrunar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Problems compiling wxWidgets 2.8.4
« Reply #2 on: July 08, 2007, 01:10:36 AM »

Thank you. GTK is installed now but for any reason I get an error with make?!

Code: [Select]
checking if make is GNU make... yes
checking for dependency tracking method... gcc
checking if the compiler supports precompiled headers... no
checking whether make sets $(MAKE)... (cached) yes
checking for cppunit-config... no
checking for Cppunit - version >= 1.8.0... no
configure: creating ./config.status
config.status: creating lib/wx/config/gtk2-ansi-release-2.8
config.status: creating lib/wx/config/inplace-gtk2-ansi-release-2.8
config.status: creating version-script
config.status: creating Makefile
config.status: creating samples/console/Makefile

config.status: error: cannot find input file: samples/Makefile.in
debian:~/wxBase-2.8.4# make
make: *** No rule to make target `src/png/png.c', needed by `wxpng_png.o'.  Stop.
debian:~/wxBase-2.8.4#
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Problems compiling wxWidgets 2.8.4
« Reply #3 on: July 08, 2007, 06:51:23 AM »

You are trying to compile wxBase, which AFAIK will let you compile only the non-graphical part of aMule (amuled, amulecmd and maybe the web server). I suggest you try compiling the wxGTK package, which includes the libraries for everything included in aMule. But beyond that, which configure line did you use?

Regards.
Logged

helrunar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Problems compiling wxWidgets 2.8.4
« Reply #4 on: July 08, 2007, 10:21:19 AM »

hi

GTK is installed

Code: [Select]
apt-get install libgtk2.0-dev
After that i tried to compile wxWidgets with

Code: [Select]
./configure --prefix=/usr/
but i get this error at the end:

Code: [Select]
checking whether make sets $(MAKE)... (cached) yes
checking for cppunit-config... no
checking for Cppunit - version >= 1.8.0... no
configure: creating ./config.status
config.status: creating lib/wx/config/gtk2-ansi-release-2.8
config.status: creating lib/wx/config/inplace-gtk2-ansi-release-2.8
config.status: creating version-script
config.status: creating Makefile
config.status: creating samples/console/Makefile
config.status: error: cannot find input file: samples/Makefile.in
debian:~/wxBase-2.8.4#

makefile.in is missing but i don't know what to do

thanks forhelp

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Problems compiling wxWidgets 2.8.4
« Reply #5 on: July 08, 2007, 11:35:11 AM »

Hi helrunar:

You try to compile wxBase, but you have to compile wxGTK: http://downloads.sourceforge.net/wxwindows/wxGTK-2.8.4.tar.bz2

Logged

helrunar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Problems compiling wxWidgets 2.8.4
« Reply #6 on: July 08, 2007, 12:47:30 PM »

hi

i just downloaded an older ver of wxwidgets

compiling worked fine without errors with wxwidgets 2.8.0 ....

so the rest was no problem, amule works fine now

thanks for your helps
Logged

Crakem

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 103
Re: Problems compiling wxWidgets 2.8.4
« Reply #7 on: December 11, 2007, 02:29:14 AM »

hi

i just downloaded an older ver of wxwidgets

compiling worked fine without errors with wxwidgets 2.8.0 ....

so the rest was no problem, amule works fine now

thanks for your helps

Please helrunar where you got your wxBase 2.8.0 working?
I tried from sourceforge and ftp from wxWidgets site and i couldn't compile any 2.8.x version (2.8.0 included)
Please post your link to wxBase or your solution.

Same error than yours, samples/Makefile.in is missing, I tried:
Code: [Select]
$ touch Makefile.inWith that i run configure sucessfully, but fails make saying:
Code: [Select]
make: *** No rule to make target `src/xml/xml.cpp', needed by `xmldll_xml.o'.  Stop.There is a few files named *xml* which are missing :(
I tried editing Makefile.in for remove missing *xml* files, but that file is refreshed in each time i try to compile (i don't know how bakefile works) Any ideas for removing dependencies? Maybe it don't work too, but I haven't got anymore ideas :(:(:(

Please, wuischke, in new amule-CVS versions i couldn't compile with wxBase anymore? I worked only with wxBase at this time (amuled only, true)

Thanks all and have fun.
« Last Edit: December 11, 2007, 02:44:29 AM by Crakem »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Problems compiling wxWidgets 2.8.4
« Reply #8 on: December 11, 2007, 12:34:46 PM »

Hi,

please try the following configure lines.
wxBase:
Code: [Select]
./configure --enable-unicode --without-subdirs --disable-gui --disable-expataMule:
Code: [Select]
./configure --disable-monolithic --enable-amule-daemon --with-toolkit=base
Logged

Crakem

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 103
Re: Problems compiling wxWidgets 2.8.4
« Reply #9 on: December 14, 2007, 01:38:26 AM »

Thanks wuischke, doing --without-subdirs I didn't need doing "touch" anymore, but I left wxBase because multiples missing files (too long and boring to doing by hand) I download wxWidgets inestead and it compiled at the first time (thanks Kry!)

Thanks a lot for your (very convenient) --with-toolkit=base, in so long time without compiling I didn't take care of changes :)
Logged