|
||||||||||||||||||
|
|
previous story
next story ![]() |
|
"NeHe Maintainers Meet in London!" Discussion |
|
![]() Caste Moderator
Member since: 5/2/2006 From: Wehrheim, Hessen | ||||
![]() Luke aka Kazade and I .. see the book in my hand? I got a signed one.. hehe![]() | ||||
| ||||
![]() enablerbr
Member since: 6/25/2009 From: London, Greater London | ||||
| about "Beginning OpenGL Game Programming 2nd Edition" i look forward to some sort of working update. as i posted sometime ago on gamedev.net forums about the cd code not compiliing even with an update that was posted on the course tech site. which i never got a responce to. i have a nvidia 8800 gtx card. | ||||
| ||||
![]() Kazade Moderator
Member since: 2/1/2004 From: London, Greater London | ||||
Quote: I'm really sorry I didn't see that post. You can get the new files from here: http://www.kazade.co.uk/downloads/boglgp/bug-fixes-2009-07-11.zip | ||||
| ||||
![]() enablerbr
Member since: 6/25/2009 From: London, Greater London | ||||
| thanks. i grabbed the updates but it still didn't resolve my issue of the cd projects not compiling. i probably shouldn't be hi-jacking this thread to solve my problem. | ||||
| ||||
![]() Kazade Moderator
Member since: 2/1/2004 From: London, Greater London | ||||
| The CD project files in the initial print run were broken. That's likely why you are having problems. Those updated files replace the CD totally, they should work fine standalone. Did the new project files work on their own? (e.g. extract the zip, double click a vcproj file and compile and run). | ||||
| ||||
![]() enablerbr
Member since: 6/25/2009 From: London, Greater London | ||||
| ------ Build started: Project: simple, Configuration: Release Win32 ------ Compiling... main.cpp ..\src\main.cpp(7) : fatal error C1083: Cannot open include file: 'SDL/SDL.h': No such file or directory Build log was saved at "file://c:\Users\Sammie\Documents\OpenGL3.0\chapter_1\simple\vc++\Release\BuildLog.htm" simple - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== silly me. i had simply extracted the new files over the old folder. the above buildlog is me just using the extracted OpenGL3.0 folder alone and double clicking on simple.vproj. the funny thing is that if i highlight 'SDL/SDL.h' in 'main.cpp' and right click on it. then select Open Document. VS2008 has no problems finding and opening the file up. maybe i should mention i'm running Vista Home Premium 64bit sp2 and using VS2008 Standard sp1. i'm running on adim account with UAC turned on. [Edited by - enablerbr on August 27, 2009 10:38:26 AM] | ||||
| ||||
![]() Kazade Moderator
Member since: 2/1/2004 From: London, Greater London | ||||
| Heh, you're right. The SDL example project doesn't work (some paths and libraries were missing). I've uploaded a fixed version here: http://www.kazade.co.uk/downloads/boglgp/bug-fixes-2009-08-29.zip | ||||
| ||||
![]() enablerbr
Member since: 6/25/2009 From: London, Greater London | ||||
| sorry but still getting the same error on build. i extracted all OPENGL 3.0 contents to a fresh folder. making sure i deleted all previous verions. ------ Build started: Project: simple, Configuration: Release Win32 ------ Compiling... main.cpp ..\src\main.cpp(9) : fatal error C1083: Cannot open include file: 'SDL/SDL.h': No such file or directory Build log was saved at "file://c:\Users\Sammie\Documents\OpenGL3.0\chapter_1\simple\vc++\Release\BuildLog.htm" simple - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== | ||||
| ||||
![]() Kazade Moderator
Member since: 2/1/2004 From: London, Greater London | ||||
| Hmm, that IS weird. I've just deleted everything from my PC, downloaded the zip and double clicking the vcproj file then compiling Just Worked... Umm... could you do the following: 1. Open the vcproj file from a clean extract 2. Attempt to compile, this should ask you to create a solution file, just click save with the default filename. 3. When/if that the build fails, press ALT+F7, this should bring up the project properties dialog. 4. Go to Configuration Properties => C/C++ => General make sure that "Additional include directories" is "..\src" Then click OK and try rebuilding. | ||||
| ||||
![]() enablerbr
Member since: 6/25/2009 From: London, Greater London | ||||
| did as you asked and got this on rebuild. ------ Rebuild All started: Project: simple, Configuration: Release Win32 ------ Deleting intermediate and output files for project 'simple', configuration 'Release|Win32' Compiling... main.cpp Linking... LINK : fatal error LNK1104: cannot open file 'SDLmain.lib' Build log was saved at "file://c:\Users\Sammie\Documents\OpenGL3.0\chapter_1\simple\vc++\Release\BuildLog.htm" simple - 1 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== | ||||
| ||||
![]() Kazade Moderator
Member since: 2/1/2004 From: London, Greater London | ||||
| That's odd. The project files should have that path stored... Anyway, what we just did was add an extra search directory for header files which is why it found SDL/SDL.h. The next thing to do is to add an extra search path for library files (e.g. SDLmain.lib) I don't have access to a Windows PC at the moment, but I think if you go back to project properties, then under Configuration Properties => Linker one of the sub sections should have additional library input directories. Try adding ..\src to that as well. Can you confirm that the other projects (e.g. chapters 2+) are working (chapter 1 is a bit of a special case as it's the only chapter to feature SDL). Thanks, Luke. | ||||
| ||||
![]() enablerbr
Member since: 6/25/2009 From: London, Greater London | ||||
| adding ..\src to Configuration Properties => Linker => General => Additional Library Directorties still gives my previous buildlog error. as for chapter 2 first_app. that compiles just fine with no errors. many thanks for taking the time to try and resolve my problem. | ||||
| ||||
![]() andy_boy
Member since: 1/31/2006 From: New york, NY | ||||
| I'm glad you'll be creating new tutorials based on GL 3.2 BUT just like the new book also supports GLSL 1.20 will you also provide versions of your tutorials for GLSL for GL 2.1? | ||||
| ||||
All times are ET (US)![]() | previous story
next story ![]() |
|