Skip to content

Latest commit

 

History

History
 
 

scripts_to_build

build on Microsoft Windows:

  1. Install Visual Studio 2015 from here

    1. 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
  2. Install Open CV here

    1. Take note of the installation location, this will be needed later
    2. Add \path\to\opencv\build\x64\vc14\bin to PATH
  3. Install Qt here

    1. You will need to make a Qt account :(, but this can be done via the installer
    2. Select Components
      • Qt 5.13.0 > MSVC 2015 64-bit
  4. Install Cmake here

  5. Edit win_make_vc14_x64_to_edit.bat and modify :

    1. QT5_DIR="/path/to/Qt/msvcXXX/lib/cmake"
    2. DCMAKE_PREFIX_PATH="/path/to/OpenCV/build;/path/to/Qt/5.13.0/msvc2015_64/lib/cmake/Qt5Xml"
      1. The first path should point to the opencv build folder which contains OpenCVConfig.cmake
      2. The second path should point to the Qt5Xml folder which contains Qt5XmlConfigVersion.cmake
  6. Run win_make_vc14_x64_to_edit.bat

  7. Run make.bat

  8. Move scripts_to_build\build\x64\PixelAnnotationTool_x64_v1.3.2-6-XXXXXX folder to a more accessible location and rename as desired

  9. Run PixelAnnotationTool.exe in above folder

build and run on linux :

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