Please help - Ogre3D no luck with Linux

Linux specific forum
AmigaMan
New User
New User
Posts: 5
Joined: Thu Jul 02, 2009 5:24 pm

Please help - Ogre3D no luck with Linux

Post by AmigaMan »

Hello Folks,

I hope someone can give me a hand on Ogre3D and Linux.

I use Ubuntu 9.04 and have (i guess) everything intstalled to compile progams with PB4.31
I wanted to test the camera example provided with PB.

I get no errors when compiling but when hitting the run button simply nothing happens.
No errors but also no 3D Screen :-(

I tested it even with OpenSuse 11.0 - same thing: compiles but no 3D screen.
I put the engine3d.so in /usr/lib - no effect.

PLEASE - DID ANYONE OF YOU SUCCESSFULY GOT THE 3D ENGINE WORK UNDER LINUX - AND IF SO - HOW DID YOU DO THAT?

I would be really grateful for a hint!

Thanx in advance !
Andi

Here is the output when I try to launh the program from console:

andi@andi-desktop:~$ ./camera
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.10.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,koa,iff,lbm,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,dds,gif,g3,sgi,j2k,j2c,jp2
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.
plugins.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.6.0RC1 (Shoggoth)
OpenGL Rendering Subsystem created.
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
CPU Identifier & Features
-------------------------
* CPU ID: AuthenticAMD: AMD Athlon(TM) XP 2800+
* SSE: yes
* SSE2: no
* SSE3: no
* MMX: yes
* MMXEXT: yes
* 3DNOW: yes
* 3DNOWEXT: yes
* CMOV: yes
* TSC: yes
* FPU: yes
* PRO: yes
* HT: no
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
Added resource location './Data' of type 'FileSystem' to resource group 'General'
Segmentation fault
andi@andi-desktop:~$
randybma
New User
New User
Posts: 6
Joined: Wed Sep 10, 2008 9:49 pm
Location: USA

4.31 - Camera.pb try to compile with debugger

Post by randybma »

Hello Andi,

When I compile with debugger Camera.pb I get error in Screen3DRequester.pb and line 50. The error is Invalid memory access. Did you try to compile with debugger?

Line 50:

Code: Select all

    If ExamineScreenModes()

Randy

Debian Lenny 2.6.26-2-686 #1 SMP PureBasic 4.31
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Did you used the 'OpenGL' subsystem ?
AmigaMan
New User
New User
Posts: 5
Joined: Thu Jul 02, 2009 5:24 pm

Post by AmigaMan »

Hello,

I tried it with OpenGL subsystem - no success. Same behavior :-(

I don't get an error if compiler is turned on.

Thanx for your time.
Any other ideas?

Andi
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

confirmed (pb 4.31 - subsystem opengl)

it seems, that InitEngine3D() doesn't find the engine3d.so even if it's in the same Directory!!

Workaround: copy engine3d.so to /usr/lib/

There are some other commands not working (i'll post a bug report for each one)
AmigaMan
New User
New User
Posts: 5
Joined: Thu Jul 02, 2009 5:24 pm

Post by AmigaMan »

Hello,

I have already tried with engine3d.so in /usr/lib - unfortunately no success :-(

Andi
infratec
Always Here
Always Here
Posts: 7584
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Post by infratec »

Hi,

did you run 'ldconfig' after copying the lib to /usr/lib ?

I think else the library is still not 'findable'.


Best regards,

Bernd
AmigaMan
New User
New User
Posts: 5
Joined: Thu Jul 02, 2009 5:24 pm

Post by AmigaMan »

Hi,

yes I ran "ldconfig" after copying engine3d.so to /usr/lib.

But it's all the same. :-(

Andi
infratec
Always Here
Always Here
Posts: 7584
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Post by infratec »

Hi,

now I tried it also to run Camera.pb on my Kubuntu 9.04:

At first InitEngine3D() gives an error.
So I copied engine3d.so to /usr/lib and this problem was solved.
Than I tried to run the compiled Camera. (Subsystem: opengl)
This results in an error: 'cannot open display:'
Ok, my fault, I tried to run it as root.

As normal user still a segmentation fault appears:
'creating resource group General Segmentation fault'
I found out, that I have to install the libxxf86vm packet.

Now I can start the program, the select window (full screen or windows)
appears, but when I select something (better window), than the next stuff is:

Code: Select all

******************************
*** Starting GLX Subsystem ***
******************************
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
Added resource location './Data' of type 'FileSystem' to resource group 'General'
GLRenderSystem::_createRenderWindow "PureBasic Ogre", 512x384 windowed  miscParams: FSAA=0 externalWindowHandle=44040475
GLXWindow::create: The externalWindowHandle parameter is deprecated.
Use the parentWindowHandle or currentGLContext parameter instead.
GLXWindow::create used FBConfigID = 129
Camera: OgreGLSupport.cpp:57: virtual void Ogre::GLSupport::initialiseExtensions(): Assertion `pcVer &&"Problems getting GL version string using glGetString"' failed.
Aborted
Any ideas ?

Bernd
infratec
Always Here
Always Here
Posts: 7584
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Post by infratec »

Hm,

I read, that the Ogre system needs real hardware.
At the moment I use VirtualBox 3.0.
I'll check it this evening at home on a real PC.

Bernd
AmigaMan
New User
New User
Posts: 5
Joined: Thu Jul 02, 2009 5:24 pm

Post by AmigaMan »

@Bernd:

Hey that sounds interesting ! I'm a the office right now but I will test this
as soon as I'm back home.

:)

Andi
kepu
User
User
Posts: 20
Joined: Mon Jul 13, 2009 8:00 am

invalid memory access....

Post by kepu »

Same problem here
I just puschase full version and tried of cource also 3d samples.
All (camera.pb, terrain.pb... ) gives error on ExamineScreenModes() ...invalid memory access
I also copied engine3d.so to /usr/lib/..

But following small example in PB-help from command page NestScreenMode
.. works fine.

Code: Select all

InitSprite()
  If ExamineScreenModes()
    While NextScreenMode()
      Debug Str(ScreenModeWidth())+"x"+Str(ScreenModeHeight())+"x"+Str(ScreenModeDepth())+"@"+Str(ScreenModeRefreshRate())+"Hz"
    Wend
  EndIf
  
So , any progress or is there some conflict with Ogre and PB.
:roll:

Mepis 8.08 (Debian-lenny)
kepu
User
User
Posts: 20
Joined: Mon Jul 13, 2009 8:00 am

Post by kepu »

I tested same stuff with PB4.30 version, ..example progs worked to point where it asked what window mode is requested, after that it says program execution has finished
and nothing appears to screen.
:?
CoderLaureate
User
User
Posts: 50
Joined: Fri Apr 25, 2003 7:21 pm
Location: The World is my country, all mankind are my brethren, and to do good is my religion.
Contact:

Re: Please help - Ogre3D no luck with Linux

Post by CoderLaureate »

I'm having the same problems as everyone above.

I'm running Kubuntu 9.10.
PB is fully installed, all my graphics drivers are up to date.
I tried copying engine3d.so to /usr/lib, and running ldconfig.
I still get the Invalid Memory Access error on line 50 of the 3D screen requester program.

I even installed Ogre 3D itself on my system to see if it would help.

No luck.
CoderLaureate
User
User
Posts: 50
Joined: Fri Apr 25, 2003 7:21 pm
Location: The World is my country, all mankind are my brethren, and to do good is my religion.
Contact:

Re: Please help - Ogre3D no luck with Linux

Post by CoderLaureate »

tink tink tink...

hello...

is this thing on?
Post Reply