Hi Shirish, > Dear all, > > Would it be possible to have Tales of MajEyal in Debian. The only > trouble I see is that the package name is tome2 which is similar to > the name of a game maintained by Manoj Srivastava - > > tome ( Troubles of Middle Earth) although the difference seems to end > there. While the package that Manoj maintains requires libsdl1.2 and > boost libraries, Tales of MajEyal requires OpenGL, libsdl2.0, > premake4, all of which are now in Debian. You can also see the > difference from the screenshots shared at > https://te4.org/tome/screenshots. > > The only issue I see is the license which says 'relicensing the code > as the developer seems fit' although he does mention that the game > will always be open-source. The cool thing is this game also seems to > be inspired by Angband as so many foss rpg's have. > > https://git.net-core.org/tome/t-engine4/blob/master/CONTRIBUTING > > I am open to put an RFP onto it, if there might be people interested > in packaging it ? I am open to helping with testing it so that any > initial issues which might be there are caught and we can have the > game in the repository. I am not DD or DM, but I am interested in packaging it, where I downloaded the full version of the source code to learn more about the license part of the files and the compilation to be tested[1][2]. [1] https://te4.org/download [2] http://te4.org/dl/t-engine/t-engine4-src-1.6.7.tar.bz2 Regarding the game license, it is apparently acceptable to be in Debian. I currently used the libraries to test: "make, premake4, libopenal-dev, libpng-dev, libsdl2-dev, libsdl2-image-dev, libsdl2-mixer-dev, libsdl2-ttf-dev, libvorbis-dev". I had to add a command in the file "premake4.lua" to fix a bug that was not finding SDL2. === added command === configuration { "linux", "gmake" } buildoptions { "`pkg-config --cflags sdl2`" } linkoptions { "`pkg-config --libs sdl2`" } === end === I can create a patch with this fix in the package, but here's the tip for the upstream in the next version of the game. :) If you allow me, I will start the packaging with the name "tome" (Tales of Maj'Eyal). Thanks! -- ⢀⣴⠾⠻⢶⣦⠀ Carlos Donizete Froes [a.k.a coringao] ⣾⠁⢠⠒⠀⣿⡁ Debian Wiki: https://wiki.debian.org/coringao ⢿⡄⠘⠷⠚⠋⠀ GPG: 4096R/B638B780 ⠈⠳⣄⠀⠀⠀ 2157 630B D441 A775 BEFF D35F FA63 ADA6 B638 B780
coringao@debian:~$ cd Downloads/t-engine4-src-1.6.7/ coringao@debian:~/Downloads/t-engine4-src-1.6.7$ ls bootstrap build CONTRIBUTING COPYING COPYING-MEDIA CREDITS game mac premake4.lua src coringao@debian:~/Downloads/t-engine4-src-1.6.7$ premake4 gmake Building configurations... Running action 'gmake'... Generating Makefile... Generating build/TEngine.make... Generating build/physfs.make... Generating build/minilua.make... Generating build/buildvm.make... Generating build/luajit2.make... Generating build/luasocket.make... Generating build/fov.make... Generating build/lpeg.make... Generating build/luaprofiler.make... Generating build/tcodimport.make... Generating build/expatstatic.make... Generating build/lxp.make... Generating build/luamd5.make... Generating build/luazlib.make... Generating build/luabitop.make... Generating build/te4-bzip.make... Generating build/te4-wfc.make... Generating build/utf8proc.make... Done. coringao@debian:~/Downloads/t-engine4-src-1.6.7$ make ==== Building physfs (debug) ==== Creating ../bin/Debug Creating ../obj/Debug/physfs physfsrwops.c physfs_byteorder.c physfs_unicode.c physfs.c ../src/physfs/physfs.c:76:5: warning: initialization of ‘const PHYSFS_ArchiveInfo *’ {aka ‘const struct PHYSFS_ArchiveInfo *’} from incompatible pointer type ‘const PHYSFS_Archiver *’ {aka ‘const struct <anonymous> *’} [-Wincompatible-pointer-types] 76 | &__PHYSFS_Archiver_BIND_PHYSFS, | ^ ../src/physfs/physfs.c:76:5: note: (near initialization for ‘supported_types[0]’) adler32.c infback.c gzread.c ../src/zlib/gzread.c: In function ‘gz_load’: ../src/zlib/gzread.c:35:15: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration] 35 | ret = read(state->fd, buf + *have, get); | ^~~~ | fread ../src/zlib/gzread.c: In function ‘gzclose_r’: ../src/zlib/gzread.c:651:11: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration] 651 | ret = close(state->fd); | ^~~~~ | pclose zutil.c inffast.c inftrees.c ioapi.c inflate.c gzclose.c deflate.c gzlib.c ../src/zlib/gzlib.c: In function ‘gz_open’: ../src/zlib/gzlib.c:14:17: warning: implicit declaration of function ‘lseek’; did you mean ‘fseek’? [-Wimplicit-function-declaration] 14 | # define LSEEK lseek | ^~~~~ ../src/zlib/gzlib.c:252:9: note: in expansion of macro ‘LSEEK’ 252 | LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */ | ^~~~~ gzwrite.c ../src/zlib/gzwrite.c: In function ‘gz_comp’: ../src/zlib/gzwrite.c:89:20: warning: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration] 89 | writ = write(state->fd, strm->next_in, put); | ^~~~~ | fwrite ../src/zlib/gzwrite.c: In function ‘gzclose_w’: ../src/zlib/gzwrite.c:661:9: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration] 661 | if (close(state->fd) == -1) | ^~~~~ | pclose compress.c crc32.c mzip.c trees.c uncompr.c bind_physfs.c ../src/physfs/archivers/bind_physfs.c: In function ‘BIND_PHYSFS_openRead’: ../src/physfs/archivers/bind_physfs.c:225:29: warning: passing argument 3 of ‘doOpen’ from incompatible pointer type [-Wincompatible-pointer-types] 225 | return(doOpen(opaque, fnm, PHYSFS_openRead, exist)); | ^~~~~~~~~~~~~~~ | | | PHYSFS_File * (*)(const char *) {aka struct PHYSFS_File * (*)(const char *)} ../src/physfs/archivers/bind_physfs.c:198:30: note: expected ‘void * (*)(const char *)’ but argument is of type ‘PHYSFS_File * (*)(const char *)’ {aka ‘struct PHYSFS_File * (*)(const char *)’} 198 | void *(*openFunc)(const char *filename), | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dir.c zip.c subzip.c ../src/physfs/archivers/subzip.c: In function ‘SUBZIP_openArchive’: ../src/physfs/archivers/subzip.c:112:15: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 112 | char *base = name; | ^~~~ unix.c posix.c Linking physfs ==== Building minilua (debug) ==== Creating ../obj/Debug/minilua minilua.c Linking minilua Running post-build commands cp ../bin/Debug/minilua ../src/luajit2/src/host/ ==== Building buildvm (debug) ==== Creating ../obj/Debug/buildvm Running pre-build commands ../src/luajit2/src/host/minilua ../src/luajit2/dynasm/dynasm.lua -D VER= -D P64 -D JIT -D FFI -D FPU -D HFABI -o ../src/luajit2/src/host/buildvm_arch.h ../src/luajit2/src/vm_x86.dasc buildvm_asm.c buildvm_fold.c buildvm_lib.c buildvm_peobj.c buildvm.c Linking buildvm Running post-build commands cp ../bin/Debug/buildvm ../src/luajit2/src/ ==== Building luajit2 (debug) ==== Creating ../obj/Debug/luajit2 Running pre-build commands ../src/luajit2/src/buildvm -m elfasm -o ../src/luajit2/src/lj_vm.s ../src/luajit2/src/buildvm -m bcdef -o ../src/luajit2/src/lj_bcdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m ffdef -o ../src/luajit2/src/lj_ffdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m libdef -o ../src/luajit2/src/lj_libdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m recdef -o ../src/luajit2/src/lj_recdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m vmdef -o ../src/luajit2/vmdef.lua ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m folddef -o ../src/luajit2/src/lj_folddef.h ../src/luajit2/src/lj_opt_fold.c lj_debug.c lj_mcode.c lj_asm.c lj_opt_sink.c lib_aux.c lib_bit.c lj_bcread.c lj_char.c lj_ccall.c lib_math.c lj_udata.c lib_ffi.c lj_bc.c lj_cdata.c lj_cconv.c lj_gc.c lj_gdbjit.c lj_api.c lj_record.c lib_os.c lj_ccallback.c lj_opt_mem.c lj_clib.c lj_opt_split.c lib_base.c lj_obj.c lj_vmevent.c lj_err.c lib_debug.c lib_io.c lj_func.c lj_load.c lj_tab.c lj_opt_dce.c lib_table.c lj_ctype.c lj_dispatch.c lj_strscan.c lj_bcwrite.c lj_cparse.c lib_jit.c lj_lib.c lib_package.c lj_parse.c lj_snap.c lj_ffrecord.c lj_trace.c lj_carith.c lj_state.c lj_ir.c lj_crecord.c lj_opt_fold.c lib_init.c lj_meta.c lj_alloc.c lib_string.c lj_lex.c lj_vmmath.c lj_opt_loop.c lj_opt_narrow.c lj_str.c lj_vm.s Linking luajit2 ==== Building fov (debug) ==== Creating ../obj/Debug/fov fov.c Linking fov ==== Building luasocket (debug) ==== Creating ../obj/Debug/luasocket auxiliar.c buffer.c except.c inet.c io.c luasocket.c options.c select.c tcp.c timeout.c udp.c usocket.c mime.c Linking luasocket ==== Building luaprofiler (debug) ==== Creating ../obj/Debug/luaprofiler stack.c lua50_profiler.c function_meter.c clocks.c core_profiler.c Linking luaprofiler ==== Building lpeg (debug) ==== Creating ../obj/Debug/lpeg lptree.c lpprint.c lpcap.c lpcode.c lpvm.c Linking lpeg ==== Building tcodimport (debug) ==== Creating ../obj/Debug/tcodimport noise_c.c In file included from ../src/libtcod_import/noise_c.c:32: ../src/SFMT.h:74:6: warning: inline function ‘fill_array64’ declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function ‘fill_array32’ declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function ‘gen_rand64’ declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function ‘gen_rand32’ declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ Linking tcodimport ==== Building lxp (debug) ==== Creating ../obj/Debug/lxp lxplib.c Linking lxp ==== Building expatstatic (debug) ==== Creating ../obj/Debug/expatstatic xmltok_impl.c xmltok_ns.c xmlrole.c xmltok.c xmlparse.c Linking expatstatic ==== Building luamd5 (debug) ==== Creating ../obj/Debug/luamd5 md5lib.c md5.c des56.c ldes56.c Linking luamd5 ==== Building luazlib (debug) ==== Creating ../obj/Debug/luazlib lgzip.c lzlib.c Linking luazlib ==== Building luabitop (debug) ==== Creating ../obj/Debug/luabitop bit.c Linking luabitop ==== Building te4-bzip (debug) ==== Creating ../obj/Debug/te4-bzip huffman.c blocksort.c decompress.c bzlib.c compress.c crctable.c randtable.c Linking te4-bzip ==== Building te4-wfc (debug) ==== Creating ../obj/Debug/te4-wfc lua_wfc.cpp In file included from ../src/wfc/lua_wfc.cpp:27: ../src/SFMT.h:62:10: warning: inline function ‘uint32_t gen_rand32()’ used but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function ‘uint64_t gen_rand64()’ used but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ Linking te4-wfc ==== Building utf8proc (debug) ==== Creating ../obj/Debug/utf8proc utf8proc.c Linking utf8proc ==== Building TEngine (debug) ==== Creating ../obj/Debug/TEngine glew.c music.c bspatch.c particles.c In file included from ../src/particles.h:24, from ../src/particles.c:30: ../src/particles.c: In function ‘particles_draw’: ../src/tgl.h:86:10: warning: comparison of distinct pointer types lacks a cast 86 | if ((p) != gl_c_texcoords_ptr || (nb) != gl_c_colors_nb) { glTexCoordPointer((nb), (t), (v), (p)); gl_c_texcoords_ptr=(p); gl_c_texcoords_nb = (nb); } \ | ^~ ../src/particles.c:441:2: note: in expansion of macro ‘glTexCoordPointer’ 441 | glTexCoordPointer(2, GL_SHORT, 0, texcoords); | ^~~~~~~~~~~~~~~~~ ../src/tgl.h:86:119: warning: assignment to ‘GLfloat *’ {aka ‘float *’} from incompatible pointer type ‘GLshort *’ {aka ‘short int *’} [-Wincompatible-pointer-types] 86 | if ((p) != gl_c_texcoords_ptr || (nb) != gl_c_colors_nb) { glTexCoordPointer((nb), (t), (v), (p)); gl_c_texcoords_ptr=(p); gl_c_texcoords_nb = (nb); } \ | ^ ../src/particles.c:441:2: note: in expansion of macro ‘glTexCoordPointer’ 441 | glTexCoordPointer(2, GL_SHORT, 0, texcoords); | ^~~~~~~~~~~~~~~~~ ../src/particles.c: In function ‘thread_particle_init’: ../src/particles.c:796:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 796 | printf("Particle args init error %x (%s): %s\n", (int)l, ps->args, lua_tostring(L, -1)); | ^ ../src/particles.c:844:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 844 | printf("Particle run error %x (%s): %s\n", (int)l, ps->args, lua_tostring(L, -1)); | ^ ../src/particles.c: In function ‘thread_particles’: ../src/particles.c:1042:2: warning: implicit declaration of function ‘luaopen_shaders’; did you mean ‘luaopen_base’? [-Wimplicit-function-declaration] 1042 | luaopen_shaders(L); | ^~~~~~~~~~~~~~~ | luaopen_base ../src/particles.c: In function ‘free_particles_thread’: ../src/particles.c:1173:72: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1173 | printf("Destroying particle thread %d (waiting for thread %x)\n", i, (int)pt->thread); | ^ In file included from ../src/particles.c:33: ../src/particles.c: At top level: ../src/SFMT.h:74:6: warning: inline function ‘fill_array64’ declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function ‘fill_array32’ declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function ‘gen_rand64’ declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function ‘gen_rand32’ declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ In file included from ../src/display.h:23, from ../src/particles.c:21: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ profile.c discord-te4.c map.c ../src/map.c: In function ‘map_set_grid’: ../src/map.c:1041:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1041 | lua_pushnumber(L, (int)map->grids[x][y][i]); | ^ In file included from ../src/display.h:23, from ../src/map.c:21: ../src/map.c: At top level: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ noise.c In file included from ../src/display.h:23, from ../src/noise.c:21: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ sdnoise1234.c wait.c serial.c In file included from ../src/display.h:23, from ../src/serial.c:21: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ dmnd_square.c In file included from ../src/dmnd_square.c:36: ../src/SFMT.h:74:6: warning: inline function ‘fill_array64’ declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function ‘fill_array32’ declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function ‘gen_rand64’ declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function ‘gen_rand32’ declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ In file included from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ SFMT.c ../src/SFMT.c:493:5: warning: ‘idx’ is static but used in inline function ‘fill_array64’ which is not static 493 | idx = N32; | ^~~ ../src/SFMT.c:492:5: warning: ‘gen_rand_array’ is static but used in inline function ‘fill_array64’ which is not static 492 | gen_rand_array((w128_t *)array, size / 2); | ^~~~~~~~~~~~~~ In file included from ../src/SFMT.c:14: ../src/SFMT.c:488:12: warning: ‘idx’ is static but used in inline function ‘fill_array64’ which is not static 488 | assert(idx == N32); | ^~~ ../src/SFMT.c:488:12: warning: ‘idx’ is static but used in inline function ‘fill_array64’ which is not static 488 | assert(idx == N32); | ^~~ ../src/SFMT.c:487:12: warning: ‘initialized’ is static but used in inline function ‘fill_array64’ which is not static 487 | assert(initialized); | ^~~~~~~~~~~ ../src/SFMT.c:487:12: warning: ‘initialized’ is static but used in inline function ‘fill_array64’ which is not static 487 | assert(initialized); | ^~~~~~~~~~~ ../src/SFMT.c:457:5: warning: ‘idx’ is static but used in inline function ‘fill_array32’ which is not static 457 | idx = N32; | ^~~ ../src/SFMT.c:456:5: warning: ‘gen_rand_array’ is static but used in inline function ‘fill_array32’ which is not static 456 | gen_rand_array((w128_t *)array, size / 4); | ^~~~~~~~~~~~~~ In file included from ../src/SFMT.c:14: ../src/SFMT.c:452:12: warning: ‘idx’ is static but used in inline function ‘fill_array32’ which is not static 452 | assert(idx == N32); | ^~~ ../src/SFMT.c:452:12: warning: ‘idx’ is static but used in inline function ‘fill_array32’ which is not static 452 | assert(idx == N32); | ^~~ ../src/SFMT.c:451:12: warning: ‘initialized’ is static but used in inline function ‘fill_array32’ which is not static 451 | assert(initialized); | ^~~~~~~~~~~ ../src/SFMT.c:451:12: warning: ‘initialized’ is static but used in inline function ‘fill_array32’ which is not static 451 | assert(initialized); | ^~~~~~~~~~~ ../src/SFMT.c:419:5: warning: ‘idx’ is static but used in inline function ‘gen_rand64’ which is not static 419 | idx += 2; | ^~~ ../src/SFMT.c:418:17: warning: ‘idx’ is static but used in inline function ‘gen_rand64’ which is not static 418 | r = psfmt64[idx / 2]; | ^~~ ../src/SFMT.c:418:9: warning: ‘psfmt64’ is static but used in inline function ‘gen_rand64’ which is not static 418 | r = psfmt64[idx / 2]; | ^~~~~~~ ../src/SFMT.c:410:2: warning: ‘idx’ is static but used in inline function ‘gen_rand64’ which is not static 410 | idx = 0; | ^~~ ../src/SFMT.c:409:2: warning: ‘gen_rand_all’ is static but used in inline function ‘gen_rand64’ which is not static 409 | gen_rand_all(); | ^~~~~~~~~~~~ ../src/SFMT.c:408:9: warning: ‘idx’ is static but used in inline function ‘gen_rand64’ which is not static 408 | if (idx >= N32) { | ^~~ In file included from ../src/SFMT.c:14: ../src/SFMT.c:406:12: warning: ‘idx’ is static but used in inline function ‘gen_rand64’ which is not static 406 | assert(idx % 2 == 0); | ^~~ ../src/SFMT.c:406:12: warning: ‘idx’ is static but used in inline function ‘gen_rand64’ which is not static 406 | assert(idx % 2 == 0); | ^~~ ../src/SFMT.c:405:12: warning: ‘initialized’ is static but used in inline function ‘gen_rand64’ which is not static 405 | assert(initialized); | ^~~~~~~~~~~ ../src/SFMT.c:405:12: warning: ‘initialized’ is static but used in inline function ‘gen_rand64’ which is not static 405 | assert(initialized); | ^~~~~~~~~~~ shaders.c In file included from ../src/display.h:23, from ../src/shaders.c:21: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ display_sdl.c getself.c web.c ../src/web.c: In function ‘te4_web_load’: ../src/web.c:593:3: warning: implicit declaration of function ‘execv’ [-Wimplicit-function-declaration] 593 | execv(get_self_executable(g_argc, g_argv), newargs); | ^~~~~ In file included from ../src/display.h:23, from ../src/web.c:22: ../src/web.c: At top level: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ main.c ../src/main.c: In function ‘stackDump’: ../src/main.c:236:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 236 | { printf("%d: %s // %x\n", i, lua_typename(L, t), (unsigned int)lua_topointer(L, i)); } | ^ In file included from ../src/main.c:32: ../src/main.c: At top level: ../src/SFMT.h:74:6: warning: inline function ‘fill_array64’ declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function ‘fill_array32’ declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function ‘gen_rand64’ declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function ‘gen_rand32’ declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ In file included from ../src/display.h:23, from ../src/main.c:21: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ core_lua.c In file included from ../src/core_lua.c:24: ../src/core_lua.c: In function ‘lua_key_set_clipboard’: ../src/luajit2/src/lauxlib.h:97:31: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 97 | #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) | ^ ../src/core_lua.c:443:14: note: in expansion of macro ‘luaL_checkstring’ 443 | char *str = luaL_checkstring(L, 1); | ^~~~~~~~~~~~~~~~ In file included from ../src/core_lua.c:31: ../src/core_lua.c: At top level: ../src/SFMT.h:74:6: warning: inline function ‘fill_array64’ declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function ‘fill_array32’ declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function ‘gen_rand64’ declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function ‘gen_rand32’ declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ In file included from ../src/display.h:23, from ../src/core_lua.c:21: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ struct.c fov.c In file included from ../src/fov.c:32: ../src/SFMT.h:74:6: warning: inline function ‘fill_array64’ declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function ‘fill_array32’ declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function ‘gen_rand64’ declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function ‘gen_rand32’ declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ In file included from ../src/display.h:23, from ../src/fov.c:21: ../src/display_sdl.h:46:6: warning: inline function ‘sdlDrawImage’ declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ physfs.c auxiliar.c Linking TEngine /usr/bin/ld: ../bin/Debug/libluaprofiler.a(core_profiler.o): na função "lprofP_init_core_profiler": /home/coringao/Downloads/t-engine4-src-1.6.7/build/../src/luaprofiler/core_profiler.c:134: aviso: the use of `tmpnam' is dangerous, better use `mkstemp' Running post-build commands cp ../bin/Debug/t-engine ../ coringao@debian:~/Downloads/t-engine4-src-1.6.7$
dofile("build/options.lua") solution "TEngine" configurations { "Debug", "Release" } objdir "obj" defines {"GLEW_STATIC"} if _OPTIONS.force32bits then buildoptions{"-m32"} linkoptions{"-m32"} libdirs{"/usr/lib32"} end includedirs { "src", "src/luasocket", "src/fov", "src/expat", "src/lxp", "src/libtcod_import", "src/physfs", "src/zlib", "src/bzip2", } if _OPTIONS['web-awesomium'] then includedirs { "src/web-awesomium" } end if _OPTIONS['web-cef3'] then includedirs { "src/web-cef3" } end if _OPTIONS.wincross then includedirs { "/usr/i686-pc-mingw32/usr/include/", "/usr/i686-pc-mingw32/usr/include/GL/", } else includedirs { "/opt/SDL-2.0/include/SDL2", "/usr/include/GL", } end if _OPTIONS.lua == "default" then includedirs{"src/lua"} elseif _OPTIONS.lua == "jit2" then includedirs{"src/luajit2/src", "src/luajit2/dynasm",} end if _OPTIONS.steam then dofile("steamworks/build/steam-def.lua") end configuration "bsd" libdirs { "/usr/local/lib", } includedirs { "/usr/local/include", } if _OPTIONS.wincross then configuration "windows" libdirs { "/Test/xcompile/local//lib", } includedirs { "/Test/xcompile/local/include/SDL2", "/Test/xcompile/local/include", } else configuration "windows" libdirs { "/c/code/SDL/lib", } includedirs { "/c/code/SDL/include/SDL2", "/c/code/SDL/include", "/c/mingw2/include/GL", } end cppconfig = function(what) if os.get() == "macosx" then if what == "web" then buildoptions { "-stdlib=libstdc++" } linkoptions { "-stdlib=libstdc++" } else buildoptions { "-stdlib=libc++" } linkoptions { "-stdlib=libc++" } end end -- links { "stdc++" } end configuration "macosx" premake.gcc.cc = 'clang' premake.gcc.cxx = 'clang++' buildoptions { "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk", "-mmacosx-version-min=10.7" } includedirs { "/Library/Frameworks/SDL2.framework/Headers", "/Library/Frameworks/SDL2_image.framework/Headers", "/Library/Frameworks/SDL2_ttf.framework/Headers", } configuration "Debug" defines { } flags { "Symbols" } buildoptions { "-ggdb" } -- buildoptions { "-O3" } targetdir "bin/Debug" if _OPTIONS.luaassert then defines {"LUA_USE_APICHECK"} end if _OPTIONS.pedantic then buildoptions { "-Wall" } end defines {"TE4_LUA_ALLOW_GENERIC_IO"} configuration "Release" defines { "NDEBUG=1" } flags { "Optimize", "NoFramePointer" } buildoptions { "-O2" } targetdir "bin/Release" configuration { "linux", "gmake" } buildoptions { "`pkg-config --cflags sdl2`" } linkoptions { "`pkg-config --libs sdl2`" } --dofile("build/runner.lua") dofile("build/te4core.lua")
Attachment:
signature.asc
Description: This is a digitally signed message part