lua-users home
lua-l archive

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


Hi Claudio,

> 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:

It looks like GetPixel is not implemented in wxlua, as it returns a platform-specific value with different types, which was difficult to map. Can you possibly remap it to GetRGBA or a similar call?

If you don't need this call and just want to compile the library, then I suggest using a more recent version of wxlua, as the correct binding shouldn't be referencing the GetPixel method. I've been maintaining wxlua and the more recent versions are available in the project repository (https://github.com/pkulchenko/wxlua/tags) and should work with wxwidgets 3.0+. If you run into issues compiling one of the recent versions, don't hesitate to open a ticket.

Paul.

On Thu, Nov 16, 2023 at 6:47 AM Claudio Grondi <claudio.grondi@freenet.de> wrote:

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.