Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Cross compiling SFML  (Read 2133 times)

0 Members and 1 Guest are viewing this topic.

ingar

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Cross compiling SFML
« on: October 18, 2019, 05:50:27 pm »
Hi all,
I am today using TGUI and SFML in a Linux project. Our app is now working nicely with nice graphics on a Raspberry Pi. I am very happy with the solution.
But now somebody wants us to move the app to a somewhat special Ubuntu system. But some modules that SFML is dependent of are (I think) not present. These are:

- Open GL
- OpenAL 3D Audio
- Vorbis audio compression
- Flac music file interface
- X11 (or Xorg) display tools
- udev Device management

So my question is:

A) Am I right that SFML depends on these modules
B) If so, where do I get hold of the source code so I can compile/install them?

Regards,
Ingar Steinsland
ingarXlabelcraftYnet, where X is the at sign, and Y is the dot sign.


Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Cross compiling SFML
« Reply #1 on: October 18, 2019, 06:49:51 pm »
A) Yes
B) do you need to compile SFML AND all the modules?
I'm not a Ubuntu user, but since it is based on Debian, I believe the package names will be all the same in this case.
if you just need SFML:
Quote
sudo apt-get install libsfml-dev
if you need the packages to build SFML by yourself:
Quote
sudo apt-get install libfreetype6-dev libx11-dev libxrandr-dev libudev-dev libflac-dev libogg-dev libvorbis-dev libopenal-dev libblis-pthread-dev
Open GL usually is shipped by default

but if you want all the packages to build them from source, and then use them to build SFML from source, you'll most likely find each one of them in their respective GitHub page or something like that,
Visit my game site (and hopefully help funding it? )
Website | IndieDB

 

anything