July 09, 2020, 10:08:00 AM

Author Topic: SoLoud on Ubuntu  (Read 232 times)

Offline wombats

  • Jr. Member
  • **
  • Posts: 51
SoLoud on Ubuntu
« on: May 31, 2020, 03:54:38 PM »
Hi,

I'm trying to use BlitzMax NG on Ubuntu 20.04, but when building modules, I get this error:

Compile Error

Can't create abstract instance of type TOSSSoloudAudioDriver due to abstract Method TSoLoudAudioDriver.Backend.Int()


How can I fix this?

Offline fightlessbirds

  • Jr. Member
  • **
  • Posts: 10
Re: SoLoud on Ubuntu
« Reply #1 on: May 31, 2020, 08:15:51 PM »
Maybe a missing dependancy?  ???

From the Linux section of the setup guide:
Code: [Select]
(Ubuntu 18.04)

Base dependancies:
sudo apt install g++ libglu1-mesa-dev libasound2-dev libfreetype6-dev libxpm-dev libxft-dev libxxf86vm-dev libpulse-dev libopenal-dev libwebkit2gtk-4.0-dev libgtk-3-dev

SDL dependancies:
sudo apt install libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev libaudio-dev

When installing BlitzMax on Ubuntu 20.04 you'll need to add the Xenial repo to satisfy the libudev-dev dependancy. (Software Updater -> Settings... -> Other Software -> Add... -> deb http://us.archive.ubuntu.com/ubuntu/ xenial universe)

Offline fightlessbirds

  • Jr. Member
  • **
  • Posts: 10
Re: SoLoud on Ubuntu
« Reply #2 on: May 31, 2020, 08:50:12 PM »
Hmm. I just tried this myself and I'm getting the exact same error when building modules. (Ubuntu 20.04)

Offline Derron

  • Hero Member
  • *****
  • Posts: 3034
Re: SoLoud on Ubuntu
« Reply #3 on: June 01, 2020, 07:27:08 AM »
Could you try replacing the audio module with the version of 25th of december 2019?

https://github.com/bmx-ng/audio.mod/tree/7c598f1829daee89b4cda4e0507145ecb8bb4250

I had to go back to it as the current revision has an issue presented to me:
Code: [Select]
./bmk makeapp -g x64 -t gui -a -r -x "/home/ronny/Arbeit/Projekte/TVTower/TVTower.Personen/TVTower.bmx" (im Verzeichnis: /home/ronny/Arbeit/Tools/BlitzMaxNG/bin)
[  7%] Processing:base.framework.entity.base.bmx
[...]
[ 94%] Compiling:main.bmx.release.linux.x64.c
[ 94%] Compiling:TVTower.bmx.gui.release.linux.x64.c
[ 97%] Archiving:sdl.release.linux.x64.a
[ 98%] Archiving:soloud.release.linux.x64.a
[...]
[ 99%] Archiving:gl2sdlmax2d.release.linux.x64.a
ar: Erzeugen von /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/sdl.mod/sdl.mod/sdl.release.linux.x64.a
ar: Erzeugen von /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.a
[...]
ar: Erzeugen von /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/sdl.mod/gl2sdlmax2d.mod/gl2sdlmax2d.release.linux.x64.a
[100%] Linking:TVTower
/home/ronny/Arbeit/Tools/BlitzMaxNG/mod/audio.mod/soloud.mod/soloud.release.linux.x64.a(ssc_soloud.cpp.release.linux.x64.o): In Funktion »SoLoud::Soloud::init(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)«:
soloud.cpp:(.text+0x675): Warnung: undefinierter Verweis auf »SoLoud::miniaudio_init(SoLoud::Soloud*, unsigned int, unsigned int, unsigned int, unsigned int)«
soloud.cpp:(.text+0x6b7): Warnung: undefinierter Verweis auf »SoLoud::sdl2static_init(SoLoud::Soloud*, unsigned int, unsigned int, unsigned int, unsigned int)«
soloud.cpp:(.text+0x6e1): Warnung: undefinierter Verweis auf »SoLoud::miniaudio_init(SoLoud::Soloud*, unsigned int, unsigned int, unsigned int, unsigned int)«
collect2: error: ld returned 1 exit status
Build Error: Failed to link /home/ronny/Arbeit/Projekte/TVTower/TVTower.Personen/TVTower
Kompilierung fehlgeschlagen.

Returning to the older version linked above resolved my issue.


bye
Ron

Offline wombats

  • Jr. Member
  • **
  • Posts: 51
Re: SoLoud on Ubuntu
« Reply #4 on: June 08, 2020, 02:19:32 PM »
Thanks, Ron. That seems to fix the SoLoud issue.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal