cbegg50
Posts: 15
Joined: Sat Jun 16, 2012 10:32 pm

Missing package config files

Tue Jun 26, 2012 6:27 pm

Hi,
I'm trying to build wxWidgets using GTK+. I've found the required library files in /usr/lib/arm-linux-gnueabi but several .pc files are missing from its ./pkgconfig folder.

How can I find or create these files as wxWidgets fails the initial ./configure step without these files.

Thanks for any help
Colin Begg

AndyA
Posts: 31
Joined: Mon Sep 17, 2012 6:02 pm

Re: Missing package config files

Tue Sep 18, 2012 7:51 pm

OK, a little late for a reply but for the benefit of those searching for answers I got wxWidgets 2.9.4 to build on my Pi by doing the following steps:
Download the .tar.bz source tarball from wxWidgets.org
unzip to a local directory (I used ~/src/wx2_9_4)

first make sure everything is up to date:
sudo -E apt-get update
sudo -E apt-get upgrade

install the libraries that it needs to build wx:
sudo -E apt-get install libGTK2.0-dev libtiff5-dev libjpeg8-dev

If you want to build openGL support (I'm not sure if it will work but it does build) the also install mesa-common-dev and freeglut3-dev

You want to maximum amount of ram possible available for the build even then it will take 4+ hours. To do this run raspi-config and set the memory split to give the maximum amount of memory to the cpu. Reboot to a command line with no gui running.

cd to your wx directory
mkdir relaseBuild
cd releaseBuild
../configure
[wait about 5 minutes]
make
[wait 4-5 hours]
sudo make install
sudo ldconfig

The reason for doing the configure and make in a different directory is that if you want to make a debug version of the libraries or one with different options you can build them in a different location. Then when switching between versions you only need to cd to the correct directory and do the make install and ldconfig steps. You burn some storage space but it saves a painfully slow recompile every time you want to go from debug to release versions and back.

cbegg50
Posts: 15
Joined: Sat Jun 16, 2012 10:32 pm

Re: Missing package config files

Tue Sep 18, 2012 9:17 pm

Thanks for the info. I got it working on ArchLinux but have yet to get the Debian version working. This should help me with that, but I'm having trouble with a USB Wi-Fi dongle from Belkin, with both OS. Wish me luck with that. It's for Wi-Fi throttles.

Cheers,
Colin

Return to “General programming discussion”