Q: Where do I find Netscape Portable Runtime headers such as prlock.h?
I am learning to use VR Juggler. I tried to run a sample code main.cpp from share\vrjuggler\samples\OGL\simple\SimpleApp. I am encountering this error: prlock.h file is missing. Where can I get this file? I use MS VC++ 6.0.
The exact error output is:
--------------------Configuration: main - Win32 Debug-------------------- Compiling... main.cpp c:\program files\microsoft visual studio\vc98\include\vrj\vrjdefines.h(86) : warning C4005: 'WIN32' : macro redefinition unknown(0) : see previous definition of 'WIN32' c:\program files\microsoft visual studio\vc98\include\vrj\vrjdefines.h(89) : warning C4005: '_MBCS' : macro redefinition unknown(0) : see previous definition of '_MBCS' c:\program files\microsoft visual studio\vc98\include\vpr\md\nspr\sync\mutexnspr.h(57) : fatal error C1083: Cannot open include file: 'prlock.h': No such file or directory Error executing cl.exe. main.exe - 1 error(s), 2 warning(s)
A: Download NSPR and set the environment variable.
Refer to the section titled "Compiling Using Visual Studio" in the VR Juggler Getting Started Gude. It has all the details for what to do in order to compile VR Juggler applications on Windows using the Visual Studio GUI. All see the system setup page on this Wiki for details on where to get NSPR and other dependencies for individual operating systems.
Note that Visual C++ 7.0 or newer is required for VR Juggler 1.1 and beyond. Visual C++ 6.0 is not supported.
Back to: LiveFaq
