Mac: Error while building sikuli from source --- TIFF_LIBS not found

Bug #988253 reported by kumar
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Low
RaiMan

Bug Description

Hi,

I'm trying to build from sikuli source code in Mac. I have installed all the pre installed softwares which were mentioned in build_mac.txt

while running the below commands in terminal, for the command 5 mentioned below , CMake error is getting throned.
---------------------------------------
-- Found Tesseract
NATIVE_LIBS: VisionProxy;VDictProxy;MacUtil;MacHotkeyManager
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TIFF_LIBS
    linked by target "MacHotkeyManager" in directory /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
    linked by target "MacUtil" in directory /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
    linked by target "VDictProxy" in directory /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
    linked by target "VDictProxy" in directory /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
    linked by target "VisionProxy" in directory /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native

-- Configuring incomplete, errors occurred!
--------------------------------------------------

1. make a "build" directory in sikuli-script/
  mkdir sikuli-script/build

2. generate makefiles with CMake
  cd sikuli-script/build
  cmake ..

3. build sikuli-script
  make

4. make a "build" directory in sikuli-ide/
  cd ../.. # go back to the top directory
  mkdir sikuli-ide/build

5. generate makefiles of Sikuli-IDE with CMake
  cd sikuli-ide/build
  cmake ..

Could some one can help on how to resolve the error? and how to proceed further...

Thanks,
Kumar

Tags: build
Revision history for this message
RaiMan (raimund-hocke) wrote :

I guess the libtiff stuff is missing.

I am using homebrew to install additional software/libraries:

brew install libtiff

which installs libtiff 3.9.5 from
http://www.remotesensing.org/libtiff/

summary: - CMake Error while building in Mac from sikuli source code
+ Mac: Error while building sikuli from source --- TIFF_LIBS not found
Revision history for this message
kumar (nkumar217) wrote :

Thanks RaiMan... That resolved my issue... but unfortunately facing some more issues while running the make command with the below errors.

  4%] Building CXX object src/main/native/CMakeFiles/VisionProxy.dir/cvgui.cpp.o
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp: In static member function ‘static void cvgui::segmentScreenshot(const cv::Mat&, std::vector<Blob, std::allocator<Blob> >&, std::vector<Blob, std::allocator<Blob> >&)’:
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp:1848: error: ‘SURF’ was not declared in this scope
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp:1848: error: expected `;' before ‘surf_extractorâ€
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp:1852: error: ‘surf_extractor’ was not declared in this scope
make[2]: *** [src/main/native/CMakeFiles/VisionProxy.dir/cvgui.cpp.o] Error 1
make[1]: *** [src/main/native/CMakeFiles/VisionProxy.dir/all] Error 2
make: *** [all] Error 2

Could you please help why this error is coming??

Revision history for this message
RaiMan (raimund-hocke) wrote :

This is an error from the OpenCV stuff.

If using OpenCV 2.3, try to use OpenCV 2.1 or 2.2 instead.

On my Mac Lion I have OpenCV 2.2 installed and building from source works for me.

Revision history for this message
kumar (nkumar217) wrote :

Hi,

i have tried with OpenCV2.2.0 , even then iam getting the same error
COuld some one help , how to get rid of this?

[ 17%] Building CXX object src/main/native/CMakeFiles/VisionProxy.dir/cvgui.cpp.o
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp: In static member function ‘static void cvgui::segmentScreenshot(const cv::Mat&, std::vector<Blob, std::allocator<Blob> >&, std::vector<Blob, std::allocator<Blob> >&)’:
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp:1848: error: ‘SURF’ was not declared in this scope
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp:1848: error: expected `;' before ‘surf_extractor’
/Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native/cvgui.cpp:1852: error: ‘surf_extractor’ was not declared in this scope
make[2]: *** [src/main/native/CMakeFiles/VisionProxy.dir/cvgui.cpp.o] Error 1
make[1]: *** [src/main/native/CMakeFiles/VisionProxy.dir/all] Error 2
make: *** [all] Error 2

Revision history for this message
kumar (nkumar217) wrote :

Found some differrent errors as below
while running cmake .. command from the sikuli source code

CMake Error at /Users/admin/sikuli_code/sikuli/cmake_modules/FindOpenCV.cmake:94 (file):
  file STRINGS file "/usr/local/include/opencv/cvver.h" cannot be read.
Call Stack (most recent call first):
  src/main/native/CMakeLists.txt:26 (FIND_PACKAGE)

CMake Error at /Users/admin/sikuli_code/sikuli/cmake_modules/FindOpenCV.cmake:95 (string):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  src/main/native/CMakeLists.txt:26 (FIND_PACKAGE)

CMake Error at /Users/admin/sikuli_code/sikuli/cmake_modules/FindOpenCV.cmake:96 (string):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  src/main/native/CMakeLists.txt:26 (FIND_PACKAGE)

CMake Error at /Users/admin/sikuli_code/sikuli/cmake_modules/FindOpenCV.cmake:97 (string):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  src/main/native/CMakeLists.txt:26 (FIND_PACKAGE)

-- Found Tesseract
NATIVE_LIBS: VisionProxy;VDictProxy;MacUtil;MacHotkeyManager
-- Configuring incomplete, errors occurred!
Kumar:build admin$

Revision history for this message
RaiMan (raimund-hocke) wrote :

-- while running cmake .. command from the sikuli source code

The cmake ..
has to be run from the newly created build directory

e.g. for building sikuli-sctipt.jar:

--- make a folder new empty folder build in the folder sikuli-script
--- go to that new folder build
--- run cmake ..
--- run make

Revision history for this message
kumar (nkumar217) wrote : Re: [Bug 988253] Re: Mac: Error while building sikuli from source --- TIFF_LIBS not found

Did the same steps as mentioned below.

--- make a folder new empty folder build in the folder sikuli-script
--- go to that new folder build
--- run cmake ..
Cmake is throwing an Error with OpenCV2.2.0
--- run make

Thanks,
Kumar

On Thu, Apr 26, 2012 at 1:31 PM, RaiMan <email address hidden> wrote:

> -- while running cmake .. command from the sikuli source code
>
> The cmake ..
> has to be run from the newly created build directory
>
> e.g. for building sikuli-sctipt.jar:
>
> --- make a folder new empty folder build in the folder sikuli-script
> --- go to that new folder build
> --- run cmake ..
> --- run make
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/988253
>
> Title:
> Mac: Error while building sikuli from source --- TIFF_LIBS not found
>
> Status in Sikuli:
> New
>
> Bug description:
> Hi,
>
> I'm trying to build from sikuli source code in Mac. I have installed
> all the pre installed softwares which were mentioned in build_mac.txt
>
> while running the below commands in terminal, for the command 5 mentioned
> below , CMake error is getting throned.
> ---------------------------------------
> -- Found Tesseract
> NATIVE_LIBS: VisionProxy;VDictProxy;MacUtil;MacHotkeyManager
> CMake Error: The following variables are used in this project, but they
> are set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the
> CMake files:
> TIFF_LIBS
> linked by target "MacHotkeyManager" in directory
> /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
> linked by target "MacUtil" in directory
> /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
> linked by target "VDictProxy" in directory
> /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
> linked by target "VDictProxy" in directory
> /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
> linked by target "VisionProxy" in directory
> /Users/admin/skl_source_code/sikuli/sikuli-script/src/main/native
>
> -- Configuring incomplete, errors occurred!
> --------------------------------------------------
>
>
> 1. make a "build" directory in sikuli-script/
> mkdir sikuli-script/build
>
> 2. generate makefiles with CMake
> cd sikuli-script/build
> cmake ..
>
> 3. build sikuli-script
> make
>
> 4. make a "build" directory in sikuli-ide/
> cd ../.. # go back to the top directory
> mkdir sikuli-ide/build
>
> 5. generate makefiles of Sikuli-IDE with CMake
> cd sikuli-ide/build
> cmake ..
>
>
> Could some one can help on how to resolve the error? and how to proceed
> further...
>
>
> Thanks,
> Kumar
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/sikuli/+bug/988253/+subscriptions
>

Revision history for this message
RaiMan (raimund-hocke) wrote :

I think you have to check your OpenCV setup/installation again:

file "/usr/local/include/opencv/cvver.h" cannot be read.

does not look like it is ok.

This error happens in the cake module FindOpenCV and it should not look for cvver.h (not contained in OpenCV version 2.x any more) but find and use OpenCVConfig.cmake (the version coding now is at core/version.hpp).

Before running a new build, you should delete the build folder and create it empty again.

Revision history for this message
Nobuhiro Iwamatsu (iwamatsu) wrote :

Hi,

I am package maintianer of opencv in Debian.
I comment about SURF and surf_extractor.

SURF (and other) component move to non-free module from opencv 2.4.
Because these indicate possible legal issues of using those algorithms in user applications.
If you want to use these component, you need to link nonfree library.

And some Linux distribution (Debian and Ubuntu) stops providing these.
By this, sikuli can not build with opencv package.
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678230

If possible, you need to consider these substitution.

Best regards,
  Nobuhrio

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
RaiMan (raimund-hocke)
tags: added: sikulibuild
RaiMan (raimund-hocke)
Changed in sikuli:
assignee: RaiMan (raimund-hocke) → nobody
milestone: x1.0 → none
status: In Progress → New
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
tags: added: build
removed: sikulibuild
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.