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 do I copy a configuration file for a database to the build folder when I compile the project?

How do I copy a configuration file for a database to the build folder when I compile the project?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 425 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.
  • H Offline
    H Offline
    haifisch
    wrote on last edited by
    #1

    I have MSVC2017. I connect it in .pro as follows:

    CONFIG(release, debug|release): DESTDIR = $$OUT_PWD/release
    CONFIG(debug, debug|release): DESTDIR = $$OUT_PWD/debug
    
    conf.path = $$DESTDIR
    conf.files = conf/db.conf
    
    INSTALLS += \
        conf
    

    in "Add Build Step":
    "Commands" "C:\Qt\5.11.0\msvc2017_64\bin\qmake.exe"
    "Arguments" "install"
    But an assembly error occurs:

    23:22:21: Запускается: «C:\Qt\5.11.0\msvc2017_64\bin\qmake.exe» install
    Cannot find file: install.
    23:22:21: Процесс «C:\Qt\5.11.0\msvc2017_64\bin\qmake.exe» завершился с кодом 2.
    Ошибка при сборке/установке проекта ObservationLog (комплект: Desktop Qt 5.11.0 MSVC2017 64bit)
    Во время выполнения этапа «Сборка»
    

    How do I copy the "conf" folder with the db.conf file to the build folder when I compile the project?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can find an implementation in this stackoverflow answer.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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