Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: 1 [2]

Author Topic: more on the ogre3d plugin  (Read 9577 times)

smonijhay

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
more on the ogre3d plugin
« Reply #15 on: September 05, 2005, 10:41:36 AM »

Well here is something exciting!  When running the debugger, I immediately get an unhandled exception , divide by zero error in PLUGIN_THEORAVIDEOSYTEM.DLL
Logged

smonijhay

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
more on the ogre3d plugin
« Reply #16 on: September 05, 2005, 11:20:48 AM »

by the way, does the error message
Code: [Select]

The procedure entry point ogg_sync_reset could not be located in the dynamic link library ogg.dll.
sound familiar?  I've been trying to get the release version to run through the debugger, the debug version runs wonderfully, so I can really produce anything from it!
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
more on the ogre3d plugin
« Reply #17 on: September 05, 2005, 12:25:26 PM »

That sounds like an incorrect (old) version of libOgg.. Hmm, where did you get Ogg and vorbis from? And what version is it?

I used: oggvorbis-win32sdk-1.0.1 with no problems.

Can you run Ogre's dyntex & CEGUI demo in debug/release? - just curious.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
more on the ogre3d plugin
« Reply #18 on: September 05, 2005, 01:12:06 PM »

Oh, and a way you can debug release builds without disabling optimizations and adding debugging symbols is to use log messages instead.

Just sprinkle LogManager::getSingleton().logMessage("some text") all over the plugin and the app to find out which line, and you can even log pointer values and variables to see what their content is.
Logged

smonijhay

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
more on the ogre3d plugin
« Reply #19 on: September 06, 2005, 07:27:44 AM »

Quote from: "pjcast"
That sounds like an incorrect (old) version of libOgg.. Hmm, where did you get Ogg and vorbis from? And what version is it?

I used: oggvorbis-win32sdk-1.0.1 with no problems.

Can you run Ogre's dyntex & CEGUI demo in debug/release? - just curious.


Hi pjcast,

Yes that is the version that I'm using for ogg!  The dyntex and CEGUI demo run pretty well!  I have run both the debug and release!  The plot thickens!  I can redownload the version and see if that fixes the problem with the error message.  I'll let you know what I get!

Thank you!
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
more on the ogre3d plugin
« Reply #20 on: September 06, 2005, 10:28:50 AM »

Well... This is strange then..

Maybe this has some base in your previous STLport problem. Perhaps (if you haven't already) delete all .obj files from the plugin/theora/ptypes/ceguidemo directories (release & debug obj files). Then do a batch clean with everything selected, and then a batch rebuild. Heck, just to e sure, delete the pdb's and other generated build files first. Make sure there is nothing lingering from mixing stlport with MSstl.

Or, to be simpler, just delete your current videoplugin directory, and recheck it out through cvs. Unless of course, you've done that.
Logged

smonijhay

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
more on the ogre3d plugin
« Reply #21 on: September 07, 2005, 06:17:27 AM »

Quote from: "pjcast"
Well... This is strange then..

Maybe this has some base in your previous STLport problem. Perhaps (if you haven't already) delete all .obj files from the plugin/theora/ptypes/ceguidemo directories (release & debug obj files). Then do a batch clean with everything selected, and then a batch rebuild. Heck, just to e sure, delete the pdb's and other generated build files first. Make sure there is nothing lingering from mixing stlport with MSstl.

Or, to be simpler, just delete your current videoplugin directory, and recheck it out through cvs. Unless of course, you've done that.


Never hurts to clean house and start out fresh!  I will go as far as removing the directory all together and rechecking out from CVS.  I wonder though.... remember a little while ago I had a problem with not being able to build the project because of the line endings thing?  I fixed that by opening each project file in wordpad and saving (not chaning anything just open->save->close).  Do you think that may be generating some random errors?  I'll let you know how it goes!

Thanks so much for your help!
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
more on the ogre3d plugin
« Reply #22 on: September 07, 2005, 06:30:48 AM »

no, the line endings thing will not cause any problems once you fix it.
Logged

smonijhay

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
more on the ogre3d plugin
« Reply #23 on: September 16, 2005, 04:31:38 PM »

Hi pjcast,

Sorry for the delay in replying, just got a newer machine at the office and spent some time setting it up.  I finally have Ogre back in place, clean and fresh.  So I'm going to try again and see what the results are.  Of course starting with the videoplugin demo!

Thanks again for all your help!
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
more on the ogre3d plugin
« Reply #24 on: September 16, 2005, 09:35:18 PM »

Hey, no worries. You are just here for help, and I help as you need it  :D

Are you still using VC6 on the new computer... It would be benificial to upgrade to a more recent version of VC evetually  :wink: Though, I understand waiting for VC8 to come out.
Logged

smonijhay

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
more on the ogre3d plugin
« Reply #25 on: September 22, 2005, 07:59:21 AM »

Quote from: "pjcast"
Hey, no worries. You are just here for help, and I help as you need it  :D

Are you still using VC6 on the new computer... It would be benificial to upgrade to a more recent version of VC evetually  :wink: Though, I understand waiting for VC8 to come out.


Yeah I took your advice!  New computer, new compiler!  So now I'm compiling using CodeBlocks IDE with visual Toolkit 2003.  The good news is that after checking out the videoplugin, I was able to open the TheoraVideo.sln file without having to do all that stupid "save file" in wordpad :D   But maybe you can help me with this, when I compile the full project, starting with the ptypes, I'm getting an "unreachable code" warning.  I wouldn't worry about it so much (because it's a warning) but it seems as though at the end of the compile, I'm not getting the ptypes.lib file to create (ends with the error "Command Execution Failed").  I have been able to successfully compile other ogre projects (at least in release mode :wink: debug mode still gives me quirks).  Do you have any recommendations?  Or even a list of linker libs that I should be using?  I've put in all the linker libs that the forums (and even code blocks itself) tells me.  I'm thinking that may be the cause of some of the errors.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
more on the ogre3d plugin
« Reply #26 on: September 22, 2005, 08:52:16 AM »

Yes, I had a problem building Ogre in debug in CodeBlcoks myself (the one time I tried) - though, I was using gcc compiler plugin.

That warning should not stop the build process.. As that is just a warning and works fine with VC6/7+ and gcc. Something else must be occuring... You can try using this (somewhat outdated) theora codeblock project. http://www.wreckedgames.com/WreckedVideo.zip - I created that mainly to allow libOgg/Vorbis/Theora to compile using codeblocks and gcc (as there were define problems). Which means, ogg, vorbis, theora, ptypes, and the plugin sources are included here.

However, I think it should work using the .Net compiler too. Though, you need to update the Plugin Source and Include directory with the latest TheoraVideo include and src files... I would have done it for you, however, Ogreaddons Cvs is being a little flaky for me right now (probably a sourceforge problem).

Additionally, you may need to tweak the ptypes include directory setting in the TheoraVideo project as a a recent change of include "ptypes.h" to "ptypes/ptypes.h" was introduced lately. Or, alternatively, you can jsut remove the ptypes prefix from the include file.

There is no demo project here, however, you have the demo working (mostly), all you have to do is import the VC project for that, and make some small tweaks maybe. Hopefully this will work for you.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
more on the ogre3d plugin
« Reply #27 on: December 11, 2005, 06:17:49 PM »

Quote from: "smonijhay"
Well here is something exciting!  When running the debugger, I immediately get an unhandled exception , divide by zero error in PLUGIN_THEORAVIDEOSYTEM.DLL


This problem is now fixed in CVS: see this post: http://www.wreckedgames.com/forum/viewtopic.php?p=375#375
Logged
Pages: 1 [2]