I have followed the instructions for building on the wxlua GitHub page to the letter, wxWidgets builds and tests fine, but when I go to build wxlua, it fails when it is linking to the wxWidgets build.
I spoke to Paul over at the wxlua GitHub page, he thinks the error I am getting may have to do with how I configured wxWidgets. I have tried countless configs of both wxWidgets and wxlua to no avail, keep getting this error:
[ 90%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlcallb.cpp.o
[ 90%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlconsole.cpp.o
[ 91%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxllua.cpp.o
[ 91%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlobject.cpp.o
[ 92%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlstate.cpp.o
[ 93%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlua_bind.cpp.o
[ 93%] Linking CXX shared library ../../lib/Debug/libwx.dylib
ld: framework not found -lAVKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/Debug/libwx.dylib] Error 1
make[1]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
make: *** [all] Error 2
Has anybody on here managed to build wxlua on MacOS 10.15.7, using wxWidgets 3.1.4 and wxlua 3.1.0.0?
I am not very conversant with make and cmake tools, have hacked around cmake as much as I could, but still no joy.
The latest configure I used for wxWidgets is:
Code: Select all
#!/bin/bash
# Mac OS X global settings
MACOSX_ARCH="x86_64"
MACOSX_VERSION="10.15"
MACOSX_SDK_PATH="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk"
../configure --prefix=$PWD \
--with-osx-cocoa \
--enable-unicode \
--disable-shared \
--enable-macosx_arch=$MACOSX_ARCH \
--with-macosx-version-min=$MACOSX_VERSION \
--with-macosx-sdk=$MACOSX_SDK_PATH \
\
--enable-debug 2>&1 | tee configure-basic.log
Thx...IanQ