You are not logged in.

#1 2024-08-14 05:03:07

Megarock90
Member
Registered: 2012-01-18
Posts: 58

Help building vpinball

So only now I learned that VPX is now native on linux, so I tried to build using the instructions found here
1st off, I had to add CXXFLAGS="-std=c++14" when running the "external" script otherwise I'd get a "C++17 does not allow dynamic exception specifications" error multiple times. But with that done the build always fails with a "'SDL.h' file not found".
sdl2 is installed and everything is up to date

pacman -Ql sdl2 | grep SDL.h                                                                 
sdl2 /usr/include/SDL2/SDL.h
sdl2 /usr/include/SDL2/SDL_haptic.h
sdl2 /usr/include/SDL2/SDL_hidapi.h
sdl2 /usr/include/SDL2/SDL_hints.h

Last edited by Megarock90 (2024-08-14 05:03:42)

Offline

#2 2024-08-14 06:18:12

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: Help building vpinball


Jin, Jîyan, Azadî

Offline

#3 2024-08-14 07:02:18

Megarock90
Member
Registered: 2012-01-18
Posts: 58

Re: Help building vpinball

Completely broken, had to manually add the same CXXFLAG fix and fix a folder on the build part that doesnt exist, after that the result is the same, SDL.h not found.

Offline

#4 2024-08-14 10:32:59

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: Help building vpinball

The ./external.sh script builds its own version of freeimage , sdl2 and possibly more stuff .

I would skip it entirely and try to get this to use system librairies.
Putting everything in /opt may be an alternative.

Moderator Note :
moving to AUR Issues, Discussion & PKGBUILD Requests


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#5 2024-08-14 16:25:07

Megarock90
Member
Registered: 2012-01-18
Posts: 58

Re: Help building vpinball

Lone_Wolf wrote:

I would skip it entirely and try to get this to use system librairies.
Putting everything in /opt may be an alternative.

How do I do this?
"everything" in /opt is what, the git repo?

Offline

#6 2024-08-15 09:12:47

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: Help building vpinball

most packages install to /usr but stuff that uses its own libraries doesn't fit well there , see https://wiki.archlinux.org/title/Arch_p … irectories


Build systems allow setting a PREFIX to determine where a package should be installed to, cmake uses CMAKE_INSTALL_PREFIX .
You should probably check https://wiki.archlinux.org/title/CMake_ … guidelines .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

Board footer

Powered by FluxBB