Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: does any one have a version pre-compiled in mingw  (Read 1576 times)

juliusctw

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
does any one have a version pre-compiled in mingw
« on: May 07, 2008, 03:49:33 PM »

hello

  does any one have a version pre-compiled in mingw,  i got it working and compiled in linux , and i am trying to compile it now in windows with code-block , but i am having a real hard time due to these errors

error: definition of static data member 'Ogre::TheoraVideoController::msCmdRenderFx' of dllimport'd class|

at

   TheoraVideoController::CmdRenderFx TheoraVideoController::msCmdRenderFx;
   TheoraVideoController::CmdSeekingEnabled TheoraVideoController::msCmdSeekingEnabled;




     i normally can read the error and resolve the problem, but i just have no clue what these errors mean ,  If anyone has a pre-compiled version in mingw please share,  I already have a version compiled using visual studio,  but my project is done in code-block so they don't match. 

      or if no body has a mingw version,  does anyone have any clue what the error might mean??



CHANGED ::::::

       Alright, I finally found out the problem, as it turned out I was using

#define _OgreTheoraExport __declspec(dllimport)

         inside theoraExport.h , I should have used
#define _OgreTheoraExport __declspec(dllexport)

the import is for people using the library, while the export is for building the library,   hopefully this will help somebody in the future
« Last Edit: May 08, 2008, 05:52:07 AM by juliusctw »
Logged

Ice

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 21
    • View Profile
Re: does any one have a version pre-compiled in mingw
« Reply #1 on: May 18, 2008, 08:31:29 AM »

Hi, I have one. You can get it here: http://berks.narod.ru/Plugin_TheoraVideoSystem_mingw.zip
Compiled with Ogre 1.4.6 and theora 1.0beta2
Logged