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. how to include Lib without library identification in qmake
Forum Updated to NodeBB v4.3 + New Features

how to include Lib without library identification in qmake

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 161 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.
  • B Offline
    B Offline
    Blackzero
    wrote on last edited by
    #1

    I want to use the WinLicenseSDK library but the documentation does not provide an example of using the library in qt c++, the documentation only provides sample code C++ Win32 API, can anyone help me how to solve it?

    INCLUDEPATH += D:/WinLicense SDK/WinLicenseSDK/Include/C
    LIBS += -LD:/WinLicense SDK/WinLicenseSDK/Lib/COFF
    

    error

    .......\LicenseMenager\licensemenager.cpp:15: error: C1083: Cannot open include file: 'WinlicenseSDK.h': No such file or directory
    

    Screenshot 2024-08-15 173216.jpg Screenshot 2024-08-15 173236.jpg

    C 1 Reply Last reply
    0
    • B Blackzero

      I want to use the WinLicenseSDK library but the documentation does not provide an example of using the library in qt c++, the documentation only provides sample code C++ Win32 API, can anyone help me how to solve it?

      INCLUDEPATH += D:/WinLicense SDK/WinLicenseSDK/Include/C
      LIBS += -LD:/WinLicense SDK/WinLicenseSDK/Lib/COFF
      

      error

      .......\LicenseMenager\licensemenager.cpp:15: error: C1083: Cannot open include file: 'WinlicenseSDK.h': No such file or directory
      

      Screenshot 2024-08-15 173216.jpg Screenshot 2024-08-15 173236.jpg

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @Blackzero Try putting quotes around the paths with spaces.

      B 2 Replies Last reply
      0
      • C ChrisW67

        @Blackzero Try putting quotes around the paths with spaces.

        B Offline
        B Offline
        Blackzero
        wrote on last edited by
        #3

        @ChrisW67 yes it works and can install #include “WinlicenseSDK.h” but there are problems that arise.
        I am using MSVC2019 64bit

        Screenshot 2024-08-15 195233.jpg

        1 Reply Last reply
        0
        • C ChrisW67

          @Blackzero Try putting quotes around the paths with spaces.

          B Offline
          B Offline
          Blackzero
          wrote on last edited by
          #4

          @ChrisW67 I have found a way to solve the SYSTEMTIME error by adding

          #include <Windows.h> 
          
          1 Reply Last reply
          0
          • B Blackzero has marked this topic as solved on

          • Login

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