lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



I am in the process of compiling wxLua from source on Linux Mint 21.2 Xfce with installed wxWidgets headers package `wx3.0-headers` using `wxLua-2.8.12.3-src.tar.gz` getting following error:

```
[1/102] Building CXX object modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxcore_gdi.cpp.o
FAILED: modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxcore_gdi.cpp.o
/usr/bin/c++ -DWXMAKINGDLL_WXBIND -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxLUA_USEBINDING_WXADV=1 -DwxLUA_USEBINDING_WXAUI=1 -DwxLUA_USEBINDING_WXBASE=1 -DwxLUA_USEBINDING_WXCORE=1 -DwxLUA_USEBINDING_WXGL=1 -DwxLUA_USEBINDING_WXHTML=1 -DwxLUA_USEBINDING_WXMEDIA=1 -DwxLUA_USEBINDING_WXNET=1 -DwxLUA_USEBINDING_WXPROPGRID=0 -DwxLUA_USEBINDING_WXRICHTEXT=1 -DwxLUA_USEBINDING_WXSTC=1 -DwxLUA_USEBINDING_WXXML=1 -DwxLUA_USEBINDING_WXXRC=1 -I/oOo/oo/wxLua-2.8.12.3-src/modules/wxbind/setup -I/oOo/oo/wxLua-2.8.12.3-src -I/oOo/oo/wxLua-2.8.12.3-src/modules -I/oOo/oo/wxLua-2.8.12.3-src/modules/lua-5.1/src -isystem /usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -isystem /usr/include/wx-3.0 -Wall -fPIC -pthread -O3 -DNDEBUG -fPIC -Wno-deprecated-declarations -MD -MT modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxcore_gdi.cpp.o -MF modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxcore_gdi.cpp.o.d -o modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxcore_gdi.cpp.o -c /oOo/oo/wxLua-2.8.12.3-src/modules/wxbind/src/wxcore_gdi.cpp /oOo/oo/wxLua-2.8.12.3-src/modules/wxbind/src/wxcore_gdi.cpp: In function ‘int wxLua_wxColour_GetPixel(lua_State*)’: /oOo/oo/wxLua-2.8.12.3-src/modules/wxbind/src/wxcore_gdi.cpp:5169:28: error: ‘class wxColour’ has no member named ‘GetPixel’
 5169 |     long  returns = (self->GetPixel());
      |                            ^~~~~~~~
[6/102] Building CXX object modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxcore_menutool.cpp.o
ninja: build stopped: subcommand failed.
```

Any hints how to fix it?
The GetPixel method seems only to return a pointer and are not further described in the wxWidgets documentation.