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. ANT+ integration in my QT project
Forum Updated to NodeBB v4.3 + New Features

ANT+ integration in my QT project

Scheduled Pinned Locked Moved General and Desktop
23 Posts 2 Posters 9.7k Views 1 Watching
  • 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.
  • N Offline
    N Offline
    NicuPopescu
    wrote on last edited by
    #21

    @LIBS+=C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\Debug\lib\ANT_LIB.lib
    User32.Lib@

    "RegQueryValueEx function":http://msdn.microsoft.com/en-us/library/windows/desktop/ms724911(v=vs.85).aspx

    you need Advapi32.lib

    this the comand line for linker in DEMO_LIB:

    /OUT:"D:\Coolstream\Qt\Studiu\ANT\ANT_Windows_Library_Package_v3.2\Debug\DEMO_LIB.exe" /INCREMENTAL /NOLOGO /LIBPATH:"D:\Coolstream\Qt\Studiu\ANT\ANT_Windows_Library_Package_v3.2\Debug" "ANT_LIB.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "D:\Coolstream\Qt\Studiu\ANT\ANT_Windows_Library_Package_v3.2\Debug\ANT_Lib.lib" /MANIFEST /ManifestFile:"Debug\DEMO_LIB.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\Coolstream\Qt\Studiu\ANT\ANT_Windows_Library_Package_v3.2\Debug\DEMO_LIB.pdb" /SUBSYSTEM:CONSOLE /PGD:"D:\Coolstream\Qt\Studiu\ANT\ANT_Windows_Library_Package_v3.2\Debug\DEMO_LIB.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:QUEUE

    see in LIBPATH how many .lib it seems needed

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximus
      wrote on last edited by
      #22

      Thanks Nicu, finally the demo is working!!
      I used Dependecy Walker and found that DEMO_LIB.exe uses KERNEL32.DLL, USER32.DLL, ADVAPI32.DLL, MSVCP120D.DLL and MSVCR120D.DLL

      I Just added Advapi32.lib, should I add the others also?

      Here is my working DEMO_LIB.pro file:
      @TEMPLATE = app
      CONFIG += console
      CONFIG -= app_bundle
      CONFIG -= qt

      SOURCES += demo.cpp

      HEADERS += demo.h

      INCLUDEPATH += C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\ANT_LIB\inc
      INCLUDEPATH += C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\ANT_LIB\software\serial
      INCLUDEPATH += C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\ANT_LIB\software\system
      INCLUDEPATH += C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\ANT_LIB\software\USB\devices
      INCLUDEPATH += C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\ANT_LIB\software\USB\device_handles
      INCLUDEPATH += C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\ANT_LIB\software\USB

      LIBS += "C:\Users\Toto\Desktop\ANT_Windows_Library_Package_v3.2\Debug\lib\ANT_LIB.lib"
      LIBS += "C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86\User32.lib"
      LIBS += "C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86\AdvAPI32.Lib"@

      I will not have to ship these 2 libs with my application right? as all the windows system have it?
      Thank you a million time!


      Free Indoor Cycling Software - https://maximumtrainer.com

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NicuPopescu
        wrote on last edited by
        #23

        congrats! :)

        normally you don't need to deploy those dlls

        you missed my suggestion to use only once LIBS+= all libs space separated

        or

        LIBS+= lib1
        lib2
        ...

        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