source.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Source code of the Irrlicht Engine
  2. The complete source of the Irrlicht Engine can be found in this directory.
  3. Please note that YOU DO NOT NEED THIS SOURCE to develop 3d applications with
  4. the Irrlicht Engine. Instead, please use the .dll in the \bin directory, the
  5. .lib in the \lib directory and the header files in the \include directory.
  6. You will find a good tutorial how to set up your development environment and to
  7. use the engine in the \examples directory. (Try 01.helloworld)
  8. The source of the engine is included because for the following reasons:
  9. - To let developers be able to debug the engine.
  10. - To let developers be able to make changes to the engine.
  11. - To let developers be able to compile their own versions of the engine.
  12. HOW TO COMPILE THE ENGINE WITH LINUX
  13. If you wish to compile the engine for Linux yourself, run a 'make' in the
  14. folder 'source/Irrlicht'. After this, you should be able to make all example
  15. applications in examples. Then just run them from the directory where they are
  16. built.
  17. For the necessary compiler and linker flags please check the provided Makefiles
  18. in the examples directories.
  19. Only the Software Drivers and the Null Driver will work on all Linux machines,
  20. while OpenGL support requires either GLX support of the X11 server (try glxinfo)
  21. or a software OpenGL solution such as Mesa.
  22. If you get a compiling/linking problem like
  23. undefined reference to `glXGetProcAddress'
  24. This is a problem introduced by the NVidia drivers. There are several solutions:
  25. A) Update your drivers. All versions with GLX 1.4 support (i.e. beginning with
  26. 12/2005) will work.
  27. B) Define the symbol _IRR_GETPROCADDRESS_WORKAROUND_ during compilation of
  28. COpenGLDriver.cpp, either by adding it to the compiler command line or by
  29. uncommenting the line defining this symbol inside the OpenGL driver source.
  30. This will force the use of glXGetProcAddressARB which has better chances to
  31. work on older systems.
  32. If you get compiling or runtime problems regarding XF86VidMode, Xxf86vm.so, or
  33. the XFree86 VidMode extension you have also several solutions:
  34. A) Install the extension for your X server or the developer package in case of
  35. compiler/linker problems.
  36. B) Disable the VidMode usage by disabling the define _IRR_LINUX_X11_VIDMODE_ in
  37. include/IrrCompileConfig.h
  38. In this case you might give the RandR extension a try (by enabling the
  39. next define in that file) which also provides fullscreen support under Linux.
  40. If both extensions fail you won't have fullscreen support for Irrlicht.