Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Compile on windows, link fails at QtGuid4

    Installation and Deployment
    2
    3
    2751
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      azure.rr last edited by

      Hello all!

      I tried to compile lgpl version of QT 4.7.2 on Windows with msvc2003 command line. Everything went fine, until nmake reached QtGuid4 linking. Error seems like this:

      @
      link /LIBPATH:"d:\qt-everywhere\lib" /LIBPATH:"d:\qt-everywhere\lib" /NOLOGO /BASE:0x65000000 /DEBUG /DLL /VERSION:4.72 /OUT:....\lib\QtG
      uid4.dll @C:\DOCUME~1\Ish\LOCALS~1\Temp\nm5DE.tmp
      Creating library ....\lib\QtGuid4.lib and object ....\lib\QtGuid4.exp
      qtextureglyphcache.obj : error LNK2019: unresolved external symbol "public: struct QFontEngineFT::Glyph * __thiscall QFontEngineFT::loadGlyph(struct QFontEngineFT::QGlyphSet *,unsigned int,enum QFontEngineFT::GlyphFormat,bool)const " (?loadGlyph@QFontEngineFT@@QBEPAUGlyph@1@PAUQGlyphSet@1@IW4GlyphFormat@1@_N@Z) referenced in function "public: struct QFontEngineFT::Glyph * __thiscall QFontEngineFT::loadGlyph(unsigned int,enum QFontEngineFT::GlyphFormat,bool)const " (?loadGlyph@QFontEngineFT@@QBEPAUGlyph@1@IW4GlyphFormat@1@_N@Z)
      ....\lib\QtGuid4.dll : fatal error LNK1120: 1 unresolved externals
      NMAKE : fatal error U1077: 'link' : return code '0x460'
      Stop.
      NMAKE : fatal error U1077: 'D:\MVCT2003\bin\nmake.exe' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      @

      If every object file was built before this point, and i haven't modified source and header files, what could be the problem?

      If it could help, I've used to configure with these parameters:

      @
      configure -platform win32-msvc2003 -qt-gif -qt-sql-odbc -qt-sql-sqlite -qt-sql-mysql -phonon -no-qt3support -stl -webkit
      -phonon-backend -plugin-sql-mysql -multimedia -audio-backend -plugin-sql-odbc -openssl -mmx -3dnow -sse -sse2 -dbus
      -shared -ltcg -dsp -no-vcproj -mp -qmake -qt-freetype -usedeffiles -no-s60
      @

      Thanks for any help and sorry for my bad english. :)

      while(!sleep){
      sheep++;
      }

      1 Reply Last reply Reply Quote 0
      • G
        goetz last edited by

        I'm not sure, but I would try configure to leave out FreeType (replace -qt-freetype with -no-freetype).

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • A
          azure.rr last edited by

          Problem solved, without FreeType it compiled successfully. Thank you for the advice! :)

          while(!sleep){
          sheep++;
          }

          1 Reply Last reply Reply Quote 0
          • First post
            Last post