Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: [How to] make your Ogre3D game on Ubuntu

  1. #1
    Join Date
    Jun 2006
    Location
    Thailand
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat
    Note:

    You no longer have to compile your own version of Ogre, I have made my own deb packages available here.

    First add the key

    Copy and paste this in the terminal

    Code:
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6FED7057
    Then go to System->Administration->Software Sources. Click on the "Third Party Software" Tab and then click the "Add" button.

    Replace the word "jaunty" with your version of Ubuntu below and add these repos.

    Code:
    deb http://ppa.launchpad.net/andrewfenn/ogredev/ubuntu jaunty main
    Code:
    deb-src http://ppa.launchpad.net/andrewfenn/ogredev/ubuntu jaunty main
    After you have done that click close.

    You can now get updates for the latest stable release of Ogre and CEGUI.

    If you wish to compile Ogre yourself then keep reading below.


    Introduction

    Ogre3d and a graphics rendering engine that one can use in either your game or 3d graphics program. It's under a dual license, the source is available under the LGPL but you can also purchase a commercial license for companies do not want to share additions to the Ogre Engine, or need technical support.

    This is a newish "how to" on getting everything set up so you can start making your games on Ubuntu using the latest version of Ogre3D and CEGUI. Before you start you might want to have a quick read of the getting started with Ogre guide to make sure Ogre3d is the graphics engine you want to use.

    Why compile yourself?

    - Ogre in the repositories is always an old version, this makes any development work difficult especially if you're trying to integrate code for specific versions of packages.
    - The package for Ogre is taken from Debian that means they have taken out support for cg which is not recommended. It also builds with support for the old openexr implementation rather then use freeimage support.
    - The packages for CEGUI are broken. It is impossible with the packages in Ubuntu to load up ogre's scheme files using CEGUI as they have not been built correctly.

    If none of these are problem for you then please go ahead and use the repositories, but I don't feel that's the case for most Ogre uses. The above problems all have bugs filed on launchpad.

    OK, lets do it

    First you're going to want to install the following packages.

    Code:
    sudo apt-get install build-essential libois-dev
    Build-Essential gives you everything you need to compile your programs. libois is the Open Input System which is used in the Ogre and CEGUI samples. If you're not using libOIS in your program then there is no need to install it although you might need to change some options in the ./configure if you don't.

    We're going to start by building some packages and then I'll show you a sample makefile at the end you can use.

    Building FreeImage

    First I like to start by adding the latest version of FreeImage as the packages for Ubuntu are always out of date. First go to FreeImage's website, then go to the download link and get the "Source distribution".

    When you have downloaded that, unzip it, cd into the directory and type:

    Code:
    make
    followed afterwards by

    Code:
    sudo make install
    Building CEGUI

    Next we will install CEGUI. If you're not going to use Crazy Eddies GUI in your program you can skip this step.

    The way Ubuntu packages CEGUI is incorrect if you want to use it with Ogre3D's default schemes. To correct this we need to download and build CEGUI ourselves.

    For building CEGUI you're going to need to first install the following packages.

    Code:
    sudo apt-get install libfreetype6-dev libpcre3-dev
    Go to the CEGUI download page and get the latest stable branch of "CEGUI Library Source Downloads". It will be marked as the one for Linux users.

    So unzip it ,cd into the directory and type the following.

    Code:
    ./configure --with-default-xml-parser=TinyXMLParser --with-default-image-codec=FreeImageImageCodec
    It will check that you have everything you need then give you the message "Now you can do make && make install. Good Luck!"

    Do what it says, don't forget to add "sudo" to your "make install".

    Building Ogre3d

    To so now we're going to build Ogre3D. Go and download the version of Ogre you want to use. I suggest the current stable package. Make sure you download the "Linux / OSX" package.

    First you're going to need to install a few packages to get Ogre building.
    Code:
    sudo apt-get install autoconf automake libtool libzzip-dev libxt-dev libxaw6-dev libxxf86dga-dev libxxf86vm-dev libxrandr-dev nvidia-cg-toolkit libglu1-mesa-dev
    Again, unzip it, cd into the directory and type the following..

    Code:
    ./bootstrap
    ./configure
    make
    sudo make install
    After you have compiled and installed Ogre on your system use the following command to make the library you just installed work.

    Code:
    sudo ldconfig
    You should also now be able to run the demos if you built them. They are located in /ogre/samples/common/bin, with "/ogre" being the directory you extracted the source from.

    - Makefile - So you have done all that and want to start coding.

    I suggest you layout your folders directory structure like this..

    Code:
    ./yourgame/Makefile
    ./yourgame/src
    ./yourgame/include
    ./yourgame/media
    ./yourgame/bin
    ./yourgame/cmake/modules
    You put your .cpp file into the src directory, your .h files will go into include and Ogre's media directory will be put into media. The bin directory will be where your compiled program goes, in that file you're going to need "Ogre.cfg", "plugins.cfg", "resources.cfg" which you can get from an example Ogre app.

    If you compiled Ogre yourself you're going to need to change "PluginFolder" in Plugins.cfg to the following..

    Code:
    PluginFolder=/usr/local/lib/OGRE/
    Compiling your own Ogre programs

    So you've installed your dependencies, maybe you have some code already, how do you compile, link and run it? Well let me introduce you to cmake.

    cmake is a program which will generate Makefiles for you, it's actually much more then this. It will generate visual studio programs, code::blocks, xcode, MinGW, whatever compiler or IDE you use to program in it will probably do it and all you have to do is type "cmake ."

    To set cmake up you need to write a script for it.

    I suggest looking at my cmake script as well as the FindOGRE module you will need.

    Setting up cmake can be difficult at first, but it's very much worth it for the ease of just typing cmake . to setup your build environment.

    Here is a stripped down version of my script. Put this is in ./yourgame/CMakeLists.txt

    Code:
    CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
    
    
    
    #Change PROJECT_NAME to the name of your project
    
    PROJECT(Project)
    
    
    
    # Change to whatever version your project is at
    
    SET( ${PROJECT_NAME}_MAJOR_VERSION 0 ) # < -- Something completely different from old version
    
    SET( ${PROJECT_NAME}_MINOR_VERSION 1 ) # < -- Incompatable with old versions
    
    SET( ${PROJECT_NAME}_PATCH_LEVEL 4 )   # < -- Minor fix
    
    
    
    SET( CMAKE_MODULE_PATH    ${CMAKE_MODULE_PATH}
    
                              ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )
    
    
    
    SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    
    
    
    #Declare any external dependencies that your project may have here.
    
    SET(Required_Packages
       OIS
    
       OGRE
    
       CEGUI
    
       CEGUIOGRE
    
    )
    
    
    
    # searches for all .cpp and .h files in the current directory and add them 
    
    # to the current project
    
    FILE(GLOB folder_source ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
    
    SOURCE_GROUP(${Project} FILES ${folder_source})
    
    
    
    INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
    
    
    IF (NOT WIN32) # Unix
        # Add compiler warnings ( Warn all, warn unused)
    
        ADD_DEFINITIONS( "-Wall -Wunused -ansi" )
    ENDIF (NOT WIN32)
    
    
    # create the project (Note WIN32 here will be ignored on linux, it means set to be
    # windows application instead of a console application)
    
    ADD_EXECUTABLE(${Project} WIN32 ${folder_source})
    
    
    
    #this foreach loads all of the packages that you specified as required.
    
    #It shouldn't need to be modified.
    
    FOREACH(Package ${Required_Packages})
    
      FIND_PACKAGE(${Package} REQUIRED)
    
      IF (${Package}_FOUND)
    
          INCLUDE_DIRECTORIES(${${Package}_INCLUDE_DIR})
    
          IF (${Package}_LIBRARIES)
    
             TARGET_LINK_LIBRARIES(hardwar ${${Package}_LIBRARIES})
    
          ELSE (${Package}_LIBRARIES)
    
             LINK_DIRECTORIES(${${Package}_LIBRARY_DIRS})
    
          ENDIF (${Package}_LIBRARIES)
    
      ELSE (${Package}_FOUND)
    
          MESSAGE(STATUS "${Package} not found")
    
      ENDIF(${Package}_FOUND)
    
    ENDFOREACH(Package)
    Making a program in Ogre

    To start coding in Ogre3d Check out the Basic Tutorials and build your way up from there.

    Further Reading

    Here is some further reading I recommend in coding on Linux using Ogre3d.

    Setting up an application - Deals with setting up your Ogre3d application and compiling it.
    Build FAQ - Deals with some problems people have compiling their programs with Ogre.

    Other Stuff you might want to look at

    Navi - A different User Interface API for Ogre
    FXpression - A particle engine which has a plugin for Ogre
    Bullet - A physics engine which can be plugged into Ogre
    Optimizing Your C/C++ Applications - Part 1 and Part 2

    I hope this helps some people.
    Last edited by lingnoi; July 19th, 2009 at 12:35 PM.

  2. #2
    Join Date
    Feb 2008
    Location
    Orange County CA
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Unhappy Re: [How to] make your Ogre3D game on Ubuntu

    Ok so I have been relentlessly trying to get this to work but I'm receiving this error:

    I get this when trying to make FreeImage:
    Code:
    tyler@Tyler-desktop:~/FreeImage$ make
    make -f Makefile.gnu 
    make[1]: Entering directory `/home/tyler/FreeImage'
    g++ -O3 -fPIC -fexceptions -fvisibility=hidden  -Wno-ctor-dtor-privacy -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit -ISource/LibJPEG -ISource/LibMNG -ISource/LibPNG -ISource/LibTIFF -ISource/ZLib -ISource/LibOpenJPEG -ISource/OpenEXR -ISource/OpenEXR/Half -ISource/OpenEXR/Iex -ISource/OpenEXR/IlmImf -ISource/OpenEXR/IlmThread -ISource/OpenEXR/Imath -c Source/FreeImage/PluginBMP.cpp -o Source/FreeImage/PluginBMP.o
    Source/FreeImage/PluginBMP.cpp: In function ‘BOOL LoadPixelDataRLE4(FreeImageIO*, void*, int, int, FIBITMAP*)’:
    Source/FreeImage/PluginBMP.cpp:227: error: no matching function for call to ‘MIN(int&, long int)’
    Source/FreeImage/PluginBMP.cpp:282: error: no matching function for call to ‘MIN(int&, long int)’
    make[1]: *** [Source/FreeImage/PluginBMP.o] Error 1
    make[1]: Leaving directory `/home/tyler/FreeImage'
    make: *** [default] Error 2
    tyler@Tyler-desktop:~/FreeImage$
    I get this when trying to configure and make CEGUI:
    Code:
    ********************************************************************************
    * Crazy Eddie's GUI System - Configuration Results Summary
    ********************************************************************************
    * Library Release Version:                              0.6.0
    *
    * Code options:
    *         Building CEGUI in debug mode:                 no
    *
    * Renderer Modules:
    *         Building OpenGL Renderer:                     yes
    *         Building Irrlict Renderer:                    no
    *
    * Image Loading Codec Modules (currently for OpenGL Renderer only):
    *         Building Corona Image Codec:                  no
    *         Building DevIL Image Codec:                   yes
    *         Building FreeImage Image Codec:               yes
    *         Building SILLY Image Codec:                   no
    *         Building TGA Image Codec:                     yes
    *
    *         Default Image Codec will be:                  FreeImageImageCodec
    *
    * XML Parser Modules:
    *         Building TinyXMLParser:                       yes
    *         Building ExpatParser:                         yes
    *         Building LibXMLParser:                        yes
    *         Building XercesParser:                        yes
    *
    *         Default XML Parser is:                        TinyXMLParser
    *
    * Scripting:
    *         Building Lua scripting module:                no
    *         Building tolua++cegui generator:              no
    *
    * Samples Framework:
    *         Building Samples:                             yes
    *         GTK2 based dialog for renderer selection:     no
    *         OpenGL Renderer available in samples:         yes
    *         Irrlict Renderer available in samples:        no
    *         Ogre3D Renderer available in samples:         yes
    ********************************************************************************
    
    Now you can do make && make install.  Good Luck!
    
    tyler@Tyler-desktop:~/CEGUI-0.6.0$ make
    Making all in .
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0'
    Making all in src
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/src'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/src'
    Making all in include
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/include'
    make  all-recursive
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/include'
    Making all in .
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/include'
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/include'
    Making all in elements
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/include/elements'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/include/elements'
    Making all in falagard
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/include/falagard'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/include/falagard'
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/include'
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/include'
    Making all in XMLParserModules
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/XMLParserModules'
    Making all in .
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/XMLParserModules'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/XMLParserModules'
    Making all in XercesParser
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/XercesParser'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/XercesParser'
    Making all in expatParser
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/expatParser'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/expatParser'
    Making all in libxmlParser
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/libxmlParser'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/libxmlParser'
    Making all in TinyXMLParser
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/TinyXMLParser'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/XMLParserModules/TinyXMLParser'
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/XMLParserModules'
    Making all in ImageCodecModules
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules'
    Making all in .
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules'
    Making all in DevILImageCodec
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules/DevILImageCodec'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules/DevILImageCodec'
    Making all in FreeImageImageCodec
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules/FreeImageImageCodec'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules/FreeImageImageCodec'
    Making all in TGAImageCodec
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules/TGAImageCodec'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules/TGAImageCodec'
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/ImageCodecModules'
    Making all in RendererModules
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/RendererModules'
    Making all in .
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/RendererModules'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/RendererModules'
    Making all in OpenGLGUIRenderer
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/RendererModules/OpenGLGUIRenderer'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/RendererModules/OpenGLGUIRenderer'
    Making all in directx81GUIRenderer
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/RendererModules/directx81GUIRenderer'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/RendererModules/directx81GUIRenderer'
    Making all in directx9GUIRenderer
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/RendererModules/directx9GUIRenderer'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/RendererModules/directx9GUIRenderer'
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/RendererModules'
    Making all in WindowRendererSets
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets'
    Making all in Falagard
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard'
    Making all in src
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard/src'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard/src'
    Making all in include
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard/include'
    Making all in .
    make[4]: Entering directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard/include'
    make[4]: Nothing to be done for `all-am'.
    make[4]: Leaving directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard/include'
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard/include'
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard'
    make[3]: Nothing to be done for `all-am'.
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard'
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets/Falagard'
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets'
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/WindowRendererSets'
    Making all in ScriptingModules
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/ScriptingModules'
    Making all in .
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/ScriptingModules'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/ScriptingModules'
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/ScriptingModules'
    Making all in Samples
    make[1]: Entering directory `/home/tyler/CEGUI-0.6.0/Samples'
    Making all in .
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/Samples'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/Samples'
    Making all in common
    make[2]: Entering directory `/home/tyler/CEGUI-0.6.0/Samples/common'
    Making all in include
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/Samples/common/include'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/Samples/common/include'
    Making all in src
    make[3]: Entering directory `/home/tyler/CEGUI-0.6.0/Samples/common/src'
    /bin/bash ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../Samples/common/include -I../../../include -I../../.. -DCEGUI_SAMPLE_DATAPATH="\"/usr/local/share/CEGUI"\"  -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/CEGUI -I/usr/include/OGRE   -I/usr/local/include/OIS -I/usr/local/include       -g -O2 -MT libCEGUISampleHelper_la-CEGuiOgreBaseApplication.lo -MD -MP -MF .deps/libCEGUISampleHelper_la-CEGuiOgreBaseApplication.Tpo -c -o libCEGUISampleHelper_la-CEGuiOgreBaseApplication.lo `test -f 'CEGuiOgreBaseApplication.cpp' || echo './'`CEGuiOgreBaseApplication.cpp
     g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../Samples/common/include -I../../../include -I../../.. -DCEGUI_SAMPLE_DATAPATH=\"/usr/local/share/CEGUI\" -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/CEGUI -I/usr/include/OGRE -I/usr/local/include/OIS -I/usr/local/include -g -O2 -MT libCEGUISampleHelper_la-CEGuiOgreBaseApplication.lo -MD -MP -MF .deps/libCEGUISampleHelper_la-CEGuiOgreBaseApplication.Tpo -c CEGuiOgreBaseApplication.cpp  -fPIC -DPIC -o .libs/libCEGUISampleHelper_la-CEGuiOgreBaseApplication.o
    CEGuiOgreBaseApplication.cpp: In constructor ‘CEGuiDemoFrameListener::CEGuiDemoFrameListener(CEGuiBaseApplication*, Ogre::RenderWindow*, Ogre::Camera*, bool, bool)’:
    CEGuiOgreBaseApplication.cpp:218: error: ‘class OIS::InputManager’ has no member named ‘numKeyBoards’
    CEGuiOgreBaseApplication.cpp:225: error: ‘class OIS::InputManager’ has no member named ‘numMice’
    make[3]: *** [libCEGUISampleHelper_la-CEGuiOgreBaseApplication.lo] Error 1
    make[3]: Leaving directory `/home/tyler/CEGUI-0.6.0/Samples/common/src'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/tyler/CEGUI-0.6.0/Samples/common'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/tyler/CEGUI-0.6.0/Samples'
    make: *** [all-recursive] Error 1


    any clue to why this is occurring?
    Last edited by Gwarkill; May 10th, 2008 at 02:08 AM. Reason: uncoded

  3. #3
    Join Date
    Jun 2006
    Location
    Thailand
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [How to] make your Ogre3D game on Ubuntu

    Do you have build-essential installed? If you can't get FreeImage built then you can use the Ubuntu repository.

    Code:
    apt-get install build-essential libfreeimage-dev
    Your second problem looks like not having OIS installed..

    Code:
    apt-get install libois-dev

  4. #4
    Join Date
    Feb 2008
    Location
    Orange County CA
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [How to] make your Ogre3D game on Ubuntu

    Checked both and they are both the latest version.

  5. #5
    Join Date
    Jun 2006
    Location
    Thailand
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [How to] make your Ogre3D game on Ubuntu

    Try building CEGUI without the samples

    Code:
    ./configure --with-default-xml-parser=TinyXMLParser --with-default-image-codec=FreeImageImageCodec --disable-samples

  6. #6
    Join Date
    Feb 2008
    Location
    Orange County CA
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [How to] make your Ogre3D game on Ubuntu

    I think every thing is ok.

    How do i actually run ogre.
    Last edited by Gwarkill; May 11th, 2008 at 05:43 PM.

  7. #7
    Join Date
    Jun 2006
    Location
    Thailand
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [How to] make your Ogre3D game on Ubuntu

    Quote Originally Posted by Gwarkill View Post
    I think every thing is ok.

    How do i actually run ogre.
    OK, so you compiled Ogre3d and want to do some coding..

    I suggest checking the tutorials on Ogre's wiki.

    I'll write more about it in my first post.

  8. #8
    Join Date
    Feb 2008
    Location
    Orange County CA
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [How to] make your Ogre3D game on Ubuntu

    You have been one hell of a help. Thanks bro.


  9. #9
    Join Date
    Jun 2006
    Location
    Thailand
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [How to] make your Ogre3D game on Ubuntu

    I updated this tutorial. All the packages you need to install to get this compiled have been added, a few extra notes, etc.

    If anyone has problems leave a reply or private message me.

  10. #10
    Join Date
    Jul 2007
    Location
    Austin, TX (formerly D.C)
    Beans
    359
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: [How to] make your Ogre3D game on Ubuntu

    Thanks! The post was very helpful.

    Mike

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •