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
Building Minetest 5.7.0 on MacOS: error: use of undeclared identifier 'luaopen_bit' #13548
Comments
Do you have the output from when you run the "cmake" command? |
Your Minetest build uses LuaJIT 5.1 (any version from 2017-now), however it seems to be new enough to have Lines 701 to 716 in 7221de6
But it appears that your LuaJIT installation was not compiled with the BitOp library (expected to be included with minetest/src/script/cpp_api/s_base.cpp Lines 37 to 42 in 7221de6
As a workaround you could either (recommended) try to figure out which LuaJIT build comes with BitOp or (less recommended) try to make use of the bundled library: (also requires you to include the file like the part shown in the code above) Lines 306 to 308 in 8cd1296
|
It's also failing to find As an aside sibce you are building 5.7.0 then IrrlichtMt 1.9.0.10 should be required, yet your output shows 1.9.0.8. Weird. |
I replaced the minetest/src/CMakeLists.txt with the one you mentioned above. When running cmake, i got this error. |
The strange thing is i can build successfully if i get the latest code from github which is 5.8.0. On the same Mac and follow the same build steps. |
It looks like your source code checkout is just broken/corrupted. Try deleting it and start over. |
Minetest version
OS / Hardware
Operating system: MacOS
CPU: Intel
GPU model:
OpenGL version: 2.1
Summary
I used to build this version successfully in my MacBook. But today, i got a strange error.
I also take a look at minetest/lib/lua/src/lualib.h. There is no definition of luaopen_bit or LUA_BITLIBNAME and LUA_JITLIBNAME
Steps to reproduce
git clone --depth 1 https://github.com/minetest/minetest.git
cd minetest
git clone --depth 1 https://github.com/minetest/irrlicht.git lib/irrlichtmt
mkdir build
cd build
cmake ..
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.7
-DBUILD_SERVER=FALSE
-DBUILD_CLIENT=TRUE
-DENABLE_GETTEXT=TRUE
-DENABLE_FREETYPE=FALSE
-DENABLE_GETTEXT=TRUE
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_INSTALL_PREFIX=../build/macos/
-DRUN_IN_PLACE=FALSE
make package -j$(sysctl -n hw.logicalcpu)
The text was updated successfully, but these errors were encountered: