<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div apple-content-edited="true" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I have set PkgConfig CMake module and it changed the error with the same result</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">-- checking for one of the modules 'PETSc'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">CMake Error at /usr/local/homebrew/Cellar/cmake/3.1.3/share/cmake/Modules/FindPkgConfig.cmake:548 (message):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  None of the required 'PETSc' found</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Call Stack (most recent call first):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  CMakeLists.txt:25 (pkg_search_module)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> cmake module path /Users/Alice/Documents/Work/Programmazione/TEST_AUTOMATIZZAZIONE/ParallelOrder/Penalizzazione/cmake-modules</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">-- checking for one of the modules 'PETSc'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">CMake Error at /usr/local/homebrew/Cellar/cmake/3.1.3/share/cmake/Modules/FindPkgConfig.cmake:548 (message):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  None of the required 'PETSc' found</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Call Stack (most recent call first):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  test/CMakeLists.txt:10 (pkg_search_module)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">-- Configuring incomplete, errors occurred!</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">See also "/Users/Alice/Documents/Work/Programmazione/TEST_AUTOMATIZZAZIONE/ParallelOrder/Penalizzazione/build/CMakeFiles/CMakeOutput.log".</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">CMake Error: Unable to open check cache file for write. /Users/Alice/Documents/Work/Programmazione/TEST_AUTOMATIZZAZIONE/ParallelOrder/Penalizzazione/build/CMakeFiles/cmake.check_cache</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">Il giorno 27 févr. 2015, alle ore 19:05, Jed Brown <<a href="mailto:jed@jedbrown.org" class="">jed@jedbrown.org</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class="">Alice Raeli <<a href="mailto:alice.raeli@math.u-bordeaux1.fr" class="">alice.raeli@math.u-bordeaux1.fr</a>> writes:<br class=""><br class=""><blockquote type="cite" class="">Hi all,<br class=""><br class="">i’m trying to build my project using cmake.<br class="">PETSc is already installed and its tests runned but when I try cmake .. for my project it appears that it doesn’t find PETSc. The error message is:<br class=""></blockquote><br class="">CMake insists on sequestering all the useful information in<br class="">CMakeFiles/CMakeError.log and CMakeFiles/CMakeOutput.log.  Can you check<br class="">those files for details about the error?  Send the output here if it<br class="">doesn't make sense to you.<br class=""><br class=""></div></blockquote><div><br class=""></div><div>CMakeOutput.log produced:</div><div><br class=""></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTryCompileExec251571393.dir/build.make CMakeFiles/cmTryCompileExec251571393.dir/build]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [/usr/local/homebrew/Cellar/cmake/3.1.3/bin/cmake -E cmake_progress_report /Users/Alice/Documents/Work/Programmazione/TEST_AUTOMATIZZAZIONE/ParallelOrder/Penalizzazione/build/CMakeFiles/CMakeTmp/CMakeFiles 1]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [Building CXX object CMakeFiles/cmTryCompileExec251571393.dir/CMakeCXXCompilerABI.cpp.o]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [/usr/bin/c++     -o CMakeFiles/cmTryCompileExec251571393.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/homebrew/Cellar/cmake/3.1.3/share/cmake/Modules/CMakeCXXCompilerABI.cpp]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [Linking CXX executable cmTryCompileExec251571393]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [/usr/local/homebrew/Cellar/cmake/3.1.3/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec251571393.dir/link.txt --verbose=1]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [/usr/bin/c++     -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTryCompileExec251571393.dir/CMakeCXXCompilerABI.cpp.o  -o cmTryCompileExec251571393   ]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [Target: x86_64-apple-darwin14.1.0]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  ignore line: [Thread model: posix]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  link line: [ "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.10.0 -o cmTryCompileExec251571393 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTryCompileExec251571393.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lSystem /Library/Developer/CommandLineTools/usr/bin/../lib/clang/6.0/lib/darwin/libclang_rt.osx.a]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [/Library/Developer/CommandLineTools/usr/bin/ld] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-demangle] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-dynamic] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-arch] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [x86_64] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-macosx_version_min] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [10.10.0] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-o] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [cmTryCompileExec251571393] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-search_paths_first] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-headerpad_max_install_names] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-v] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [CMakeFiles/cmTryCompileExec251571393.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-lc++] ==> lib [c++]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [-lSystem] ==> lib [System]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    arg [/Library/Developer/CommandLineTools/usr/bin/../lib/clang/6.0/lib/darwin/libclang_rt.osx.a] ==> lib [/Library/Developer/CommandLineTools/usr/bin/../lib/clang/6.0/lib/darwin/libclang_rt.osx.a]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  Library search paths: [;/usr/lib;/usr/local/lib]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  Framework search paths: [;/Library/Frameworks/;/System/Library/Frameworks/]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  remove lib [System]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  collapse lib [/Library/Developer/CommandLineTools/usr/bin/../lib/clang/6.0/lib/darwin/libclang_rt.osx.a] ==> [/Library/Developer/CommandLineTools/usr/lib/clang/6.0/lib/darwin/libclang_rt.osx.a]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  collapse library dir [/usr/lib] ==> [/usr/lib]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  collapse library dir [/usr/local/lib] ==> [/usr/local/lib]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  collapse framework dir [/Library/Frameworks/] ==> [/Library/Frameworks]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  collapse framework dir [/System/Library/Frameworks/] ==> [/System/Library/Frameworks]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  implicit libs: [c++;/Library/Developer/CommandLineTools/usr/lib/clang/6.0/lib/darwin/libclang_rt.osx.a]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  implicit dirs: [/usr/lib;/usr/local/lib]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">  implicit fwks: [/Library/Frameworks;/System/Library/Frameworks]</div><div class=""><br class=""></div></div><div>However CMakeError.log appearly has not been built yet.</div><div><br class=""></div><div><br class=""></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Yours sincerely,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Alice</div></div><br class=""><blockquote type="cite" class=""><div class=""><blockquote type="cite" class=""> cmake module path /Users/Alice/Documents/Work/Programmazione/TEST_AUTOMATIZZAZIONE/ParallelOrder/Penalizzazione/cmake-modules<br class="">dir /usr/local/petsc arch arch-darwin-c-debug<br class="">CMake Warning (dev) at cmake-modules/FindPackageMultipass.cmake:48 (if):<br class="">  Policy CMP0054 is not set: Only interpret if() arguments as variables or<br class="">  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy<br class="">  details.  Use the cmake_policy command to set the policy and suppress this<br class="">  warning.<br class=""><br class="">  Quoted variables like "/usr/local/petsc" will no longer be dereferenced<br class="">  when the policy is set to NEW.  Since the policy is not set the OLD<br class="">  behavior will be used.<br class="">Call Stack (most recent call first):<br class="">  cmake-modules/FindPETSc.cmake:108 (find_package_multipass)<br class="">  test/CMakeLists.txt:8 (FIND_PACKAGE)<br class="">This warning is for project developers.  Use -Wno-dev to suppress it.<br class=""><br class="">CMake Error at /usr/local/homebrew/Cellar/cmake/3.1.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):<br class="">  PETSc could not be found.  Be sure to set PETSC_DIR and PETSC_ARCH.<br class="">  (missing: PETSC_EXECUTABLE_RUNS)<br class="">Call Stack (most recent call first):<br class="">  /usr/local/homebrew/Cellar/cmake/3.1.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)<br class="">  cmake-modules/FindPETSc.cmake:323 (find_package_handle_standard_args)<br class="">  test/CMakeLists.txt:8 (FIND_PACKAGE)<br class=""><br class="">______________<br class=""><br class="">PETSC_DIR and PETSC_ARCH are: <br class="">/usr/local/petsc/<br class="">arch-darwin-c-debug<br class=""><br class="">but also following the given instruction it seems not reading the correct path.<br class=""><br class="">I work on OS X Yosemite 10.10.2<br class=""><br class="">cmake version 3.1.3<br class=""><br class=""><br class="">CmakeLists.txt […]<br class="">SET(CMAKE_C_COMPILER mpicc)<br class=""><br class="">SET(CMAKE_CXX_COMPILER mpicxx)<br class=""><br class="">SET (CMAKE_C_FLAGS_INIT                "-Wall -std=c99")<br class="">SET (CMAKE_C_FLAGS_DEBUG_INIT          "-g")<br class="">SET (CMAKE_C_FLAGS_MINSIZEREL_INIT     "-Os -DNDEBUG")<br class="">SET (CMAKE_C_FLAGS_RELEASE_INIT        "-O4 -DNDEBUG")<br class="">SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")<br class=""><br class="">SET (CMAKE_CXX_FLAGS_INIT                "-Wall")<br class="">SET (CMAKE_CXX_FLAGS_DEBUG_INIT          "-g")<br class="">SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT     "-Os -DNDEBUG")<br class="">SET (CMAKE_CXX_FLAGS_RELEASE_INIT        "-O4 -DNDEBUG")<br class="">SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")<br class=""><br class="">[…]<br class=""><br class="">Have you got a solution?<br class=""><br class="">Thanks,<br class="">Alice<br class=""><br class="">Alice Raeli<br class=""><a href="mailto:alice.raeli@math.u-bordeaux1.fr" class="">alice.raeli@math.u-bordeaux1.fr</a><br class=""></blockquote></div></blockquote></div><br class=""></body></html>