Installing and configuring under Gentoo

From WxWiki
Jump to navigation Jump to search

Check if you have the wxGTK package

I assume that each Gentoo user have wxGTK merged cause you need it to compile. But to know if the wxWidgets needed package is emerged or what just do this :

wx-config --version

It should return you just the version you build previously, If you have the version goto "Configure" step.

If you have a bash error follow the next step as root:

Emerge the package

Keep in mind that you could change the USE flags as you want

emerge wxGTK

Configure

then show the list of profiles available

eselect wxwidgets list

which gave me :

Available wxWidgets profiles:
  [1]   gtk2-unicode-release-2.8

Then you should select a profil like this

eselect wxwidgets set 1

Use It

Now try this it should work :

g++ `wx-config --cppflags` `wx-config --libs` main.cpp