View previous topic :: View next topic |
Author |
Message |
pgu l33t

Joined: 30 Jul 2009 Posts: 722 Location: Oslo, Norway
|
Posted: Wed Feb 15, 2023 7:01 am Post subject: [SOLVED] cmake find_package(wxWidgets) libraries not found |
|
|
cmake find_package(wxWidgets) libraries not found
I'm trying to build https://github.com/myriadrf/LimeSuite.git:
Code: | $ git describe --tags
v22.09.1
$ git rev-parse --short HEAD
b18db192
$ mkdir pgu-build
$ cd pgu-build/
$ cmake ..
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- 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:19 (cmake_policy):
The OLD behavior for policy CMP0077 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Enabling native optimizations
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Found libusb-1.0:
-- - Includes: /usr/include/libusb-1.0
-- - Libraries: /usr/lib64/libusb-1.0.so
-- USB_INCLUDE_DIRS: /usr/include/libusb-1.0
-- USB_LIBRARIES: /usr/lib64/libusb-1.0.so
-- USB_INCLUDE_DIRS: /usr/include/libusb-1.0
-- USB_LIBRARIES: /usr/lib64/libusb-1.0.so
-- Looking for wiringPi.h
-- Looking for wiringPi.h - not found
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES)
-- wxWidgets_DEFINITIONS: _FILE_OFFSET_BITS=64;WXUSINGDLL;__WXGTK__
-- wxWidgets_INCLUDE_DIRS: /usr/lib64/wx/include/gtk3-unicode-3.0-gtk3;/usr/include/wx-3.0-gtk3
-- wxWidgets_LIBRARIES:
-- Found Gnuplot: /usr/bin/gnuplot (found version "5.4.4.4 (Gentoo revision r0)")
-- GNUPlot Found
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found FLTK: /usr/lib64/fltk/libfltk_images.so;/usr/lib64/fltk/libfltk_forms.so;/usr/lib64/fltk/libfltk_gl.so;/usr/lib64/fltk/libfltk.so
-- Found Git: /usr/bin/git (found version "2.39.1")
-- Module LMS7Support configured with version: 22.09.1-b18db192
--
-- ######################################################
-- ## LimeSuite enabled features
-- ######################################################
--
* LimeSuiteHeaders, The lime suite headers
* LimeSuiteLibrary, The lime suite library
* ConnectionFX3, FX3 Connection support
* ConnectionFTDI, FTDI Connection support
* ConnectionXillybus, PCIE Xillybus Connection support
* LimeSuiteExamples, LimeSuite library API examples
* LimeRFE, LimeRFE support
* LimeUtilCommand, Command line device discovery utility
* LimeQuickTest, LimeSDR-QuickTest Utility
* SoapySDRLMS7, SoapySDR bindings for LMS7
* LimeSuiteOctave, LimeSuite Octave integration
-- ######################################################
-- ## LimeSuite disabled features
-- ######################################################
--
* ConnectionEVB7COM, EVB+COM Connection support
* ConnectionSTREAM_UNITE, STREAM+UNITE Connection support
* ConnectionSPI, Rasp Pi 3 SPI Connection support
* LimeSuiteGUI, GUI Application for LimeSuite
* LimeSuiteDocAPI, LMS API Doxygen documentation
* LimeSuiteDesktop, LimeSuite freedesktop integration
-- Install prefix: /usr/local
-- Build timestamp: 2023-02-15
-- Lime Suite version: 22.09.1-gb18db192
-- ABI/so version: 22.09-1
-- Configuring done
-- Generating done
|
It appears that the message Code: | Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES) | is a result of the CMakeLists.txt entry:
Code: | ########################################################################
## wx widgets dependency
########################################################################
set(wxWidgets_USE_DEBUG OFF)
set(wxWidgets_USE_UNICODE ON)
set(wxWidgets_USE_UNIVERSAL OFF)
set(wxWidgets_USE_STATIC ON)
find_package(wxWidgets COMPONENTS richtext xml html xrc adv aui core base gl)
|
Which packages have to be emerged and possibly which use flags has to be set to satisfy the above wxWidget find_package?
It seem to find the include files, but not the libraries.
Last edited by pgu on Wed Feb 15, 2023 7:46 am; edited 1 time in total |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
Posted: Wed Feb 15, 2023 7:12 am Post subject: |
|
|
I think you should merge x11-libs/wxGTK:3.0-gtk3. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31492 Location: here
|
Posted: Wed Feb 15, 2023 7:12 am Post subject: |
|
|
Moved from Portage & Programming to Unsupported Software. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
pgu l33t

Joined: 30 Jul 2009 Posts: 722 Location: Oslo, Norway
|
Posted: Wed Feb 15, 2023 7:32 am Post subject: |
|
|
fedeliallalinea wrote: | I think you should merge x11-libs/wxGTK:3.0-gtk3. |
Thank you, but I already have it emerged, which is probably why it was able to find the include files. I might need some other USE flags though:
Code: | # emerge -pv x11-libs/wxGTK:3.0-gtk3
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-libs/wxGTK-3.0.5.1-r1:3.0-gtk3::gentoo USE="X gstreamer -debug -doc -libnotify -opengl (-pch) -sdl -test -tiff -webkit" ABI_X86="(64) -32 (-x32)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
|
|
Back to top |
|
 |
pgu l33t

Joined: 30 Jul 2009 Posts: 722 Location: Oslo, Norway
|
Posted: Wed Feb 15, 2023 7:46 am Post subject: |
|
|
The opengl USE flag seem to resolve the issue.
Code: | -- Found wxWidgets: -L/usr/lib64;-pthread;;;-lwx_gtk3u_richtext-3.0-gtk3;-lwx_baseu_xml-3.0-gtk3;-lwx_gtk3u_html-3.0-gtk3;-lwx_gtk3u_xrc-3.0-gtk3;-lwx_gtk3u_adv-3.0-gtk3;-lwx_gtk3u_aui-3.0-gtk3;-lwx_gtk3u_core-3.0-gtk3;-lwx_baseu-3.0-gtk3;-lwx_gtk3u_gl-3.0-gtk3 (found version "3.0.5")
-- wxWidgets_DEFINITIONS: _FILE_OFFSET_BITS=64;WXUSINGDLL;__WXGTK__
-- wxWidgets_INCLUDE_DIRS: /usr/lib64/wx/include/gtk3-unicode-3.0-gtk3;/usr/include/wx-3.0-gtk3
-- wxWidgets_LIBRARIES: -L/usr/lib64;-pthread;;;-lwx_gtk3u_richtext-3.0-gtk3;-lwx_baseu_xml-3.0-gtk3;-lwx_gtk3u_html-3.0-gtk3;-lwx_gtk3u_xrc-3.0-gtk3;-lwx_gtk3u_adv-3.0-gtk3;-lwx_gtk3u_aui-3.0-gtk3;-lwx_gtk3u_core-3.0-gtk3;-lwx_baseu-3.0-gtk3;-lwx_gtk3u_gl-3.0-gtk3
|
|
|
Back to top |
|
 |
salfter Tux's lil' helper

Joined: 02 Jan 2003 Posts: 89
|
Posted: Fri Feb 02, 2024 2:15 am Post subject: |
|
|
pgu wrote: | The opengl USE flag seem to resolve the issue.
Code: | -- Found wxWidgets: -L/usr/lib64;-pthread;;;-lwx_gtk3u_richtext-3.0-gtk3;-lwx_baseu_xml-3.0-gtk3;-lwx_gtk3u_html-3.0-gtk3;-lwx_gtk3u_xrc-3.0-gtk3;-lwx_gtk3u_adv-3.0-gtk3;-lwx_gtk3u_aui-3.0-gtk3;-lwx_gtk3u_core-3.0-gtk3;-lwx_baseu-3.0-gtk3;-lwx_gtk3u_gl-3.0-gtk3 (found version "3.0.5")
-- wxWidgets_DEFINITIONS: _FILE_OFFSET_BITS=64;WXUSINGDLL;__WXGTK__
-- wxWidgets_INCLUDE_DIRS: /usr/lib64/wx/include/gtk3-unicode-3.0-gtk3;/usr/include/wx-3.0-gtk3
-- wxWidgets_LIBRARIES: -L/usr/lib64;-pthread;;;-lwx_gtk3u_richtext-3.0-gtk3;-lwx_baseu_xml-3.0-gtk3;-lwx_gtk3u_html-3.0-gtk3;-lwx_gtk3u_xrc-3.0-gtk3;-lwx_gtk3u_adv-3.0-gtk3;-lwx_gtk3u_aui-3.0-gtk3;-lwx_gtk3u_core-3.0-gtk3;-lwx_baseu-3.0-gtk3;-lwx_gtk3u_gl-3.0-gtk3
|
|
I'm trying to build OrcaSlicer, and running into the same problem. I already had that USE flag set, as well as some others: X gstreamer libnotify opengl sdl tiff webkit. Even with all of these set, cmake won't configure it. I'm trying to rebuild x11-libs/wxGTK:3.2-gtk3 next (with this set of USE flags: X gstreamer libnotify lzma opengl sdl spell tiff wayland webkit)...will see if it'll build with that.
Update: OrcaSlicer finally configured (against x11-libs/wxGTK:3.0-gtk3) with this command:
Code: | cmake -DOPENVDB_FIND_MODULE_PATH=/usr/lib64/cmake/OpenVDB -DSLIC3R_PCH=0 -DSLIC3R_WX_STABLE=1 -DSLIC3R_GTK=3 .. |
It's building now...crossing my fingers that it works, as the provided appimage doesn't work. If it does, the next step will be to try building it in a container against a bare stage3 image so I can suss out the full set of dependencies.
Update 2: Failed...figured out how to build against wxGTK:3.2-gtk3 by using eselect wxwidgets set. I don't know how that's going to translate into an ebuild, though. In addition, I need to verify that it'll build against it. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|