Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Where are the DLLs?  (Read 5591 times)

0 Members and 1 Guest are viewing this topic.

PiMaster

  • Newbie
  • *
  • Posts: 2
    • View Profile
Where are the DLLs?
« on: May 06, 2011, 11:49:04 pm »
So, today I thought I would try out SFML. After downloading it, putting the headers in the proper folder, making a project linked to sfml-system.lib, and copypasta-ing the "Your first SFML program" source into a .cpp file, I ran it and was given the message "The program can't start because sfml-system.dll is missing from your computer. Try reinstalling the program to fix this problem." I then ran a search through the .zip file on the download page and found that this dll is not there.

tl;dr Where do I get sfml-system.dll, and any other DLLs?
3.14159265358979323846264338327950288419716939937510

- I memorized that!

Mjonir

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Where are the DLLs?
« Reply #1 on: May 07, 2011, 01:03:22 am »
If you're using SFML 1.6 they should simply be located in the "lib" folder of the zip. Also don't forget the DLLs in the "extlibs" folder which are also required.

PiMaster

  • Newbie
  • *
  • Posts: 2
    • View Profile
Where are the DLLs?
« Reply #2 on: May 07, 2011, 01:50:55 am »
Ah, yes, thank you.
3.14159265358979323846264338327950288419716939937510

- I memorized that!

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Where are the DLLs?
« Reply #3 on: May 24, 2011, 05:44:49 am »
Rather than create a new thread for the same situation, I'll just hijack this one.

I have the same problem as the op except I don't know which dll's to include in the extlibs folder.  Could someone point out which?

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Where are the DLLs?
« Reply #4 on: May 25, 2011, 04:49:52 am »
Quote from: "blueeyedlion"
Rather than create a new thread for the same situation, I'll just hijack this one.

I have the same problem as the op except I don't know which dll's to include in the extlibs folder.  Could someone point out which?
Which SFML Modules are you using?
I use the latest build of SFML2

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Where are the DLLs?
« Reply #5 on: May 27, 2011, 03:25:02 am »
that depends what "modules" means

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Where are the DLLs?
« Reply #6 on: May 27, 2011, 11:58:11 am »
Quote from: "blueeyedlion"
that depends what "modules" means
System, Window, Graphics, Audio, Network
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Impervious

  • Newbie
  • *
  • Posts: 4
    • View Profile
Where are the DLLs?
« Reply #7 on: May 29, 2011, 08:15:23 am »
Quote from: "blueeyedlion"
Rather than create a new thread for the same situation, I'll just hijack this one.

I have the same problem as the op except I don't know which dll's to include in the extlibs folder.  Could someone point out which?


I haven't personally included any from the extlibs but, the tutorial only mentions two for audio (libsndfile.dll and openal32.dll) and nothing else, so perhaps simply including those would cover all the bases as I don't see any other DLLs.  I have no clue what all the other stuff is though.   :?  You may be best off waiting for some confirmation.

Also if it at all possible, could someone quickly tell me if all the other stuff in the extlibs folder is needed, or if it is explained later?  I'm not sure if its the best method, but I would preferably like to set everything up, and then focus on coding.

meguy

  • Newbie
  • *
  • Posts: 1
    • View Profile
Where are the DLLs?
« Reply #8 on: May 30, 2011, 04:25:02 pm »
I have a similar problem except mine is not registering the header file not the DLL. I have included extlibs and it still does not work I am using code::blocks and visual studio.

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Where are the DLLs?
« Reply #9 on: May 31, 2011, 05:09:19 am »
another thing, where am I supposed to put the dll's?

Impervious

  • Newbie
  • *
  • Posts: 4
    • View Profile
Where are the DLLs?
« Reply #10 on: June 01, 2011, 10:33:54 am »
Quote from: "blueeyedlion"
another thing, where am I supposed to put the dll's?


Well as it says in the first tutorial, I put the files from the lib folder (which happen to be DLLs among other things) into the visual studios VC/lib folder.

Also, I put them in the Projects debug folder.  This part took a lot of googling and I don't see it anywhere in the tutorial at all, but it seemed to work.  

Your projects are likely in "My Documents" under Visual Studios/Projects and then you click on the project you are working on, and put the DLLs in the Debug folder of that project.

To be honest I am having quite a lot of trouble getting a good start so maybe my advice is not the most helpful... but of course I hope it is as it can be quite a pain to find the information needed to get things working.  Good luck.  :?

Xander314

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://sfmlcoder.wordpress.com/
    • Email
Where are the DLLs?
« Reply #11 on: June 02, 2011, 01:55:53 pm »
You must put all used DLLs in your project folder (or maybe your debug/release folder).

This may not be mentioned in the tutorials (I am not sure), but it's true for all DLLs, not just SFML - if they aren't in a system DLL folder, they must be in your project folder.

EDIT: To the guy with header file problems: this must be fixed by adding the SFML header file directory (sfml_root_directory/include) to your compiler search directories.

In Code::Blocks: Settings -> Compiler and Debugger -> Global Compiler Settings -> Search Directories -> Compiler -> Add -> enter the path.

 

anything