Page 1 of 2

Please help - Ogre3D no luck with Linux

Posted: Thu Jul 02, 2009 5:39 pm
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:~$

4.31 - Camera.pb try to compile with debugger

Posted: Thu Jul 02, 2009 9:27 pm
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

Posted: Thu Jul 02, 2009 11:33 pm
by Fred
Did you used the 'OpenGL' subsystem ?

Posted: Fri Jul 03, 2009 4:32 pm
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

Posted: Sat Jul 04, 2009 1:20 am
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)

Posted: Sat Jul 04, 2009 2:39 pm
by AmigaMan
Hello,

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

Andi

Posted: Sun Jul 05, 2009 10:21 am
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

Posted: Mon Jul 06, 2009 7:15 pm
by AmigaMan
Hi,

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

But it's all the same. :-(

Andi

Posted: Tue Jul 07, 2009 9:17 am
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

Posted: Tue Jul 07, 2009 10:10 am
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

Posted: Tue Jul 07, 2009 10:47 am
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

invalid memory access....

Posted: Sat Jul 18, 2009 3:52 am
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)

Posted: Sat Jul 18, 2009 4:30 am
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.
:?

Re: Please help - Ogre3D no luck with Linux

Posted: Thu Jan 14, 2010 8:09 pm
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.

Re: Please help - Ogre3D no luck with Linux

Posted: Mon Feb 08, 2010 4:13 am
by CoderLaureate
tink tink tink...

hello...

is this thing on?