sfml-graphics-2.dll is missing from sfml lib folder - c++

I'm new to c++ and sfml, and I've been trying to install sfml 2.3 on my computer for making games with c++ in code::blocks. I downloaded sfml and watched this video on how to set it up. I followed everything to the letter. When I tried to run the sample code from the sfml tutorial I got this error: This application has failed to start because sfml-graphics-2.dll was not found. Re-installing the application may fix this problem. I searched for solutions to my problem and found someone suggesting to move all the .dll files from your library into the area where the program would run. I went to my library folder in my sfml-2.3 folder, and looked for anything with a .dll ending. I found zero files with this ending. All of the files in this folder end in .a, so I watched another video on how to install sfml with code::blocks this video showed the sfml library folder with a number of files that ended in .dll I searched my computer for all sfml-graphics-2.dll files and came up with zero files again. I then downloaded every different version of sfml and couldn't find any .dll files in any of their lib folders. Am I missing something, or do I just not have the .dll files, and if I don't where can I get them? I'm running widows xp if that helps.

.a is a Linux file extension for static libraries (Unix 'ar' archive). If you are on a Windows platform, download the correct version on SFML website. Dynamic libraries (DLL) are usually located in SFML-2.3/bin folder. You need to move the ones with a '-d' suffix in your Debug folder and the ones without in your Release folder to be able to run your program properly.

Related

Trouble setting up sfml/c++ in eclipse

I've been trying to set up SFML for graphics for a while and I'm having an issue with running the application. Looked at various tutorials and videos and couldn't find anything, nothing with eclipse that is. After setting up the environment and linking the headers and libraries, the application doesn't open and requires these 3 files:
libwinpthread-1.dll
libgcc_s_seh-1.dll
libstdc++-6.dll
I've tried a couple things, linking them statically (doesn't seem to work gives the me same error requiring the files), pasting the files into the folder with the other dll files (gives me a error saying application was unable to start correctly 0xc000007b). The code that is in my main file is from the tutorial page from the sfml website. Here are some properties of my project...
libraries
linker settings
workspace
dll's
error
What am I missing here please help!

Load PNG Images using SDL2.0.3

I keep getting this error whenever I try to load a PNG image using SDL2.0.3 and visual studio 2012.
The procedure entry point inflateReset2 could not be located in the dynamic link library zlib1.dll error
I have placed the slib1.dll file in the same directory as the .exe, file of my project. I also add it in System32 folder in my windows directory.
I want to understand what does this error mean, and how to handle it. Thanks in advance!
P.S. The .pmb images work fine
After digging more, I found that the version of the slib1.dll in my windows system32 directory is different from the one I copied to my project folder. After replacing the one in the project with the same one from system32 folder, it worked fine.
I found this thread on a similar problem really helpful it states that:
"Procedure entry points errors usually mean: you compiled your project against a library version x, and when running the program, it uses a library.dll version y, and version y does not define library::Destroy()"

My app 'Qt' runs in my computer but does not run on my friend's

I have a problem as I mentioned in the title, when I run it in my computer it's totally fine even if I moved the .exe file to another folder, but it cannot be run in my friend's, I tried to build it using 64bit and 86bit but still the same problem.
This is the error:
the application was unable to start correctly 0xc00007b
I've searched and found that it's because of the .dlls but how can I know which dll?
Edit: answering the question:
I'm using Qt 5.1.1 I built it statically , and my compiler is msvc11 86x.
problem:: Edit:
after assuming that my friend's windows has some problems since he really does have some problems , I installed a virtual one using virtualbox " windows 7 32bit " when I moved my app it really asked for msvcp110.dll and msvcr110.dll , but after downloading them from a website now it says:
the procedure entry point _crt create symbolic link w could not be
located in the dynamic link library msvcr110.dll
not sure should the files be from my windows or it's ok to download it from websites like dlls-files ?
Edit 3:
I solved it after deleting all the msvc dlls that I've downloaded manually when it asked , and I updated the windows and installed every version of the things that you guys listed and it works , but you need to delete the files that you've downloaded first otherwise it won't work.
thanks for all your help.
If you are dynamically linking to Qt, you should place Qt DLLs along the release version of your executable. These are Qt5Core.dll, Qt5Gui.dll and possibly the ones for other modules that you have used. These dll files are in your installed Qt Directory in bin folder.
You should also place msvcr110.dll and msvcp110.dll in case you are using MSVS2011. If you are using plugins you should place their dll in a folder named plugins beside your exe. In case of using icons and images you should ship their dlls like qico.dll and qsvg.dll in a folder named imageformats.

VS2012: Program can't start because "libvorbisfile.dll" is missing

I've got a project and I'm trying to make it read a .OGG file.
I've downloaded the libogg and libvorbis from here, compiled them (had some trouble figuring I had to build libogg first), then got the following files:
libogg.lib
libogg.dll
libvorbis.lib
libvorbis.dll
libvorbisfile.lib
libvorbisfile.dll
I dragged all of them in my project's Libraries folder, already added to the project, and included them in the Linker->Input (only the .lib).
Next I copied the headers to my project's Includes folder, also already added to the project, with the files:
ogg/ogg.h
ogg/os_types.h
vorbis/codec.h
vorbis/vorbisenc.h
vorbis/vorbisfile.h
Then I added some code, and I get the error "The program can't start because libvorbisfile.dll is missing from the computer."
And I'm pretty sure the file IS in the Library folder and properly defined in the properties.
Did I do something wrong along the way?
How can I figure what is wrong so I can fix it?
I already tried putting the .dll in the project's folder and in the Windows/System32 folder as well, didn't work.
The library folder is fine for your .lib files, but it's looking for the .dll at run time, which your project settings have no effect on. Windows looks in a few places for a .dll, but the easiest way to get your program to run is to put the .dlls in your working directory, which is where ever you run your executable from (probably the same directory as the .exe file).

Compiling OpenCV for Visual C++ 9.0

I looked at many places but could not find anything telling me how to buld the lib files. I know how to link them, but openCV install folder only contains .a files. I cant find an sln file or dsp. How can I make the lib files? Right now all the samples get linker problems because the lib files dont exist.
Thanks
The Windows installer (.exe) for OpenCV 2.0 does not come with the binaries pre-built for vc++, nor does it have the .vcproj files for using vc++ to build them. You need to have cmake, which is available for free on the web. I used the GUI. Use that to build .vcproj files with which you can compile everything in VC++ 2008 or whatever. There are some gotchas. The question has been asked and answered.
.a files are libraries. On a unix platform they're typically statically linked libraries.
If you're on windows however they should be .dll files. How did you compile OpenCV and does it support compiling on windows?
In order to create the .sln files you need to run CMake on the OpenCV folder containing makefiles.