Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt installer framework 4.0 64-bit Windows compile error

Qt installer framework 4.0 64-bit Windows compile error

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 512 Views
  • 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.
  • C Offline
    C Offline
    chilarai
    wrote on last edited by chilarai
    #1

    I am trying to compile Qt installer framework 4.0 64-bit on Windows using nmake (Visual Studio 2019, MSVC 14) as the default installer framework is 32-bit. However, I am getting these Linker errors.

    Is there any other source to download working 64-bit installer framework for windows 10?

    EDIT: I did the following which produced these errors

    qmake
    nmake
    
    7z.lib(EnumDirItems.obj) : error LNK2019: unresolved external symbol __imp_GetFileSecurityW referenced in function "public: void __cdecl CDirItems::AddSecurityItem(class UString const &,int &)" (?AddSecurityItem@CDirItems@@QEAAXAEBVUString@@AEAH@Z)
    7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_OpenProcessToken referenced in function "public: __cdecl CArchiveExtractCallback::CArchiveExtractCallback(void)" (??0CArchiveExtractCallback@@QEAA@XZ)
    7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_AdjustTokenPrivileges referenced in function "public: __cdecl CArchiveExtractCallback::CArchiveExtractCallback(void)" (??0CArchiveExtractCallback@@QEAA@XZ)
    7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_SetFileSecurityW referenced in function "public: virtual long __cdecl CArchiveExtractCallback::SetOperationResult(int)" (?SetOperationResult@CArchiveExtractCallback@@UEAAJH@Z)
    7z.lib(ArchiveExtractCallback.obj) : error LNK2019: unresolved external symbol __imp_LookupPrivilegeValueW referenced in function "public: __cdecl CArchiveExtractCallback::CArchiveExtractCallback(void)" (??0CArchiveExtractCallback@@QEAA@XZ)
    7z.lib(7zHandlerOut.obj) : error LNK2019: unresolved external symbol __imp_SysFreeString referenced in function "public: __cdecl CMyComBSTR::~CMyComBSTR(void)" (??1CMyComBSTR@@QEAA@XZ)
    ..\..\bin\installerbase.exe : fatal error LNK1120: 37 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    
    1 Reply Last reply
    0
    • HoMaH Offline
      HoMaH Offline
      HoMa
      wrote on last edited by
      #2

      These are all Windows functions. I guess they are implemented in the AdvApi32.dll (yes, even on 64-bit). If you lookup the functions at Microsoft, you will find there the missing dll. Like
      OpenProcessToken.
      With that you just have to link the corresponding .lib file.
      Best regards
      Holger

      C 1 Reply Last reply
      0
      • HoMaH HoMa

        These are all Windows functions. I guess they are implemented in the AdvApi32.dll (yes, even on 64-bit). If you lookup the functions at Microsoft, you will find there the missing dll. Like
        OpenProcessToken.
        With that you just have to link the corresponding .lib file.
        Best regards
        Holger

        C Offline
        C Offline
        chilarai
        wrote on last edited by
        #3

        @HoMa thanks I will check and confirm

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved