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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ignis

Pages: [1]
1
General / Re: Help with VS 2017 setup
« on: May 15, 2017, 05:10:38 pm »
I solved it. It was obviously some stupid stuff. I observed that when I wrote #include <Graphics.hpp> the compiler said it couldn't find the next library (window?). So I checked the directory and found out that I put headers into SFML/include, with no midway SFML folder I had in source code folder. Then it finally worked.

Thanks for your help and patience, I probably didn't deserve them.
One last question: I have multiple (non fatal) error report. The compiler isn't able to find many pdb files (external to SFML) for debug configuration. Here it is:
(click to show/hide)
Are they due to system architecture (32/64 bit)?
For reference, I compiled in 32 bit on 64 bit Windows 7.

2
General / Re: Help with VS 2017 setup
« on: May 14, 2017, 04:00:49 pm »
It was indeed an inaccurate rephrasing. I accidentaly mishmashed the proper code and what the compiler told me. Sorry about that  :P
About your second point: I followed the tutorial and it said explicitly to go to C/C++ -> General -> Additional Include Directories and change it to (SFML path)/include for all configurations (debug/release). I didn't even know there are multiple kind of headers files depending on configuration if this is what you are saying and I have no idea how to find them, assumed I have them.
If you are referring to libraries, they are set in the same way under Link -> General -> Additional Library Directories and in a proper way under Link -> Input -> Additional Dependencies, with sfml-X.lib for release and sfml-X-d.lib for debug.

EDIT: Btw I just realized I forgot to copy dlls (the ones in my SFML/lib plus openal32.dll from the source code) into the same directory of my executable (I'm using dynamic libraries). Obviously fixing this mistake didn't solve the problem, since compiler complain about headers, not libraries.

3
General / Re: Help with VS 2017 setup
« on: May 14, 2017, 01:43:35 pm »
Sorry if I keep harassing you with stupid questions, but I can't figure out how to make it work.
Here's what I did:
  • Created a folder (SFML) with 2 subfolder (include and lib);
  • In the former I put all the files present in the include folder from the source code;
  • In the latter I put all the files from the lib folder generated by CMake, both debug and release files, merging them together;
  • I moved the SFML folder to my project folder (the external one with the .sln file);
  • I linked all libraries and headers following the official tutorial, but using the $(SolutionDir) command to make it portable;
  • I compiled a test program with the #include 'SFML/Graphics'.
Then compiler said it can't find the include files. The same error holds true if I use static directories for libraries and headers instead of the $(SolutionDir)/. Am I missing something?

4
General / Re: Help with VS 2017 setup
« on: May 13, 2017, 03:36:01 pm »
Ok, I did all the steps. Don't know why, but the first time I tried (following the official tutorial) I ended up with an error message like "Unable to find X library". This time all worked fine: the only strange thing was that the compiler said me it ignored the install project during the process, but I guess it's fine (?).
Btw, I compiled in debug mode. Do I need to compile in release mode?
Please forgive my ignorance, but at this point I don't know how to use/link libraries to my project. I want SFML files to be in my project directory, since I plan to work only on one project (or a few ones, but anyway HD space isn't an issue) and I need it to be as portable as possible.

5
General / Help with VS 2017 setup
« on: May 13, 2017, 11:27:48 am »
Hi everyone, this is my situation: I'm an unexperienced newbie who downloaded Visual Studio 2017 and the latest SFML build just to realize they aren't compatible, so I need to build SFML from source. I followed the tutorial on the site, but can't manage to make it work and the same is true for other tutorial I found online (most of them aren't updated). Can someone link a good guide or, even better, help me step by step in the installation process?
Thanks

Pages: [1]