Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root825283yBeat 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. -
Hazarth94733yare 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 -
jemhop43y@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
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
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?????
devrant
c++
cmake