New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help required in compiling #1
Comments
|
OK, now I made a little more progress, with the following command: |
|
ok some more progress, |
|
ok __i64toa is not a standard function and hence doesn't work on most compilers. now I have a lui.so using the following command but when I import it, I get the following error |
|
On Unix you shouldn't link the Lua library when building. See here:
In 5.3, you get that EDIT: Also, on Mac, you should add the compiler flags |
|
Aha! for everyone else, the command for Mac/Unix is: |
I am basically trying to compile your code
The following is where I have reached: (I am sorry if the steps I am following may be completely wrong as I am new to C and GCC in general, I am just trying my best to bring this puzzle together)
It has two dependencies:
https://github.com/andlabs/libui
Lua from https://www.lua.org/download.html
I was able to generate two files from the above 2 projects:
liblua.a
libui.a
I was happy so far, but I am not able to figure out how to use the above .a files and compile the zhaozg/lui project.
The instructions on compiling are as follows:
gcc -shared -Isrc src/lui.c -I{LUAINCDIR} -I{LIBUVINCDIR} -lui -llua-5.1 -o luv.so
Also, I am trying to keep the compiled files locally and not have them copied all over /usr/local
So, After a few hours, I reached the following step:
gcc -shared -v -Isrc src/lui.c -I ../lua-src -I ../libui /Users/silva/Documents/test00x/lui/liblua.a /Users/silva/Documents/test00x/lui/libui.a
But now I am stuck at the following error:
The text was updated successfully, but these errors were encountered: