Comments (6)
Hey, I'm able to reproduce the problem. I'll look into it.
from opendarkengine.
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.
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.
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.
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.
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)
- Buffer overflow (1 byte) in ObjectMeshLoader ? HOT 1
- Shading on AI models
- Portal visibility optimizations HOT 4
- Getting rid of OIS HOT 6
- Using RAII guard objects to release resources HOT 1
- Object lighting problems HOT 1
- Z-Fighting water
- Frame timing spikes HOT 3
- Python bindings need tests/fixes HOT 3
- Window size change detection HOT 1
- Compilation error: no matching function for call 'make_pair' HOT 1
- Refactorings
- Please update openhub HOT 3
- File read/write handling
- Replacement of the rendering engine
- camera movement speed issues HOT 1
- OGRE.pc lacks boost_thread and boost_system libs HOT 1
- Loading/Displaying skeletal animation HOT 1
- Getting rid of ogre's overlay code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendarkengine.