-
Notifications
You must be signed in to change notification settings - Fork 456
How to build CopyQ on Windows
- The official binaries for Windows are built with Qt 5 and MinGW (Visual Studio builds are also available).
- The compiler toolkit must be the same that was used to build Qt.
- This page is out-of-date so try to use latest libraries and build tools.
- Commits in github repository are automatically built and tested at AppVeyor (see latest scripts and config file).
CMake is used to generate the Makefiles.
- Download and install CMake 2.8.12.2 Windows (Win32 Installer)
- Select the option
Add CMake to the system PATH for all users
during the installation
You have the choice between Qt 4.8.5 + MinGW 4.4, Qt 4.8.5 + Visual Studio C++ 2010 Express, Qt 5.2.1 + MinGW 4.8 or Qt 5.2.1 + Visual Studio C++ 2010 Express
- Download and install Qt libraries 4.8.5 for Windows (minGW 4.4, 317 MB).
- After the standard installation append the following line to your
PATH
environment variable:;c:\Qt\4.8.5\bin;c:\Qt\4.8.5\lib;c:\mingw\bin;
- Since Qt 4.8.5 does not include the MinGW compiler it is the easiest to download and extract the old MinGW 4.4 version from http://nosymbolfound.blogspot.de/2012/12/since-until-now-qt-under-windows-is.html
- Download and install Qt libraries 4.8.5 for Windows (VS 2010, 235 MB)
- Download and install Visual Studio C++ 2010 Express
- Download and install Qt 5.2.1 Qt 5.2.1 for Windows 32-bit (MinGW 4.8, OpenGL, 634 MB)
- After the standard installation append the following line to your
PATH
environment variable:;C:\Qt\Qt5.2.1\Tools\mingw48_32\bin;C:\Qt\Qt5.2.1\Tools\mingw48_32\lib;C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin;
- Download and install Qt 5.2.1 for Windows 32-bit (VS 2010, 518 MB)
- Download and install Visual Studio C++ 2010 Express
- clone the repository:
git clone https://github.com/hluk/CopyQ.git
- change into the local copy of the repository:
cd CopyQ
- create a new folder e.g. build and change into this directory:
mkdir build && cd build
- generate the Makefiles in the build directory:
cmake ..
Depending on which Qt version and compiler you want to use you have to generate the Makefiles differently
- Qt 4.8.5 and MinGW 4.4:
cmake -G "MinGW Makefiles" ..
- Qt 4.8.5 and VC2010:
cmake -G "Visual Studio 10" ..
- Qt 5.2.1 and MinGW 4.8:
cmake -DWITH_QT5=TRUE -G "MinGW Makefiles" ..
- Qt 5.2.1 and VC2010:
cmake -DWITH_QT5=TRUE -G "Visual Studio 10" ..
If you want to build with tests (https://github.com/hluk/CopyQ/wiki/Running-Tests) and debug use the additional cmake
switches: -DCMAKE_BUILD_TYPE=Debug -DWITH_TESTS=TRUE
For example Qt 5.2.1 and MinGW 4.8: cmake -DWITH_QT5=TRUE -DCMAKE_BUILD_TYPE=Debug -DWITH_TESTS=TRUE -G "MinGW Makefiles" ..
- Execute via command line in the build directory:
mingw32-make
- Open
Visual Studio Command Prompt (2010)
via start menu - Execute in the build directory:
msbuild copyq.sln /p:Configuration=Release
If you would like to use the CopyQ build on another Windows without Qt 5.2.1 installation you have to copy some files from Qt 5.2.1 into the CopyQ directory:
My CopyQ directory looks like this:
| copyq.com
| copyq.exe
| icudt51.dll
| icuin51.dll
| icuuc51.dll
| libEGL.dll
| libgcc_s_dw2-1.dll
| libGLESv2.dll
| libstdc++-6.dll
| libwinpthread-1.dll
| msvcp100.dll
| msvcr100.dll
| Qt5Core.dll
| Qt5Gui.dll
| Qt5Network.dll
| Qt5Script.dll
| Qt5Svg.dll
| Qt5Widgets.dll
|
+---imageformats
| qgif.dll
| qico.dll
| qjpeg.dll
| qmng.dll
| qsvg.dll
| qtga.dll
| qtiff.dll
|
+---platforms
| qminimal.dll
| qoffscreen.dll
| qwindows.dll
|
+---plugins
| libitemdata.dll
| libitemencrypted.dll
| libitemfakevim.dll
| libitemimage.dll
| libitemnotes.dll
| libitemsync.dll
| libitemtext.dll
| libitemweb.dll
|
\---themes
dark.ini
forest.ini
paper.ini
simple.ini
solarized-dark.ini
solarized-light.ini
wine.ini