4
jemhop
3y

I fucking cannot stand CMake. I hate this stupid fucking piece of software. I've been trying for 3 fucking days to get SDL2 to link just once and I cannot. It doesn't work in the slightest.

Every time I look for help I find a Stack Overflow post from 5 years ago about someone having the exact same problem and all of the responses are "This function is deprecated, use this instead"

THAT DOESNT SOLVE MY FUCKING ISSUE
WHY DOES CMAKE DEPRECATE THINGS EVERY 1.5 YEARS

THIS ACTUALLY MAKES ME WANT TO SWITCH TO INTERPRETED LANGUAGES I CANNOT STAND BUILD SYSTEMS

SURELY IT CANT BE THAT HARD

WE HAVE OPERATING SYSTEMS, AERODYNAMIC SIMULATIONS, AND A GLOBAL COMMUNICATIONS NETWORK BUT WE CANT FUCKING PASS COMMANDS TO GCC PROPERLY?????

Comments
  • 1
    Beat CMake with a feces-fertilized cactus, salt its wounds, and then baptize it in cleaning fire. It cleans the world, not the subject.

    After you’re through, toss it aside and use make; it will please the dev gods.
  • 0
  • 0
    are you using linux?

    I was solving this a couple of years back. APT didn't have the latest .cmake files for the images or ttf or sound library, can't remember. I found some on some github page somewhere and just added it manuall and then it started working

    my CMakeLists I think also had to be updated, though I don't remember which part was it

    find_package(SDL2 REQUIRED)

    include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIR} ${SDL2_TTF_INCLUDE_DIR})

    ... bunch of stuff

    and then very last line:

    target_link_libraries(project_name ${SDL2_LIBRARIES} -lSDL2_image -lSDL2_ttf)

    it's doable
  • 0
    still, I hate CMake
  • 0
    >copy sdl2 source code
    >add_subdirectory
    >target_link_libraries
    >???
    >profit
  • 0
    @Glowie its amazing how cmake tutorials can spend 15 minutes on the bits like downloading an ide, downloading the library, copying the files and then spend 5 seconds doing some CMakeLists voodoo magic that simultaneously doesnt work for me and conflicts with every other way ive seen to do it online
Add Comment