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. Btscanner example refuses to build

Btscanner example refuses to build

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.3k 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.
  • R Offline
    R Offline
    Rectangle
    wrote on last edited by
    #1

    So I just installed a fresh copy of Qt, fiddled with some of the examples, then decided to check out the Bluetooth Scanner example.
    But when I try to build it (Desktop, MSVC2008), I get the following output:

    @04:55:51: Running build steps for project btscanner...
    04:55:51: Configuration unchanged, skipping qmake step.
    04:55:51: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
    C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile.Debug
    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"......\Desktop\Qt\4.8.1\msvc2008\include\QtCore" -I"......\Desktop\Qt\4.8.1\msvc2008\include\QtGui" -I"......\Desktop\Qt\4.8.1\msvc2008\include" -I"....\src\connectivity\bluetooth" -I"......\Desktop\Qt\4.8.1\msvc2008\include\ActiveQt" -I"debug" -I"." -I"..\btscanner" -I"." -I"......\Desktop\Qt\4.8.1\msvc2008\mkspecs\win32-msvc2008" -Fodebug\ @C:\Users\Spectre\AppData\Local\Temp\main.obj.4052.16.jom
    main.cpp
    c:\qtsdk\examples\qtmobility\btscanner\device.h(46) : fatal error C1083: Cannot open include file: 'qmobilityglobal.h': No such file or directory
    device.cpp
    c:\qtsdk\examples\qtmobility\btscanner\device.h(46) : fatal error C1083: Cannot open include file: 'qmobilityglobal.h': No such file or directory
    Generating Code...
    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"......\Desktop\Qt\4.8.1\msvc2008\include\QtCore" -I"......\Desktop\Qt\4.8.1\msvc2008\include\QtGui" -I"......\Desktop\Qt\4.8.1\msvc2008\include" -I"....\src\connectivity\bluetooth" -I"......\Desktop\Qt\4.8.1\msvc2008\include\ActiveQt" -I"debug" -I"." -I"..\btscanner" -I"." -I"......\Desktop\Qt\4.8.1\msvc2008\mkspecs\win32-msvc2008" -Fodebug\ @C:\Users\Spectre\AppData\Local\Temp\service.obj.4052.31.jom
    service.cpp
    c:\qtsdk\examples\qtmobility\btscanner\service.h(46) : fatal error C1083: Cannot open include file: 'qmobilityglobal.h': No such file or directory

    jom 1.0.6 - empower your cores

    command failed with exit code 2
    command failed with exit code 2
    command failed with exit code 2
    04:55:55: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
    Error while building project btscanner (target: Desktop)
    When executing build step 'Make'@

    I performed a local file search on my hard drive for the header in question, and it doesn't appear to exist. What steps have I overlooked here?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tomma
      wrote on last edited by
      #2

      Seems like you don't have Qt Mobility installed.
      Either install it from Qt SDK or get it from http://qt.nokia.com/products/qt-addons/mobility/

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rectangle
        wrote on last edited by
        #3

        Yeah I was looking at that earlier, and it states that it should come with the SDK.
        I used the online installer located here: http://qt.nokia.com/downloads
        Is that not the same SDK?

        Anyhow, I downloaded the Qt Mobility package alongside ActivePerl, ran configure.bat and followed the instructions in the last post located at http://qt-project.org/forums/viewthread/12796.
        It built (with > 400 warnings), but the example still doesn't seem to locate any bluetooth devices.

        EDIT: I just discovered "THIS":http://www.developer.nokia.com/Community/Discussion/showthread.php?232048-Bluetooth-desktop-app post, which states that bluetooth functionality is only available for mobile devices, not for desktop applications.

        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