Giter VIP home page Giter VIP logo

Comments (4)

ajkuck avatar ajkuck commented on August 28, 2024

We've not done any testing on OpenSUSE specifically.

It's hard to tell from the error message which package it's failing to find. However, you could try specifying the python location manually with the -P flag to build.sh... or the -DPYTHON_EXECUTABLE parameter to cmake.

Also, if you're building an RPM, there are .spec files in the rpm_files directory that you might be able to use as guidance.

If all else fails, run build.sh with verbose logging, and post the output here.

from gnsstk.

wkazubski avatar wkazubski commented on August 28, 2024

I looked into enclosed specfiles and found some useful arguments for cmake. My problem was solved by adding -DBUILD_EXT=ON but some other settings were necessary too.

Thanks for help

from gnsstk.

jeffmelville avatar jeffmelville commented on August 28, 2024

I think this is a bug in the CMakeLists.txt. If build.sh isn't invoked with -e, the default logic for setting PYTHON_VERSION_MAJOR to dummy values won't get hit and the variable won't be defined when referenced later.

if( BUILD_EXT )
   add_subdirectory( examples )
   if( BUILD_PYTHON )
       include( swig/PythonSetup.cmake )
       add_subdirectory( swig )
   else()
       # keep cmake quiet
       set( PYTHON_VERSION_MAJOR 0 )
       set( PYTHON_VERSION_MINOR 0 )
       set(GNSSTK_SWIG_MODULE_DIR "")
   endif()
endif()

from gnsstk.

jmk0 avatar jmk0 commented on August 28, 2024

Yes, the answer seems to be to change that block in CMakeLists.txt to the following, which will be in the next release.

# keep cmake quiet
set(PYTHON_VERSION_MAJOR 0)
set(PYTHON_VERSION_MINOR 0)
set(GNSSTK_SWIG_MODULE_DIR "")

if( BUILD_EXT )
   add_subdirectory( examples )
   if( BUILD_PYTHON )
       include( swig/PythonSetup.cmake )
       add_subdirectory( swig )
   endif()
endif()

from gnsstk.

Related Issues (19)

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.