Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Configure completely QT environment (compiler, add libraries and flags)

Configure completely QT environment (compiler, add libraries and flags)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 611 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.
  • R Offline
    R Offline
    RaulJN8
    wrote on last edited by
    #1

    Hi everyone, I've a problem with the compiler and how to add libraries and flags:

    How can I configure the QT-Creator to work with my /msys64/mingw64 environment, both compiler with my own libstdc++, with the compilation flags that I require, and link to the libraries in /msys64/mingw64/lib?

    I know I have to go to KITS, and I've included my specific compiler (gcc13), but I need to add the libraries and flags, related with -std=c++23. I've wrote a list with doubs related with this, I show you that and I hope you can help me!

    KIT

    1. Add C:/msys64/mingw64/include -- to access libstdc++ *.h files, because otherwise I access the default includes of mingw within Qt (version of g++ 11)
    2. We have to add C:/msys64/mingw64/lib to link correctly. But how I do that?

    I hope I've explained good...

    Regards!

    Christian EhrlicherC 1 Reply Last reply
    0
    • R RaulJN8

      Hi everyone, I've a problem with the compiler and how to add libraries and flags:

      How can I configure the QT-Creator to work with my /msys64/mingw64 environment, both compiler with my own libstdc++, with the compilation flags that I require, and link to the libraries in /msys64/mingw64/lib?

      I know I have to go to KITS, and I've included my specific compiler (gcc13), but I need to add the libraries and flags, related with -std=c++23. I've wrote a list with doubs related with this, I show you that and I hope you can help me!

      KIT

      1. Add C:/msys64/mingw64/include -- to access libstdc++ *.h files, because otherwise I access the default includes of mingw within Qt (version of g++ 11)
      2. We have to add C:/msys64/mingw64/lib to link correctly. But how I do that?

      I hope I've explained good...

      Regards!

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @RaulJN8 said in Configure completely QT environment (compiler, add libraries and flags):

      We have to add C:/msys64/mingw64/lib to link correctly. But how I do that?

      Specify it in your CMakeLists.txt like any other compiler or linker option.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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