[CLOSED] Compiles good but...

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
malium
Halfling
Posts: 43
Joined: Mon Aug 25, 2014 4:01 pm
Location: Spain

[CLOSED] Compiles good but...

Post by malium »

Hi again guys! I've finaly ported my map editor to Ogre 2.0, today, finaly I could compile my app, but for my surprise I couldn't start the application, and the problem says, that cames from OgreMain.dll, which really surprise me.

Here is the error:

Code: Select all

The application cannot find the main entrance to the method 
?lock@HardwareBuffer@Ogre@@QAEPAXW4LockOptions@12@@Z in the dynamic link library OgreMain.dll
I've translate it from spanish, so if there's something which I said bad, said it to me.

THANK YOU, malium
Last edited by malium on Mon Feb 23, 2015 9:59 pm, edited 1 time in total.
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: [Ogre 2.0 HELP] Compiles good but...

Post by c6burns »

Are you 100% sure that dll is what you compiled and linked against, or is that dll the leftover dll from a previous Ogre version which happens to still be lying around.
malium
Halfling
Posts: 43
Joined: Mon Aug 25, 2014 4:01 pm
Location: Spain

Re: [Ogre 2.0 HELP] Compiles good but...

Post by malium »

Yes I'm really sure, cause I get the dll with all the ogre compiled from:
http://www.ogre3d.org/forums/viewtopic.php?t=69274
So I don't think he has left something, but it could be.
The samples which use that dll, also work
Thank you.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: [Ogre 2.0 HELP] Compiles good but...

Post by jacmoe »

That error means that the import library doesn't match the runtime library.
So C6burns is right.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
malium
Halfling
Posts: 43
Joined: Mon Aug 25, 2014 4:01 pm
Location: Spain

Re: [Ogre 2.0 HELP] Compiles good but...

Post by malium »

I know what does it mean the error, but I've checked everything, will check again and said to you, but I don't think it's my fault, cause I've checked twice, that lib and dll came from the same Compiled version of Ogre.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: [Ogre 2.0 HELP] Compiles good but...

Post by jacmoe »

It does not have to be your application, but something that gets loaded when your application gets loaded. Maybe a plugin you forgot about?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
Jayray
Greenskin
Posts: 115
Joined: Sun Sep 09, 2012 5:29 pm
Location: Strasbourg, France
x 9

Re: [Ogre 2.0 HELP] Compiles good but...

Post by Jayray »

Are you using another module that is linked with OGRE? CEGUI for instance, or another GUI engine?
Because they also need to be recompiled and linked to the new OGRE dll.

I had the same issue as you, but I had forgotten to replace my OgreMain.dll file in my release directory :roll:
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: [Ogre 2.0 HELP] Compiles good but...

Post by dark_sylinc »

Hi,

Your error means that either (one or more options possible):
  • You forgot to rebuild a binary exe/dll that depends on Ogre.
  • You forgot to overwrite an exe/dll that depends on Ogre
In other words, one of your binaries is expecting the 1.x version of OgreMain.dll
If you're clueless on which one you missed, use Dependency Walker on every one of your DLL and EXE files until you see one importing symbols from OgreMain.dll that don't exist (will be marked in red)
malium
Halfling
Posts: 43
Joined: Mon Aug 25, 2014 4:01 pm
Location: Spain

Re: [Ogre 2.0 HELP] Compiles good but...

Post by malium »

Really thank you Jayray, it was my GUI extension, called Hikari, which was compiled with an older version of Ogre 2.0 Header.
Post Reply