Bug#712056: RFS: scantailor [ITP] -- interactive post-processing tool for scanned document pages
Hi Martin,
thanks for your answer.
Am Fri, 14 Jun 2013 15:49:59 +0200
schrieb Martin Eberhard Schauer <Martin.E.Schauer@gmx.de>:
> My POV is: As you already found the error (line 295), your conclusion
> is wrong. You have 1.49.0.1, but cmake searches for 1.35.
You are right and I am confused. Boost has already been found at the
beginning but this is forgotten later. I learn, that FIND_PACKAGE
overrides all former states even if it was found already.
Also from [1] I learned that FIND_PACKAGE does not fail because of the
higher version as EXACT is not set, but as you can see in the following
it is about the COMPONENTS.
> So patch CMakeLists.txt or run ccmake.
$ grep -n -i boost CMakeLists.txt
74:INCLUDE(FindBoost)
152:FILE(GLOB boost_dirs1 "${build_outer_dir}/boost_1_[0-9]*_[0-9]*")
153:FILE(GLOB boost_dirs2 "${source_outer_dir}/boost_1_[0-9]*_[0-9]*")
286: BOOST_ROOT boost-build.jam PATHS ${boost_dirs1} ${boost_dirs2}
287: DOC "Path to top-level Boost source directory."
289: SET(Boost_USE_STATIC_LIBS ON)
291: ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
294:SET(Boost_USE_MULTITHREADED ON)
295:FIND_PACKAGE(Boost 1.35.0 COMPONENTS unit_test_framework prg_exec_monitor)
296:FIND_PACKAGE(Boost 1.49.0 COMPONENTS unit_test_framework prg_exec_monitor)
297:FIND_PACKAGE(Boost 1.49.0)
298:FIND_PACKAGE(Boost 1.49.1 COMPONENTS unit_test_framework prg_exec_monitor)
299:IF(NOT Boost_FOUND)
302: "Could not find boost headers or libraries.\n"
303: "You may need to install a package named libboost1.35-dev or later."
305:ENDIF(NOT Boost_FOUND)
307:INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
308:LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
354: ${QT_DEFINITIONS} -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION
573: # There seems to be a bug in either gcc or boost that makes page sorting either crash
$ cmake .
-- Boost version: 1.49.0
-- Could NOT find Boost
-- Could NOT find Boost
-- Boost version: 1.49.0
-- Could NOT find Boost
CMake Error at CMakeLists.txt:300 (MESSAGE):
Could not find boost headers or libraries.
You may need to install a package named libboost1.35-dev or later
Only the third line hits (except FindBoost in 74). This leads to the
conclusion the there is some problem with the components
'unit_test_framework prg_exec_monitor'. Please correct me.
> If you don't want scantailor just to compile and run on your personal
> Wheezy box, compile for unstable, wait for testing migration and then
> do a backport.
> HTH, Martin
I would like to help. In this case the package is already RFS and I
think repackaging it would be counterproductive?
thanks,
kardan
Reply to: