forum.i2p Forum Index  skip navigation
  
FAQ  Search  Memberlist  Usergroups  Profile  Log in to check your private messagesLog in   Register
Author Message
imule-1.4.6 won't build from source
i2pn00b
PostPosted: Fri May 28, 2010 7:29 pm  Reply with quote
Guest






Source tarball downloaded from here:

link: http://echelon.i2p/imule/1.4.6/iMule_1.4.6_src.tbz

The following is the result of running configure without any arguments:


Code:

checking for wxWidgets version >= 2.8.7... no
configure: error:
                wxWidgets must be installed on your system but wx-config
                script couldn't be found. Please check that wx-config is
                in path or specified by --with-wx-config=path flag, the
                directory where wxWidgets libraries are installed (returned
                by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
                equivalent variable and wxWidgets version is 2.6.0 or above.




But:


Code:

$ wx-config --libs
-pthread   -L/usr/X11R6/lib   -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8

$ wx-config --version
2.8.10




I run Slackware Linux 13.1 (32-bit)

Feel free to ask for additional details if you find these incomplete.

Error message is doubled at link: http://paste.i2p2.i2p/show/492/
Back to top


HansDampf
PostPosted: Tue Jun 01, 2010 7:50 am  Reply with quote
I2Patron



Joined: 19 Apr 2008
Posts: 95

Maybe you should try --with-wx-config=/usr/X11R6/lib ?
Often also a --enable-optimize --disable-debug works but don't ask me why Wink

Good luck
_________________
iMules Weed - The FileForum & iMmdb
Back to top
View user's profile Send private message Visit poster's website


Guest
PostPosted: Tue Jun 01, 2010 10:21 am  Reply with quote








HansDampf wrote:
Maybe you should try --with-wx-config=/usr/X11R6/lib ?
Often also a --enable-optimize --disable-debug works but don't ask me why Wink

Good luck




I know that /usr/X11R6/lib looks a bit weird, but in Slackware Linux it's just a symlink to /usr/lib

Specifying explicitly --with-wx-config=/usr/X11R6/lib doesn't help, as well as specifying the path as /usr/lib.

Adding --enable-optimize --disable-debug options doesn't help as well.

In all these scenarios the configure script still fails to detect wx.

I have a pretty strong reason to claim that I DO HAVE wxWidgets installed, because:

- I have downloaded this simple hello world example: link: http://www.wxwidgets.org/docs/tutorials/hworld.txt
- I have followed compiling instructions at link: http://www.wxwidgets.org/docs/tutorials/hello.htm
As suggested there, I used the following command line to compile the example:


Code:
g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld




The trivial wx program indeed COMPILES and RUNS!
Back to top


devzero
PostPosted: Tue Jun 01, 2010 10:44 pm  Reply with quote
I2Partisan



Joined: 18 Nov 2007
Posts: 184
Location: localhost

Binding libs to a c source which it doesn't need nor use does not proove anything.

Maybe there is a wx*dev package or the like containing those header files or whatever is needed needed for compiling at your slackware system?
Back to top
View user's profile Send private message Send e-mail


i2pn00b
PostPosted: Wed Jun 02, 2010 12:29 pm  Reply with quote
Guest







devzero wrote:
Maybe there is a wx*dev package or the like containing those header files or whatever is needed needed for compiling at your slackware system?




Slackware doesn't split packages into <appname>.package and <appname-dev>.package.

What about this? Does the following qualify as proof that wx is installed?


Code:

$ ls -1 /usr/lib | grep libwx
libwx_baseu-2.8.so
libwx_baseu-2.8.so.0
libwx_baseu-2.8.so.0.6.0
libwx_baseu_net-2.8.so
libwx_baseu_net-2.8.so.0
libwx_baseu_net-2.8.so.0.6.0
libwx_baseu_xml-2.8.so
libwx_baseu_xml-2.8.so.0
libwx_baseu_xml-2.8.so.0.6.0
libwx_gtk2u_adv-2.8.so
libwx_gtk2u_adv-2.8.so.0
libwx_gtk2u_adv-2.8.so.0.6.0
libwx_gtk2u_aui-2.8.so
libwx_gtk2u_aui-2.8.so.0
libwx_gtk2u_aui-2.8.so.0.6.0
libwx_gtk2u_core-2.8.so
libwx_gtk2u_core-2.8.so.0
libwx_gtk2u_core-2.8.so.0.6.0
libwx_gtk2u_gizmos-2.8.so
libwx_gtk2u_gizmos-2.8.so.0
libwx_gtk2u_gizmos-2.8.so.0.6.0
libwx_gtk2u_gizmos_xrc-2.8.so
libwx_gtk2u_gizmos_xrc-2.8.so.0
libwx_gtk2u_gizmos_xrc-2.8.so.0.6.0
libwx_gtk2u_gl-2.8.so
libwx_gtk2u_gl-2.8.so.0
libwx_gtk2u_gl-2.8.so.0.6.0
libwx_gtk2u_html-2.8.so
libwx_gtk2u_html-2.8.so.0
libwx_gtk2u_html-2.8.so.0.6.0
libwx_gtk2u_ogl-2.8.so
libwx_gtk2u_ogl-2.8.so.0
libwx_gtk2u_ogl-2.8.so.0.6.0
libwx_gtk2u_qa-2.8.so
libwx_gtk2u_qa-2.8.so.0
libwx_gtk2u_qa-2.8.so.0.6.0
libwx_gtk2u_richtext-2.8.so
libwx_gtk2u_richtext-2.8.so.0
libwx_gtk2u_richtext-2.8.so.0.6.0
libwx_gtk2u_stc-2.8.so
libwx_gtk2u_stc-2.8.so.0
libwx_gtk2u_stc-2.8.so.0.6.0
libwx_gtk2u_xrc-2.8.so
libwx_gtk2u_xrc-2.8.so.0
libwx_gtk2u_xrc-2.8.so.0.6.0




Also, since you rejected my above example with a trivial wx app, which other apps that deppend on wx could I try to build? I have only robert, which is wxPython (based on wxWidgets) and which works.
Back to top


smeghead
PostPosted: Wed Jun 02, 2010 12:45 pm  Reply with quote
I2Phile



Joined: 24 Jan 2005
Posts: 269


i2pn00b wrote:
Also, since you rejected my above example with a trivial wx app, which other apps that deppend on wx could I try to build? I have only robert, which is wxPython (based on wxWidgets) and which works.



Try xCHM.
Back to top
View user's profile Send private message Visit poster's website


Guest
PostPosted: Wed Jun 02, 2010 2:51 pm  Reply with quote








smeghead wrote:

i2pn00b wrote:
Also, since you rejected my above example with a trivial wx app, which other apps that deppend on wx could I try to build? I have only robert, which is wxPython (based on wxWidgets) and which works.



Try xCHM.




xchm-1.14

I build from source.

configure succeeds without me passing to it any additional wx-specific command line arguments.

xchm compiles and runs fine.

Relevant snippet from the output of configure:


Code:

checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0... yes (version 2.8.10)
checking for wxWidgets static library... no
Warning: --rezflags, along with Mac OS classic resource building is deprecated.  You should remove this from your Makefile and build .app bundles instead.
checking whether build environment is sane... yes


Back to top


i2pn00b
PostPosted: Thu Jun 03, 2010 1:24 pm  Reply with quote
Guest






I made some progress, but imule still fails to build.

Here is my workflow:

1. extract source from the tarball

2. edit the file configure.in:

find line


Code:
AM_PATH_WXCONFIG(2.8.7, wxWin=1,,$wxHost $wxDebug $wxStatic)




change it to


Code:
AM_PATH_WXCONFIG(2.8.7, wxWin=1, $wxHost $wxDebug $wxStatic)




3. Generate the new configure file, by running:


Code:
$ autoconf configure.in > configure




4. Make it executable:


Code:
$ chmod +x configure




5. Run it:


Code:
$ ./configure




The check for wxWidgets passes:


Code:
checking for wxWidgets version >= 2.8.7... yes (version 2.8.10)




6. Run make:


Code:
$ nice -n 19 make 2>&1 | tee make.log




make compiles stuff for a while, then fails with a huge error log (hence the use of tee to capture the output).
You can download the compressed log from link: http://oregano.i2p/uploads/3270299832002363244.bz2
Back to top


smeghead
PostPosted: Thu Jun 03, 2010 2:01 pm  Reply with quote
I2Phile



Joined: 24 Jan 2005
Posts: 269

Interesting. Instead of manually editing configure.in, you might try running autoreconf, then do the standard ./configure --foo invocation.

As for your build log, all those undefined references suggest that the wxWidgets API required by iMule is different than the one presented by your installed wxWidgets, even though the configure check passes. Maybe you've got some compatibility headers for earlier (or later?) versions of wxWidgets installed?
Back to top
View user's profile Send private message Visit poster's website


i2pn00b
PostPosted: Thu Jun 03, 2010 2:03 pm  Reply with quote
Guest






Update:

I have repeated the whole process one more time, adding the options


Code:
--enable-optimize --disable-debug


to configure as suggested above.

It seemed to work.

I'll try running imule now and see what happens.
Back to top


i2pn00b
PostPosted: Thu Jun 03, 2010 3:22 pm  Reply with quote
Guest






Here is a HOWTO that doubles pretty much the content of this thread

link: http://allinone.i2p/viewtopic.php?f=4&t=30

Thanks to all who contributed with hints and feedback.

I seem to have imule working now.
Back to top


Display posts from previous:   
All times are GMT

View next topic
View previous topic
Page 1 of 1
forum.i2p Forum Index -> iMule

Post new topic   Reply to topic


 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



NoseBleed v1.00 ~ mikelothar.com
(http://www.mikelothar.com/community)


Forum software: php BB (http://www.php bb.com) v2 © 1976 php BB Group