-
Install Visual Studio 2015 from here
- If performing a custom install be sure to check
- Programing Languages > C++
- Windows and Web Development > Windows 8.1 and Windows Phone 8.0/8.1 tools > Tools and Windows SDKs
- If performing a custom install be sure to check
-
Install Open CV here
- Take note of the installation location, this will be needed later
- Add \path\to\opencv\build\x64\vc14\bin to PATH
-
Install Qt here
- You will need to make a Qt account :(, but this can be done via the installer
- Select Components
- Qt 5.13.0 > MSVC 2015 64-bit
-
Install Cmake here
-
Edit
win_make_vc14_x64_to_edit.bat
and modify :- QT5_DIR="/path/to/Qt/msvcXXX/lib/cmake"
- DCMAKE_PREFIX_PATH="/path/to/OpenCV/build;/path/to/Qt/5.13.0/msvc2015_64/lib/cmake/Qt5Xml"
- The first path should point to the opencv build folder which contains
OpenCVConfig.cmake
- The second path should point to the Qt5Xml folder which contains
Qt5XmlConfigVersion.cmake
- The first path should point to the opencv build folder which contains
-
Run
win_make_vc14_x64_to_edit.bat
-
Run
make.bat
-
Move
scripts_to_build\build\x64\PixelAnnotationTool_x64_v1.3.2-6-XXXXXX
folder to a more accessible location and rename as desired -
Run PixelAnnotationTool.exe in above folder
On ubuntu, PixelAnnotationTool need this pacakage (OpenCV and Qt5.9.1):
sudo apt-get install mesa-common-dev
sudo apt-get install libopencv-dev python-opencv
wget http://download.qt.io/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run
chmod +x qt-opensource-linux-x64-5.9.1.run
./qt-opensource-linux-x64-5.9.1.run
To compile the application :
cd ..
mkdir x64
cd x64
cmake -DQT5_DIR=/path/to/Qt5.9.1/5.9.1/gcc_64/lib/cmake -G "Unix Makefiles" ..
make