Using OpenCV with gcc and CMake (Bugfix #2663)


Added by Panos Georgiadis about 12 years ago. Updated about 12 years ago.


Status:Done Start date:2012-12-26
Priority:Normal Due date:
Assignee:Daniil Osokin % Done:

0%

Category:documentation
Target version:2.4.4
Affected version:branch '2.4' Operating System:
Difficulty: HW Platform:
Pull request:https://github.com/Itseez/opencv/pull/386

Description

Link: http://docs.opencv.org/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html#linux-gcc-usage

The CMakeLists.txt file causes two errors:
  1. There is no CMake version dependency
  2. No file extension is given (eg *.cpp)

Original CMakeLists.txt from the Tutorial link

project( DisplayImage )
find_package( OpenCV REQUIRED )
add_executable( DisplayImage DisplayImage )
target_link_libraries( DisplayImage ${OpenCV_LIBS} )

Edited CmakeLists.txt

cmake_minimum_required(VERSION 2.8)
project( DisplayImage )
find_package( OpenCV REQUIRED )
add_executable( DisplayImage DisplayImage.cpp )
target_link_libraries( DisplayImage ${OpenCV_LIBS} )


CMakeLists.txt (193 Bytes) Panos Georgiadis, 2012-12-26 10:23 pm


Associated revisions

Revision b5ed86c6
Added by Daniil Osokin about 12 years ago

Fixed sample files in "Using OpenCV with gcc and CMake" tutorial (bug #2663, #2588)

Revision 46d672dc
Added by Alexander Alekhin almost 11 years ago

Merge pull request #2663 from ilya-lavrenov:ipp_slow

History

Updated by Daniil Osokin about 12 years ago

Hi, Panos!
Please, send a pull request to OpenCV with this fix.

Updated by Kirill Kornyakov about 12 years ago

Daniil, please set Category next time. And, Bugfix tracker should be used, since the patch is proposed. Final note, if the issue will be resolved with pull request, we should set the proper version for this ticket, 2.4.4 hopefully.

  • Category set to build/install
  • Tracker changed from Bug to Bugfix
  • Assignee set to Andrey Kamaev

Updated by Vadim Pisarevsky about 12 years ago

  • Target version deleted ()

Updated by Vadim Pisarevsky about 12 years ago

  • Category changed from build/install to documentation

Updated by Vadim Pisarevsky about 12 years ago

  • Assignee deleted (Andrey Kamaev)

Updated by Daniil Osokin about 12 years ago

  • Affected version set to branch '2.4'
  • Assignee set to Daniil Osokin

Updated by Daniil Osokin about 12 years ago

  • Pull request set to https://github.com/Itseez/opencv/pull/386

Updated by Andrey Kamaev about 12 years ago

Fix is pushed to 2.4

  • Status changed from Open to Done

Updated by Kirill Kornyakov about 12 years ago

  • Target version set to 2.4.4

Also available in: Atom PDF