|
1 | 1 | If you are a windows user and want to build this you will need mingw.
|
2 |
| -First of all in the Retro Graphics Toolkit directory create a folder called lua |
3 |
| -Then extract all files from the src folder into the folder you just created. |
4 |
| -Then rename all *.c files to *.cpp |
5 |
| -HINT: Don't do this manually on *unix you can just run: |
6 |
| -rename .c .cpp *.c |
7 |
| -The reason lua is built even though many distributions already provide lua is so that the latest version is used and so that this version which may be built with a different configuration does not overwrite your system's instillation of lua. |
8 |
| -(Windows only on other systems your distribution of choice should already have provided fltk) you will now need to build fltk to do this download fltk-1.3.2 and extract it into the Retro Graphics Toolkit project folder and build it using |
| 2 | + |
| 3 | +First of all in the Retro Graphics Toolkit directory create a folder called lua or luawin on windows. |
| 4 | +Note the only reason for creating a separate folder is to accommodate for the fact that I do all my development on GNU/Linux and have a separate instillation of GCC as a cross compiler. This allows me to quickly test the windows build and *unix build simultaneously. |
| 5 | +Extract the latest version of Lua in the newly created folder. |
| 6 | +Now edit the makefile in src |
| 7 | +edit CC=gcc to say CC=g++ |
| 8 | +If you are using a cross compiler make sure to take into account it's prefix also you will need to modify the AR and RANLIB variables if such is the case. |
| 9 | +Also if you are building on windows you must replace this line in the Makefile |
| 10 | + "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \ |
| 11 | +with |
| 12 | + "AR=$(CC) -shared -static-libgcc -static-libstdc++ -o" "RANLIB=strip --strip-all" \ |
| 13 | +Lua can be build using c++ which is what we are doing this is to take advantage of GCC's support for zero cost exception handling using throw. |
| 14 | +The reason Lua is built even though many distributions already provide Lua is so that the latest version is used and so that this version which may be built with a different configuration does not overwrite your system's instillation of Lua. |
| 15 | +Now run make linux or make mingw depending on your system platform. |
| 16 | +DO NOT RUN MAKE INSTALL. |
| 17 | + |
| 18 | +(Windows only. On other systems your distribution of choice should already have provided fltk) you will now need to build fltk to do this download fltk-1.3.2 and extract it into the Retro Graphics Toolkit project folder and build it using |
9 | 19 | either ./configure if you are on windows or if you are cross compiling you need to something like this ./configure --host=i686-pc-mingw32 --build=x86_64-unknown-linux-gnu
|
10 | 20 | Regardless of how ./configure is ran you will just need to run make and you are done building fltk.
|
11 | 21 |
|
|
0 commit comments