<div dir="ltr"><div>This generated file, local.cmake, seems to suggest that the build should still be pointing (GEOS_DIR) /usr/local/lib/cmake/GEOS, but</div><div>GEOS::geos_c location still doesn't get set.</div><div>#----------------------------------------------------------------<br># Generated CMake target import file for configuration "Release-DCMAKE_INSTALL_PREFIX=/usr/local".<br>#----------------------------------------------------------------<br><br># Commands may need to know the format version.<br>set(CMAKE_IMPORT_FILE_VERSION 1)<br><br># Import target "GEOS::geos" for configuration "Release-DCMAKE_INSTALL_PREFIX=/usr/local"<br>set_property(TARGET GEOS::geos APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE-DCMAKE_INSTALL_PREFIX=/USR/LOCAL)<br>set_target_properties(GEOS::geos PROPERTIES<br>  IMPORTED_LOCATION_RELEASE-DCMAKE_INSTALL_PREFIX=/USR/LOCAL "${_IMPORT_PREFIX}/lib/libgeos.so.3.10.2"<br>  IMPORTED_SONAME_RELEASE-DCMAKE_INSTALL_PREFIX=/USR/LOCAL "libgeos.so.3.10.2"<br>  )<br><br>list(APPEND _IMPORT_CHECK_TARGETS GEOS::geos )<br>list(APPEND _IMPORT_CHECK_FILES_FOR_GEOS::geos "${_IMPORT_PREFIX}/lib/libgeos.so.3.10.2" )<br><br># Import target "GEOS::geos_c" for configuration "Release-DCMAKE_INSTALL_PREFIX=/usr/local"<br>set_property(TARGET GEOS::geos_c APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE-DCMAKE_INSTALL_PREFIX=/USR/LOCAL)<br>set_target_properties(GEOS::geos_c PROPERTIES<br>  IMPORTED_LINK_DEPENDENT_LIBRARIES_RELEASE-DCMAKE_INSTALL_PREFIX=/USR/LOCAL "GEOS::geos"<br>  IMPORTED_LOCATION_RELEASE-DCMAKE_INSTALL_PREFIX=/USR/LOCAL "${_IMPORT_PREFIX}/lib/libgeos_c.so.1.16.0"<br>  IMPORTED_SONAME_RELEASE-DCMAKE_INSTALL_PREFIX=/USR/LOCAL "libgeos_c.so.1"<br>  )<br><br>list(APPEND _IMPORT_CHECK_TARGETS GEOS::geos_c )<br>list(APPEND _IMPORT_CHECK_FILES_FOR_GEOS::geos_c "${_IMPORT_PREFIX}/lib/libgeos_c.so.1.16.0" )<br><br># Commands beyond this point should not need to know the version.<br>set(CMAKE_IMPORT_FILE_VERSION)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 4, 2022 at 2:02 PM chris english <<a href="mailto:englishchristophera@gmail.com">englishchristophera@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Concerning (executed in either git download directory or build):</div><div>~/gdal$ git describe<br>v3.3.0-2898-gba4e7c404b</div><div><br></div><div>Condition: was building and stopped with</div><div>[ 89%] Built target gcore_mdreader<br>CMakeFiles/GDAL.dir/build.make:2661: *** target pattern contains no '%'.  Stop.<br>make[1]: *** [CMakeFiles/Makefile2:4871: CMakeFiles/GDAL.dir/all] Error 2<br>make: *** [Makefile:146: all] Error 2</div><div><br></div><div>As we were building objects in gcore, the 'CMakeFiles/GDAL.dir/build.make:2661:'</div><div>refers to ~/gdal/build/gcore/CMakeFiles/GDAL.dir/build.make, line 2661 that is in the neighborhood of a problem at line 2667:</div><div>GEOS::geos_c-NOT FOUND</div><div>Well, that could be bad, and says the problem is local rather than with the git.</div><div>Perhaps a sudo ldconfig is called for. Done.</div><div>In ~/gdal/build rm CMakeCache.txt</div><div>Run cmake .. again</div><div>Copy and paste all output to editor and down at bottom find</div><div>IMPORTED_LOCATION not set for imported target "GEOS::geos_c" configuration<br>  "Release".</div><div>OK, so not something that ldconfig fixes. Pass in libgeos...how?</div><div>Resorting to ccmake ..</div><div>Pg 25 of 44</div><div>GEOS_DIR  /usr/local/lib/cmake/GEOS</div><div>contains:</div><div>ls /usr/local/lib/cmake/GEOS<br>geos-config.cmake  geos-config-version.cmake  geos-targets.cmake  local.cmake</div><div>So, nothing looking very useful, change to /usr/local/lib and try again<br></div><div>change to /usr/local/lib/libgeos_c.so</div><div>And try:</div><div>build$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DGEOS_DIR=/usr/local/lib/libgeos_c</div><div>And finally, this is where I am stuck.</div><div>Chris<br></div><div><br></div></div>
</blockquote></div>