Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Adding existing projects from "examples"



  • Adding existing projects from "examples" I am getting this error.
    What is "proper QT build " ?
    Did I added wrong file from github?

    This is what I have in main project .pro

    SUBDIRS +=
    ../../../../../media/w/BACKUP/PROGRAM_DEV/QT/CAT_COPY/CAT_FT857/SUB_MDI
    ../../../../../media/w/BACKUP1/PROGRAM_DEV/QT/CAT_NO_BT/CAT_FT857/SUB_MDI \

    ../../SOURCE/qtconnectivity/examples/bluetooth/btscanner.pro \

    ../../SOURCE/qtconnectivity/examples/bluetooth/btscanner \
    SUB_PROJECT_MAIN
    

    Neither btscanner file is acceptable.

    :-1: error: Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build.

    For test verification I have added another existing project - no issue

    SUBDIRS +=
    ../../../../../media/w/BACKUP/PROGRAM_DEV/QT/CAT_COPY/CAT_FT857/SUB_MDI
    ../../../../../media/w/BACKUP1/PROGRAM_DEV/QT/CAT_NO_BT/CAT_FT857/SUB_MDI \

    ../../SOURCE/qtconnectivity/examples/bluetooth/btscanner.pro \

    ../../SOURCE/qtconnectivity/examples/bluetooth/btscanner \

    ../SUBPROJECTuntitled.pro \
    SUB_PROJECT_MAIN

  • Lifetime Qt Champion

    @AnneRanch said in Adding existing projects from "examples":

    ../../SOURCE/qtconnectivity/examples/bluetooth/btscanner.pro

    Why do you have pro file in SUBDIRS list?


Log in to reply