[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Help needed Building static binaries on Windows
- From: Milind Gupta <milind.gupta@...>
- Date: Mon, 25 Nov 2019 17:15:12 -0800
Also this configuration you can use it for GUI applications as well but the graphics sometimes look bit different and old. For GUI applications you can choose a Manifest for windows to make the graphics look updated. So that was the reason I prepared a separate project for GUI applications for selection icons and manifests.
When you told me you wanted to do a IUP application I sent you the srlua compile project for GUI applications. When you compile with that the console things don't work (I don't know why). For console applications compile srlua using this code blocks configuration:
Let me know if that works for you now.
With the help of Milind's codeblocks project I have been able to
compile srlua and glue,
but not all is good.
How I compile now:
Using srlua-102 as recommended by Luiz Henrique de Figueiredo from
Compiling like this:
mingw32-gcc.exe -Wall -O2 -static-libgcc -c srglue.c -o glue.o
mingw32-g++.exe -o glue.exe glue.o -s
mingw32-gcc.exe -Wall -O2 -static-libgcc -I. -I$(LUA_INCDIR) -c
srlua.c -o srlua.o
mingw32-g++.exe -o srlua.exe srlua.o -s $(LUA_DLL) -mwindows
.\glue.exe .\srlua.exe test.lua out.exe
With test.lua having
While it compiles and creates "out.exe", it doesn't work, because
"out.exe" doesn't print anything when run (no error, but also no
Using TDM-GCC-5.1.0-3 and Lua-5.3.