I am on Debian testing and have both SDL and SDL2 installed libraries. I was looking through http://te4.org/wiki/How_to_compile and was able to pull git and checkout 1.1.5 :-
Code: Select all
~/games/t-engine4$ git checkout tome-1.1.5
Note: checking out 'tome-1.1.5'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 5eaa66a... Fixed unarmed display of combat speed on gloves/gauntlets
Code: Select all
~/games/t-engine4$ git branch
* (detached from tome-1.1.5)
master
Now the next thing as written in the compilation instructions is :-
- TE Wiki - How to compile.Check, and possibly edit, premake4.lua and build/te4core.lua to reflect the location of your SDL installation.
Now this is how the premake4.lua looks like :-
Code: Select all
includedirs {
"src",
"src/luasocket",
"src/fov",
"src/expat",
"src/lxp",
"src/libtcod_import",
"src/physfs",
"src/zlib",
"src/bzip2",
"/opt/SDL-2.0/include/SDL2",
"/usr/include/GL",
}
Code: Select all
/opt$ ls
/opt$
Code: Select all
$ dpkg -L libsdl2-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libsdl2-dev
/usr/share/doc/libsdl2-dev/changelog.Debian.gz
/usr/share/doc/libsdl2-dev/examples
/usr/share/doc/libsdl2-dev/examples/examples.tar.gz
/usr/share/doc/libsdl2-dev/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/sdl2-config.1.gz
/usr/share/aclocal
/usr/share/aclocal/sdl2.m4
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libSDL2.a
/usr/lib/x86_64-linux-gnu/libSDL2_test.a
/usr/lib/x86_64-linux-gnu/libSDL2main.a
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/sdl2.pc
/usr/include
/usr/include/SDL2
/usr/include/SDL2/SDL_test_images.h
/usr/include/SDL2/SDL_platform.h
/usr/include/SDL2/SDL_stdinc.h
/usr/include/SDL2/SDL_system.h
/usr/include/SDL2/SDL_gamecontroller.h
/usr/include/SDL2/SDL_quit.h
/usr/include/SDL2/SDL_filesystem.h
/usr/include/SDL2/SDL_gesture.h
/usr/include/SDL2/SDL_test_random.h
/usr/include/SDL2/SDL_shape.h
/usr/include/SDL2/SDL_audio.h
/usr/include/SDL2/SDL_events.h
/usr/include/SDL2/SDL_timer.h
/usr/include/SDL2/SDL_version.h
/usr/include/SDL2/SDL_touch.h
/usr/include/SDL2/SDL_config.h
/usr/include/SDL2/SDL_test_crc32.h
/usr/include/SDL2/SDL_keyboard.h
/usr/include/SDL2/SDL_blendmode.h
/usr/include/SDL2/SDL_test_assert.h
/usr/include/SDL2/SDL_opengles2.h
/usr/include/SDL2/SDL_power.h
/usr/include/SDL2/SDL_cpuinfo.h
/usr/include/SDL2/SDL_main.h
/usr/include/SDL2/SDL_log.h
/usr/include/SDL2/SDL_test_fuzzer.h
/usr/include/SDL2/SDL_joystick.h
/usr/include/SDL2/SDL_opengles.h
/usr/include/SDL2/SDL_test_harness.h
/usr/include/SDL2/SDL_messagebox.h
/usr/include/SDL2/SDL_test_log.h
/usr/include/SDL2/SDL_assert.h
/usr/include/SDL2/SDL_surface.h
/usr/include/SDL2/SDL_test_common.h
/usr/include/SDL2/SDL_endian.h
/usr/include/SDL2/SDL_revision.h
/usr/include/SDL2/SDL_mutex.h
/usr/include/SDL2/SDL_rwops.h
/usr/include/SDL2/SDL_test.h
/usr/include/SDL2/SDL.h
/usr/include/SDL2/SDL_hints.h
/usr/include/SDL2/begin_code.h
/usr/include/SDL2/SDL_name.h
/usr/include/SDL2/SDL_thread.h
/usr/include/SDL2/SDL_test_compare.h
/usr/include/SDL2/SDL_types.h
/usr/include/SDL2/SDL_rect.h
/usr/include/SDL2/SDL_video.h
/usr/include/SDL2/SDL_test_font.h
/usr/include/SDL2/SDL_mouse.h
/usr/include/SDL2/SDL_pixels.h
/usr/include/SDL2/close_code.h
/usr/include/SDL2/SDL_bits.h
/usr/include/SDL2/SDL_scancode.h
/usr/include/SDL2/SDL_keycode.h
/usr/include/SDL2/SDL_clipboard.h
/usr/include/SDL2/SDL_syswm.h
/usr/include/SDL2/SDL_haptic.h
/usr/include/SDL2/SDL_loadso.h
/usr/include/SDL2/SDL_render.h
/usr/include/SDL2/SDL_test_md5.h
/usr/include/SDL2/SDL_atomic.h
/usr/include/SDL2/SDL_error.h
/usr/include/SDL2/SDL_opengl.h
/usr/bin
/usr/bin/sdl2-config
/usr/lib/x86_64-linux-gnu/libSDL2.so
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so