Scons, wxWidgets and Ubuntu Edgy

Soldato
Joined
16 Dec 2005
Posts
14,443
Location
Manchester
Hi there.

First of all I am very new to Linux and the problem I have is I think beyond me for the moment.

Basically I run a Distributed Computing project called Folding@Home on Ubuntu Edgy [6.10 AMD64]. In order to monitor my client's progress I am trying to install a small utility called FahMon, however I am being thwarted by a possible wxGTK issue.

I downloaded and installed wxGTK-2.8.0 using the following commands:

Code:
mkdir buildgtk
cd buildgtk
../configure --with-gtk --enable-unicode
make
sudo make install
sudo ldconfig

After that I used the command wx-config --list as a means of testing if it installed. The output is
Default config is gtk2-unicode-release-2.8

Default config will be used for output

Now, the next step in installing FahMon [Exact file is here [src.tar.bz2]]is to go into the src directory and run scons

Unfortunately this process is terminated due to errors relating to wx components. The full output is as follows:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o clientDialog.o -c -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -pthread -O2 -D_FAHMON_LINUX_ -Wall -Wno-strict-aliasing -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -I/home/aeternum/Downloads/FahMon/include clientDialog.cpp
clientDialog.cpp: In constructor 'ClientDialog::ClientDialog(wxWindow*)':
clientDialog.cpp:68: error: invalid use of undefined type 'struct wxButton'
/usr/local/include/wx-2.8/wx/sizer.h:23: error: forward declaration of 'struct wxButton'
clientDialog.cpp:83: error: invalid use of undefined type 'struct wxButton'
/usr/local/include/wx-2.8/wx/sizer.h:23: error: forward declaration of 'struct wxButton'
clientDialog.cpp:85: error: invalid use of undefined type 'struct wxButton'
/usr/local/include/wx-2.8/wx/sizer.h:23: error: forward declaration of 'struct wxButton'
scons: *** [clientDialog.o] Error 1
scons: building terminated because of errors.

I have asked about this on the wxWidgets forums but so far I haven't discovered anything. As per the title it could be either wxWidgets or Scons. Any help in shedding some light on the cause of this error would be great.

SiriusB
 
Its your version of libwxgtk2.8-0-dev

Should be libwxgtk2.6-dev
Which is in repositories:

sudo apt-get install libwxgtk2.6-dev

Have compiled you it anyhow incase you still can't build it (binary + source):

http://homepages.cs.ncl.ac.uk/a.j.plaskett/FahMon.zip

Not entirely sure why you get those compile errors without digging around the code - I assume they changed the API between 2.6 and 2.8.
 
Last edited:
Hey Una

I already have the 2.6-dev installed and it doesn't work. Also, I get a new error now when I run ./fahmon :

./fahmon: error while loading shared libraries: libwx_gtk2u_xrc-2.6.so.0: cannot open shared object file: No such file or directory

I think I am the only person on earth having so many problems installing a tiny utility :(

SiriusB
 
libwx_gtk2u_xrc-2.6.so.0 is a file in libwxgtk2.6-0

So make sure you got libwxgtk2.6-0 package installed as well.

Also make sure you got these versions installed as well,

wx2.6-headers (from .../wx2.6-headers_2.6.3.2.1.5_i386.deb) ...
libwxbase2.6-dev (from .../libwxbase2.6-dev_2.6.3.2.1.5_i386.deb) ...
libwxgtk2.6-dev (from .../libwxgtk2.6-dev_2.6.3.2.1.5_i386.deb) ...

There all in the repositories.

Sounds like you ****ed up dependencies installing 2.8 from source.
 
Last edited:
Una said:
libwx_gtk2u_xrc-2.6.so.0 is a file in libwxgtk2.6-0

So make sure you got libwxgtk2.6-0 package installed as well.

Also make sure you got these versions installed as well,

wx2.6-headers (from .../wx2.6-headers_2.6.3.2.1.5_i386.deb) ...
libwxbase2.6-dev (from .../libwxbase2.6-dev_2.6.3.2.1.5_i386.deb) ...
libwxgtk2.6-dev (from .../libwxgtk2.6-dev_2.6.3.2.1.5_i386.deb) ...

There all in the repositories.

Sounds like you ****ed up dependencies installing 2.8 from source.

I used Synaptic to install all of those the other day and no joy. I will try again later. I even uninstalled ALL wxWidgets and reinstalled just 2.6 the other day and scons still failed.

ADDITIONAL: Removed everything remotely resembling wxWidgets and then reinstalled 2.6. All the files you mentioned above are installed and STILL no joy.

If indeed I have arsed up the dependencies, as you say, is there a way I can fix it? I shouldn't be having this much trouble if it were a simple case of not having something installed - i've installed, removed, reinstalled and battled for days over this :(

SiriusB
 
Last edited:
I think I may have brought us a step closer to the problem...

When I run ./fahmon I get the following error

./fahmon: error while loading shared libraries: libwx_gtk2u_xrc-2.6.so.0: cannot open shared object file: No such file or directory

Now, as a point of interest I thought I would have a look in the shared libraries directory /usr/lib and in there I found lots of wx related files. Especially interesting is I found libwx_gtk2u_xrc-2.6.so.0 - the file fahmon says doesn't exist - which is a link to another file called libwx_gtk2u_xrc-2.6.so.0.3.1.

So it would appear that the problem is not a faulty or incomplete install, but fahmon being unable to find the above file despite it sitting there.

What would cause my system to ignore or fail to see the file?

SiriusB
 
Back
Top Bottom