Re: Lua gui compilation problem

hello,
if you think the problem is from the manifest,
create an xml file for manifest with this name:
manifest.xml
then copy this code in it

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
    </dependentAssembly>
  </dependency>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

then create a resource file for example named resource.rc and do the following in it:

//
// Manifest resources
//
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
1                  RT_MANIFEST    ".\\manifest.xml"

and in your compilation, do the following:

@echo off
set /p name=Enter a name of lua scrypt to compile
luac -o main.luac %name%
bin2c main.luac >code.c
windres src/resource.rc src/resource.res
gcc -I "C:/lua/5.1/include/" main.c src/*.c src/*.res
del main.luac
del code.c

please note both the xml file and rc file should be in your src directory, otherwise you need to change them accordingly



_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Reply via email to