You should consider joining our Discord to ask for support.

We created a support channel using the new Discord Forum feature!

You can also visit our new website, it has a help section in English and French

0 like 0 dislike
799 views
in Crash by (120 points)
closed by

bonjour, je viens vers vous pour vous demander un coup de main pour ma compilation du LiteRGSS2 sur rpi3, j'ai compiler ma sfml en suivant ce tuto:

https://github.com/mickelson/sfml-pi

j'ai ensuite installer ruby 3.0.2 avec rbenv, ainsi que cmake 3.17.3, j'ai installer les gems rake rake-compiler, j'ai cloné le litergss2 avec cette commande:

git clone https://gitlab.com/pokemonsdk/litergss2.git

mais au moment ou je fait : rake configure j'obtient ça:

checking for cmake... yes

checking for make... yes

checking for cc... yes

checking for c++... yes

SFML check in SFML_DIR (/home/pi/Desktop/sfml-pi/build/lib)

checking for -lsfml-graphics... yes

checking for -lsfml-window... yes

checking for -lsfml-system... yes

Cleaning LiteCGSS in /home/pi/Desktop/litergss2/external/litecgss... 

Building LiteCGSS in /home/pi/Desktop/litergss2/external/litecgss... 

-- The CXX compiler identification is GNU 6.3.0

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ - works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

CMake Error at CMakeLists.txt:26 (find_package):

  By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has

  asked CMake to find a package configuration file provided by "SFML", but

  CMake did not find one.

  Could not find a package configuration file provided by "SFML" (requested

  version 2) with any of the following names:

    SFMLConfig.cmake

    sfml-config.cmake

  Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set

  "SFML_DIR" to a directory containing one of the above files.  If "SFML"

  provides a separate development package or SDK, be sure it has been

  installed.

-- Configuring incomplete, errors occurred!

See also "/home/pi/Desktop/litergss2/external/litecgss/CMakeFiles/CMakeOutput.log".

make: *** Pas de cible spécifiée et aucun makefile n'a été trouvé. Arrêt.

rake aborted!

[LiteCGSS] Build failed

/home/pi/Desktop/litergss2/external/litecgss/Rakefile:59:in `block (2 levels) in <top (required)>'

/home/pi/Desktop/litergss2/external/litecgss/Rakefile:57:in `chdir'

/home/pi/Desktop/litergss2/external/litecgss/Rakefile:57:in `block in <top (required)>'

Tasks: TOP => compile

(See full trace by running task with --trace)

ln: impossible de créer le lien symbolique '/usr/lib/*.so*': Permission non accordée

checking for -lLiteCGSS_engine... no

rake aborted!

Unable to find LiteCGSS library. Clean everything and try again.

/home/pi/Desktop/litergss2/Rakefile:39:in `block (2 levels) in <top (required)>'

/home/pi/Desktop/litergss2/Rakefile:32:in `chdir'

/home/pi/Desktop/litergss2/Rakefile:32:in `block in <top (required)>'

Tasks: TOP => configure

(See full trace by running task with --trace)

Pourtant le CMAKE_MODULE_PATH pointe bien sur mon FindSFML.cmake

Merci infiniment pour votre aide

closed with the note: Not PSDK Support

1 Answer

0 like 0 dislike
by (28.0k points)

Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set

  "SFML_DIR" to a directory containing one of the above files.

Tu es supposé spécifié où tu as cloné et compilé SFML dans la variable d'environement SFML_DIR.

Exemple sur mon ordi:

C:\Users\nuriy>echo %SFML_DIR%

D:/nuriy/Work2/SFML

Voir https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php pour la compilation de SFML. 

by (120 points)
edited by
j'ai essayé plusieurs choses, la première : préciser le CMAKE_PREFIX_PATH (je ne savais pas trop quoi mettre dans le doute j'ai mis le répertoire de sfml)

cmake .. -DSFML_RPI=1
 -DEGL_INCLUDE_DIR=/opt/vc/include
 -DEGL_LIBRARY=/opt/vc/lib/libbrcmEGL.so
 -DGLES_INCLUDE_DIR=/opt/vc/include
 -DGLES_LIBRARY=/opt/vc/lib/libbrcmGLESv2.so
 -DVORBIS_INCLUDE_DIR=/usr/include
 -DVORBIS_LIBRARY=/usr/lib/arm-linux-gnueabihf/libvorbis.so   
 -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE  
 -DCMAKE_PREFIX_PATH=/home/pi/Desktop/sfml-pi


-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - 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/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found EGL: /opt/vc/lib/libbrcmEGL.so  
-- Found GLES: /opt/vc/lib/libbrcmGLESv2.so  
-- libudev stable: 1
-- Found UDev: /lib/arm-linux-gnueabihf/libudev.so
--    include: /usr/include
-- Found OpenAL: /usr/lib/arm-linux-gnueabihf/libopenal.so  
CMake Warning (dev) at /usr/local/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (VORBIS)
  does not match the name of the calling package (Vorbis).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindVorbis.cmake:19 (find_package_handle_standard_args)
  src/SFML/Audio/CMakeLists.txt:73 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found VORBIS: /usr/lib/arm-linux-gnueabihf/libvorbis.so  
-- Found FLAC: /usr/lib/arm-linux-gnueabihf/libFLAC.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/Desktop/sfml-pi/build


ça m'as retourné une erreur, il ne trouve pas vorbis pourtant il le trouve quand même
by (28.0k points)
Visiblement c'est build par contre, on va pas faire de support de choses que t'es censé trouver par toi même parce que ici on fait le support de PSDK pas le support de CMAKE ^^'
by (120 points)
edited by
C'est bon j'ai réglé presque tous les soucis sauf un seul, à la fin du rake configure je ne peut pas créer les liens symboliques, ça me met permissions  non accordé , j'ai alors essayé un sudo rake configure mais rien n'y fait
...