adct-the-experimenter / binaural-audio-editor

This is an audio application that produces 3D binaural audio from 2D mono audio samples and positional information given by the graphical user interface. Listen to 3D audio through stereo headphones. Video Demo:https://www.youtube.com/watch?v=peF9cZSwVGw
BSD 3-Clause "New" or "Revised" License
57 stars 6 forks source link

wxWidgets library not being linked #46

Open Kashyapdevesh opened 3 years ago

Kashyapdevesh commented 3 years ago
$ 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 commented 3 years ago

Thank you for the notification.

I will look into it.

adct-the-experimenter commented 3 years ago

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 commented 3 years ago
$ 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, https://github.com/seandepagnier/rtlsdr_pi/issues/25

adct-the-experimenter commented 3 years ago

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