[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problem with installation of wxLua: wxColour has no member `GetPixel` (solved)
 
- From: Claudio Grondi <claudio.grondi@...>
 
- Date: Thu, 16 Nov 2023 17:54:15 +0100
 
In between I have succeeded in downloading the master version from 
github:  https://github.com/pkulchenko/wxlua ; (I am on a slow Internet 
with 7 KByte/s and was not able to get files larger than appr. 1.2 MByte 
from github - this seems miraculously no more to be the case)
The downloaded version compiled and created
/oOo/oo/wxLua-3.2-github-master/wxLua/BUILD/bin/Release/lua
/oOo/oo/wxLua-3.2-github-master/wxLua/BUILD/bin/Release/luac
/oOo/oo/wxLua-3.2-github-master/wxLua/BUILD/bin/Release/wxLua
/oOo/oo/wxLua-3.2-github-master/wxLua/BUILD/bin/Release/wxLuaCan
/oOo/oo/wxLua-3.2-github-master/wxLua/BUILD/bin/Release/wxLuaFreeze
executable files. OK ... problem solved.
The mystery how it comes that the old version seems to have an issue is 
still maybe worth an explanation - strange that the code appears to have 
a bug - I think it can't be, so I am missing some understanding making 
me able to know what the reason could be.
My current understanding of wxLua is that there is a small overhead of 
using an additional executable (wxLua) compared to writing of compiled 
C-code which is using the wxWidgets library with the advantage of being 
able to use Lua syntax and Lua-way of exposing the wxWidgets API for 
writing the GUI application and the code the callback functions.
The next step after the installation would be to see how to catch up any 
user input (keyboard and mouse actions) for custom purposes of being 
able to stop delivering the events to the GUI-widgets or modify them and 
deliver modified or other events to the widgets.
Claudio
On 11/16/23 15:47, Claudio Grondi 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.