开发者

How to compile ogre4j under linux

I've download sources and imported then into eclipse. But when i try to run it, it prints error that开发者_Go百科 ogre4j isn't found. I've looked into folder where should be library binaries, but there was nothing. I tried to compile it on my own, not automatic with eclipse, but i haven't found any makefile.

Is there any plugin required for ogre4k compiling?

Where can i find any makefile for ogre4j?


According to the projects Installation Wiki page there is an ant build.xml provided and ogre4j.build.jar is the target you're interested in.

So running ant ogre4j.build.jar in the project directory should build everything that's needed (provided you've got ant installed).

In Eclipse right-clicking the build.xml and choosing "Run As" -> "Ant Build ..." should allow you to select the target and run it.


According to the Joachims reply i've used ant. But there was two steps, which i've did. In projects directory:

mkdir sdk
ln -s /usr/include/OGRE sdk/include
ln -s /usr/lib/OGRE sdk/lib

And modify build.xml, add these lines:

<property name="env.JAVA_HOME" value="/usr/lib/jvm/java-6-sun" />
<property name="env.OGRE_HOME" value="sdk"/>

And finally run:

ant ogre4j.build.c
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜