Sdl Windows 10

Sdl

About SDL Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve 's award winning catalog and many Humble Bundle games.

Sdl
Active3 years, 9 months ago

I cannot for the life of me get SDL2 to work with my programming group's project.

I'm using

-Clion 1.2.1

-SDL 2.0.3

-MinGW 5.0

The compiler starts yelling at me from within the Graphics.h file which includes SDL like so:

with the error being:

Sdk windows 10

I tried including with

which still yielded the same error.

I downloaded SDL from the MinGW 32/64-bit download of development libraries from: https://www.libsdl.org/download-2.0.php. I also linked the respective ..SDL2x86_64-w64-mingw32include and lib to path in system->advanced system settings->...

Still nothing.

is the cmakefile I have in Clion. I've been bashing my head bloody trying to get this to work and none of the previous Stackoverflow questions managed to solve my issue.

TenbinTenbin

1 Answer

Personally I uses MSYS2 in my project. The MINGW64 vesion of SDL2 and the other library were installed, as well as the other toolchains like gcc, cmake, and pkg-config (toolchains are MINGW64 version as well).

Then I point my CLion toolchain configuration to the c:msys2mingw64, given that I install the msys2 at c:msys2.

Sdl Trados Studio 2017 Windows 10

The FindPkgConfig CMake module is used to locate the SDL2 library and include files location.

Please find the example below (I also use FreeType2 and harfbuzz as well). The important part is the FindPkgConfig part (pkg_check_modules) and include/link part.

Make sure to reload the configuration after you have modified the cmake file.

This has been tested on Windows (MSYS2) and Linux.

Sdl Router Service Windows 10

Wutipong WongsakuldejWutipong Wongsakuldej

Sd Windows 10 Driver

Not the answer you're looking for? Browse other questions tagged c++windowsmingwsdl-2clion or ask your own question.