October 13, 2010

ProgrammerAtHeart3344 ProgrammerAt..
Lab Rat
39 posts

[Solved] unresolved external errors: QX11Info

 

i’m trying to compile an Ogre/Qt application following the tutorial on the Ogre wiki and i get these linkler errors:

  1. 1>OgreRenderer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QX11Info::~QX11Info(void)" (__imp_??1QX11Info@@QAE@XZ) referenced in function "protected: virtual void __thiscall CJokeRendererOpenGL::initializeGL(void)" (?initializeGL@CJokeRendererOpenGL@@MAEXXZ)
  2. 1>OgreRenderer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall QX11Info::screen(void)const " (__imp_?screen@QX11Info@@QBEHXZ) referenced in function "protected: virtual void __thiscall CJokeRendererOpenGL::initializeGL(void)" (?initializeGL@CJokeRendererOpenGL@@MAEXXZ)
  3. 1>OgreRenderer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct _XDisplay * __cdecl QX11Info::display(void)" (__imp_?display@QX11Info@@SAPAU_XDisplay@@XZ) referenced in function "protected: virtual void __thiscall CJokeRendererOpenGL::initializeGL(void)" (?initializeGL@CJokeRendererOpenGL@@MAEXXZ)
  4. 1>OgreRenderer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QX11Info::QX11Info(void)" (__imp_??0QX11Info@@QAE@XZ) referenced in function "protected: virtual void __thiscall CJokeRendererOpenGL::initializeGL(void)" (?initializeGL@CJokeRendererOpenGL@@MAEXXZ)
  5. 1>G:\Users\Eggman\Documents\Visual Studio 2008\Projects\The_Joke_Editor\Debug\The_Joke_Editor.exe : fatal error LNK1120: 4 unresolved externals

which lib do i have to link to get this to work?

8 replies

October 13, 2010

lyuts lyuts
Lab Rat
169 posts

It looks like the xorg’s devel package that contains X’s headers is not installed on your computer.

 Signature 

I’m a rebel in the S.D.G.

October 13, 2010

kalle kalle
Lab Rat
42 posts

The error messages look like this is on Windows? In which case it would be odd to have QX11Info in there. Which platform are you building on?

October 13, 2010

ProgrammerAtHeart3344 ProgrammerAt..
Lab Rat
39 posts

windows 7 and the tutorial for Ogre had that so i assumed it needed to be added

October 13, 2010

lyuts lyuts
Lab Rat
169 posts

Have you installed “Microsoft Visual C++ Dependencies Package” and have you read the corresponding thread here [ogre3d.org] ?

 Signature 

I’m a rebel in the S.D.G.

October 13, 2010

ProgrammerAtHeart3344 ProgrammerAt..
Lab Rat
39 posts

no, and no but i am doing that niw

October 13, 2010

ProgrammerAtHeart3344 ProgrammerAt..
Lab Rat
39 posts

but isn’t QX11Info part of Qt4?

October 14, 2010

lyuts lyuts
Lab Rat
169 posts
ProgrammerAtHeart3344 wrote:
but isn't QX11Info part of Qt4?

It is, but this is the part that depends on Xorg, which is separate from Qt.

 Signature 

I’m a rebel in the S.D.G.

October 14, 2010

ProgrammerAtHeart3344 ProgrammerAt..
Lab Rat
39 posts

Oh, i fixed it, LOL i just used the win32 version of it, also……io can’t get the GL widget to re-size, lol, fix one thing……Oh well, might just have to use another widget

 
  ‹‹ [Solved] qtwinmigrate-2.8_1-opensource install trouble      Adding a QAction to a QMenu on a certain position ››

You must log in to post a reply. Not a member yet? Register here!