-
Notifications
You must be signed in to change notification settings - Fork 41
luajit build failing on windows 7 32 bit tdm... though working without luadist #211
Comments
I don't know much about cmake... It occurs to me that another possible difference other than build flags could be if cmake chose to use one of my microsoft compilers rather than use the mingw one that's in the path. |
I've found a bit more information. Scanning dependencies of target liblua |
The mingw32-make succeeds if I make the following changes (and I doubt this is the right way to patch so I'd appreciate some help). Change flags.make in two directories so that C_FLAGS now includes -D_WIN32_WINNT=0x0502 |
Sigh... I'm not sure how I did it, I got it working once. |
Note it was uhm only the C compiler entries I changed not the assembler ones, and they only came up after I selected "advanced" |
I'm new to luadist so I don't know how to do basic things...
I can build luajit just fine from the source but when I do it from luadist install libjit I get an error.
C:\luadist_bootstrap_install\bin>luadist C:\my_lua install luajit
Downloading repository information...
Finding out available versions of luajit...
Getting luajit-2.0.3 (source)...
Building luajit-2.0.3...
Error building with CMake in directory 'C:\my_lua\tmp\luajit-2.0.3-CMake-build'
I made the guess that I could get a more useful error message by going to the build directory and running make thus:
C:\luadist_bootstrap_install\bin>cd C:\my_lua\tmp\luajit-2.0.3-CMake-build
C:\my_lua\tmp\luajit-2.0.3-CMake-build>mingw32-make
Built target minilua
Built target buildvm
Linking C shared library liblua.dll
CMakeFiles\liblua.dir/objects.a(lj_clib.c.obj):lj_clib.c:(.text+0xc9): undefined reference to
GetM duleHandleExA' CMakeFiles\liblua.dir/objects.a(lib_package_rel.c.obj):lib_package_rel.c:(.text+0xb75): undefined r ference to
GetModuleHandleExA'collect2.exe: error: ld returned 1 exit status
CMakeFiles\liblua.dir\build.make:1724: recipe for target 'liblua.dll' failed
mingw32-make[2]: *** [liblua.dll] Error 1
CMakeFiles\Makefile2:94: recipe for target 'CMakeFiles/liblua.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/liblua.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Doing a diff between the source files directly from the luajit site that built properly and the ones luadist pulled doesn't find a difference, so I guess there is one it has to be in build flags.
I wish I knew enough to do simple things like just substitute my successful build in and tell the luadist to use it.
The text was updated successfully, but these errors were encountered: