OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Talk:Basic Tutorial 6
View page
Source of version: 1
(current)
!!Clarification of include dirs and library files Perhaps there should be a clarification of which include dirs and library files you need to be able to compile this tutorial code? I spent a good hour wondering why I got linking errors, before I managed to dig up an old forum post that explained how to solve my problems... Anyways, the library files you need are: lib/OgreMain.lib lib/OgreGUIRenderer.lib Dependencies/lib/(Debug|Release)/OIS.lib Dependencies/lib/(Debug|Release)/CEGUIBase.lib Also, OgreCEGUIRenderer.h is located in Samples/Common/CEGUIRenderer/include. {DL()} With the new SDKs (at least the [http://1.4.6|1.4.6] VC2008 SDK), OgreCEGUIRenderer.h is located in samples/include. ((User:Nullmech|Nullmech)) 15:20, 27 February 2008 (GMT)] {DL} !!About the cleanup I found out that the cleaning sequence proposed here : ~pp~ delete mRenderer; delete mSystem; ~/pp~ gets me a segfault, and reversing the order of those deletions doesn't. Maybe there's an error in the example. Can anyone look into this ? !!Comments On Previous Statements While i received no segfault, I also had the same libraries issue. An additional section should certainly be added about the libraries included. !!linux (gentoo x86_64) notes i had some problems ... they are all fixed now .. but I thought I might share.. My problem: * compiling and linking of the program all worked without problem. * The program was faulting at runtime... * the program would run ok by commenting out the lines in setupCEGUI(). * for me this was all caused by having ogre compiled with threads enabled (portage USE flag "threads"... i think it's ./configure option --enable-threading).. so CEGUI and ogre with threads enabled will not work. My Environment: ~pp~ gentoo x86_64 version 1.4.8 of ogre version 0.6.0 of CEGUI ~/pp~ RE: Link library's used to get linking working, my code:blocks project required the library's: ~pp~ "OgreMain" "OIS" "CEGUIBase" "CEGUIOgreRenderer" ( as OgreGUIRenderer didn't exit for me) ~/pp~ RE: Search Directories used ~pp~ "/usr/include/OGRE" "/usr/include/CEGUI/" "/usr/include/OIS/" ~/pp~ !!!RE: Clarification of include dirs and library files Hi, first-time poster, how ya goin. Apologies in advance if my posting style sucks, or I end up violating a bunch of netiquette or wiki protocols, or anything. By way of preamble, I'm in Ubuntu Intrepid, using Gedit + Plugins->External Tools->Build, and employing the makefile/make functionality described in "Setting Up An Application" under the "Gnu Compiler Collection (gcc) v3.x (using make)" subheading. I'm compiling with g++ version 4.3.2. I got through the rest of the tutorials just fine, but then got to #6 and hit a brick wall. I think it is unclear and assumes too much programming experience. I mean, the rest of the tutorials do assume a little bit of prior programming experience, but they were at the right level to challenge us newbs without going overboard. Tutorial 6, though, is something else. So, for those who come after, seeking answers here, my solution resided in modifying the makefile thus: // Start of file DEFINES = LIBS = OGRE OIS CEGUI-OGRE CEGUI CXX = g++ CXXFLAGS = $(shell pkg-config --cflags $(LIBS)) $(DEFINES) LD = g++ LDFLAGS = $(shell pkg-config --libs $(LIBS)) TUTORIAL = tutorial.cpp all: ~pp~ $(LD) $(CXXFLAGS) $(LDFLAGS) $(TUTORIAL) -o tutorial ~/pp~ tutorial: $(TUTORIAL) clean: ~pp~ rm -f $(TUTORIAL) tutorial ~/pp~ // End of file That's right. Despite what it says in the tutorial, if you are in Linux using "make," then you don't need to "make sure the following paths are in the include search paths directive: $(OGRE_HOME)\include, $(OGRE_HOME)\include\CEGUI, and $(OGRE_HOME)\samples\include", or "add CEGUIBase_d.lib and OgreGUIRenderer_d.lib to the linker dependencies." Neither do you have to "add CEGUIBase_d.lib OgreGUIRenderer_d.lib to linker>input>Additional Dependencies." You just gotta add the names of some libraries to your makefile. Nice, huh?
Search by Tags
Search Wiki by Freetags
Latest Changes
One Function Ogre
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
...more
Search
Find
Advanced
Search Help
Online Users
191 online users