make it run,make it better,make it fast. https://github.com/liulanghaitun
分类: LINUX
2017-10-28 15:19:12
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:
Keep in mind that you could change the USE flags as you want
emerge wxGTK
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
Now try this it should work :
g++ `wx-config --cppflags` `wx-config --libs` main.cpp