Ramblings of an Ordinary Joe Joe Di Pol's Blog

Wednesday May 13, 2009

wxWidgets has been integrated into OpenSolaris. Here are a couple tips for building against these libraries that worked for me (I am running on OpenSolaris 2008.11).

  1. Install the wxWidgets package:

          
    $ pfexec pkg install SUNWwxwidgets
    $ wx-config --version
    2.8.8
  2. Install the Sun Studio Compiler:

          
    $ pfexec pkg install sunstudioexpress@0.2008.11
    Note that the 2009.3 version of the compiler is also available in the repository, but I had better luck with the 2008.11 version.
  3. Build your application:

          $ /opt/SunStudioExpress/bin/CC `wx-config --cxxflags --libs` yourapp.cpp -o yourapp