Trouble setting up enviroment on ubuntu 12.04

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Locked
trombonecot
Posts: 25
Joined: 04 Nov 2012, 16:22

Trouble setting up enviroment on ubuntu 12.04

Post by trombonecot »

I have followed all instructions on https://wiki.openmw.org/index.php?title ... ment_Setup and it builds and everything but as I run it it says: "Could not select a valid render system. Please make sure the plugins.cfg file exists and contains a valid rendering plugin".

Looking throw the code it seems that the problem is that I don't set up any render:
#ifdef ENABLE_PLUGIN_GL
mGLPlugin = new Ogre::GLPlugin();
mOgre->installPlugin(mGLPlugin);
#endif
#ifdef ENABLE_PLUGIN_Direct3D9
mD3D9Plugin = new Ogre::D3D9Plugin();
mOgre->installPlugin(mD3D9Plugin);
#endif

It doesn't enter on any of those options, anyone has an idea of what is happening? Maybe a missing configuration file or something?

Thanks!
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Trouble setting up enviroment on ubuntu 12.04

Post by Zini »

The code segment you showed is only used with static OGRE builds. Currently not even supported. The problem is somewhere else. Probably some misconfiguration, but it is unclear what that could be. You have OGRE properly installed. right?
trombonecot
Posts: 25
Joined: 04 Nov 2012, 16:22

Re: Trouble setting up enviroment on ubuntu 12.04

Post by trombonecot »

It goes throw that code executing the omwlauncher, I've put some outputs and I've seen that it goes throw there.
Arribing to (graphicspagce.cpp)

Code: Select all

if (!mOpenGLRenderSystem && !mDirect3DRenderSystem) {
without any of those set up...

Executing the openmw it throws the next error:

Code: Select all

S'està iniciant: /home/eduard/OpenMW/openmw/build/openmw
Loading config file: ./openmw.cfg... done.
Using default (English) font encoding.
No master file given. Assuming Morrowind.esm

ERROR: RenderSystem with name OpenGL Rendering Subsystem not found, make sure the plugins are loaded
*** S'ha sortit retornant el codi: 1 ***
I've put the path of my Data files like

Code: Select all

data="/home/eduard/OpenMW/openMW/Data Files"
on openmw.cfg

Is that correct?

The installation of OGRE seems ok.
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Trouble setting up enviroment on ubuntu 12.04

Post by scrawl »

Code: Select all

locate RenderSystem_GL
output?
trombonecot
Posts: 25
Joined: 04 Nov 2012, 16:22

Re: Trouble setting up enviroment on ubuntu 12.04

Post by trombonecot »

In redenderer.cpp:

Code: Select all

    Files::loadOgrePlugin(pluginDir, "RenderSystem_GL", *mRoot);
    Files::loadOgrePlugin(pluginDir, "RenderSystem_Direct3D9", *mRoot);
    Files::loadOgrePlugin(pluginDir, "Plugin_CgProgramManager", *mRoot);
    
    RenderSystem* rs = mRoot->getRenderSystemByName(renderSystem);
    if (rs == 0)
        throw std::runtime_error ("RenderSystem with name " + renderSystem + " not found, make sure the plugins are loaded");
    mRoot->setRenderSystem(rs);
renderSytem = 'OpenGL rendering subsystem'

I've located the plugidDir = '/usr/lib/i386-linux-gnu/OGRE-1.8.0', everything in there looks fine, I have a file called RenderSystem_GL.so, so it look goods. But it seems like

Code: Select all

RenderSystem* rs = mRoot->getRenderSystemByName(renderSystem);
rs = 0!
So it's not getting any plugin..

Later i'll try to run a basic ogre tutorial to see if I see anything there...
trombonecot
Posts: 25
Joined: 04 Nov 2012, 16:22

Re: Trouble setting up enviroment on ubuntu 12.04

Post by trombonecot »

I have benn able to build it but now It crashes every time I start up.

Code: Select all

eduard@eduard-iMac:~/OpenMW/openmw/build$ ./openmw 
Loading config file: /home/eduard/.config/openmw/openmw.cfg... done.
Loading config file: ./openmw.cfg... done.
Using default (English) font encoding.
No master file given. Assuming Morrowind.esm
Adding /home/eduard/OpenMW/data/bloodmoon.bsa
Adding /home/eduard/OpenMW/data/morrowind.bsa
Adding /home/eduard/OpenMW/data/tribunal.bsa
Data dir /home/eduard/OpenMW/data
Loading ESM /home/eduard/OpenMW/data/morrowind.esm
Sound output: OpenAL
Sound decoder: mpg123,sndfile
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Enumerated output devices:
  PulseAudio Default
  Audio intern Estèreo analògic via PulseAudio
  ALSA Default
  HDA Intel [ALC889A Analog] (hw:0,0) via ALSA
  HDA Intel [ALC889A Digital] (hw:0,1) via ALSA
  PortAudio Default
  No Output
Opened "PulseAudio Default"
AL lib: pulseaudio.c:331: PulseAudio returned minreq > tlength/2; expect break up
Changing to interior
loading cell Beshara
cellName:Beshara
Violació de segment (bolcat de la imatge del nucli)
eduard@eduard-iMac:~/OpenMW/openmw/build$ ./openmw --nosound
Loading config file: /home/eduard/.config/openmw/openmw.cfg... done.
Loading config file: ./openmw.cfg... done.
Using default (English) font encoding.
No master file given. Assuming Morrowind.esm
Adding /home/eduard/OpenMW/data/bloodmoon.bsa
Adding /home/eduard/OpenMW/data/morrowind.bsa
Adding /home/eduard/OpenMW/data/tribunal.bsa
Data dir /home/eduard/OpenMW/data
Loading ESM /home/eduard/OpenMW/data/morrowind.esm
Changing to interior
loading cell Beshara
cellName:Beshara
Violació de segment (bolcat de la imatge del nucli)
With --nosound

Code: Select all

eduard@eduard-iMac:~/OpenMW/Build$ ./openmw --nosound
Loading config file: /home/eduard/.config/openmw/openmw.cfg... done.
Loading config file: ./openmw.cfg... done.
Using default (English) font encoding.
No master file given. Assuming Morrowind.esm
Adding /home/eduard/OpenMW/data/bloodmoon.bsa
Adding /home/eduard/OpenMW/data/morrowind.bsa
Adding /home/eduard/OpenMW/data/tribunal.bsa
Data dir /home/eduard/OpenMW/data
Loading ESM /home/eduard/OpenMW/data/morrowind.esm
Changing to interior
loading cell Beshara
cellName:Beshara
Violació de segment (bolcat de la imatge del nucli)
An it crahes... I already started programming but It has nothing to do with it. Cause I've tried to download from git diferent times and every builds ends as the same. Nobody has had any problems with te last version and ubuntu 12.10?

This is all I do:
git clone git://github.com/trombonecot/openmw.git
cd openmw
git submodule update --init
mkdir build
cd build
cmake ../
make
Anythin wrong??

With the version downloaded from the forum openmw_0.18.0.orig.tar.bz2, I had no problem... but with this...

I want to start programming! jjejeje
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Trouble setting up enviroment on ubuntu 12.04

Post by Zini »

That could be anything. Please verify that your data directory points to the correct place. Then have a look at the Ogre.log (at .config/openmw) and see if there is anything strange in there (post the log, if you are unsure). And finally, if that does not help, run OpenMW under the debugger (don't forget to use the --debug switch; see ./openmw --help for details) and get us a stack backtrace.
trombonecot
Posts: 25
Joined: 04 Nov 2012, 16:22

Re: Trouble setting up enviroment on ubuntu 12.04

Post by trombonecot »

It works with the option --fs-strict.

What about that? Any hints? It's okey if I run it with this option or maybe I'll have other problems??
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Trouble setting up enviroment on ubuntu 12.04

Post by Zini »

MW is a Windows game, which means it ignores the case of its filenames. We have replicated this feature in OpenMW even on Linux, but if you don't want it, you can switch it off with --fs-strict. However that should break Morrowind.esm. I do not understand why OpenMW would only work with --fs-strict for you.
Locked