https://github.com/teddy-van-jerry/qt_multi_pro_test
A simple test of multi projects of Qt.
https://github.com/teddy-van-jerry/qt_multi_pro_test
qmake qt
Last synced: 7 months ago
JSON representation
A simple test of multi projects of Qt.
- Host: GitHub
- URL: https://github.com/teddy-van-jerry/qt_multi_pro_test
- Owner: Teddy-van-Jerry
- License: mit
- Created: 2021-06-30T16:03:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T16:19:40.000Z (over 4 years ago)
- Last Synced: 2025-01-30T11:29:06.915Z (9 months ago)
- Topics: qmake, qt
- Language: QMake
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qt Multi Pro Test
A simple test of multi projects of Qt.> Compiling using:
> - (Windows 10) Qt 6.1.1 MinGW / MSVC
> - (Ubuntu 20) Qt 6.0.3 GCC## Introduction
It goes beyond saying that a good structure of the programme is fundamental.
However, doing so seems too complicited.Here I use a sample to implement the idea of using `subdirs` template in Qt using **QMAKE**.
## Windows
> Here I test on WIndows 10.The LIB file has the suffix `dll`, add them in the `pro` file.
## Linux
> Here I test on Ubuntu 20.The LIB file has the suffix `so`, add them in the `pro` file.
**PRO TIP**: The line here is very important, without which there can be compiling errors.
Without this line, there can be file `.so`, `.so.1`, `.so.1.0`, `.so.1.0.0`,
which can lead to errors of shared libraries.
```qmake
CONFIG += plugin # no symbolic link on linux
# Ref: https://forum.qt.io/topic/18882/solved-suppress-so-version-on-linux
```
