Been trying my own hand at compiling tome for my desktop.
Followed these steps:
1. Get svn program and create the folder C:\tengine
2. Checkout latest svn, number 4651
3. Downloaded the following: SDL, SDL_mixer, SDL_image, SDL_ttf, premake4, mingw (the SDL libs must be the developer type)
4. Create the folder C:\tengine\libs
5. Extract .zip files from step 3 into libs folder
6. Install mingw, checked the boxes C compiler, C++ compiler, MSYS, and Dev utilities
7. Edit the environment variable PATH for mingw
8. In the folder C:\tengine open premake4.lua using notepad++
9. Edited my premake4.lua to correctly point at my libs and includes
Meaning the version numbers in the following code block must match the folders in C:\tengine\libs
Code: Select all
configuration "windows"
libdirs {
"libs/SDL-1.2.14/lib",
"libs/SDL_ttf-2.0.10/lib",
"libs/SDL_image-1.2.10/lib",
"libs/SDL_mixer-1.2.11/lib",
"libs/libvorbis-1.3.2/lib/.libs",
"libs/libogg-1.3.0/src/.libs",
"/c/MinGW/lib",
}
includedirs {
"libs/SDL-1.2.14/include/SDL",
"libs/SDL_ttf-2.0.10/include/",
"libs/SDL_image-1.2.10/include/",
"libs/SDL_mixer-1.2.11/include/",
"libs/libvorbis-1.3.2/include",
"libs/libogg-1.3.0/include",
"/c/MinGW/include/GL",
}
Noticed extra libs and includes not from the compile instructions!!
Downloaded them, google search libvorbis, clicked on the first result, get the .zip files for libvorbis and libogg
Extract these new .zip into the C:\tengine\libs folder
10. Open MSYS, Start > All Programs > MinGW > MinGW Shell
11. Type [ cd /c/tengine ], this will point the shell to that directory
12. Type [ premake4.exe gmake ], this will generate roughly 20 lines and some files in your tengine directory
13. Type [ make -e CC=gcc ], this will attempt to build Tome
This is as far as I get, MSYS returns a fatal error and ends compilation:
Code: Select all
==== Building TEngine (debug) ====
Running pre-build commands
windres ../src/windows/icon.rc -O coff -o ../src/windows/icon.res
core_lua.c
<command-line>:0:0: warning: "TENGINE_HOME_PATH" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
../src/core_lua.c:40:17: fatal error: png.h: No such file or directory
compilation terminated.
make[1]: *** [../obj/Debug/TEngine/core_lua.o] Error 1
make: *** [TEngine] Error 2
I tried using lpng156 (the latest png library), putting it in my libs folder and adding a line in premake4.lua pointing to it, but that did nothing.