LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2021, 08:51 AM   #1
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 336

Rep: Reputation: Disabled
wxLua 3.1.0.0 build on current


I'm trying to build this on current as a dependency for another program. I get all the way to 95% complete before it errors out. Not sure if I'm missing a cmake option for this to work or if there is something else wrong.
This is what I get. Any help would be appreciated. Thanks.

Code:
[ 94%] Built target wxLuaModule
make  -f apps/wxlua/CMakeFiles/wxLua_app.dir/build.make apps/wxlua/CMakeFiles/wxLua_app.dir/depend
make[2]: Entering directory '/opt/wxlua-3.1.0.0/wxLua/lua_build'
cd /opt/wxlua-3.1.0.0/wxLua/lua_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /opt/wxlua-3.1.0.0/wxLua /opt/wxlua-3.1.0.0/wxLua/apps/wxlua /opt/wxlua-3.1.0.0/wxLua/lua_build /opt/wxlua-3.1.0.0/wxLua/lua_build/apps/wxlua /opt/wxlua-3.1.0.0/wxLua/lua_build/apps/wxlua/CMakeFiles/wxLua_app.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/opt/wxlua-3.1.0.0/wxLua/lua_build'
make  -f apps/wxlua/CMakeFiles/wxLua_app.dir/build.make apps/wxlua/CMakeFiles/wxLua_app.dir/build
make[2]: Entering directory '/opt/wxlua-3.1.0.0/wxLua/lua_build'
[ 95%] Linking CXX executable ../../bin/Release/wxLua
cd /opt/wxlua-3.1.0.0/wxLua/lua_build/apps/wxlua && /usr/bin/cmake -E cmake_link_script CMakeFiles/wxLua_app.dir/link.txt --verbose=1
/usr/libexec/icecc/bin/c++   -Wall -fPIC -pthread -O3 -DNDEBUG -rdynamic CMakeFiles/wxLua_app.dir/wxlua.cpp.o -o ../../bin/Release/wxLua  -Wl,-rpath,/opt/wxlua-3.1.0.0/wxLua/lua_build/lib/Release: ../../lib/Release/libwxlua_debugger-wx31-3.1.0.0.so ../../lib/Release/libwxlua_debug-wx31-3.1.0.0.so -L/usr/lib64 -pthread -lwx_gtk3u_gl-3.1 -lwx_gtk3u_xrc-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_gtk3u_media-3.1 -lwx_gtk3u_richtext-3.1 -lwx_gtk3u_aui-3.1 -lwx_gtk3u_stc-3.1 -lwx_gtk3u_html-3.1 -lwx_gtk3u_core-3.1 -lwx_baseu-3.1 ../../lib/Release/libwxlua_bind-wx31-3.1.0.0.so ../../lib/Release/libwxlua-wx31-3.1.0.0.so ../../lib/Release/libwxlua_lua52-wx31-3.1.0.0.so -lm -ldl -lreadline -lhistory -lncurses -L/usr/lib64 -pthread -lwx_gtk3u_gl-3.1 -lwx_gtk3u_xrc-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_gtk3u_media-3.1 -lwx_gtk3u_richtext-3.1 -lwx_gtk3u_aui-3.1 -lwx_gtk3u_stc-3.1 -lwx_gtk3u_html-3.1 -lwx_gtk3u_core-3.1 -lwx_baseu-3.1 
/usr/bin/ld: ../../lib/Release/libwxlua_bind-wx31-3.1.0.0.so: undefined reference to `wxPluralFormsCalculatorPtr::~wxPluralFormsCalculatorPtr()'
/usr/bin/ld: ../../lib/Release/libwxlua_bind-wx31-3.1.0.0.so: undefined reference to `wxPlatformInfo::GetArchName(wxBitness)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/wxlua/CMakeFiles/wxLua_app.dir/build.make:105: bin/Release/wxLua] Error 1
make[2]: Leaving directory '/opt/wxlua-3.1.0.0/wxLua/lua_build'
make[1]: *** [CMakeFiles/Makefile2:541: apps/wxlua/CMakeFiles/wxLua_app.dir/all] Error 2
make[1]: Leaving directory '/opt/wxlua-3.1.0.0/wxLua/lua_build'
make: *** [Makefile:159: all] Error 2
 
Old 12-22-2021, 09:21 AM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,691

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
I cloned the git repo to get the latest and I also got the same error. Adding this to the cmake build options fixed it for me.

Code:
-DCMAKE_CXX_FLAGS="-DwxLUA_USE_wxTranslations=0"
See here
 
1 members found this post helpful.
Old 12-22-2021, 09:56 AM   #3
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 336

Original Poster
Rep: Reputation: Disabled
wxLua 3.1.0.0 build on current

Which Lua version are you building against?
 
Old 12-22-2021, 11:32 AM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,691

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
5.3 is what I got installed, but it's using an internal version. The build says 5.1. Also using wxGTK3

Code:
cmake -S . -B build \
> -DCMAKE_CXX_FLAGS="-DwxLUA_USE_wxTranslations=0"
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:20 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- * ---------------------------------------------------------------------------
-- * CMake command line options and tips specific to this project 
-- * 
-- * In the CMake GUI you can set values and press configure a few times 
-- * and until there are no more red items, then press generate.
-- * 
-- * Usage: cmake -D[OPTION_NAME]=[OPTION_VALUE] /path/to/CMakeLists.txt/
-- * ---------------------------------------------------------------------------
-- * -DHELP=TRUE 
-- *   Show this help message and exit, no files will be generated.
-- * -DCMAKE_BUILD_TYPE=[Debug, Release, RelWithDebInfo, MinSizeRel] : (Default Debug)
-- *   Makefiles : You must set the build type to Debug, Release...
-- *   MSVC GUI  : No need to set this since you can choose it in the GUI.
-- * -DBUILD_SHARED_LIBS=[TRUE, FALSE] : (Default static in MSW, shared in Linux)
-- *   Build shared (.DLL or .so) or static (.lib or .a) libraries.
-- * ---------------------------------------------------------------------------
--  
-- * No build type was specified, using default 'Debug'
--  
-- *****************************************************************************
-- * BUILD TYPE:        Debug
-- * BUILD_SHARED_LIBS: TRUE
-- *****************************************************************************
-- * System is 32-bit FALSE, is 64-bit TRUE
-- *****************************************************************************
-- * CMAKE_SOURCE_DIR = /tmp/4/wxlua/wxLua
-- * CMAKE_BINARY_DIR = /tmp/4/wxlua/wxLua/build
-- *****************************************************************************
--  
-- * ---------------------------------------------------------------------------
-- * wxWidgets library settings :
-- * 
-- * Note that ONLY an all shared (DLL) or all static build is supported.
-- *   I.E. If you choose shared you must link to shared wxWidgets libs.
-- *   Set -DBUILD_SHARED_LIBS=[TRUE, FALSE] to control shared/static lib.
-- * 
-- * Finding wxWidgets for MSW and MSVC
-- * -DwxWidgets_ROOT_DIR=[path] : (e.g. /path/to/wxWidgets/)
-- *   Path to the root of the wxWidgets build, must at least set this.
-- * -DwxWidgets_LIB_DIR=[path] : (e.g. /path/to/wxWidgets/lib/vc_lib/)
-- *   Path to the wxWidgets lib dir also set this if libs can't be found.
-- * -DwxWidgets_CONFIGURATION=[configuration] : 
-- *   Set wxWidgets configuration; e.g. msw, mswu, mswunivu...
-- *   Where 'u' = unicode and 'd' = debug.
-- *   MSVC GUI : You need only choose msw, mswu, mswuniv, mswunivu since 
-- *              release or debug mode is chosen in the GUI.
-- * -DwxWidgets_COMPONENTS=[...stc;html;adv;core;base or mono] : 
-- *   For non-monolithic builds choose the wxWidgets libs to link to.
-- *    xrc;xml;gl;net;media;propgrid;richtext;aui;stc;html;adv;core;base
-- *   For monolithic builds choose mono and the contribs libs.
-- *    stc;mono
-- *   The extra decorations, e.g. wxmsw28ud_adv.lib, will be searched for.
-- *   Libs that cannot be found will be printed below, please fix/remove
-- *   them to be able to build this project.
-- *   You will get compilation/linker errors if wxWidgets is not found.
-- * 
-- * Finding wxWidgets for GCC and Unix type systems
-- * -DwxWidgets_CONFIG_EXECUTABLE=[path/to/wx-config] : 
-- *   Specify path to wx-config script for GCC and Unix type builds
-- * ---------------------------------------------------------------------------
--  
-- * WARNING : Unable to find '/include/wx/version.h'
-- *           Please set wxWidgets_CONFIG_EXECUTABLE to point to wx-config script.
-- * Note: wxWidgets libs; Removing 'propgrid' lib from wxWidgets_COMPONENTS since it didn't exit in wx < 2.9
-- * Using these wxWidgets components: gl;xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
-- Found wxWidgets: -L/usr/lib64;-pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_xrc-3.0;-lwx_baseu_xml-3.0;-lwx_baseu_net-3.0;-lwx_gtk3u_media-3.0;-lwx_gtk3u_richtext-3.0;-lwx_gtk3u_aui-3.0;-lwx_gtk3u_stc-3.0;-lwx_gtk3u_html-3.0;-lwx_gtk3u_adv-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu-3.0 (found version "3.0.5") 
-- * 
-- * Found wxWidgets :
-- * - wxWidgets_VERSION           =  = ..
-- * - wxWidgets_COMPONENTS        = gl;xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
-- * - wxWidgets_INCLUDE_DIRS      = /usr/lib64/wx/include/gtk3-unicode-3.0;/usr/include/wx-3.0
-- * - wxWidgets_LIBRARY_DIRS      = 
-- * - wxWidgets_LIBRARIES         = -L/usr/lib64;-pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_xrc-3.0;-lwx_baseu_xml-3.0;-lwx_baseu_net-3.0;-lwx_gtk3u_media-3.0;-lwx_gtk3u_richtext-3.0;-lwx_gtk3u_aui-3.0;-lwx_gtk3u_stc-3.0;-lwx_gtk3u_html-3.0;-lwx_gtk3u_adv-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu-3.0
-- * - wxWidgets_CXX_FLAGS         = -pthread
-- * - wxWidgets_DEFINITIONS       = _FILE_OFFSET_BITS=64;__WXGTK__
-- * - wxWidgets_DEFINITIONS_DEBUG = 
-- * - wxWidgets_PORTNAME          = gtk3
-- * - wxWidgets_UNIVNAME          = 
-- * - wxWidgets_UNICODEFLAG       = u
-- * - wxWidgets_DEBUGFLAG         = 
-- * 
-- * WARNING: Specified wxLuaBinding lib 'webview' in variable wxLuaBind_COMPONENTS is missing from wxWidgets_COMPONENTS so it will not be compiled.
-- * WARNING: Specified wxLuaBinding lib 'propgrid' in variable wxLuaBind_COMPONENTS is missing from wxWidgets_COMPONENTS so it will not be compiled.
-- * wxLua using built-in Lua 5.1 library
-- * WARNING: cppcheck NOT found, NOT generating ADD_CPPCHECK_TEST() tests
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.2") found components: doxygen missing components: dot
-- * Doxygen found, run $make wxLua_doxygen to generate documentation in build folder.
CMake Deprecation Warning at bindings/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/4/wxlua/wxLua/build
Here is my compile output

Last edited by Daedra; 12-22-2021 at 11:52 AM.
 
1 members found this post helpful.
Old 12-22-2021, 01:18 PM   #5
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,691

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Also tested it with disabling internal lua 5.1 and using shared lua 5.3. It compiled fine with these cmake settings.

Code:
cmake -S . -B build \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
    -DwxLua_LUA_LIBRARY_BUILD_SHARED=TRUE \
    -DwxLua_LUA_LIBRARY="/usr/lib64/liblua5.3.so" \
    -DwxLua_LUA_INCLUDE_DIR="/usr/include/lua5.3" \
    -DCMAKE_CXX_FLAGS="-DwxLUA_USE_wxTranslations=0" \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_SHARED_LIBS=TRUE
make -C build
 
2 members found this post helpful.
Old 12-23-2021, 08:54 AM   #6
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 336

Original Poster
Rep: Reputation: Disabled
I used your flags and built it using Lua 5.4 and wxWidgets 3.1.5. Thanks for the help. I'll mark this as solved.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Follow on re: CLISP re-build using current - does CLISP on current work with quicklisp ? badbetty Slackware 10 04-11-2018 02:47 PM
[SOLVED] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
Kazaa lite 2.0 build 2 and 2.02 build 5 walterw Linux - General 1 02-04-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration