Giter Site home page Giter Site logo

Comments (6)

volca02 avatar volca02 commented on August 24, 2024

Hey, I'm able to reproduce the problem. I'll look into it.

from opendarkengine.

volca02 avatar volca02 commented on August 24, 2024

Fixed in 1acc520
If you have problem linking (I do), it is because OGRE.pc pkgconfig file is currently broken (ogre gets compiled with boost libs, but pkgconfig file does not reflect that). You can add -lboost_thread -lboost_system into the pc file (/usr/lib/pkgconfig/OGRE.pc) as a workaround.

from opendarkengine.

JPLeBreton avatar JPLeBreton commented on August 24, 2024

Thanks much, I can compile now but as you say linking fails. I've never manually edited a .pc file and can't find much documentation on doing so, which line should I add those switches to? Are there any steps I need to perform after doing so?

from opendarkengine.

volca02 avatar volca02 commented on August 24, 2024

Nope, just running make again should be sufficient.

My Libs line in OGRE.pc looks like this now:

Libs: -L${libdir} -lOgreMain  -lpthread -lboost_thread -lboost_system

It is an overwrite of a file owned by package, but in this case I'd say it is okay. Ogre's a mess anyway :)

After you're done building, you will have to setup the config files.

This, for example, is my thief2.cfg, placed right next to the opdeMain binary

[General]
# For temp files
Dir=./

# Opde stuff
Dir=/home/volca/Projects/openDarkEngine/opde-svn/trunk/scripts

# T2:
FZip=/home/volca/Projects/data/t2/obj.crf
FZip=/home/volca/Projects/data/t2/fam.crf
FZip=/home/volca/Projects/data/t2/mesh.crf
Dir=/home/volca/Projects/openDarkEngine/opde-svn/trunk/scripts/thief2
#  Missions
Dir=/home/volca/Projects/data/t2/

This is my opde.cfg

debug=yes
console_font_name=font.fon
console_font_group=General

plugins.cfg

# Defines plugins to load

# Define plugin folder
PluginFolder=/usr/lib/OGRE
# PluginFolder=.

# Define D3D rendering implementation plugin
Plugin=RenderSystem_GL.so

Then run opdeMain with t2 and a mission file name:

./opdeMain t2
./opdeMain t2 MISS2.MIS

etc.

from opendarkengine.

JPLeBreton avatar JPLeBreton commented on August 24, 2024

Great, thanks a bunch, I can compile the program and run it now. I followed your instructions to create the cfg files, and it seems to be finding all resources correctly but when I run the program like so

./opdeMain t1 miss3.mis

I get this error:

An exception has occured: OGRE EXCEPTION(1:InvalidStateException): expected object identifier at line 1147 in ScriptParser::parse at /build/ogre/src/ogre/OgreMain/src/OgreScriptParser.cpp (line 276)

If this is a bug I'm happy to create a separate issue for it.

from opendarkengine.

volca02 avatar volca02 commented on August 24, 2024

I think this can be closed as obsolete now - it probably sourced from pldef/dtdef script parser that got removed.

from opendarkengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.