X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:in-reply-to:references:subject :mime-version:message-id:date:content-transfer-encoding :content-type; q=dns; s=default; b=B8bdI93FTlwQPDY9Sb/rV8E+/PBGK V4ZC105PwYcKTmooOTS7f4tmwiEWdzfWGXhc8PA3n+0uLbegOVQ1m7xm7iOtSUJB J4oTv1/U5LJJPwXA494k2w4P/1lcvFKrAbKaojQClcdIAK5/wP8C+YkMz9tp7obY RKObXCUmDfLAa4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:in-reply-to:references:subject :mime-version:message-id:date:content-transfer-encoding :content-type; s=default; bh=dc20lxLU9/dMrac9vr7//+D1n/w=; b=eKM dz0/D8s2h+IdOdkd9N7xZRfffOJH0kYhEqcEhOePKSaKV9xtwCabVIsICP/c6fGw 4JaA1EVWs5kZTTeQmLiEaIvzHxn8/1TqyHbi7/8CxcDEL6/oZ+Z7YfdOkThXV6XU q1oU3+moY3YOv2SMWtHsFygeb+ISeL0zqNoz82KM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=6.6 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,GARBLED_BODY,MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: forward14.mail.yandex.net From: Ingvord Envelope-From: tla-ingvord AT yandex DOT ru To: "cygwin AT cygwin DOT com" In-Reply-To: <762921403943777@web4j.yandex.ru> References: <691251403941138 AT web4j DOT yandex DOT ru> <762921403943777 AT web4j DOT yandex DOT ru> Subject: Re: cmake cannot find boost libraries MIME-Version: 1.0 Message-Id: <6024741403960608@web23j.yandex.ru> Date: Sat, 28 Jun 2014 17:03:28 +0400 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-IsSubscribed: yes Note-from-DJ: This may be spam Finally got it! The problem indeed was with this Boost_USE_MULTITHREADED param. In one of the CMakeLists files it was set to OFF, i.e. set(Boost_USE_MULTITHREADED OFF) Passing ON value through command line gave no result. But after changing the mentioned CMakeLists file cmake has found the libraries. 28.06.2014, 12:23, "Ingvord" : > I am wrong that renaming boost library files solves the issue. it solves it partially - cmake finds the libraries, but then make fails: > > $> make > ... > make[2]: *** No rule to make target '/usr/lib/libboost_program_options.a', needed by 'src/cygpnicore-2.dll'. šStop. > CMakeFiles/Makefile2:1162: recipe for target 'src/CMakeFiles/pnicore.dir/all' failed > make[1]: *** [src/CMakeFiles/pnicore.dir/all] Error 2 > Makefile:126: recipe for target 'all' failed > make: *** [all] Error 2 > > '/usr/lib/libboost_program_options.a' file exists: > $ ls -al /usr/lib/libboost_program_options.a > lrwxrwxrwx 1 Ingvord None 38 Jun 28 08:04 /usr/lib/libboost_program_options.a -> > š/lib/libboost_program_options-mt.dll.a > > 28.06.2014, 11:39, "Ingvord" : >> šDear All, >> >> šFirst of all I would like to thank all cygwin developers for the fact that such a great thing as cygwin exists. >> >> šCurrently I am running cygwin 2.850 x64 on windows 7 x64. >> >> šCompilers, boost libraries and cmake everything has been installed via setup. >> >> šWhen trying to cmake project which uses boost libraries on cygwin cmake reports "Could not find Boost". Headers are being found with out problems. >> >> šHere is an output from cmake: >> >> š$> BOOST_LIBRARYDIR=/lib cmake .. -DBoost_DEBUG=On >> š... >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:476 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50 >> š.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44. >> š0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1 >> š.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33. >> š0;1.33 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:478 ] Boost_USE_MULTITHREADED = TRUE >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:480 ] Boost_USE_STATIC_LIBS = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:482 ] Boost_USE_STATIC_RUNTIME = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:484 ] Boost_ADDITIONAL_VERSIONS = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:486 ] Boost_NO_SYSTEM_PATHS = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:538 ] Declared as CMake or Environmental Variables: >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:540 ] ššBOOST_ROOT = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:542 ] ššBOOST_INCLUDEDIR= >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:544 ] ššBOOST_LIBRARYDIR= >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:546 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50 >> š.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44. >> š0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1 >> š.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33. >> š0;1.33 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:639 ] location of version.hpp: /usr/include/boost/version.hpp >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:663 ] version.hpp reveals boost 1.53.0 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:739 ] guessed _boost_COMPILER = -gcc48 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:749 ] _boost_MULTITHREADED = -mt >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:792 ] _boost_RELEASE_ABI_TAG = - >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:794 ] _boost_DEBUG_ABI_TAG = -d >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:842 ] _boost_LIBRARY_SEARCH_DIRS = /lib;/usr/include/lib;/usr/include/../lib;/usr/include/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:1017 ] Boost_FOUND = 1 >> š-- Boost version: 1.53.0 >> šfound GNU compiler ... >> šsetup for release build ... >> š2.8.11.2 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:476 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50 >> š.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44. >> š0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:478 ] Boost_USE_MULTITHREADED = OFF >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:480 ] Boost_USE_STATIC_LIBS = OFF >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:482 ] Boost_USE_STATIC_RUNTIME = OFF >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:484 ] Boost_ADDITIONAL_VERSIONS = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:486 ] Boost_NO_SYSTEM_PATHS = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:538 ] Declared as CMake or Environmental Variables: >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:540 ] ššBOOST_ROOT = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:542 ] ššBOOST_INCLUDEDIR= >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:544 ] ššBOOST_LIBRARYDIR= >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:546 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50 >> š.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44. >> š0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:639 ] location of version.hpp: /usr/include/boost/version.hpp >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:663 ] version.hpp reveals boost 1.53.0 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:739 ] guessed _boost_COMPILER = -gcc48 >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:749 ] _boost_MULTITHREADED = >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:792 ] _boost_RELEASE_ABI_TAG = - >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:794 ] _boost_DEBUG_ABI_TAG = -d >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:842 ] _boost_LIBRARY_SEARCH_DIRS = /lib;/usr/include/lib;/usr/include/../lib;/usr/include/stage/lib;PATHS;C:/b >> šoost/lib;C:/boost;/sw/local/lib >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:930 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc48-1_53;boost_program_optio >> šns-gcc48;boost_program_options-1_53;boost_program_options;boost_program_options >> šcygwin warning: >> šššMS-DOS style path detected: C:/boost/lib64 >> šššPreferred POSIX equivalent is: /cygdrive/c/boost/lib64 >> šššCYGWIN environment variable option "nodosfilewarning" turns off this warning. >> šššConsult the user's guide for more details about POSIX paths: >> šššššhttp://cygwin.com/cygwin-ug-net/using.html#using-pathnames >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:966 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc48-d-1_53;boost_program_optio >> šns-gcc48-d;boost_program_options-d-1_53;boost_program_options-d;boost_program_op >> štions;boost_program_options >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:930 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc48-1_53;boost_system-gcc48;boost_system-1_53; >> šboost_system;boost_system >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:966 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc48-d-1_53;boost_system-gcc48-d;boost_system-d-1 >> š_53;boost_system-d;boost_system;boost_system >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:930 ] Searching for REGEX_LIBRARY_RELEASE: boost_regex-gcc48-1_53;boost_regex-gcc48;boost_regex-1_53;boos >> št_regex;boost_regex >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:966 ] Searching for REGEX_LIBRARY_DEBUG: boost_regex-gcc48-d-1_53;boost_regex-gcc48-d;boost_regex-d-1_53; >> šboost_regex-d;boost_regex;boost_regex >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:1017 ] Boost_FOUND = 1 >> š-- Could NOT find Boost >> šBoost version: 1.53.0 >> šBoost include path: /usr/include >> šThe following Boost libraries could not be found: >> šššššššššboost_program_options >> šššššššššboost_system >> šššššššššboost_regex >> šNo Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. >> >> šHere is the list of boost libraries in %CYGWIN_ROOT%\lib: >> šC:\cygwin64\lib>ls -l | grep boost >> š-rwxr-xr-x š1 Ingvord None šššš1732 May 29 š2013 libboost_atomic-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None ššš61458 May 29 š2013 libboost_chrono-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš152554 May 29 š2013 libboost_date_time-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš131606 May 29 š2013 libboost_filesystem-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš593878 May 29 š2013 libboost_graph-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš321382 May 29 š2013 libboost_iostreams-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None š1404706 May 29 š2013 libboost_locale-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš129006 May 29 š2013 libboost_math_c99-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš138172 May 29 š2013 libboost_math_c99f-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš805006 May 29 š2013 libboost_math_tr1-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš809648 May 29 š2013 libboost_math_tr1f-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None ššš90426 May 29 š2013 libboost_prg_exec_monitor-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš885422 May 29 š2013 libboost_program_options-mt.a >> š-rwxr-xr-x š1 Ingvord None ššš13172 May 29 š2013 libboost_random-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None š1539722 May 29 š2013 libboost_regex-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None š1362342 May 29 š2013 libboost_serialization-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš232596 May 29 š2013 libboost_signals-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None ššš10870 May 29 š2013 libboost_system-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš246156 May 29 š2013 libboost_thread-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None ššš22186 May 29 š2013 libboost_timer-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None š1485554 May 29 š2013 libboost_unit_test_framework-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None š3386782 May 29 š2013 libboost_wave-mt.dll.a >> š-rwxr-xr-x š1 Ingvord None šš942846 May 29 š2013 libboost_wserialization-mt.dll.a >> >> šNotice that when cmake finds headers it properly defines multithreading: >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:478 ] Boost_USE_MULTITHREADED = TRUE >> >> šlater on it does not: >> š-- [ /usr/share/cmake-2.8.11.2/Modules/FindBoost.cmake:749 ] _boost_MULTITHREADED = >> >> šIf I manually change boost library file names to libboost_.a, i.e. remove -mt.dll then this problem is gone. So temporary created a number of symlinks, which is not quite nice, I guess. >> >> š-- >> šIngvord >> >> š-- >> šProblem reports: ššššššhttp://cygwin.com/problems.html >> šFAQ: ššššššššššššššššššhttp://cygwin.com/faq/ >> šDocumentation: ššššššššhttp://cygwin.com/docs.html >> šUnsubscribe info: šššššhttp://cygwin.com/ml/#unsubscribe-simple > > -- > Ingvord > > -- > Problem reports: ššššššhttp://cygwin.com/problems.html > FAQ: ššššššššššššššššššhttp://cygwin.com/faq/ > Documentation: ššššššššhttp://cygwin.com/docs.html > Unsubscribe info: šššššhttp://cygwin.com/ml/#unsubscribe-simple -- Ingvord -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple