matteoraggi
Posts: 119
Joined: Thu Dec 01, 2016 11:04 am

GCC 9.1 compiled and then how to run the compiled software?

Fri May 31, 2019 4:56 am

Hi, I followed all of these instructions using raspbian stretch of april 2019 on raspberry pi 3 model b+.
And my question heris: where is the compiled software and how to run it?
Remember Raspbian is a Debian-based computer operating system for Raspberry Pi
sudo apt-get install build-essential
you also need to check if it is already installed

Get the linux generic release http://www.libsdl.org/download-2.0.php and unzip it in any directory. The really neat thing is the necessary Debian install files are provided and will setup automatically.

2) Install - Navigate to the Debian subdirectory. The instructions are in the text file "install.txt". All that is needed is to go to the unzip directory as root and run the following command './configure; make; make install'
SDL needs several support libraries to be able to use images and fonts. 
The packages are located at http://www.libsdl.org/projects/
SDL2_image-2.0.0 - bmp is built in but you need this for jpg, png etc.
SDL2_mixer-2.0.0 - audio support
SDL2_net-2.0.0 - network support
SDL2_ttf-2.0.12 - trutype font support
SDL_rtf-0.1.0 - rich text format support
Image Support, SDL2_image-2.0.0 - instructions are for 'root' user (you can also use sudo)
1) Download the package from http://www.libsdl.org/projects/
2) unzip
3) cd to the working directory
4) autogen.sh
5) ./configure && make && make install

using gcc9:
a guide to install gcc 9 on raspbian : https://solarianprogrammer.com/2017/12/ ... -programs/
Compiling so be something like this
compile program
gcc `sdl2-config --cflags --libs` -lstdc++ $LIB $GLIB $INC $GINC -v -o $1 $2 >> compile.log 2>&1
Raspberry Pi 3 model B - Raspbian 8 Jessie

User avatar
topguy
Posts: 5563
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: GCC 9.1 compiled and then how to run the compiled software?

Fri May 31, 2019 10:24 am

Not completely sure what you are asking really. Can you explain what you are trying to achieve ?

SDL2 is mainly a library used for multimedia applications and games. During the "make install" command the compiled library files are usuall copied to a place under "/usr/lib" or "/usr/local/lib".

matteoraggi
Posts: 119
Joined: Thu Dec 01, 2016 11:04 am

Re: GCC 9.1 compiled and then how to run the compiled software?

Fri May 31, 2019 10:54 am

Sorry for the strange message, pratically the developer that made me the software didn't made me the manual to install it, but only to install sdsl2.. :-D this is why I was not able to install her software.. A friend helped me remotely, thanks!
Raspberry Pi 3 model B - Raspbian 8 Jessie

Return to “C/C++”