ogrevideo trunk on linux

nikolajsheller

30-07-2010 18:36:20

Hi

I am trying to get the trunk version of the ogrevideo plug-in to run on, and I have run in to some issues.
I have managed to build trunk (rev 112) under eclipse, by adding the following change:

Index: src/OgreVideoDLLmain.cpp
===================================================================
--- src/OgreVideoDLLmain.cpp (revision 112)
+++ src/OgreVideoDLLmain.cpp (working copy)
@@ -17,10 +17,12 @@
#include "OgreVideoManager.h"
#include <stdio.h>

-#ifdef OGRE_MAC_FRAMEWORK
-#define OGREVIDEO_EXPORT extern "C"
+#ifdef OGRE_PLATFORM_APPLE
+ #define OGREVIDEO_EXPORT extern "C"
+#elif OGRE_PLATFORM_LINUX
+ #define OGREVIDEO_EXPORT extern "C"
#else
-#define OGREVIDEO_EXPORT extern "C" __declspec(dllexport)
+ #define OGREVIDEO_EXPORT extern "C" __declspec(dllexport)
#endif

namespace Ogre


Can this be used?

Kreso

30-07-2010 20:56:14

interesting. I'll have to give it a try.
Please submit this patch in the project's patch tracker on sourceforge so it won't get lost in the forums :)

nikolajsheller

20-09-2010 16:11:08

Will do.

I have some minor changes to remove GCC warnings on as well.

nikolajsheller

21-09-2010 11:32:15

It seems the warnings I was thinking of are in the monolith branch.
Is this branch active? Do you want fixes to this?

Which version is the recommended one at the moment?
I'm having performance problems on high resolution videos on the monolith branch.
On the other hand I have problems with sound and stopping/restarting videos on the trunk version.

Kreso

21-09-2010 11:43:56

the trunk version is the latest, should work more or less okay, but once again, I'm swamped with deadlines at work and am temporarily unable to work on this project :(

nikolajsheller

22-09-2010 10:35:19

Thanks for your reply.

I know the feeling regarding deadlines :)

nikolajsheller

27-09-2010 11:54:28

Hmm... it seems the patch I gave needed a bit of work:

The resulting code should have been:
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
#define OGREVIDEO_EXPORT extern "C"
#elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX
#define OGREVIDEO_EXPORT extern "C"
#elif OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define OGREVIDEO_EXPORT extern "C" __declspec(dllexport)
#endif