I am really eager to try out some of the new enhancements so since this attempt failed I am yearning for the next release to be ready soon.

Moderator: Moderator
I think that for example certain anti-virus program for 32-bit Windows cannot be run on 64-bit Windows due to low level OS differences such as "Patchguard". Whether such issues affect compilation I have no idea, I just raised the possibility.Rectifier wrote:I have an x64 system as well, and it can run any x86 (that means 32-bit) program.
I haven't tried compiling an svn for anything since my old laptop died, so I can't help much.
I recommend posting an error log for some tips.
Sounds like you don't have gcc (the C compiler) installed.Mithril wrote: /bin/sh: gcc: command not found
Or he hasn't created the new environment variable yet.greycat wrote:Sounds like you don't have gcc (the C compiler) installed.Mithril wrote: /bin/sh: gcc: command not found
Code: Select all
Start > Control Panel > System > Advanced System Settings > Advanced Tab >
Environment Variables Button > Under SYSTEM VARIABLES look for the "PATH" or "Path" variable >
Highlight that variable and click on Edit > Click on the variable value box, then press the END key >
Make sure that box ends with a semi colon character ";" if it doesn't have one, TYPE IT IN >
Enter the minGw/bin/ directory, EXAMPLE[ C:\MinGW\bin ] > Add a semi colon at the end >
Click OK 3 times until you are out of system settings > Test the gcc compiler with a simple program
Congrats you integrated MinGw into your command prompt!
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",
}
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
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:42:1: error: unknown type name 'SDL_Window'
../src/core_lua.c: In function 'lua_get_scancode_name':
../src/core_lua.c:196:2: error: unknown type name 'SDL_Scancode'
../src/core_lua.c:197:2: warning: passing argument 2 of 'lua_pushstring' makes pointer from integer without a cast [enabled by default]
../src/luajit2/src/lua.h:164:16: note: expected 'const char *' but argument is of type 'int'
../src/core_lua.c: In function 'lua_flush_key_events':
../src/core_lua.c:203:31: error: 'SDL_TEXTINPUT' undeclared (first use in this function)
../src/core_lua.c:203:31: note: each undeclared identifier is reported only once for each function it appears in
../src/core_lua.c: In function 'lua_key_set_clipboard':
../src/core_lua.c:216:14: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
../src/core_lua.c: In function 'lua_key_get_clipboard':
../src/core_lua.c:225:15: warning: initialization makes pointer from integer without a cast [enabled by default]
../src/core_lua.c: In function 'sdl_set_mouse_cursor':
../src/core_lua.c:1743:21: warning: assignment makes pointer from integer without a cast [enabled by default]
../src/core_lua.c:1761:16: warning: assignment makes pointer from integer without a cast [enabled by default]
make[1]: *** [../obj/Debug/TEngine/core_lua.o] Error 1
make: *** [TEngine] Error 2
Don't make a new lib folder but use MinGW/lib and MinGW/include.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
Code: Select all
Then edit your premake4.lua and write the full file path, e.g.:
includedirs {
"/c/mingw/include/SDL",
"/c/mingw/include/SDL_ttf-2.0.9/include/",
"/c/mingw/include/SDL_image-1.2.10/include/",
"/c/mingw/include/SDL_mixer-1.2.11/include/",
"/c/mingw/include/libvorbis-1.3.2/include",
"/c/mingw/include/libogg-1.2.2/include",
"/c/mingw/include/GL",
"/c/mingw/include/vorbis",
"/c/mingw/include",