Note: Currently the most up-to-date branch is not master, checkout tqc-tmc
- Install Qt Creator download.qt.io if you haven't got it already.
- Get the sources for the Qt Creator build from code.qt.io
git clone git://code.qt.io/qt-creator/qt-creator.git
- Qt Creator is released from tags, like 'v4.8.0-beta2', so checkout the right Qt Creator version tag:
git checkout v4.8.1
- Clone this repository recursively:
git clone --recursive https://github.com/testmyqt/qt-creatortmc
- The project can be opened in Qt Creator now. To configure the build target set the following environment variables:
- To set environment variables in Qt Creator, go to Projects Mode -> Build -> Build Environment
QTC_BUILD
your Qt Creator buildQTC_SOURCE
your Qt Creator sources
- Build the project. The plugin will be located in
QTC_BUILD/lib/qtcreator/plugins/libTestMyCode.so
- Restart Qt Creator to load the plugin.
If you wish to develop the plugin, you might want a setup with a second instance of Creator. One way to accomplish this is to build Creator by yourself.
- Get the sources for the Qt Creator build from code.qt.io
git clone git://code.qt.io/qt-creator/qt-creator.git
cd qt-creator
- Qt Creator is released from tags, like
v4.8.0-beta2
, so checkout the right Qt Creator version tag: git checkout v4.8.0-beta2
- Note: You will need a debug build if you want to debug your project
- To build Qt Creator in to a separate build directory:
mkdir ../qt-creator-build && cd ../qt-creator-build
qmake ../qt-creator
make
ormake -j $(nproc)
to build on all cores
- Clone this repository recursively:
git clone --recursive https://github.com/testmyqt/qt-creatortmc
- The project can be opened in Qt Creator now. To configure the build target set the following environment variables:
- To set environment variables in Qt Creator, go to Projects Mode -> Build -> Build Environment
QTC_BUILD
your Qt Creator buildQTC_SOURCE
your Qt Creator sourcesBUILD_OUTPUT_PATH
where the shared library file will be located. If not set, will install toQTC_BUILD
dir.
- Debug build
qmake -spec linux-g++ CONFIG+=debug
- Test build
qmake -spec linux-g++ CONFIG+=test
- Run
make
to build - Run
make install
to install the plugin.so
file to the plugin directory
To run the plugin/IDE, you need to create a Run configuration to launch the QTC_BUILD
, Projects Mode -> Run. It is recommended to add the additional command line argument -settingspath path-to-temporary-settings
to not run in the same creator session as your development environment.
The QDoc configuration file is main.qdocconf
in the root directory of the project. The QDoc documentation is automatically generated into doc/html
by running the command qdoc main.qdocconf
. Note that each time the command is run, all the previous content of doc/html
is deleted. So don't place any manually generated content into the directory!