Well the context is that I am at an online C++ school, where I am learning C++. I did the final project in Visual C++ and I have to upload it to the school’s VM Linux environment.
They gave us the Trenki’s blog link to see how this environment compatibility should be done for those who choose to use SDL2_image in the project. I will make the CMakeLists.txt myself, but first I want to run this.
I know nothing about the distributor or distribution etc.
Here is the cmake error I used to get:
When I run the project at cmake … I get the following error:
The C compiler identification is GNU 5.5.0
– The CXX compiler identification is GNU 7.5.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/g+±7
– Check for working CXX compiler: /usr/bin/g+±7 – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread
CMake Error at /usr/local/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find SDL2_image (missing: SDL2_IMAGE_LIBRARIES
SDL2_IMAGE_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/local/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindSDL2_image.cmake:93 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:8 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/workspace/SDL2Test/build/CMakeFiles/CMakeOutput.log”.
See also “/home/workspace/SDL2Test/build/CMakeFiles/CMakeError.log”.
Any help would be much appreciated.
Thanks.