Open denisdemaisbr opened 7 years ago
try'ng to build load 81 on cygwin are ok! but when run it SDL_Init "can't found de video display". Why?
$ make
cc -O2 -Wall -W -Ilua/src pkg-config --cflags sdl SDL_gfx SDL_image -c -o load81.o load81.c cc -O2 -Wall -W -Ilua/src pkg-config --cflags sdl SDL_gfx SDL_image -c -o editor.o editor.c cc -O2 -Wall -W -Ilua/src pkg-config --cflags sdl SDL_gfx SDL_image -c -o framebuffer.o framebuffer.c (cd lua && make ansi) make[1]: Entering directory '/home/czar/c/load81/lua' cd src && make ansi make[2]: Entering directory '/home/czar/c/load81/lua/src' make all MYCFLAGS=-DLUA_ANSI make[3]: Entering directory '/home/czar/c/load81/lua/src' gcc -O2 -Wall -DLUA_ANSI -c -o lapi.o lapi.c gcc -O2 -Wall -DLUA_ANSI -c -o lcode.o lcode.c gcc -O2 -Wall -DLUA_ANSI -c -o ldebug.o ldebug.c gcc -O2 -Wall -DLUA_ANSI -c -o ldo.o ldo.c gcc -O2 -Wall -DLUA_ANSI -c -o ldump.o ldump.c gcc -O2 -Wall -DLUA_ANSI -c -o lfunc.o lfunc.c gcc -O2 -Wall -DLUA_ANSI -c -o lgc.o lgc.c gcc -O2 -Wall -DLUA_ANSI -c -o llex.o llex.c gcc -O2 -Wall -DLUA_ANSI -c -o lmem.o lmem.c gcc -O2 -Wall -DLUA_ANSI -c -o lobject.o lobject.c gcc -O2 -Wall -DLUA_ANSI -c -o lopcodes.o lopcodes.c gcc -O2 -Wall -DLUA_ANSI -c -o lparser.o lparser.c gcc -O2 -Wall -DLUA_ANSI -c -o lstate.o lstate.c gcc -O2 -Wall -DLUA_ANSI -c -o lstring.o lstring.c gcc -O2 -Wall -DLUA_ANSI -c -o ltable.o ltable.c gcc -O2 -Wall -DLUA_ANSI -c -o ltm.o ltm.c gcc -O2 -Wall -DLUA_ANSI -c -o lundump.o lundump.c gcc -O2 -Wall -DLUA_ANSI -c -o lvm.o lvm.c gcc -O2 -Wall -DLUA_ANSI -c -o lzio.o lzio.c gcc -O2 -Wall -DLUA_ANSI -c -o lauxlib.o lauxlib.c gcc -O2 -Wall -DLUA_ANSI -c -o lbaselib.o lbaselib.c gcc -O2 -Wall -DLUA_ANSI -c -o ldblib.o ldblib.c gcc -O2 -Wall -DLUA_ANSI -c -o liolib.o liolib.c gcc -O2 -Wall -DLUA_ANSI -c -o lmathlib.o lmathlib.c gcc -O2 -Wall -DLUA_ANSI -c -o loslib.o loslib.c gcc -O2 -Wall -DLUA_ANSI -c -o ltablib.o ltablib.c gcc -O2 -Wall -DLUA_ANSI -c -o lstrlib.o lstrlib.c gcc -O2 -Wall -DLUA_ANSI -c -o loadlib.o loadlib.c gcc -O2 -Wall -DLUA_ANSI -c -o linit.o linit.c ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o # DLL needs all object files ranlib liblua.a gcc -O2 -Wall -DLUA_ANSI -c -o lua.o lua.c gcc -o lua lua.o liblua.a -lm gcc -O2 -Wall -DLUA_ANSI -c -o luac.o luac.c gcc -O2 -Wall -DLUA_ANSI -c -o print.o print.c gcc -o luac luac.o print.o liblua.a -lm make[3]: Leaving directory '/home/czar/c/load81/lua/src' make[2]: Leaving directory '/home/czar/c/load81/lua/src' make[1]: Leaving directory '/home/czar/c/load81/lua' cc load81.o editor.o framebuffer.o lua/src/liblua.a lua/src/liblua.a -lm pkg-config --libs sdl SDL_gfx SDL_image -o load81
pkg-config --cflags sdl SDL_gfx SDL_image
pkg-config --libs sdl SDL_gfx SDL_image
$ ldd load81.exe
ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x76ce0000) kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x76bc0000) KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7fefceb0000) cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000) cygSDL-1-2-0.dll => /usr/bin/cygSDL-1-2-0.dll (0x3f8130000) ADVAPI32.dll => /cygdrive/c/Windows/system32/ADVAPI32.dll (0x7fefd240000) msvcrt.dll => /cygdrive/c/Windows/system32/msvcrt.dll (0x7fefe660000) sechost.dll => /cygdrive/c/Windows/SYSTEM32/sechost.dll (0x7fefd010000) RPCRT4.dll => /cygdrive/c/Windows/system32/RPCRT4.dll (0x7fefd560000) WINMM.dll => /cygdrive/c/Windows/system32/WINMM.dll (0x7fefac90000) USER32.dll => /cygdrive/c/Windows/system32/USER32.dll (0x76ac0000) GDI32.dll => /cygdrive/c/Windows/system32/GDI32.dll (0x7fefe420000) LPK.dll => /cygdrive/c/Windows/system32/LPK.dll (0x7fefd000000) USP10.dll => /cygdrive/c/Windows/system32/USP10.dll (0x7fefebe0000) cygSDL_gfx-14.dll => /usr/bin/cygSDL_gfx-14.dll (0x3f7f60000) cygSDL_image-1-2-0.dll => /usr/bin/cygSDL_image-1-2-0.dll (0x3f7f30000) cygjpeg-8.dll => /usr/bin/cygjpeg-8.dll (0x3e8da0000) cygpng16-16.dll => /usr/bin/cygpng16-16.dll (0x3e52f0000) cygz.dll => /usr/bin/cygz.dll (0x3e2c60000) cygtiff-6.dll => /usr/bin/cygtiff-6.dll (0x3e3a50000) cygjbig-2.dll => /usr/bin/cygjbig-2.dll (0x3e8e10000) cyglzma-5.dll => /usr/bin/cyglzma-5.dll (0x3e65d0000) cygwebp-5.dll => /usr/bin/cygwebp-5.dll (0x3e3090000)
$ ./load81.exe examples/2dsim.lua
SDL Init error: No available video device Segmentation fault (imagem do núcleo gravada)
try'ng to build load 81 on cygwin are ok! but when run it SDL_Init "can't found de video display". Why?
$ make
$ ldd load81.exe
$ ./load81.exe examples/2dsim.lua