Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

wxWidgets library not being linked #46

Open
Kashyapdevesh opened this issue Apr 19, 2021 · 4 comments
Open

wxWidgets library not being linked #46

Kashyapdevesh opened this issue Apr 19, 2021 · 4 comments

Comments

@Kashyapdevesh
Copy link

$ cmake .. -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
  wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindwxWidgets.cmake:1008 (find_package_handle_standard_args)
  CMakeLists.txt:15 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/devesh/binaural-audio-editor/build/CMakeFiles/CMakeOutput.log".

I'm not being able to build the software,the process is failing at cmake build step.
I'm using Ubuntu 20.04.2 and I have installed all the other dependencies required.
I tried recompiling wxWidgets both with gtk2 and gtk3 ,wxWidgets gets built sucessfully but build process of binaural audio editor fails in both the cases.
In the above code snippet i was using gtk2,and the wx-config file was named "wx-config" instead of "wx-config-gtk3",apart from this minor change i have followed the guide.

@adct-the-experimenter
Copy link
Owner

Thank you for the notification.

I will look into it.

@adct-the-experimenter
Copy link
Owner

What is returned from running wx-config --libs command in terminal?

Does installing wx3.0-headers and libwxgtk3.0-gtk3-0v5 package work?
https://forums.wxwidgets.org/viewtopic.php?f=19&t=47654&p=201525&hilit=wxwidgets+ubuntu+20#p201525

@Kashyapdevesh
Copy link
Author

Kashyapdevesh commented Apr 20, 2021

$ wx-config --libs
-L/usr/local/lib -pthread   -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 


$ wx-config --cxxflags
-I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread

Installing the above headers didn't work.
While searching for a solution,I found a similar issue on a different application,maybe this could help,
seandepagnier/rtlsdr_pi#25

@adct-the-experimenter
Copy link
Owner

Hi. On a related note.

Try 3D Audio Producer. It will replace binaural audio editor because it uses a very portable lightweight C library for graphics.
https://github.com/adct-the-experimenter/3d-audio-producer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants