-
Spar
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?
-
Spar
Thanks.
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'sfolder/*.lua
), about .dasl files and about files likefile.lua
andfile_h.lua
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?
-
Spar
Hello.
I was trying to test *_demo.lua files of some modules. Sometimes they require cairo.
When I'm trying to build bymgit bundle -a "cairo" -M main -o fat.exe
where main.lua contains onlylocal cairo = require'cairo'
I have this:
console logWhen I'm trying use
mgit bundle -d "cairo" -M main -o fat.exe
I 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?
-
Spar
Well. Seems like I did it.
Thanks you for agreeing to help me from the beginning. Also thanks for this project and its heading.
I will leave instruction on how I did it:
Required knowledge: windows command line commands (simple) and PATH variable editing
- Install GitHub Desktop
- Add
C:\Users\*Your UserName*\AppData\Local\GitHubDesktop\app-1.5.1\resources\app\git\cmd
to PATH - Install MSYS
- Copy files from
msys/bin
(bash.exe is in it) and move them toC:\Users\Spar\AppData\Local\GitHubDesktop\app-1.5.1\resources\app\git\usr\bin
- Install MINGW 32-bit or MINGW 64-bit respectively.
- Add
*path to mingw*/bin
to PATH - Win + R. Type
cmd
to open console - Type
cd /
- Type
git clone https://github.com/capr/multigit luapower
- Type
cd luapower
andmgit clone https://github.com/luapower/luapower-repos
- Type
mgit clone-all
and wait - See bundle commands list. Test that everything is working:
mgit bundle -o fat.exe
-
Spar
I bundeled winapi-demo and it works without -m and -a arguments.
Is this a auto-detect or builtin? -
Spar
Ok. I've found modules and static libraries, but no dynamic libraries (dylib i guess). Did I missed them somewhere?
Tried to compile just one file. Finally I've reached my goal to make an .exe!Also, how I realised, bundle can detect which modules I need if I had
require
, right? -
Spar
I've seen what does it print. For best realizing I wanted to ask again.
How can I understand which libraries in luapower are dymanic and which static?
As I'm in Lua. I know only 2 things: .lua modules and .dll modules
-
Spar
Ok. That was in examples on site. :D
Can you correct me if I'm wrong?mgit bundle -a --all -m --all -M main -o fat.exe
-a means what .dll libraries I want to include in .exe
-m means what .lua modules I want to include in .exe
-M means what .lua file is main loader for .exe
-o is output of file :p -
Spar
Well, no harm trying.
My mistake was that I hadC:/mingw64/
in PATH insteadC:/mingw64/bin/
Now I have this:
C:\luapower>mgit bundle -a --all -m --all -M main -o fat.exe
luajit: ui_list.lua:16: '<name>' expected near 'if'
{standard input}: Assembler messages:
{standard input}:6: Error: file not found: .bundle-tmp/mingw64/ui_list.lua.o.luac
g++.exe: error: .bundle-tmp/mingw64/ui_list.lua.o: No such file or directory
I've cloned luapower by mgit and created main.lua with code:
print("Hi")
-
Spar
Ok, I've moved on.
This is what I have next:
C:\luapower>mgit bundle -a --all -m --all -M main -o fat.exe
.mgit/bundle.sh: line 201: windres: command not found
.mgit/bundle.sh: line 103: gcc: command not found
-- This line repeats more than 200 times
.mgit/bundle.sh: line 108: gcc: command not found
.mgit/bundle.sh: line 108: gcc: command not found
.mgit/bundle.sh: line 103: gcc: command not found
.mgit/bundle.sh: line 201: windres: command not found
.mgit/bundle.sh: line 201: windres: command not found
which: gcc: unknown command
.mgit/bundle.sh: line 13: g++: command not found