Comments (7)
I've also met this issue:
Solution is very easy, just copy (or link) the cmake/FindSDL2_image.cmake
as cmake/FindSDL2_Image.cmake
from openmom.
It doesn't work for me.
from openmom.
Sorry, I've misread your log.
Can you retry in empty directory and launch cmake <src_path>
?
from openmom.
I've tried. That's what i've got:
-- 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
<FindSDL2.cmake>
-- 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
</FindSDL2.cmake>
-- Found SDL2: /usr/lib/i386-linux-gnu/libSDL2main.a;/usr/lib/i386-linux-gnu/libSDL2.so;-lpthread
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "FindSDL2_Image.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"SDL2_Image", but CMake did not find one.Could not find a package configuration file provided by "SDL2_Image" with
any of the following names:SDL2_ImageConfig.cmake sdl2_image-config.cmake
Add the installation prefix of "SDL2_Image" to CMAKE_PREFIX_PATH or set
"SDL2_Image_DIR" to a directory containing one of the above files. If
"SDL2_Image" provides a separate development package or SDK, be sure it has
been installed.CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such ascmake_minimum_required(VERSION 3.9)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.-- Configuring incomplete, errors occurred!
See also "/home/rtentser/Sources/empty/CMakeFiles/CMakeOutput.log".
See also "/home/rtentser/Sources/empty/CMakeFiles/CMakeError.log".
CMakeCache.txt
CMakeError.log
CMakeOutput.log
from openmom.
For the SDL2_ImageConfig.cmake
missing, my first comment is valid ;)
But I've met lot of issues after that, check #3
from openmom.
Yes, i've copied the file again, installed libsdl2-image-dev and configured the game from empty directory successfully (there is a cmake warning). So it was just a wrong filename + missing dependency. I didn't try to build the project yet.
Will you create a pull request to fix the file name issue?
from openmom.
I fixed the naming issue in master branch, now this shouldn't be present anymore. This got unnoticed because I'm working on a case insensitive file system.
from openmom.
Related Issues (6)
- Runtime issues in Debian HOT 12
- Feature request: Release early, release often
- MoM Rebuild HOT 4
- License? HOT 1
- Compilation issue HOT 42
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmom.