John Martin wrote:
> Alan Coopersmith wrote:
>>
>>
>> John Martin, who responded to the messages I cc'ed to the
>> xwin-discuss forum,
>> is the Sun developer responsible for nvidia graphics - see his
>> responses there:
>> http://www.opensolaris.org/jive/thread.jspa?threadID=82379&tstart=0
>>
>> Many more of the people who know about X11 & graphics drivers on
>> Solaris can
>> be found in xwin-discuss than in the generic opensolaris-help.
>>
>>
> When OpenSolaris 2008.11 gets finished I will have more time to look
> at this. It also helps that libXNVCtrl starting with driver 177.82 moves
> from GPL to MIT-X11 licensing so that's one less non-technical issue
> I need to worry about.
I only spent a couple of minutes on this but I got it to build.
Step 1: In configure add the following two lines:
--- configure Wed Nov 12 16:13:54 2008
***************
*** 3739,3744 ****
--- 3739,3746 ----
;;
Linux)
;;
+ SunOS)
+ ;;
CYGWIN_NT-5.*)
system=Win32
;;
Then run ./configure.
Step 2: Modify the generated src/nvcontrol/Makefile with:
--- src/nvcontrol/Makefile Mon Nov 17 13:44:48 2008
***************
*** 2,8 ****
AR=ar
RANLIB=ranlib
system=SunOS
! CFLAGS= -I../backend
HAVE_X11=yes
OBJECTS=libnvcontrol.o nvcontrol.o
--- 2,8 ----
AR=ar
RANLIB=ranlib
system=SunOS
! CFLAGS= -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/X11/include
-I../backend
HAVE_X11=yes
OBJECTS=libnvcontrol.o nvcontrol.o
I don't know why the @X11_CFLAGS@ macro doesn't expand properly
because it is set to "-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-I/usr/X11/include"
after running configure.
Step 3: gmake
The nvclock binary is in the src directory. Take care when tweaking
your boards.