Working my way through Vala. I am still trying to get the Slingshot App to work, but ran into another compiling issue that I can’t figure out.
The are zillions of answers on the net for Java, but only few threads for Vala.
When I try to compile, I get the error message:
/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols:
DSO missing from command line collect2:
error: ld returned 1 exit status
I found an answer on StackOverFlow, that recommends to install the missing library. Searching on Ubuntu Packages, the closest package in name I found, was
libm17n-dev
what I installed and added to the meson build file, what now looks like this:
executable(
meson.project_name(),
'./SlingshotWindow.vala',
'./Frontend/Widgets/Utilities.vala',
'./Frontend/Widgets/Color.vala',
'./Backend/GMenuEntries.vala',
'./Frontend/Widgets/CompositedWindow.vala',
'./Frontend/Widgets/Searchbar.vala',
'./Frontend/Widgets/AppItem.vala',
'./Frontend/Widgets/Indicators.vala',
dependencies: [
dependency('gtk+-3.0'),
dependency('gee-0.8'),
dependency('gio-unix-2.0'),
dependency('libgnome-menu-3.0'),
#dependency('libm17n-dev')
],
c_args: [
'-DGMENU_I_KNOW_THIS_IS_UNSTABLE',
],
install: true
)
Compiling that returns:
Dependency libm17n-dev found: NO (tried pkgconfig and cmake)
meson.build:5:4: ERROR: Dependency "libm17n-dev" not found,
tried pkgconfig and cmake
sudo apt install libm17n-dev
gives:
libm17n-dev is already the newest version (1.8.0-2)
Am I on the right track?