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

Pages: [1]
1
Graphics / image.LoadFromFile( "Logo.tga" ) - Fails
« on: October 26, 2010, 07:33:00 pm »
Quote
'SFML-Window.exe': Loaded 'I:\My documents\Programming\Games\SpaceCowboys1\Debug\SFML-Window.exe', Symbols loaded.
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'SFML-Window.exe': Loaded 'I:\My documents\Programming\Games\SpaceCowboys1\sfml-window.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll'
'SFML-Window.exe': Loaded 'I:\My documents\Programming\Games\SpaceCowboys1\sfml-system.dll'
'SFML-Window.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll'
'SFML-Window.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll'
'SFML-Window.exe': Loaded 'I:\My documents\Programming\Games\SpaceCowboys1\sfml-graphics.dll'
'SFML-Window.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll', Symbols loaded.
'SFML-Window.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll'
'SFML-Window.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\nvoglv32.dll'
The thread 'Win32 Thread' (0x318) has exited with code 0 (0x0).
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\guard32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\version.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\fltLib.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\dinput.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\hid.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'SFML-Window.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
First-chance exception at 0x74ef8499 in SFML-Window.exe: 0xC0000005: Access violation reading location 0x00344000.
Unhandled exception at 0x77a8158e in SFML-Window.exe: 0xC0000005: Access violation.
The program '[708] SFML-Window.exe: Native' has exited with code -1073741819 (0xc0000005).


Above is the error log I recieve - could this be because I use a 64bit version of Windows7 ??

2
Graphics / image.LoadFromFile( "Logo.tga" ) - Fails
« on: October 26, 2010, 07:30:43 pm »
I am using Visual C++, I have checked the current directory in the configuration options and I can confirm the correct location is given.

I also changed the method in which I include the libraries, and used the .dll method described in the website instructions.

Now, when I run the program I get some really strange artefacts in the console window and a random beeping noise.

I have debugged the program and I can see that the error occurs when I call the SFML function LoadTexture().

Does anyone have any ideas about this?

Again, any help is greatly appreciated.

3
Graphics / image.LoadFromFile( "Logo.tga" ) - Fails
« on: October 24, 2010, 07:09:00 pm »
Hey guys,

I hope someone can help with the problem I currently have. I have created a LoadTexture method in my VideoSystem class which looks as follows:

Code: [Select]
bool VideoSystem::LoadTexture( char* texName, GLuint texHandle )
{
sf::Image image;

// Load the image
if(!image.LoadFromFile( texName ))
return false;

// Set the texHandle as current
glBindTexture(GL_TEXTURE_2D, texHandle);

// Create the texture
glTexImage2D(GL_TEXTURE_2D, 0, 4, image.GetWidth(), image.GetHeight(), 0, GL_RGB, GL_UNSIGNED_BYTE, image.GetPixelsPtr());

// Specify filtering and edge actions
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);

return (TRUE);
}


I am trying to pass the following:

Code: [Select]
videoSystem->LoadTexture("Logo.tga", texture[0]);

But I get:

Quote
Failed to load image "Logo.tga". Reason : Unable to open file


I have the files in the same folder as the project and source but this doesn't seem to work.

Any help would be greatly appreciated.

4
General / Tutorial - SFML using OpenGL error
« on: February 18, 2010, 08:53:42 pm »
Thanks for the prompt reply.

sfml-window-d.lib
sfml-system-d.lib  
opengl32.lib
glu32.lib

Those were the ones I needed. Great help thanks again :-)


Keep up the good work!

5
General / Tutorial - SFML using OpenGL error
« on: February 18, 2010, 07:20:29 pm »
I have no doubt I have done something stupid here:

Code: [Select]
1>------ Rebuild All started: Project: SFML-Window, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'SFML-Window', configuration 'Debug|Win32'
1>Compiling...
1>Main.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>Main.obj : error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glVertex3f@12 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glBegin@4 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glRotatef@16 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 __imp__glTranslatef@12 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glDepthMask@4 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glClearDepth@8 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>F:\Programming\Programs\SFML-Using OpenGL\Debug\SFML-Window.exe : fatal error LNK1120: 16 unresolved externals
1>Build log was saved at "file://f:\Programming\Programs\SFML-Using OpenGL\Debug\BuildLog.htm"
1>SFML-Window - 17 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


So, I copied the code exactly from the tutorial, I put sfml-window-d.lib in the linker box and the window-d.dll in the project folder. To me it looks like its not detecting OpenGL but in the tutorial it sais this should be sorted automatically.

If it helps i'm using Windows 7 x64 and VS 2008. Please help!

Pages: [1]
anything