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

Pages: [1] 2
1
General / Help with installation?
« on: August 02, 2010, 10:32:23 pm »
Quote from: "Laurent"
Do you use the debug graphics library (sfml-graphics-d) in debug mode?

Yes

Quote
Did you properly recompile it with VC++ 2010?

Yes

Quote
What happens if you run the debugger? Where does it crash, and with what message?


First specific crash points to this line, stating unsigned int's and unsigned HWND handle... it won't even continue debugging past this point... which is almost the very start?

Quote
 LRESULT CALLBACK OnEvent(HWND Handle, UINT Message, WPARAM WParam, LPARAM LParam)
{
    switch (Message)
    {
        // Quit when we close the main window
        case WM_CLOSE :
        {
            PostQuitMessage(0);
            return 0;
        }
    }

2
General / Help with installation?
« on: August 02, 2010, 02:18:46 pm »
Ugh I seem to be doomed with constant problems... when attempting to run the graphics (I remembered to link and put the .dll's into the executable this time) I get another problem.

The window flashes within a split second and fails (even the window program alone seemed to have issues... it'd run, but freeze, not allowing me to exit or minimize)

I get a code 1 with both window and graphics source.

Output for Graphics Source.cpp
Quote
'SFML Game.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML Game\Debug\SFML Game.exe', Symbols loaded.
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML Game\Debug\sfml-graphics-d.dll', Symbols loaded.
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\glu32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML Game\Debug\sfml-system-d.dll', Symbols loaded.
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\msvcp100d.dll', Symbols loaded.
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded.
'SFML Game.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML Game\Debug\sfml-window-d.dll', Symbols loaded.
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\msctf.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\Program Files\Trusteer\Rapport\bin\rooksbas.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\psapi.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\msctfime.ime', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\ATKOGL32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\nvoglnt.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x618) has exited with code 0 (0x0).
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\mcd32.dll', Cannot find or open the PDB file
'SFML Game.exe': Unloaded 'C:\WINDOWS\system32\mcd32.dll'
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\ctagent.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\dinput.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\hid.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', Cannot find or open the PDB file
'SFML Game.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0xdd8) has exited with code 1 (0x1).
The program '[4556] SFML Game.exe: Native' has exited with code 1 (0x1).

3
General / Help with installation?
« on: August 02, 2010, 02:02:23 pm »
Knew it'd be something obvious that I'd totally overlooked, thanks a bunch! :)

4
General / Help with installation?
« on: August 02, 2010, 01:30:18 pm »
Ok I'll ask him for you and let you know.

On a side note, with the program now working (sample program runs fine etc...) I'm attempting to run the graphics and keep getting this message. It''s probably something simple but I'm just not sure whats causing it mysef

Quote

1>------ Build started: Project: SFML Game, Configuration: Release Win32 ------
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(void *,struct sf::WindowSettings const &)" (__imp_??0RenderWindow@sf@@QAE@PAXABUWindowSettings@1@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Image::LoadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?LoadFromFile@Image@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::~Image(void)" (__imp_??1Image@sf@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::Image(void)" (__imp_??0Image@sf@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Image const &,class sf::Vector2<float> const &,class sf::Vector2<float> const &,float,class sf::Color const &)" (__imp_??0Sprite@sf@@QAE@ABVImage@1@ABV?$Vector2@M@1@1MABVColor@1@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &)" (__imp_?Draw@RenderTarget@sf@@UAEXABVDrawable@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (__imp_?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ)
1>C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML Game\Release\SFML Game.exe : fatal error LNK1120: 11 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

5
General / Help with installation?
« on: August 02, 2010, 10:19:32 am »
I'll tell them to drop you a message, one guy has offered to send me his compiled 1.6 which he had to make several edits and changes to, would that file be of any help to you, as I could forward it on?

6
General / Help with installation?
« on: August 01, 2010, 05:09:51 pm »
When compiling the Debug DLL's only 2 compile, the rest fail. I'm guessing that has a big something to do with this. The Release DLL's 5 compile and the rest fail.

After asking about, alot of people say 1.6 is absolute hell for compiling on VC 2010 but that the 2.0 beta works a lot smoother, so I'll give that a try instead and let you know if I have any luck.

7
General / Help with installation?
« on: August 01, 2010, 12:35:08 am »
Thats the thing... I've already converted the .sln to Visual C++ Express 2010 and compiled it. It said everything worked minus 2, but then it stated the wx thing wouldn't work in the tutorial. (Noter only 5 DLL's ever work, 13 fail)

I can now get the program to run in Release. It displays

Quote
1.08098e-006
0.499993
0.999991
1.4999
1.9999
2.4999
3
3.4999
3.9999
4.4999
5


The output reads
Quote
'SFML 2.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML 2\Release\SFML 2.exe', Symbols loaded.
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML 2\Release\sfml-system.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4974_x-ww_d889290f\msvcp90.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4974_x-ww_d889290f\msvcr90.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\msvcp100.dll', Symbols loaded.
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\msvcr100.dll', Symbols loaded.
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
The program '[7664] SFML 2.exe: Native' has exited with code 0 (0x0).


However in debug mode nothing works. I get the message

Quote
The application failed to initialize properly (0xc0150002). Click on OK to terminate the application


and here is the ouput for that one

Quote
'SFML 2.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML 2\Debug\SFML 2.exe', Symbols loaded.
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML 2\Debug\sfml-system-d.dll', Cannot find or open the PDB file
LDR: LdrpWalkImportDescriptor() failed to probe C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML 2\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[6792] SFML 2.exe: Native' has exited with code -1072365566 (0xc0150002).


I complied every type Debug, Debug DLL, Debug Static and same with the Release ones. Everything is linked and the directories are set (dragging the files into the VC just didn't seem to work properly, so opted to use the C:\SFML-1.6\lib and \include method instead). The correct DLL's are in with the executable also (sfml-system-d.dll in debug and sfml-system.dll in release) So I'm not sure why I'm still having problems?

8
General / Help with installation?
« on: July 31, 2010, 05:22:35 pm »
At least it was...


When I click the build I get this in the output;

Quote
1>------ Build started: Project: SFML 2, Configuration: Debug Win32 ------
1>  main.cpp
1>  LINK : c:\documents and settings\damian\my documents\visual studio 2010\Projects\SFML 2\Debug\SFML 2.exe not found or not built by the last incremental link; performing full link
1>  SFML 2.vcxproj -> c:\documents and settings\damian\my documents\visual studio 2010\Projects\SFML 2\Debug\SFML 2.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========



When the standard tutorial program is run.. I get this in the output after the system fails;

Quote
'SFML 2.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML 2\Debug\SFML 2.exe', Symbols loaded.
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'SFML 2.exe': Loaded 'C:\Documents and Settings\Damian\My Documents\Visual Studio 2010\Projects\SFML 2\Debug\sfml-system-d.dll', Cannot find or open the PDB file
LDR: LdrpWalkImportDescriptor() failed to probe c:\documents and settings\damian\my documents\visual studio 2010\Projects\SFML 2\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[3772] SFML 2.exe: Native' has exited with code -1072365566 (0xc0150002).


I am now using the right SDK and have followed everything perfectly. Any idea what this issue is?

9
General / Help with installation?
« on: July 31, 2010, 02:55:06 pm »
Quote from: "Laurent"
Quote
I've downloaded the WinGW (Code :: Blocks) and also tried just the Dev package version... still not one single .lib file, just the same .a's and .dll?

Seriously... are you kidding?

You're using Visual C++, right? So why don't you download the archive for Visual C++? :cry:


...... Oh jebus, Code Blocks is another compiler isn't it?... I was following another guide which said to use the WinGW version... I hadn't clicked he might have been using another compiler cuz I hadn't heard of Code Blocks :shock: I'm really sorry about all this, it's all working now :) lol

10
General / Help with installation?
« on: July 31, 2010, 01:07:27 am »
Then where are the lib files if they're not in the lib folder? I thought that myself, but after searching nearly every folder in the original SFML folder... I can't find any lib files? just .dll and .a?

This is the contents on the SFML Lib folder that I downloaded from this site;


I've downloaded the WinGW (Code :: Blocks) and also tried just the Dev package version... still not one single .lib file, just the same .a's and .dll?

11
General / Help with installation?
« on: July 30, 2010, 07:11:31 pm »
Being that the link version isn't working either... is this right for when it comes to dragging it's contents into my VC\lib?



The include works fine, everything does... apart from the libs. Both sfml-system.lib and sfml-system-d.lib aren't working for me. They're also in the Windows/system32 folder like some people have suggested... so despite the compiler being told where to look and having them in the VC AND Windows folders... it's STILL not finding them?

12
General / Help with installation?
« on: July 30, 2010, 06:29:54 pm »
Quote from: "Laurent"
Where did you write "C:\SFML-1.6\lib\"? Does the sfml-system.lib file exist in that folder?


I wrote it in the Library Directories space the tutorial says to write it. Inside the SFML-1.6\lib\ folder is exactly what came with the SDK I downloaded here... every file. I see the sfml-system.dll and a ton of .a extentions?

13
General / Help with installation?
« on: July 30, 2010, 05:34:36 pm »
Ok I've managed to get the Lib Directory to allow me to write;

C:\SFML-1.6\lib\;

and apply it with no issues... once I removed the $ and () around it... however I still get the

1>------ Build started: Project: SFML 2, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'sfml-system.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

message?

14
General / Help with installation?
« on: July 30, 2010, 05:23:35 pm »
Ok I tried $(C:\SFML-1.6\include); and the same for the lib in that directory... I get this following message;

An error has occurred while saving the edited properites listed below:
   Include Directories
   Library Directories
One or more values are invalid. MSBuild returned the following error: The expression "C:\SFML-1.6\include" cannot be evaluted.

Thats the full path, so I'm still confused as to why it won't work?

15
General / Help with installation?
« on: July 30, 2010, 05:09:30 pm »
I went to the section to add the lnclude, which looks like this

Quote
$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;


and added $(SFML-1.6)\include; to the end... it then went crazy when I clicked apply... did I do something wrong?

Pages: [1] 2
anything