GLFW on OpenSolaris is FINE

cade-117 wrote on Saturday, August 29, 2009:

Greetings.

I built the GLFW (version 2.6) library and demos for OpenSolaris (64-bit x86 platform).
This process went smooth.
I cannot offer make file since I use the splendid SunStudio IDE (resultant project file wraps a hierarchy of make files) but I can offer the following info as a possible time-saver …

* "uname -a" for my system is:
SunOS Argo 5.11 snv_117 i86pc i386 i86pc Solaris
–> I use the "dev" repository for patch/upgrade of my system, but a plain-vanilla
OpenSolaris system (i.e. using default "release" depository; e.g. OpenSolaris 2009.06 release)
would also be fine.

* SunStudio version is
"SunStudio 12 update 1"
–> this is the latest version, replaces recent SunStudioExpress version
–> as with OpenSolaris, the SunStudio tools are free

* Since (Open)Solaris is a real UNIX with strong API support I decided to
use the maximum amount of GLFW-related feature defs.
Basically, I defined
_GLFW_HAS_PTHREAD
_GLFW_HAS_XF86VIDMODE
_GLFW_HAS_XRANDR
_GLFW_HAS_DLOPEN
_GLFW_HAS_SYSCONF
_GLFW_HAS_GLXGETPROCADDRESS

* C-compiler switches include:
-mt -m64 -xannotate=no -errwarn=%all

* linker switches include:
-m64 -mt -lXrandr -lXxf86vm -lX11 -lGLU -lGL -lm

Have fun.
:slight_smile:

elmindreda wrote on Monday, August 31, 2009:

Neat. That’ll be very helpful. Thank you.