-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.txt
52 lines (40 loc) · 1.95 KB
/
build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Microsoft Visual Studio 2022
----------------------------
The Visual Studio solution OpenCSG_vc2022.sln assumes that freeglut
is put in a freeglut/ subdirecty in the OpenCSG installation directory.
This works, for example, with the freeglut 3.0.0 MSVC package available
from https://www.transmissionzero.co.uk/software/freeglut-devel
The Visual Studio solutions automatically builds GLEW, the opencsg
lib, and the example. The solution allows to create both 64- and 32-bit
builds. To run the example, you must copy the freeglut.dll
into the directory example/Release/ or example/Debug/ where the
opencsgexample.exe has been built. Be sure to pick the correct
64- or 32-bit version of the dll.
Microsoft Visual Studio 6
-------------------------
The Visual Studio 6 solution OpenCSG.sln assumes that the original
GLUT for Windows is setup as described in
https://user.xmission.com/~nate/glut.html
The solution automatically builds the opencsg lib, and the example.
Linux
-----
1) As prerequisites, you must install OpenGL development packages,
and, for the example application, glut.
2) Just type 'make'. Maybe you must adjust the Makefiles in
the src/ and the example/ directory for sucessful compilation.
3) The OpenCSG library will have been build in lib/, and the example
"opencsgexample" will reside in the src/ directory. To run the
opencsg example, you must ensure that libopencsg.so lib is in your
LD_LIBRARY_PATH (e.G., one way to do this is to copy it to /usr/local/lib
and running "ldconfig -v"). 'make install' is an automatic way to
copy the build and the example into /usr/local (requires write access
to /usr/local)
Dev-C++ 5.11
------------
As prerequisite, get the freeglut 3.0.0 MinGW Package from
https://www.transmissionzero.co.uk/software/freeglut-devel/
and put it under freeglut into the opencsg directory.
Open OpenCSG.dev
Compile
Ensure that freeglut.dll is in the same directory as the
generated OpenCSG.exe, and start OpenCSG.exe.