Code Monkey home page Code Monkey logo

Comments (5)

mloskot avatar mloskot commented on June 15, 2024

Can you try to set GDAL_HOME?

https://github.com/libLAS/libLAS/blob/master/cmake/modules/FindGDAL.cmake#L157-L161

from liblas.

springmeyer avatar springmeyer commented on June 15, 2024

Tried that, did not make any difference. In my case I can see that gdal-config is being found fine (its on PATH) but it is the custom parsing going on within https://github.com/libLAS/libLAS/blob/master/cmake/modules/FindGDAL.cmake#L223-L251 that is causing the problem.

Additionally, I'm trying to link to libgdal.a rather than dylib so the hardcoding at

SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.dylib CACHE STRING INTERNAL)
is breaking for me. I'm working around this for now by manually patching like:

--- cmake/modules/FindGDAL.cmake_   2014-04-06 14:51:52.000000000 -0700
+++ cmake/modules/FindGDAL.cmake    2014-04-06 14:51:59.000000000 -0700
@@ -164,7 +164,8 @@
         ENDIF()

         IF(APPLE)
-            SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.dylib CACHE STRING INTERNAL)
+            SET(GDAL_LIBRARY "/Users/dane/projects/mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64/lib/libgdal.a" CACHE STRING INTERNAL)
+            #SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.dylib CACHE STRING INTERNAL)
         ELSE()
             SET(GDAL_LIBRARY ${GDAL_LINK_DIRECTORIES}/lib${GDAL_LIB_NAME}.so CACHE STRING INTERNAL)
         ENDIF()

from liblas.

mloskot avatar mloskot commented on June 15, 2024

To enable selection between .dylib/.so and .a, new option GDAL_USE_STATIC_LIB may be needed, I think.

Would that solve your problem?

from liblas.

springmeyer avatar springmeyer commented on June 15, 2024

thanks @mloskot - I've created a new issue to clarify the libgdal.a linking issues: #33

from liblas.

mloskot avatar mloskot commented on June 15, 2024

Looks we can close this one too.

from liblas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.