Closed sonoro1234 closed 3 years ago
The key seems to be wxWidgets:
I can build latest wxLua with https://github.com/sonoro1234/wxWidgets but not with newest ones.
I'll have to check. Just to confirm, are you trying to build the latest wxwidgets (from the master branch) using the latest wxlua (from the master branch)?
In ZeroBraneStudio build you are using wxLua tag 3.0.0.8. Should I do the same?
There were some changes in the wxwidgets API that were integrated in wxlua with a larger version. v3.0.0.8 should work with the code in https://github.com/pkulchenko/wxWidgets. I'd still expect the most recent (master branch) wxlua version to work with the most recent (master branch) wxwidgets version and if it doesn't, I'll check what may be going on.
I'll have to check. Just to confirm, are you trying to build the latest wxwidgets (from the master branch) using the latest wxlua (from the master branch)?
I did try wxWidgets 3.1.5 with latest wxLua with the results reported in the first post. I will try again with latest wxWidgets. (fails in cmake from wxWidgets) I only succeded with https://github.com/sonoro1234/wxWidgets
(All builds are done with https://github.com/sonoro1234/Lua2SC/tree/master/wxLuaBundled which could have some errors I am not aware of)
The issues with wxwidgets 3.1.5 are also covered in #98 and #80. You may check those to see if the problems may apply to this case.
I'm building with the most recent wxwidgets to check...
In linux I am using .\configure
to build wxWidgets but in windows I am using CMakeLists.txt , and this was failing with last wxWidgets
May be this explains everything and I can not relay on CMakeList.txt from wxWidgets. It worked with https://github.com/sonoro1234/wxWidgets but got broken afterwards
Interesting; I also always use ./configure
and don't see the issue so far; maybe report it to wxwidgets if you suspect that the issue is with CMake configuration there.
could build (almost) with last wxWidgets cmake. It is broken for 3.1.4 and 3.1.5 but works in last (3.1.6 WIP)
Only getting a linking error for wx.dll
[100%] Linking CXX shared library ..\..\..\..\..\bin\Release\wx.dll
cd /d C:\supercolliderrepos\buildLua2SC3\wxLuaBundled\wxlua\wxLua\modules\luamodule && C:\cmakes\cmake-3.21.3-windows-x86_64\bin\cmake.exe -E cmake_li
nk_script CMakeFiles\wxLuaModule.dir\link.txt --verbose=1
C:\cmakes\cmake-3.21.3-windows-x86_64\bin\cmake.exe -E rm -f CMakeFiles\wxLuaModule.dir/objects.a
C:\mingws\i686-8.1.0-release-posix-dwarf-rt_v6-rev0\mingw32\bin\ar.exe qc CMakeFiles\wxLuaModule.dir/objects.a @CMakeFiles\wxLuaModule.dir\objects1.rs
p
C:\mingws\i686-8.1.0-release-posix-dwarf-rt_v6-rev0\mingw32\bin\g++.exe -DLUA_COMPAT_MODULE -DwxDEBUG_LEVEL=0 -Wall -O3 -DNDEBUG -shared -o ..\..\..\
..\..\bin\Release\wx.dll -Wl,--out-implib,..\..\..\..\..\lib\Release\libwx.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archi
ve CMakeFiles\wxLuaModule.dir/objects.a -Wl,--no-whole-archive @CMakeFiles\wxLuaModule.dir\linklibs.rsp
../../../../build_wx/install/lib/gcc_lib/libwxmsw31u_stc.a(ScintillaWX.cpp.obj):ScintillaWX.cpp:(.text+0x3194): undefined reference to `ImmGetContext@
4'
../../../../build_wx/install/lib/gcc_lib/libwxmsw31u_stc.a(ScintillaWX.cpp.obj):ScintillaWX.cpp:(.text+0x320f): undefined reference to `ImmSetComposit
ionWindow@8'
../../../../build_wx/install/lib/gcc_lib/libwxmsw31u_stc.a(ScintillaWX.cpp.obj):ScintillaWX.cpp:(.text+0x3302): undefined reference to `ImmSetComposit
ionFontW@8'
../../../../build_wx/install/lib/gcc_lib/libwxmsw31u_stc.a(ScintillaWX.cpp.obj):ScintillaWX.cpp:(.text+0x3322): undefined reference to `ImmReleaseCont
ext@8'
../../../../build_wx/install/lib/gcc_lib/libwxmsw31u_stc.a(ScintillaWX.cpp.obj):ScintillaWX.cpp:(.text.unlikely+0x27e): undefined reference to `ImmRel
easeContext@8'
collect2.exe: error: ld returned 1 exit status
The reason seems to be imm
should be added as library
solved in #102
Using wxWidgets 3.1.5 and last wxLua with mingw-64 for 32bits:
wxLua says
WARNING : Unable to find 'C:/supercolliderrepos/buildLua2SC3/wxLuaBundled/build_wx/install/include/wx/version.h'
but the actual place is:
C:\supercolliderrepos\buildLua2SC3\wxLuaBundled\build_wx\install\include\wx-3.1\wx
the full log is:
with https://github.com/pkulchenko/wxWidgets everything works. I will stick to this.
But then in the building phase:
In ZeroBraneStudio build you are using wxLua tag 3.0.0.8. Should I do the same?