Advertisement

Lib folder in SDL2 missing

Started by June 06, 2014 12:01 PM
7 comments, last by Sarkurd 10 years, 8 months ago

Hi guys

i downloaded SDL2 a while ago but i can't find lib folder in SDL2-2.0.3 :/

sorry if that's a stupid question

2dbs128.jpg

Unless you downloaded a prebuilt version for your specific compiler and configuration you are expected to build the libraries yourself from the source. Since there is a CMakeLists.txt included that should be reasonably simple to get going with any build system.
Advertisement

Unless you downloaded a prebuilt version for your specific compiler and configuration you are expected to build the libraries yourself from the source. Since there is a CMakeLists.txt included that should be reasonably simple to get going with any build system.

I tried to build it with CMake but i got an error "Error in configuration process, project files may be invalid"

What operational system are you using?

If you're using linux, issue the following console command inside the SDL folder:


./autogen.sh && ./configure && make

and that's all it takes.

I tried to build it with CMake but i got an error "Error in configuration process, project files may be invalid"


That is usually the result of missing dependencies, especially on Windows where no general automatic library detection exists. Look at the output lines before that and see what exactly is failing. It's also possible you can just deactivate dependencies you do not need by setting the right options in CMake.

What operational system are you using?

If you're using linux, issue the following console command inside the SDL folder:


./autogen.sh && ./configure && make

and that's all it takes.

I use Windows 8.1 and VS2013

I tried to build it with CMake but i got an error "Error in configuration process, project files may be invalid"


That is usually the result of missing dependencies, especially on Windows where no general automatic library detection exists. Look at the output lines before that and see what exactly is failing. It's also possible you can just deactivate dependencies you do not need by setting the right options in CMake.

here its the error


The C compiler identification is MSVC 18.0.30501.0
Check for working C compiler using: Visual Studio 12
Check for working C compiler using: Visual Studio 12 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
0.2.1 :: 2 :: 1 :: 2 :: 2.0
Performing Test HAVE_WIN32_CC
Performing Test HAVE_WIN32_CC - Success
CMake Error at cmake/macros.cmake:28 (message):
  *** ERROR: DIRECTX requires the $DXSDK_DIR environment variable to be set
Call Stack (most recent call first):
  CMakeLists.txt:798 (message_error)


Configuring incomplete, errors occurred
Advertisement
You don't have a suitable DirectX SDK installed. Either install it or investigate if/how you can build SDL without DirectX.

Try the file under this link here:

http://www.libsdl.org/release/SDL2-devel-2.0.3-VC.zip

You don't have a suitable DirectX SDK installed. Either install it or investigate if/how you can build SDL without DirectX.

I'll try to download it later i just upgraded my windows

Thank you it worked fine

This topic is closed to new replies.

Advertisement