Subversion Repositories NedoOS

Rev

Details | Last modification | View Log

Rev Author Line No. Line
125 lvd 1
Installation Instructions
2
=========================
3
 
4
Requirements:
5
- Linux / Unix / MacOS / BSD with bash compatible shell 
6
- all common system progs (grep, cat, etc...)
7
- all common build requirements (libc, libstdc++, g++, make, etc...)
8
- optionally CMake
9
 
10
or
11
 
12
- complete MinGW environment for MS Windows, with MinGW bin directories added in PATH variable (typically C:\MinGW\bin; C:\MinGW\msys\1.0\bin)
13
- CMake installed into MinGW bin directory (optionally)
14
 
15
Compilation is tested with GCC 5.3.0, it should run also with older versions, but warnings or errors may occur.
16
 
17
Default method for Linux / Unix / MacOS / BSD
18
=========================================================
19
 
20
Extract tarball archive and go to extracted folder. Edit install path PREFIX in file 'Makefile' according your preferences (default /usr/local). Run following commands:
21
 
22
	make clean
23
	make
24
	make install as root or use sudo
25
 
26
Default method for MS Windows
27
=========================================
28
 
29
Extract tarball archive and go to extracted folder. Edit install path PREFIX in file 'Makefile.win' according your preferences (default c:\mingw\usr\local\bin). Remove '-static' parameter in CFLAGS if you don't need standalone Windows executable (binary is MinGW dependant then, but it's smaller). Run following commands:
30
 
31
	make -f Makefile.win clean
32
	make -f Makefile.win
33
	make -f Makefile.win install
34
 
35
CMAKE method for Linux / Unix / MacOS / BSD
36
===========================================
37
 
38
Extract tarball archive, go to extracted folder and run following set of commands:
39
 
40
	mkdir build 
41
	cd build
42
	cmake -DCMAKE_BUILD_TYPE=Release ..
43
	make
44
	make install
45
 
46
You can have external Lua and ToLua, it is detected automatically. If not, internal version is used.
47
 
48
For disabling of LUA scripting support add following option:
49
 
50
	-DENABLE_LUA=OFF 
51
 
52
	E.g: cmake -DENABLE_LUA=OFF ..
53
 
54
Binary sjasmplus file will be placed in /usr/bin by default.
55
 
56
To change install directory prefix add following option with specified prefix:
57
 
58
	-DCMAKE_INSTALL_PREFIX:PATH=/usr/local
59
 
60
	e.g: cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..
61
 
62
 
63
CMake method for MS Windows
64
===========================
65
 
66
Extract tarball archive and go to the extracted folder. Delete or rename file 'Makefile'. Rename file 'Makefile.win' to 'Makefile'. Create 'build' subdirectory and enter to it. Run following command:
67
 
68
	cmake-gui
69
 
70
Click 'Browse Source...' button, select extracted tarball folder. Click 'Browse Build...' button, select the 'build' folder. Click 'Configure' button, select 'MinGW Makefiles', select 'Use default native compilers'. Click 'Finish' and wait until configuration is done. Change CMAKE_INSTALL_PREFIX install path according your peferences (click on path). Click 'Generate'. Run 'cmd.exe', enter the build directory and run following commands:
71
 
72
	make
73
	make install	
74
 
75
Enjoy!