D-Alex / ropencv

ffi ruby wrapper for opencv
Other
67 stars 14 forks source link

can't install on Fedora - help required #20

Closed ahsandar closed 10 years ago

ahsandar commented 10 years ago

any help will be appreciated as openCV is installed without any errors

ESC[A/home/dar/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") -- checking for module 'opencv' -- package 'opencv' not found CMake Error at /usr/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message): A required package was not found Call Stack (most recent call first): /usr/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal) src/CMakeLists.txt:6 (pkg_check_modules)

-- Configuring incomplete, errors occurred! See also "/home/dar/.rvm/gems/ruby-2.0.0-p353@retrospective/gems/ropencv-0.0.15/ext/CMakeFiles/CMakeOutput.log". extconf.rb:3:in block in <main>': CMake Configure Error (RuntimeError) from extconf.rb:1:inchdir' from extconf.rb:1:in `

'

extconf failed, exit code 1

D-Alex commented 10 years ago

cmake uses pkgconfig to find opencv. Make sure that pkg-config --list-all | grep opencv returns opencv before trying to build ropencv

ahsandar commented 10 years ago

thanks , found this guide helpful might come in handy for future users

http://thesilenceoflambs.wordpress.com/2012/05/08/install-and-test-opencv-under-fedora-16/

ahsandar commented 10 years ago

you also need to install gtk2-devel, not mentioned in the link