I'm trying to compile a program that requires wxWidgets. I've downloaded the wdWidgets source, but it requires X11 includes and libraries which I can't find. How can this be if Raspberry Pi uses X11 (startx). Where can I get the X11 libraries used and the relevant include files?
Regards,
Colin Begg
wxWidgets installation
11 posts
- Posts: 15
- Joined: Sat Jun 16, 2012 10:32 pm
Hmm, I expect to want to explore this later myself. Perhaps later/other OS pi distros will come w/ the requrired headers, and libraries compiled for the platform. As for the startx question, could the answer be that that that the xinit program that the startx script invokes is built without needing all of the libs required for wxWidgets? And/or these are used statically linked?
If you don't get any joy here or on another forum on this site, it might be, of course be worth asking on the wxWidgets users' ML. (wx-users)
Good Luck.
If you don't get any joy here or on another forum on this site, it might be, of course be worth asking on the wxWidgets users' ML. (wx-users)
Good Luck.
- Posts: 15
- Joined: Sat Jan 14, 2012 8:18 pm
Hi,
Upon further investigation, I have found the libraries and includes in extended library paths and include paths like /usr/lib/arm-linux-gnueabi, but there's is a sub-folder called pkgconfig, which contains some .pc files as required for compilation of wxWidgets and other programs requiring glib, pango, atk or GTK, but only a few of these .pc files are actually in the folder.
I have posted separately about these missing .pc files, but essentially the distro is missing some files required to make use (in newly compiled programs) of these libraries. I'm attempting to generate the required files from Gnome project sources, then copy them to the distro's pkgconfig folder and I'll report here on my success/failure and include any working files I create.
Regards,
Colin Begg
Upon further investigation, I have found the libraries and includes in extended library paths and include paths like /usr/lib/arm-linux-gnueabi, but there's is a sub-folder called pkgconfig, which contains some .pc files as required for compilation of wxWidgets and other programs requiring glib, pango, atk or GTK, but only a few of these .pc files are actually in the folder.
I have posted separately about these missing .pc files, but essentially the distro is missing some files required to make use (in newly compiled programs) of these libraries. I'm attempting to generate the required files from Gnome project sources, then copy them to the distro's pkgconfig folder and I'll report here on my success/failure and include any working files I create.
Regards,
Colin Begg
- Posts: 15
- Joined: Sat Jun 16, 2012 10:32 pm
Hello, I'm interested in buying Raspberry Pi's for some projects I have in mind, but I would have to be able to use wxWidgets on the Raspberry Pi, has anyone had any luck with getting wxwidgets to work? What OS did you try Cbegg?
- Posts: 6
- Joined: Thu Jan 03, 2013 4:09 am
molton wrote:Hello, I'm interested in buying Raspberry Pi's for some projects I have in mind, but I would have to be able to use wxWidgets on the Raspberry Pi, has anyone had any luck with getting wxwidgets to work? What OS did you try Cbegg?
I have wxWidgets running on my Pi using wxPython. As far as I remember, I did this:
sudo apt-get update
sudo apt-get install python-wxgtk2.8 python-wxglade
I use wxGlade to design my GUIs.
The dependencies for python-wxgtk2.8 should bring in all you need.
HTH
Cheers,
Norm.
Why do they put lightning conductors on churches?
Thanks Norman, what OS do you use on that Raspberry Pi?
- Posts: 6
- Joined: Thu Jan 03, 2013 4:09 am
Evening.
I'm using Raspbian. It's currently the only one using hardwarefloating point rather than software. Plus, I much prefer it to Fedora and/or Arch. I tried all of them and settled on Raspbian.
Cheers,
Norm.
I'm using Raspbian. It's currently the only one using hardwarefloating point rather than software. Plus, I much prefer it to Fedora and/or Arch. I tried all of them and settled on Raspbian.
Cheers,
Norm.
Why do they put lightning conductors on churches?
Could it be that OP is just missing the development
versions of the packages ? I.E. the "-dev" ones ?
ghans
versions of the packages ? I.E. the "-dev" ones ?
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
- Posts: 2652
- Joined: Mon Dec 12, 2011 8:30 pm
- Location: Germany
Thanks again Norman. It could be that OP just didn't get it working, but I know I'm putting that Raspian on my Raspberry Pi when I get one because of this thread. I'm interested in putting my program Lightput onto Raspberry Pi computers to make animated dichroic glass artwork and a Raspberry PI is so small the computer could be integrated into the art piece.
- Posts: 6
- Joined: Thu Jan 03, 2013 4:09 am
fyi, I guess because the X-11 implementation in the Raspbian is slow right now (I heard that somewhere) wxWidgets apps run kinda slow on the Raspberry Pi, but they work. One thing I noticed is code dealing with the file system had to be changed around to work right for some reason, I had to use the wxStandardPaths.GetExecutablePath()
- Posts: 6
- Joined: Thu Jan 03, 2013 4:09 am
Sorry, I should have posted back my success in building wxWidgets 2.9.4 on the last version of Raspbian. I followed pretty much the procedure below; and I've started again w/ the current Raspbian (13-02-09). (I say pretty much, because I'm not certain of the libs/version numbers that I used before.)
I installed: - build-essential
- libgtk2.0-dev
- libgnomeprintui2.2-dev
Then, (w/ unnecessary sudo)
cd /home/pi/wxWidgets-2.9.4
sudo mkdir build
cd build
sudo ../configure
sudo make
cd samples/minimal
sudo make
./minimal
the minimal, and a few other samples that I tried all worked fine.
The basic build of wxWidgets took ~5.5hr tho. ;-(
A couple of related points: I've started threads on the C/C++ fora on speeding up build perfromance using g++; and on-cross compilation options.
Also, IIRC, Raspbian comes w/ wxGTK in the repo but this is the (now ancient) 2.8.0 version.
So far I've not built any demanding wxWidgets apps, on the Pi - and certainly none that would stretch the real-time or graphics capabilities.
I installed: - build-essential
- libgtk2.0-dev
- libgnomeprintui2.2-dev
Then, (w/ unnecessary sudo)
cd /home/pi/wxWidgets-2.9.4
sudo mkdir build
cd build
sudo ../configure
sudo make
cd samples/minimal
sudo make
./minimal
the minimal, and a few other samples that I tried all worked fine.
The basic build of wxWidgets took ~5.5hr tho. ;-(
A couple of related points: I've started threads on the C/C++ fora on speeding up build perfromance using g++; and on-cross compilation options.
Also, IIRC, Raspbian comes w/ wxGTK in the repo but this is the (now ancient) 2.8.0 version.
So far I've not built any demanding wxWidgets apps, on the Pi - and certainly none that would stretch the real-time or graphics capabilities.
- Posts: 15
- Joined: Sat Jan 14, 2012 8:18 pm