[Solved] Trouble building Ogre 1.6.2 samples for Gentoo

Problems building or running the engine, queries about how to use features etc.
Post Reply
japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

[Solved] Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

I'm new to Ogre, and relatively inexperienced with Gentoo, so please bear with me...

I emerged Ogre 1.4.9 (Edit: I have 1.6.2 installed now!) with Gentoo, and while I've found where the Samples were located, they weren't compiled. There were some Makefile.am and Makefile.in, but I wasn't sure what to do with them, since automake would complain that it needs a config file, yet none are seemingly provided.

I tried this option: http://forums.gentoo.org/viewtopic-t-739805.html

However, the cmake would only complain that I don't have OIS (even if it's installed).

Since I was learning cmake anyways, I also tried this: http://www.ogre3d.org/forums/viewtopic.php?f=4&t=45160

Cmake complained I didn't have freeimage in this case (it's hardmasked, so I didn't risk installing it).

I feel like I'm missing something obvious, but I'm not sure what. Is there a way to compile the samples without freeimage and (preferably) OIS? I do have devIL installed.
Last edited by japtar10101 on Thu Jul 23, 2009 3:04 am, edited 3 times in total.

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 4
Contact:

Re: Trouble building Ogre 1.4.9 samples for Gentoo

Post by haffax »

First: I have no experience with gentoo whatsoever, but it certainly is better to use Ogre 1.6 rather than Ogre 1.4. Ogre 1.4 is officially unsupported, as we only support current development version and current stable version (which is Ogre 1.6)

So best you retry Ogre 1.6 and post your problems with that if you encounter them. Neither of your linked posts seem to address Ogre 1.4. CMake is irrelevant for that version of Ogre.
team-pantheon programmer
creators of Rastullahs Lockenpracht

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.4.9 samples for Gentoo

Post by japtar10101 »

haffax wrote:First: I have no experience with gentoo whatsoever, but it certainly is better to use Ogre 1.6 rather than Ogre 1.4. Ogre 1.4 is officially unsupported, as we only support current development version and current stable version (which is Ogre 1.6)

So best you retry Ogre 1.6 and post your problems with that if you encounter them. Neither of your linked posts seem to address Ogre 1.4. CMake is irrelevant for that version of Ogre.
EDIT: I just tried emerging (the Gentoo way of installing source) ogre 1.6.2. It seems the problem is with libtools and RenderSystem_GL.la.

Here's the emerge error:

Code: Select all

../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.a(ATI_FS_GLGpuProgram.o):(.data.rel.ro._ZTVN4Ogre19ATI_FS_GLGpuProgramE[vtable for Ogre::ATI_FS_GLGpuProgram]+0x130): undefined reference to `Ogre::GpuProgram::setManualNamedConstants(Ogre::GpuNamedConstants const&)'
../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.a(ATI_FS_GLGpuProgram.o):(.data.rel.ro._ZTVN4Ogre19ATI_FS_GLGpuProgramE[vtable for Ogre::ATI_FS_GLGpuProgram]+0x138): undefined reference to `Ogre::GpuProgram::setManualNamedConstantsFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
libtool: install: error: relink `RenderSystem_GL.la' with the above command before installing it
make[5]: *** [install-pkglibLTLIBRARIES] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-games/ogre-1.6.2/work/ogre/RenderSystems/GL/src'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/dev-games/ogre-1.6.2/work/ogre/RenderSystems/GL/src'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-games/ogre-1.6.2/work/ogre/RenderSystems/GL/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-games/ogre-1.6.2/work/ogre/RenderSystems/GL'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-games/ogre-1.6.2/work/ogre/RenderSystems'
make: *** [install-recursive] Error 1
collect2: ld returned 1 exit status
libtool: install: error: relink `RenderSystem_GL.la' with the above command before installing it
For more details, here's the last 100 lines from emerge:
http://dpaste.com/67706/

And /usr/lib/OGRE/RenderSystem_GL.la says,

Code: Select all

# RenderSystem_GL.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.6
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='RenderSystem_GL.so'

# Names of this library.
library_names='RenderSystem_GL.so RenderSystem_GL.so RenderSystem_GL.so'

# The name of the static archive.
old_library=''

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=' -pthread'

# Libraries that this one depends upon.
dependency_libs=' -L/usr/lib /usr/lib/libGLU.la -lGL /usr/lib/libXext.la /usr/lib/libGL.la /usr/lib/libXrandr.la /usr/lib/libXxf86vm.la /usr/lib/libOgreMain.la /usr/lib/libzzip.la /usr/lib/libgtk-x11-2.0.la /usr/lib/libgdk-x11-2.0.la /usr/lib/libatk-1.0.la /usr/lib/libgio-2.0.la /usr/lib/libpangoft2-1.0.la /usr/lib/libgdk_pixbuf-2.0.la /usr/lib/libpangocairo-1.0.la /usr/lib/libcairo.la /usr/lib/libpango-1.0.la /usr/lib/libpixman-1.la /usr/lib/libfontconfig.la /usr/lib/libglitz-glx.la -lSM -lICE -lXmu -lXt -lXext -lXi -lX11 /usr/lib/libXmu.la /usr/lib/libXt.la /usr/lib/libSM.la -luuid /usr/lib/libICE.la /usr/lib/libXi.la /usr/lib/libglitz.la /usr/lib/libxcb-render-util.la /usr/lib/libxcb-render.la /usr/lib/libXrender.la /usr/lib/libX11.la /usr/lib/libgobject-2.0.la /usr/lib/libgmodule-2.0.la /usr/lib/libfreetype.la /usr/lib/libexpat.la /usr/lib/libglib-2.0.la /usr/lib/libxcb-xlib.la /usr/lib/libxcb.la /usr/lib/libXau.la /usr/lib/libXdmcp.la -lXaw -lboost_thread -lCg /usr/lib/libILU.la /usr/lib/libIL.la /usr/lib/libtiff.la -ljbig /usr/lib/libpng12.la /usr/lib/libmng.la /usr/lib/liblcms.la /usr/lib/libjasper.la /usr/lib/libjpeg.la /usr/lib/libIlmImf.la /usr/lib/libImath.la /usr/lib/libHalf.la /usr/lib/libIlmThread.la /usr/lib/libIex.la -lpthread -lz -ldl'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for RenderSystem_GL.
current=0
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib/OGRE'

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 4
Contact:

Re: Trouble building Ogre 1.4.9 samples for Gentoo

Post by haffax »

All missing symbols are in libOgreMain, so question is: Did OgreMain build correctly beforehand?
team-pantheon programmer
creators of Rastullahs Lockenpracht

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.4.9 samples for Gentoo

Post by japtar10101 »

I hit the Gentoo forums to check out what the problem was with Ogre 1.6.2. Turns out you have to uninstall 1.4 first, then try to install 1.6.2. This worked really well.

I managed to get the samples to compile, but when I run it, it complains that it cannot fine the plugin.cfg and resource.cfg files. This makes sense, since I don't have one in the directory I'm working with. Thus, I'm trying to find and copy the version of these text files my computer installed. Does anyone know where Gentoo linux place these files? If they don't, can anyone provide what an example looks like?

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 4
Contact:

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by haffax »

You find examples for plugin.cfg in the Ogre source under samples/common/bin.
team-pantheon programmer
creators of Rastullahs Lockenpracht

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

haffax wrote:You find examples for plugin.cfg in the Ogre source under samples/common/bin.
Thanks a lot. I'm almost there!

I get an exception when I run the CelShading demo:

Code: Select all

An exception has occured: OGRE EXCEPTION(3:RenderingAPIException): Unable to create a suitable GLXContext in GLXContext::GLXContext at OgreGLXContext.cpp (line 61)*-*-* OGRE Shutdown
Is it because I'm missing some file? if so, which one is it, and where should I move it into?

Here's the full output:

Code: Select all

./CelShading 
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DevIL version: Developer's Image Library (DevIL) 1.7.7
DevIL image formats: bmp dib cut dcx dds exr gif hdr icns ico cur iff jpg jpe jpeg jp2 lif mdl mng jng pcd pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr raw sgi bw rgb rgba sun tga vda icb vst tif tiff vtf wal xpm raw 
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library /usr/lib/OGRE/RenderSystem_GL.so
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_ParticleFX.so
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_BSPSceneManager.so
Installing plugin: BSP Scene Manager
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager.so
Installing plugin: Octree & Terrain Scene Manager
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so
Installing plugin: Cg Program Manager
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 1.6.2 (Shoggoth)
Creating resource group Bootstrap
Added resource location '../../Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location '../../Media' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/fonts' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/programs' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/models' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/overlays' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/particle' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/gui' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/PCZAppMedia' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
CPU Identifier & Features
-------------------------
 *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz
 *      SSE: yes
 *     SSE2: yes
 *     SSE3: yes
 *      MMX: yes
 *   MMXEXT: yes
 *    3DNOW: no
 * 3DNOWEXT: no
 *     CMOV: yes
 *      TSC: yes
 *      FPU: yes
 *      PRO: yes
 *       HT: no
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
GLRenderSystem::_createRenderWindow "OGRE Render Window", 640x480 windowed  miscParams: FSAA=0 displayFrequency=60 MHz gamma= vsync=No 
An exception has occured: OGRE EXCEPTION(3:RenderingAPIException): Unable to create a suitable GLXContext in GLXContext::GLXContext at OgreGLXContext.cpp (line 61)*-*-* OGRE Shutdown
Unregistering ResourceManager for type Compositor
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Uninstalling plugin: Cg Program Manager
Plugin successfully uninstalled
Unloading library /usr/lib/OGRE/Plugin_CgProgramManager.so
Uninstalling plugin: Octree & Terrain Scene Manager
Plugin successfully uninstalled
Unloading library /usr/lib/OGRE/Plugin_OctreeSceneManager.so
Uninstalling plugin: BSP Scene Manager
Plugin successfully uninstalled
Unloading library /usr/lib/OGRE/Plugin_BSPSceneManager.so
Uninstalling plugin: ParticleFX
Plugin successfully uninstalled
Unloading library /usr/lib/OGRE/Plugin_ParticleFX.so
Uninstalling plugin: GL RenderSystem
******************************
*** Stopping GLX Subsystem ***
******************************
Plugin successfully uninstalled
Unloading library /usr/lib/OGRE/RenderSystem_GL.so
Unregistering ResourceManager for type Material

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

japtar10101 wrote:I get an exception when I run the CelShading demo:

Code: Select all

An exception has occured: OGRE EXCEPTION(3:RenderingAPIException): Unable to create a suitable GLXContext in GLXContext::GLXContext at OgreGLXContext.cpp (line 61)*-*-* OGRE Shutdown
The problem seems to disappear if I use sudo. It then tries to find a resource that's not available:

Code: Select all

/usr/libexec/<unknown>: No such file or directory.
Edit: This appears in some samples, but not others. BSP also seg faults. Compositer runs, then crashes my system :(.

Here's the full text:

Code: Select all

sudo ./CelShading 
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DevIL version: Developer's Image Library (DevIL) 1.7.7
DevIL image formats: bmp dib cut dcx dds exr gif hdr icns ico cur iff jpg jpe jpeg jp2 lif mdl mng jng pcd pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr raw sgi bw rgb rgba sun tga vda icb vst tif tiff vtf wal xpm raw 
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library /usr/lib/OGRE/RenderSystem_GL.so
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_ParticleFX.so
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_BSPSceneManager.so
Installing plugin: BSP Scene Manager
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager.so
Installing plugin: Octree & Terrain Scene Manager
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so
Installing plugin: Cg Program Manager
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 1.6.2 (Shoggoth)
Creating resource group Bootstrap
Added resource location '../../Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location '../../Media' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/fonts' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/programs' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/models' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/overlays' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/particle' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/gui' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/PCZAppMedia' of type 'FileSystem' to resource group 'General'
Added resource location '../../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
CPU Identifier & Features
-------------------------
 *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz
 *      SSE: yes
 *     SSE2: yes
 *     SSE3: yes
 *      MMX: yes
 *   MMXEXT: yes
 *    3DNOW: no
 * 3DNOWEXT: no
 *     CMOV: yes
 *      TSC: yes
 *      FPU: yes
 *      PRO: yes
 *       HT: no
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
GLRenderSystem::_createRenderWindow "OGRE Render Window", 640x480 windowed  miscParams: FSAA=0 displayFrequency=60 MHz gamma= vsync=No 
GLXWindow::create used FBConfigID = 112
GL_VERSION = 1.3 Mesa 7.4
GL_VENDOR = DRI R300 Project
GL_RENDERER = Mesa DRI R300 20060815 TCL
GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_MESAX_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_convolution GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_gpu_program_parameters GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_APPLE_packed_pixels GL_ATI_blend_equation_separate GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texture_rectangle GL_NV_texgen_reflection GL_NV_vertex_program GL_OES_read_format GL_SGI_color_matrix GL_SGI_color_table GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow_ambient GL_SUN_multi_draw_arrays
Supported GLX extensions: GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer GLX_MESA_swap_control GLX_MESA_swap_frame_usage GLX_OML_swap_method GLX_SGI_swap_control GLX_SGI_video_sync GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_visual_select_group 
***************************
*** GL Renderer Started ***
***************************
Registering ResourceManager for type GpuProgram
GL: Using framebuffer copy for rendering to textures (worst)
GL: Warning: RenderTexture size is restricted to size of framebuffer. If you are on Linux, consider using GLX instead of SDL.
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL Rendering Subsystem
GPU Vendor: unknown
Device Name: Mesa DRI R300 20060815 TCL
Driver Version: 1.3.0.0
 * Fixed function pipeline: yes
 * Hardware generation of mipmaps: yes
 * Texture blending: yes
 * Anisotropic texture filtering: yes
 * Dot product texture operation: yes
 * Cube mapping: yes
 * Hardware stencil buffer: yes
   - Stencil depth: 8
   - Two sided stencil support: yes
   - Wrap stencil values: yes
 * Hardware vertex / index buffers: yes
 * Vertex programs: yes
 * Fragment programs: yes
 * Geometry programs: no
 * Supported Shader Profiles: arbfp1 arbvp1
 * Texture Compression: yes
   - DXT: no
   - VTC: no
 * Scissor Rectangle: yes
 * Hardware Occlusion Query: no
 * User clip planes: yes
 * VET_UBYTE4 vertex element type: yes
 * Infinite far plane projection: yes
 * Hardware render-to-texture: no
 * Floating point textures: no
 * Non-power-of-two textures: no
 * Volume textures: yes
 * Multiple Render Targets: 1
   - With different bit depths: no
 * Point Sprites: no
 * Extended point parameters: no
 * Max Point Size: 10922
 * Vertex texture fetch: no
 * Render to Vertex Buffer : no
 * GL 1.5 without VBO workaround: no
 * Frame Buffer objects: no
 * Frame Buffer objects (ARB extension): no
 * Frame Buffer objects (ATI extension): no
 * PBuffer suppport: no
 * GL 1.5 without HW-occlusion workaround: no
Registering ResourceManager for type Texture
ResourceBackgroundQueue - threading enabled, starting own thread
ResourceBackgroundQueue - thread starting.
Particle Renderer Type 'billboard' registered
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Parsing script OgreProfiler.material
Parsing script Ogre.fontdef
Parsing script OgreDebugPanel.overlay
Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
Font BlueHighwayusing texture size 512x512
Info: Freetype returned null for character 127 in font BlueHighway
Info: Freetype returned null for character 128 in font BlueHighway
Info: Freetype returned null for character 129 in font BlueHighway
Info: Freetype returned null for character 130 in font BlueHighway
Info: Freetype returned null for character 131 in font BlueHighway
Info: Freetype returned null for character 132 in font BlueHighway
Info: Freetype returned null for character 133 in font BlueHighway
Info: Freetype returned null for character 134 in font BlueHighway
Info: Freetype returned null for character 135 in font BlueHighway
Info: Freetype returned null for character 136 in font BlueHighway
Info: Freetype returned null for character 137 in font BlueHighway
Info: Freetype returned null for character 138 in font BlueHighway
Info: Freetype returned null for character 139 in font BlueHighway
Info: Freetype returned null for character 140 in font BlueHighway
Info: Freetype returned null for character 141 in font BlueHighway
Info: Freetype returned null for character 142 in font BlueHighway
Info: Freetype returned null for character 143 in font BlueHighway
Info: Freetype returned null for character 144 in font BlueHighway
Info: Freetype returned null for character 145 in font BlueHighway
Info: Freetype returned null for character 146 in font BlueHighway
Info: Freetype returned null for character 147 in font BlueHighway
Info: Freetype returned null for character 148 in font BlueHighway
Info: Freetype returned null for character 149 in font BlueHighway
Info: Freetype returned null for character 150 in font BlueHighway
Info: Freetype returned null for character 151 in font BlueHighway
Info: Freetype returned null for character 152 in font BlueHighway
Info: Freetype returned null for character 153 in font BlueHighway
Info: Freetype returned null for character 154 in font BlueHighway
Info: Freetype returned null for character 155 in font BlueHighway
Info: Freetype returned null for character 156 in font BlueHighway
Info: Freetype returned null for character 157 in font BlueHighway
Info: Freetype returned null for character 158 in font BlueHighway
Info: Freetype returned null for character 159 in font BlueHighway
Info: Freetype returned null for character 160 in font BlueHighway
Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script Examples.program
Parsing script StdQuad_vp.program
Parsing script deferred_post_onepass.hlsl.program
Parsing script deferred_post_onepass.glsl.program
Parsing script deferred.glsl.program
Parsing script deferred.program
Parsing script deferred.hlsl.program
Parsing script deferred_post_multipass.glsl.program
Parsing script deferred_post_ambient.program
Parsing script deferred_post_multipass.hlsl.program
Parsing script deferred_post_minilight.program
Parsing script deferred_post_minilight.glsl.program
Parsing script deferred_post_minilight.hlsl.program
Parsing script deferred_post_debug.program
Parsing script deferred_post_debug.glsl.program
Parsing script deferred_post_debug.hlsl.program
Parsing script deferred_post_vs.program
Parsing script GLSLSwizzle.material
Parsing script Tiling.material
Parsing script Hurt.material
Parsing script pssm.material
Parsing script BlackAndWhite.material
Parsing script Posterize.material
Parsing script ASCII.material
Parsing script VarianceShadowmap.material
Parsing script MotionBlur.material
Parsing script Bloom2.material
Parsing script Ogre.material
Parsing script Examples-Advanced.material
Compiler error: object unsupported by render system in Examples-Advanced.material(381)
Parsing script ParticleGS.material
Parsing script Halftone.material
Parsing script Example-DynTex.material
Parsing script NightVision.material
Parsing script Embossed.material
Parsing script OffsetMapping.material
Compiler error: object unsupported by render system in OffsetMapping.material(18)
Parsing script Invert.material
Parsing script DOF.material
Parsing script ASMSwizzle.material
Compiler error: object unsupported by render system in ASMSwizzle.material(1)
Parsing script Glass.material
Parsing script HeatVision.material
Parsing script OldMovie.material
Parsing script facial.material
Parsing script RadialBlur.material
Parsing script Ocean.material
Parsing script OldTV.material
Parsing script IsoSurf.material
Parsing script Example.material
Compiler error: invalid parameters in Example.material(762): setting of constant failed
Parsing script instancing.material
Parsing script Laplace.material
Parsing script MRTtest.material
Parsing script RZR-002.material
Parsing script Bloom.material
Parsing script DepthShadowmap.material
Parsing script SharpenEdges.material
Parsing script Example-Water.material
Parsing script hdr.material
Parsing script smoke.material
Parsing script Dither.material
Parsing script CGSwizzle.material
Parsing script deferred_post_multipass.material
Parsing script deferred_post_ambient.material
Parsing script deferreddemo.material
Parsing script deferred_post_debug.material
Parsing script deferred_post_minilight.material
Parsing script deferred_post_onepass.material
Parsing script deferred.material
Parsing script ROOM.material
Parsing script RomanBath.material
Parsing script Example.particle
Parsing script smoke.particle
Parsing script emitted_emitter.particle
Parsing script Example-Water.particle
Parsing script Examples.compositor
Parsing script deferred.compositor
Parsing script sample.fontdef
Parsing script Compositor.overlay
Parsing script Shadows.overlay
Parsing script DP3.overlay
Parsing script Example-CubeMapping.overlay
Parsing script Example-DynTex.overlay
Parsing script Example-Water.overlay
Finished parsing scripts for resource group General
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
/usr/libexec/<unknown>: No such file or directory.

User avatar
subquantum
Goblin
Posts: 270
Joined: Tue Oct 02, 2007 10:23 pm
Location: Rochester, NY
Contact:

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by subquantum »

In my experience with Ogre on Gentoo, it's usually a lot easier to just download and build the source yourself. Gentoo technically has everything in portage, but their versions of things aren't usually entirely up to date (such as OIS and Ogre).

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

subquantum wrote:In my experience with Ogre on Gentoo, it's usually a lot easier to just download and build the source yourself. Gentoo technically has everything in portage, but their versions of things aren't usually entirely up to date (such as OIS and Ogre).
Hm, I'll give it a shot. It's seems Ogre needs FreeImage, anyways, which Gentoo hardmasks.

On a related note, this may sound stupid: what's the difference between Ogre's Unix source package, and the Windows one? I haven't run a diff to check, but they seem to look very similar. Since I want to make a multiplatform game, I wanted to know the differences.

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 4
Contact:

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by haffax »

I'm not even sure that there are any. When loading from SVN they are the same.
If you build Ogre from source imho it is better to download from SVN anyway, as you then have all the latest patches. Branch v1-6 is the stable branch and has all the fixes from Ogre 1.6.2 and fixes that will go in 1.6.3.
team-pantheon programmer
creators of Rastullahs Lockenpracht

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

haffax wrote:I'm not even sure that there are any. When loading from SVN they are the same.
If you build Ogre from source imho it is better to download from SVN anyway, as you then have all the latest patches. Branch v1-6 is the stable branch and has all the fixes from Ogre 1.6.2 and fixes that will go in 1.6.3.
I tried building and installing the SDK from the website, but those samples had the same issue. Could this be with my graphics card instead? I have an ATI Radeon X1300/X1550 series graphics card (courtesy of lspci).

Edit: I'm going to try working with Ogre anyways. Noob question, but after running "make install", I don't know where it installed my files. This is the error I get while compiling an example application from the wiki:

Code: Select all

Package OGRE was not found in the pkg-config search path.
Perhaps you should add the directory containing `OGRE.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OGRE' found
My question is, after building and installing from source, where would ogre.pc be located (I should really start learning find and grep)?

I'll also give the svn a shot, too, if I can find the SVN url soon...
Edit: Is this the URL? https://ogre.svn.sourceforge.net/svnroot/ogre

User avatar
subquantum
Goblin
Posts: 270
Joined: Tue Oct 02, 2007 10:23 pm
Location: Rochester, NY
Contact:

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by subquantum »

Aah, yeah, the pkgconfig file for Ogre isn't actually put in gentoo's pkgconfig search path. I think it's in /usr/local/include/OGRE/, but just try searching in /usr/local for OGRE.pc, and then adding whatever path that is to the PKG_CONFIG_PATH envvar like the error says. (Also, if someone who actually knows things about pkgconfig suggests an alternative, listen to them instead :) )

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

subquantum wrote:Aah, yeah, the pkgconfig file for Ogre isn't actually put in gentoo's pkgconfig search path. I think it's in /usr/local/include/OGRE/, but just try searching in /usr/local for OGRE.pc, and then adding whatever path that is to the PKG_CONFIG_PATH envvar like the error says. (Also, if someone who actually knows things about pkgconfig suggests an alternative, listen to them instead :) )
Great, found it.

As common etiquette, I guess I should post the solution:

Code: Select all

/usr/local/$ find -iname OGRE.pc
./lib/pkgconfig/OGRE.pc

# From the output above, package is located in /usr/local/lib/pkgconfig/
# Add this directory to PKG_CONFIG_PATH temporarily

$ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/

# To add it permanently:

$ echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig/; export PKG_CONFIG_PATH" >> ~/.bash_profile
$ source ~/.bash_profile
On a different note, I'm trying to compile the example given in http://www.ogre3d.org/wiki/index.php/Se ... pplication
I get errors that aren't related to Ogre, but with OIS (and I did install OIS v1.2.0):

Code: Select all

$ make
g++ -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE    -L/usr/local/lib -lOgreMain   -o SampleApp SampleApp.cpp
/tmp/cctduS4Q.o: In function `ExampleFrameListener::windowClosed(Ogre::RenderWindow*)':
SampleApp.cpp:(.text._ZN20ExampleFrameListener12windowClosedEPN4Ogre12RenderWindowE[ExampleFrameListener::windowClosed(Ogre::RenderWindow*)]+0x39): undefined reference to `OIS::InputManager::destroyInputObject(OIS::Object*)'
SampleApp.cpp:(.text._ZN20ExampleFrameListener12windowClosedEPN4Ogre12RenderWindowE[ExampleFrameListener::windowClosed(Ogre::RenderWindow*)]+0x53): undefined reference to `OIS::InputManager::destroyInputObject(OIS::Object*)'
SampleApp.cpp:(.text._ZN20ExampleFrameListener12windowClosedEPN4Ogre12RenderWindowE[ExampleFrameListener::windowClosed(Ogre::RenderWindow*)]+0x6d): undefined reference to `OIS::InputManager::destroyInputObject(OIS::Object*)'
SampleApp.cpp:(.text._ZN20ExampleFrameListener12windowClosedEPN4Ogre12RenderWindowE[ExampleFrameListener::windowClosed(Ogre::RenderWindow*)]+0x7b): undefined reference to `OIS::InputManager::destroyInputSystem(OIS::InputManager*)'
/tmp/cctduS4Q.o: In function `ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)':
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC2EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x624): undefined reference to `OIS::InputManager::createInputSystem(std::multimap<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&)'
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC2EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x679): undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC2EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x765): undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC2EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x851): undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/cctduS4Q.o: In function `ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)':
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC1EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x624): undefined reference to `OIS::InputManager::createInputSystem(std::multimap<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&)'
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC1EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x679): undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC1EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x765): undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SampleApp.cpp:(.text._ZN20ExampleFrameListenerC1EPN4Ogre12RenderWindowEPNS0_6CameraEbbb[ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)]+0x851): undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Any ideas?

EDIT: solved the above problem. The issue was the Makefile, which forgot to include OIS libraries:

Code: Select all

DEFINES =
#The wiki only wrote "LIBS = OGRE"
#on the line below, but we need
#OIS as well
LIBS = OGRE OIS
CXX = g++
CXXFLAGS = $(shell pkg-config --cflags $(LIBS)) $(DEFINES)
LD = g++
LDFLAGS = $(shell pkg-config --libs $(LIBS))

all:
        $(CXX) $(CXXFLAGS) $(LDFLAGS) -o SampleApp SampleApp.cpp

clean:
        rm -f SampleApp
I did edit SampleApp.cpp a bit, by removing the ifdef Win32 stuff:

Code: Select all

#include "ExampleApplication.h"

// Declare a subclass of the ExampleFrameListener class
class MyListener : public ExampleFrameListener
{
public:
    MyListener(RenderWindow* win, Camera* cam) : ExampleFrameListener(win, cam)
    {
    }

    bool frameStarted(const FrameEvent& evt)
    {
        return ExampleFrameListener::frameStarted(evt);
    }

    bool frameEnded(const FrameEvent& evt)
    {
        return ExampleFrameListener::frameEnded(evt);
    }
};

// Declare a subclass of the ExampleApplication class
class SampleApp : public ExampleApplication
{
public:
   SampleApp()
   {
   }

protected:
   // Define what is in the scene
   void createScene(void)
   {
       // put your scene creation in here
   }

   // Create new frame listener
   void createFrameListener(void)
   {
       mFrameListener = new MyListener(mWindow, mCamera);
       mRoot->addFrameListener(mFrameListener);
   }
};

#ifdef __cplusplus
extern "C" {
#endif

int main(int argc, char **argv)
{
    // Instantiate our subclass
    SampleApp myApp;

    try {
        // ExampleApplication provides a go method, which starts the rendering.
        myApp.go();
    }
    catch (Ogre::Exception& e) {
        std::cerr << "Exception:\n";
        std::cerr << e.getFullDescription().c_str() << "\n";
        return 1;
    }

return 0;
}

#ifdef __cplusplus
}
#endif
Last edited by japtar10101 on Sun Jul 19, 2009 4:34 pm, edited 3 times in total.

User avatar
subquantum
Goblin
Posts: 270
Joined: Tue Oct 02, 2007 10:23 pm
Location: Rochester, NY
Contact:

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by subquantum »

Did you build OIS from source, or get that through portage? I've always wound up building that from source too (a lot faster than Ogre, btw :p )

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

subquantum wrote:Did you build OIS from source, or get that through portage? I've always wound up building that from source too (a lot faster than Ogre, btw :p )
From source. Just in case.

While the executeable runs, it has a problem finding a "ISO8859 font". Does this have to do with freetype2?

Code: Select all

$ ./SampleApp 
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
FreeImage version: 3.12.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library /usr/local/lib/OGRE/RenderSystem_GL.so
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_ParticleFX.so
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_BSPSceneManager.so
Installing plugin: BSP Scene Manager
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager.so
Installing plugin: Octree & Terrain Scene Manager
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_CgProgramManager.so
Installing plugin: Cg Program Manager
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 1.6.2 (Shoggoth)
Creating resource group Bootstrap
Added resource location 'Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location 'Media' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/fonts' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/materials/programs' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/models' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/overlays' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/particle' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/gui' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
Added resource location 'Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location 'Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location 'Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
Added resource location 'Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
Added resource location 'Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
Added resource location 'Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
Warning: Unable to load any usable ISO8859 font
Error: Aborting: no font found
My freetype installation:

Code: Select all

$ equery list freetype
[ Searching for package 'freetype' in all categories among: ]
 * installed packages
[I--] [  ] media-libs/freetype-1.4_pre20080316-r2 (1)
[I--] [  ] media-libs/freetype-2.3.9-r1 (2)
Last edited by japtar10101 on Sun Jul 19, 2009 4:35 pm, edited 2 times in total.

User avatar
subquantum
Goblin
Posts: 270
Joined: Tue Oct 02, 2007 10:23 pm
Location: Rochester, NY
Contact:

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by subquantum »

Try specifying /usr/local/lib/OGRE, rather than /usr/lib/OGRE for loading the plugins. When you install from source, things tend to get put in /usr/local, whereas when you install through a package manager, they go right in /usr.

japtar10101
Gnoblar
Posts: 13
Joined: Mon Jul 13, 2009 11:33 pm

Re: Trouble building Ogre 1.6.2 samples for Gentoo

Post by japtar10101 »

subquantum wrote:Try specifying /usr/local/lib/OGRE, rather than /usr/lib/OGRE for loading the plugins. When you install from source, things tend to get put in /usr/local, whereas when you install through a package manager, they go right in /usr.
Yeah, I just figured that out. I should investigate more, instead of posting so rapidly. :(

EDIT: so I editted the previous post for consistencies, and to make it easier for others to find the solution in case they have the same problem as I do. I still have that "ISO font not found" error, though.

Edit: turn out the font issue was a Gentoo problem. Sorry for the false alarm.

User avatar
merlinblack
Goblin
Posts: 223
Joined: Thu Mar 15, 2007 10:05 am
Location: Sydney, Australia
x 7
Contact:

Re: [Solved] Trouble building Ogre 1.6.2 samples for Gentoo

Post by merlinblack »

RE Having to run an Ogre program as root to make it go...

I had this problem just now, after playing around with my xorg.cfg in order to force Ubuntu Karmic to use the radeon driver. :cry:

While hunting for a fix, I also noticed DRI was disabled, after running glxinfo. Thats going to slow things a bit, so I added this option to xorg.cfg (after reading "man radeon" )

Code: Select all

Option "DRI" "on"
Apparently its default is on, but on my laptop at least, it wasn't defaulting to on.

For some reason it fixed having to run as super user. :roll: :shock: :D
"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Image

Post Reply