Using OpenCV with gcc and CMake (Bugfix #2663)
Description
The CMakeLists.txt file causes two errors:
- There is no CMake version dependency
- 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} )
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 Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4