cairo errors on bundling
I was trying to test *_demo.lua files of some modules. Sometimes they require cairo.
When I'm trying to build by
mgit bundle -a "cairo" -M main -o fat.exewhere main.lua contains only
local cairo = require'cairo'I have this:
When I'm trying use
mgit bundle -d "cairo" -M main -o fat.exeI have this:
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcairo collect2.exe: error: ld returned 1 exit status
cairo is not in WIP. What could I miss?
You have to also bundle in all the binary dependencies for each package which are listed on each package's info page, eg. for cairo: https://luapower.com/cairo/info Read that page carefuly and try to understand the various kinds of dependencies that the package has so you'll know what to include. The (?) has additional info. Hope this helps.
Oh, it's actually too addicted to modules.
I have 23 inclusions for simple thing.
Also I haven't found much info about folder adding (found later that it's
folder/*.lua), about .dasl files and about files like
I think I'll just make .exe to compile .exe for me. :D
Can you give me clue about how can I remove bundle's ability to search for files outside .exe? Edit bundle code?
Yes, you'll need to change the way bundle works, but why would you do that?
I don't want to allow him to find lua's in his directory. Because I'm making a program to work with lua files and if the name matches he will use them instead of his own, right?
Yes. To prevent that you could change this: https://github.com/luapower/bundle/blob/master/bundle_loader.lua#L20