Yeah I tried that, I don't even know anymore ~_~
*sleeping
#######################################################
New strategy, starting over from scratch.
I'm outlining the steps I'll take/leaving instruction-ish
This assumes you know how to use the cd command in the msys shell.
The /c/mingw/bin format translates into the C:\mingw\bin format used in Windows.
Steps:
Install mingw with all options checked
Place mingw into /c/mingw
Create /c/mingw/tengine folder
Go to /c/mingw/msys, create /local folder with folders /bin, /include, /lib and /share inside of that
Download tome svn into the folder /c/mingw/tengine
Use google to download the .zip files, sdl 1.3, sdl_ttf, sdl_image, sdl_mixer, libvorbis, libogg
Create /c/mingw/tengine/libs folder
Extract all .zip files into /c/mingw/tengine/libs
Delete the .zip files because we like being tidy!
Download premake4.exe, use google
Place premake4.exe into /c/mingw/tengine
Open premake4.lua with notepad++ in /c/mingw/tengine
Edit directory paths to represent folder names and locations
Example of edited premake4.lua:
Code: Select all
configuration "windows"
libdirs {
"libs/SDL130-6050/lib",
"libs/SDL_ttf2010/lib",
"libs/SDL_image1210/lib",
"libs/SDL_mixer1211/lib",
"libs/libvorbis132/.libs",
"libs/libogg130/.libs",
"/c/mingw/lib",
}
includedirs {
"libs/SDL130-6050/include/SDL",
"libs/SDL_ttf2010/include",
"libs/SDL_image1210/include",
"libs/SDL_mixer1211/include",
"libs/libvorbis132/include",
"libs/libogg130/include",
"/c/mingw/include/GL",
}
Open msys, type "cd /c/mingw/tengine"
In msys, type "premake4.exe --cc=gcc gmake"
Move to a library directory in msys:
-"cd libs/~libname~"
-substitute ~libname~ for the name of one of the folders in /c/mingw/tengine/libs
Compile this library using 3 commands:
"./configure --enable-shared"
-then "make"
-finally "make install"
-move to a new library folder and repeat
!~Snag compiling SDL_ttf, edit with solution later~!
Locate needed files in /c/mingw/msys/1.0/local
-files from compilation located in /bin, /include, /lib, /share
-should have .dll, .h, .a, and .m4 files in each folder respectively
Place files where needed
In msys type "make -e CC=gcc"
Assuming you get the error about SDL_CreateThread, proceed, otherwise troubleshoot
Possibility of needing .dll files from an already compiled version of tome
Go to /c/mingw/tengine folder with windows explorer
Find profile.c, music.c, and particles.c; open them with notepad++, apply the changes mentioned below (entirely new lines of code though duplicated to a degree).
Code: Select all
profile.c, line 210-211
const char *name = "Profile";
thread = SDL_CreateThread(thread_profile, name, profile);
music.c, line 278-279
const char *name = "Sound";
sound->loaderThread = SDL_CreateThread(streamingLoader, name, sound);
particles.c, line 893-894
const char *name = "Particles";
thread = SDL_CreateThread(thread_particles, name, pt);
Just to be safe, in msys type "premake4.exe --cc=gcc gmake"
Finally type "make -e CC=gcc"
#######################################################
Okay that is my process, I'm just beginning to compile the libraries...hopefully this gets me somewhere.