Advertising (This ad goes away for registered users. You can Login or Register)

[Solved]Can't compile with SDL

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
Tidus
Posts: 2
Joined: Sat Jun 27, 2015 6:10 pm

[Solved]Can't compile with SDL

Post by Tidus » Sat Nov 11, 2017 12:28 pm

Hello,

I'm trying to compile this https://github.com/usineur/Zelda3T but I cannot get it.
I got sources, installed vitasdk with libs and sdl but unable to compile.

Code: Select all

~/Zelda3T/build$ cmake ..
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/local/vitasdk/bin/arm-vita-eabi-gcc
-- Check for working C compiler: /usr/local/vitasdk/bin/arm-vita-eabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/vitasdk/bin/arm-vita-eabi-g++
-- Check for working CXX compiler: /usr/local/vitasdk/bin/arm-vita-eabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxx/Zelda3T/build

~/Zelda3T/build$ make
Scanning dependencies of target Zelda3T
[  3%] Building CXX object CMakeFiles/Zelda3T.dir/Audio.cpp.obj
/home/nicolas/Zelda3T/Audio.cpp:15:10: fatal error: SDL/SDL.h: No such file or directory
 #include <SDL/SDL.h>
          ^~~~~~~~~~~
compilation terminated.
CMakeFiles/Zelda3T.dir/build.make:62 : la recette pour la cible « CMakeFiles/Zelda3T.dir/Audio.cpp.obj » a échouée
make[2]: *** [CMakeFiles/Zelda3T.dir/Audio.cpp.obj] Erreur 1
CMakeFiles/Makefile2:67 : la recette pour la cible « CMakeFiles/Zelda3T.dir/all » a échouée
make[1]: *** [CMakeFiles/Zelda3T.dir/all] Erreur 2
Makefile:83 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
Could you please tell me what I'm doing wrong ?
Advertising
Last edited by Tidus on Wed Nov 22, 2017 9:55 am, edited 1 time in total.

User avatar
usineur
Posts: 23
Joined: Mon Sep 26, 2016 9:26 pm
Contact:

Re: Can't compile with SDL

Post by usineur » Tue Nov 21, 2017 12:11 am

Hi,

here you can find instructions to build Zelda3T: https://github.com/usineur/Zelda3T/issues/4

I'am pretty sure you are trying to build with SDL 2.0 too. Zelda3T required SDL 1.2.

Cya

... I wonder... are you the same user ? :D
Advertising

Tidus
Posts: 2
Joined: Sat Jun 27, 2015 6:10 pm

Re: Can't compile with SDL

Post by Tidus » Wed Nov 22, 2017 9:55 am

Yes it's me :D
Thank you again.

Post Reply

Return to “Programming and Security”