You are not logged in.

#1 2008-02-02 15:01:46

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 273

wxwidgets on Archlinux

Hi,

I'd like to program something in C++ using wxwidgets. After installing wxwidgets with pacman (it was installed from extra), and using #include <wx/wx.h>, it couldn't find it. That is because this header is in /usr/include/wx-2.8/wx. So I created a symlink to /usr/include/wx-2.8/wx in /usr/include/wx. But it still doesn't work, it doesn't find "wx/setup.h". This file appears to be in /usr/lib/wx/include/gtk2-unicode-release-2.8/wx.

So it's clear that wxwidgets isn't properly installed by pacman on my system, or that I need to do something more that I don't know. Normally, using "#include <wx/wx.h>" should give no errors in g++. E.g. this also works with including <SDL/SDL.h> and I never had to do something special for SDL.

I have no idea what one should do manually to make a library like this work, not even where to get started! I also have no idea if I actually have to manually do something to make it work!

How can I use wxwidgets in Archlinux?

Last edited by aardwolf (2008-02-02 15:02:35)

Offline

#2 2008-02-02 15:14:13

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 273

Re: wxwidgets on Archlinux

Allright, problem solved:

I had to use

g++ *.cpp `wx-config --libs` `wx-config --cxxflags`

Offline

Board footer

Powered by FluxBB