CMake doesn't properly detect uuid-dev

Bug #1284091 reported by Cefn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Invalid
Undecided
Unassigned

Bug Description

I'm trying to build Zorba with language bindings directly from the Bazaar repository. However, the build on Ubuntu Saucy incorrectly reports...

CMake Error at CMakeCompiler.txt:261 (MESSAGE):
  Could not find uuid/uuid.h header, which is required on Linux. On Ubuntu,
  the 'uuid-dev' package is required; look for similar packages on other
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:385 (INCLUDE)

...as I installed uuid-dev, and Synaptic reports it has installed the corresponding file at...
/usr/include/uuid/uuid.h
... How can I indicate to Cmake how to detect the library?

Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :

If I try to add the path, following http://www.cmake.org/Wiki/CMake_Useful_Variables ...

export CMAKE_INCLUDE_PATH=/usr/include; cmake ..

It reports the same error...
CMake Error at CMakeCompiler.txt:261 (MESSAGE):
  Could not find uuid/uuid.h header, which is required on Linux. On Ubuntu,
  the 'uuid-dev' package is required; look for similar packages on other
  platforms.
Call Stack (most recent call first):
  CMakeLists.txt:385 (INCLUDE)

Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :

OK, I found a way to pass the extra library path, although it's not a shell environment variable as expected...

cmake -D CMAKE_PREFIX_PATH=/usr/include ..

This takes me on to the next error, which is the same as https://bugs.launchpad.net/zorba/+bug/1284102 ...

Scanning dependencies of target zorba_read-pdf_module.jar.classes
org/zorbaxquery/modules/readPdf/ZorbaReadPdfModule.java:379: incompatible types
found : java.util.Map<java.lang.String,org.apache.pdfbox.pdmodel.common.COSObjectable>
required: java.util.Map<java.lang.String,java.lang.Object>
                        Map<String,Object> embeddedFileNames = embeddedFiles.getNames();
                                                                                     ^
1 error

Changed in zorba:
status: New → Invalid
Revision history for this message
Cefn (6-launchpad-net-cefn-com) wrote :

OK, a workaround to get the build to proceed further is to simply remove the directory for the read-pdf module from the source tree under zorba_modules altogether.

However, since read-pdf is the module I was trying to actually use, the fact this java source can't actually build, either from the release version or from the bazaar version is a blocker.

Revision history for this message
Benjamin (benjamin-komen) wrote :

Hello, I have the exact same bug when trying to get Zorba on Raspbian with cmake. I tried both
CMAKE_INCLUDE_PATH=/usr/include and CMAKE_PREFIX_PATH=/usr/include. Both did not work. How did you get it to work, Cefn?

Revision history for this message
Benjamin (benjamin-komen) wrote :

Never mind, this error was caused by trying to cmake Zorba while the uuid-dev package was not installed yet and then trying again. I deleted all build files and tried again from scratch (now with uuid-dev installed beforehand, instead of installing it halfway), and it worked.

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.