[fixed]sample 14 of irrlicht sdk

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
KakCAT
Posts: 10
Joined: Fri May 14, 2010 10:09 am

[fixed]sample 14 of irrlicht sdk

Post by KakCAT »

I don't know if this is the place to say it, but I tried to compile the example 14 and I got an error linking, missing wglCreateContext (opengl32.lib is missing in the included libraries)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Do the other examples work (otherwise you might actually not have that library installed on your system)?
And please tell us on which Operating System you are (I guess Windows in this case as you should get another error otherwise) and which compiler (gcc or VS) and which IDE (c::b or VS) you are using. Also which project file you are using (for example Win32Window_vc8.vcproj or Win32Window_vc9.vcproj).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
KakCAT
Posts: 10
Joined: Fri May 14, 2010 10:09 am

Post by KakCAT »

hi CuteAlien,

I'm on Windows XP, SP2, using VS2005, SP1

I open BuildAllExamples_v8.sln on the examples directory,and do a Build All (both debug and release)


Everything compiles well except Debug&Release 14.Win32Window_vc8
------ Rebuild All started: Project: 14.Win32Window_vc8, Configuration: Release Win32 ------
Deleting intermediate and output files for project '14.Win32Window_vc8', configuration 'Release|Win32'
Compiling...
main.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol __imp__wglShareLists@8 referenced in function _main
main.obj : error LNK2019: unresolved external symbol __imp__wglCreateContext@4 referenced in function _main
..\..\bin\Win32-VisualStudio\14.Win32Window.exe : fatal error LNK1120: 2 unresolved externals
Build Time 0:01
14.Win32Window_vc8 - 3 error(s), 0 warning(s)
(adding openGL32.lib to the linking makes it work ok)

and Demo_vc8
------ Rebuild All started: Project: Demo_vc8, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'Demo_vc8', configuration 'Debug|Win32'
Compiling...
main.cpp
d:\utils\coding\irrlicht-1.7.1\examples\demo\cdemo.h(21) : fatal error C1083: Cannot open include file: 'irrKlang.h': No such file or directory
CMainMenu.cpp
CDemo.cpp
d:\utils\coding\irrlicht-1.7.1\examples\demo\cdemo.h(21) : fatal error C1083: Cannot open include file: 'irrKlang.h': No such file or directory
Generating Code...
Build Time 0:02
Demo_vc8 - 2 error(s), 0 warning(s)


I was just notifying, the sample 14 (which I wanted to test) is already operative with the inclusion of the missing lib, dissected, understood and assimilated to my project ;)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Ok, thanks. I'll take a look tomorow (when I'm back on Windows) if the project file is fine.

For the demo - you can either remove the USE_IRRKLANG define (it's not enabled in the header, so I guess it's probably enabled in the project file somewhere). Or if you want the sound, then go to http://www.ambiera.com/irrklang/ and download the irrKlang library.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yeah, that's a missing lib in the project file. I only use the vc9 files.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I've changed it in the 1.7 branch. I still have a Visual Studio 2005 Express on my system, but I must admit I also rarely use it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply