I tried to compile, but ld is unable to find the files related to the SFML library.
This is my error:
[ 96%] Linking CXX executable spine-sfml-example
cd /storage/emulated/0/Android/data/ru.iiec.cxxdroid/files/spine-sfml/build/spine-sfml/c && /data/data/ru.iiec.cxxdroid/files/bin/cmake -E copy_directory /storage/emulated/0/Android/data/ru.iiec.cxxdroid/files/spine-sfml/c/data /storage/emulated/0/Android/data/ru.iiec.cxxdroid/files/spine-sfml/build/spine-sfml/c/data
cd /storage/emulated/0/Android/data/ru.iiec.cxxdroid/files/spine-sfml/build/spine-sfml/c && /data/data/ru.iiec.cxxdroid/files/bin/cmake -E cmake_link_script CMakeFiles/spine-sfml-example.dir/link.txt –verbose=1
/data/user/0/ru.iiec.cxxdroid/files/bin/clang++ -Wall -Wunused-value -Wno-variadic-macros -Wextra -Wnon-virtual-dtor -pedantic -Wshadow -std=c++11 -fno-exceptions -fno-rtti CMakeFiles/spine-sfml-example.dir/example/main.cpp.o -o spine-sfml-example -lsfml-graphics -lsfml-window -lsfml-system ../../spine-c/libspine-c.a libspine-sfml.a ../../spine-c/libspine-c.a
/data/user/0/ru.iiec.cxxdroid/files/bin/ld: cannot find -lsfml-graphics
/data/user/0/ru.iiec.cxxdroid/files/bin/ld: cannot find -lsfml-window
/data/user/0/ru.iiec.cxxdroid/files/bin/ld: cannot find -lsfml-system
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [spine-sfml/c/CMakeFiles/spine-sfml-example.dir/build.make:103: spine-sfml/c/spine-sfml-example] Error 1
make[2]: Leaving directory ‘/storage/emulated/0/Android/data/ru.iiec.cxxdroid/files/spine-sfml/build’
make[1]: *** [CMakeFiles/Makefile2:267: spine-sfml/c/CMakeFiles/spine-sfml-example.dir/all] Error 2
make[1]: Leaving directory ‘/storage/emulated/0/Android/data/ru.iiec.cxxdroid/files/spine-sfml/build’
make: *** [Makefile:138: all] Error 2
Samuel de Jesus Lima Santos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.