Build issue Raspberry Pi Buster Raspian Debian

Use this category to discuss anything related to the development of Guayadeque.
Locked
DrJohnM61
Posts: 2
Joined: Mon Jun 07, 2021 4:09 pm

Build issue Raspberry Pi Buster Raspian Debian

Post by DrJohnM61 »

I have pulled the git repository and installed the recommended libraries and attempted to perform a ./build, however, I get the following issue during the link process.:

$ ./build
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
The OLD behavior for policy CMP0037 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.


-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using install prefix /usr ...
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Found wxWidgets: -L/usr/local/lib;-pthread;;;/usr/local/lib/libwx_baseu_net-3.1.a;/usr/local/lib/libwx_gtk3u_aui-3.1.a;/usr/local/lib/libwx_gtk3u_qa-3.1.a;/usr/local/lib/libwx_gtk3u_html-3.1.a;/usr/local/lib/libwx_gtk3u_core-3.1.a;/usr/local/lib/libwx_baseu_xml-3.1.a;/usr/local/lib/libwx_baseu-3.1.a;-lgthread-2.0;-pthread;-lX11;-lSM;-lgtk-3;-lgdk-3;-lpangocairo-1.0;-latk-1.0;-lcairo-gobject;-lcairo;-lgdk_pixbuf-2.0;-lgio-2.0;-lXtst;-lpangoft2-1.0;-lpango-1.0;-lgobject-2.0;-lglib-2.0;-lfontconfig;-lfreetype;-lwxtiff-3.1;-lwxjpeg-3.1;-lwxregexu-3.1;-lwxscintilla-3.1;-lexpat;-lpng;-lz;-ldl;-lcurl;-lm (found version "3.1.5")
-- Checking for module 'gstreamer-1.0'
-- Found gstreamer-1.0, version 1.14.4
-- Checking for module 'gstreamer-pbutils-1.0'
-- Found gstreamer-pbutils-1.0, version 1.14.4
-- Checking for module 'gstreamer-tag-1.0'
-- Found gstreamer-tag-1.0, version 1.14.4
-- Checking for module 'sqlite3'
-- Found sqlite3, version 3.27.2
-- Checking for module 'libcurl'
-- Found libcurl, version 7.64.0
-- Checking for module 'taglib>=1.6.4'
-- Found taglib, version 1.11.1
-- Checking for module 'dbus-1'
-- Found dbus-1, version 1.12.20
-- Checking for module 'gdk-pixbuf-2.0'
-- Found gdk-pixbuf-2.0, version 2.38.1
-- Checking for module 'gio-2.0'
-- Found gio-2.0, version 2.58.3
-- Checking for module 'libgpod-1.0'
-- Found libgpod-1.0, version 0.8.3
-- Checking for module 'indicate-0.7'
-- Found indicate-0.7, version 0.6.92
-- Checking for module 'wxsqlite3'
-- No package 'wxsqlite3' found
-- Checking for module 'wxsqlite3-3.0'
-- Found wxsqlite3-3.0, version
-- Checking for module 'jsoncpp'
-- Found jsoncpp, version 1.7.4
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/guayadeque
[ 1%] Linking CXX executable guayadeque
/usr/bin/ld: CMakeFiles/guayadeque.dir/audio/MediaCtrl.cpp.o: undefined reference to symbol '_ZN18wxBaseArrayPtrVoid8RemoveAtEjj@@WXU_3.0'
/usr/bin/ld: //lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/guayadeque.dir/build.make:2041: src/guayadeque] Error 1
make[1]: *** [CMakeFiles/Makefile2:784: src/CMakeFiles/guayadeque.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I have searched in this forum and on the internet for a solution but without success.

I note the error: -- Checking for module 'wxsqlite3'
-- No package 'wxsqlite3' found
However, I see that the 3-3.0 version is found and assume that this is a warning. I also cannot find a way to explicitly install the v3 library

Environment: Raspberry pi 4 2gb, Linux 5.10.17-v7l+ #1421 SMP armv7l

Any help is much appreciated.

Regards
DrJohnM61
Posts: 2
Joined: Mon Jun 07, 2021 4:09 pm

Re: Build issue Raspberry Pi Buster Raspian Debian

Post by DrJohnM61 »

OK - fixed.

1. removed all wx files from /usr/local/lib/
$ cd /usr/local/lib
$ sudo rm *wx*
$ sudo rem -r wx

2. installed wxwidgets-sdk-gtk3 using snap (from this article https://snapcraft.io/install/wxwidgets- ... 3/raspbian)
$ sudo apt update
$ sudo apt install snapd
$ sudo reboot
$ sudo snap install core
$ sudo snap install wxwidgets-sdk-gtk3

$ ./build # everything re-compiles
$ sudo make install

Now works
Locked