Qt Creator supports code completion and syntax highlighting for the added libraries once your project successfully builds and links to them. If the library name ends in d, deselect the Remove "d" suffix for release version option. You can specify that the letter is added for the debug version and removed for the release version. For example, if the release version is called example.lib, the debug version is called exampled.lib. If the library path does not contain either of these folders, you cannot select the option to place the libraries in separate folders.Īlternatively, the letter d can be added to the library name for the debug version. The default convention on Windows is that the debug and release versions of a library have the same name, but are placed in different subdirectories, usually called debug and release. However, if you develop on another platform than macOS and want to build your project for macOS, you must specify the library type. For example, on macOS, the library type ( Library or Framework) is detected automatically and the option is hidden. For a statically linked internal library, Qt Creator adds dependencies ( target_link_libraries when using CMake or PRE_TARGETDEPS when using qmake) in the project file.ĭepending on the development platform, some options might be detected automatically. Specify whether the library is statically or dynamically linked. Qt Creator automatically adds the include path for an internal library.įor all libraries, select the target platforms for the application, library, or plugin. Qt Creator tries to guess the include path for an external library, but you need to check it and modify it if necessary. You can use pkg-config to query system libraries during compilation.įor your own libraries and 3rd party libraries, you need to specify the paths. The library can be located either in the build tree of the current project or in another build tree.īecause system libraries do not typically change and are often found by default, you do not need to specify the path to the library or to its includes when you add it. You can add a system library, your own library, or a 3rd party library. The way the library is added depends on the type and location of the library. In addition to Qt libraries, you can add other libraries to your projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |