Giter Club home page Giter Club logo

Comments (7)

murlock avatar murlock commented on May 15, 2024

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.

rtentser avatar rtentser commented on May 15, 2024

It doesn't work for me.

from openmom.

murlock avatar murlock commented on May 15, 2024

Sorry, I've misread your log.

Can you retry in empty directory and launch cmake <src_path> ?

from openmom.

rtentser avatar rtentser commented on May 15, 2024

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 as

cmake_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.

murlock avatar murlock commented on May 15, 2024

For the SDL2_ImageConfig.cmake missing, my first comment is valid ;)

But I've met lot of issues after that, check #3

from openmom.

rtentser avatar rtentser commented on May 15, 2024

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.

Jakz avatar Jakz commented on May 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.