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 - Koosmono

Pages: [1]
1
General discussions / Help With Project Properties
« on: May 01, 2011, 08:49:41 am »
Okay, so I think I solved this!

I removed all SFML files.

I re-downloaded the full SDK and instead of following the steps for placing the folders, I did the direct link in the tools/options of VC++ 2008.

I noticed some differences in the folder selections for these steps which leads me to suspect my problem might have come from a possible mistake in the tutorial.

The first, says to copy the SFML folder inside of Include
Copy the SFML development files to your Visual Studio installation directory

Copy SFML-x.y\include\
SFML to the VC\include directory of your Visual Studio installation (so that you obtain VC\include\SFML)
Copy the *.lib files in SFML-x.y\lib to the VC\lib directory of your Visual Studio installation


The second has you link the Include folder in the options and not the SFML folder.
Leave the SFML files where you want, and setup Visual Studio so that it can find them

Go to the Tools / Options menu, then to Projects and Solutions / VC++ Directories
In Include files, add SFML-x.y\
include
In Library files, add SFML-x.y\lib

I haven't tested this, but if it's true it should probably be changed.

Anyway, thank you tons for helping all that you did! I am so glad this finally works!

2
General discussions / Help With Project Properties
« on: May 01, 2011, 08:18:31 am »
Thank you again for trying to help!

I've been re-reading the tutorial, looking for something I missed, but it was while going through it that I got stuck.

Should I typically use Active(Debug) or Debug? When I use the DeBug or Active(Debug) configuration with "sfml-system-d.dll" in the "DeBug" folder and sfml-system-d.lib in the properties, I get this error.

1>LINK : fatal error LNK1104: cannot open file 'sfml-system-d.lib'

Heres what I currently have





I feel like I'm missing something obvious. I even tried adding SFML_DYNAMIC where it says too (even though I don't think I need to) and it didn't work.

3
General discussions / Help With Project Properties
« on: May 01, 2011, 07:27:43 am »
Thanks for clearing some of that up. That is very helpful, especially to know that I should try to stick with Dynamic. However, I'm still getting errors.


Here are the properties I'm using. When I use "Release" for the configuration, I get these errors.

1>main.obj : error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function _main
1>C:\Users\Drew\Documents\Visual Studio 2008\Projects\work-please\Debug\work-please.exe : fatal error LNK1120: 3 unresolved externals


when I place sfml-sytem-d.lib in any other configuration (Active(Debug) or Debug) I get the same error I was getting before.



And here is where I have the file in my project files. I've also tried it with the file in the DeBug folder.



Thanks again for helping, I hope this might reveal what exactly I'm doing wrong.

4
General discussions / Help With Project Properties
« on: May 01, 2011, 04:17:08 am »
Okay, so first off I want to say I'm sorry for bogging down the forums recently. I am really hoping that this will be my last post for awhile.

Really I just want to have an understanding of what I need to do with the project properties when using SFML. Here is where I am at with the first clock tutorial.

I am using Visual Studio 2008 now
I downloaded the full SDK version for Windows - Visual C++ 2008
I added the include and lib folders as described in the tutorial.

I have tried all of whats mentioned in the rest of the tutorial, but I'm stilling getting an error like this.

1>LINK : fatal error LNK1104: cannot open file 'sfml-system-d.lib'

Just like in the tutorial I added sfml-system-d.lib to  Linker / Input

(I've also tried it without the 'd' and with -s-d and just -s)
The tutorial shows "Configuratio: Active(Release), but I don't have that option, so I'm trying to use Active(Debug).

Part of the tutorial says  "If you linked against the dynamic versions of the SFML libraries, donc forget to copy the corresponding DLLs"
I don't know what this means, but I did copy sfml-system.dll to my
Visual Studio 2008/Projects/sfml-test, folder

I also tried adding SFML_DYNAMIC where specified, but this didn't help and again I am not sure what the tutorial means when it says "if you link against the dynamic libraries"

Trying all the combinations I could come up with, I still get a similar error to the one above.

If someone could explain to me what it is I need to do in project properties when I want to use a particular library, I would be so thankful.

After coding 2 years, This is the first API I've tried to use and I have no experience on the subject. Everywhere I've gone SFML is promoted as a noob friendly tool and I am really hoping to be able to use it. These issues I'm having are so aggravating in that they don't pertain to the actual coding, but rather an understanding of linking.

Again, sorry for so many posts recently, but help with this would be highly highly appreciated. I really want to understand this so I don't keep running into the issue later.

5
General discussions / Getting started, couple questions
« on: April 30, 2011, 08:29:10 pm »
Thanks Jove, that's helpful to hear. I guess I just got thrown off because I got caught at the installation step in the tutorial and didn't want that step to cause me future problems. I'm going to work through that tutorial today.

Though, if anyone still wants to answer the second question I am still curious.

Thanks again!

6
General discussions / Getting started, couple questions
« on: April 30, 2011, 06:37:20 am »
Attempted to install SFML with Visual C++ 2010 and ran into some problems. Now I have a few questions.

Is the video below a good tutorial of what I'll need to do to use SFML with visual C++ 2010? The process seems a bit extensive is why I ask.



Also, do most people who use SFML run Visual Studio 08?  Should I just install Visual Studio 08 and proceed through the tutorials?

Help here would be great! I am very eager to begin!

7
General discussions / Looking For Resources
« on: April 27, 2011, 08:44:58 pm »
Thanks so much everyone!

All your posts were very helpful. It's too bad, but I kind of figured I would have to look elsewhere for the basics of collision, etc. But still I am more confident now in getting started just from hearing these stories. It really sounds like I'll have enough to start working with on something like a simple side scroller which is what I plan to start with.

Mjonir, I'm glad to hear about someone who was able to pick this up as their first API for game programming. I'll definitely check out that engine!

I've been so busy with class and the programs I'm writing for those that I haven't had time to start these tutorials. I am so anxious it hurts, but I'll definitely be working with SFML very soon here (class is out in a week) and I don't doubt you'll see me back posting on these forums.

Thanks again!

8
General discussions / Looking For Resources
« on: April 26, 2011, 11:52:33 pm »
First off, I really hope this question hasn't been beaten to death for you guys.

I've been programming for about 2 years and am sure of my abilities with C++. Now I am looking to start game programming and My research on APIs has led me here. I really like the sound of SFML and am eager to start.
However, My question is whether there are any resources for learning early practices and lessons in game programming through SFML. There are tons of books and online tutorials for game programming using APIs like DirectX, but I was hoping to learn these earlier practices through the API I hope to use.
Now maybe I'm jumping the gun. The tutorials here look great for the features and maybe once I finish them I will feel confident that I can start developing. I just want to make sure I'm not missing anything out there (Yet to find much on google).

Lastly and probably most importantly. If any of you started your game programming adventure with SFML I would love to know how you went about it. Were these tutorials enough or did you accompany them with other resources?

I thank any and all help greatly!

Pages: [1]