# GLFW on OpenSolaris is FINE

**URL:** <https://discourse.glfw.org/t/glfw-on-opensolaris-is-fine/500>\
**Category:** support\
**Created:** [August 29, 2009, 9:59am UTC](https://discourse.glfw.org/t/glfw-on-opensolaris-is-fine/500 "2009-08-29T09:59:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 29, 2009, 9:59am UTC](https://discourse.glfw.org/t/glfw-on-opensolaris-is-fine/500/1 "2009-08-29T09:59:49Z")

</div>

**[cade-117](https://sourceforge.net/u/cade-117/)** wrote on [Saturday, August 29, 2009](https://sourceforge.net/p/glfw/discussion/247562/thread/1c7abc53/#317c):

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.  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 31, 2009, 4:19pm UTC](https://discourse.glfw.org/t/glfw-on-opensolaris-is-fine/500/2 "2009-08-31T16:19:43Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Monday, August 31, 2009](https://sourceforge.net/p/glfw/discussion/247562/thread/1c7abc53/#317c/f942):

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

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [November 16, 2026, 4:18pm UTC](https://discourse.glfw.org/t/glfw-on-opensolaris-is-fine/500/3 "2026-11-16T16:18:26Z")

</div>

Closed on November 16, 2026, 4:18pm UTC


