Comments (6)
This looks like a bug accidentally introduced in our cmake script. It currently doesn't handle specifying the python version in the python executable name. (e.g. It will take -P /usr/bin/python
but not -P /usr/bin/python3
)
We've got a code push coming in the next couple weeks that should resolve it.
In the meantime, the quickest work-around for you is likely to modify the swig/PythonSetup.cmake
file locally.
Replace lines:
execute_process( COMMAND "${PYTHON_EXECUTABLE}3-config" "--includes" OUTPUT_VARIABLE PYTHON_INCLUDES)
execute_process( COMMAND "${PYTHON_EXECUTABLE}3-config" "--prefix" OUTPUT_VARIABLE PYTHON_PREFIX)
with:
execute_process( COMMAND "${PYTHON_EXECUTABLE}-config" "--includes" OUTPUT_VARIABLE PYTHON_INCLUDES)
execute_process( COMMAND "${PYTHON_EXECUTABLE}-config" "--prefix" OUTPUT_VARIABLE PYTHON_PREFIX)
from gpstk.
thanks for fast answer, but i now get error in next step
CMakeOutput.log
build.log
make all -j 6
make[2]: *** No rule to make target '/usr/lib/libpython3.8m.so', needed by 'swig/_gpstk.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:2479: swig/CMakeFiles/_gpstk.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:152: all] Error 2Error 2 :-(
See /home/anton/GPSTk/build/desktop-anton-master/Testing/Temporary/LastTest.log for detailed test log
See /home/anton/GPSTk/build/desktop-anton-master/build.log for detailed build log
anton@desktop-anton:~/GPSTk$
from gpstk.
This took some time to pin down. I think you're hitting bug related to using python 3.8. (So far, we've only tested up to python 3.6 ... and not on Ubuntu.)
The script isn't able to determine the directory of the python shared object library and the name of that library no longer contains an "m".
An actual fix is pending, but the work-around should be to manually add the location of that library. Modify the swig/PythonSetup.cmake to make this line:
set(PYTHON_LIBRARIES "${PYTHON_PREFIX}/lib/libpython${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.so")
look like this:
set(PYTHON_LIBRARIES "/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.so")
Note: The actual library location may be different on your system. It looks like the best way to find that file is with the command:
$ ls $(python3.8-config --configdir)/libpython3.8.so
# For me this yields:
/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.so
from gpstk.
Also. I noticed you're using the command sudo ./build.sh -eus -P /usr/bin/python3
. Using both -u
and -s
flags might not work correctly.
I'd suggest one or the other.
-u
to install to$HOME/.local
(nosudo
required) or-s
to install at the system level (sudo
is required)
from gpstk.
As of 9th April 2021 the error is back/still there in v.8.0.0 and the suggested workaround doesn't work as the number arguments expected doesn't match if the "3" is removed.
from gpstk.
Please show your modified command exactly as you executed it. Also, it would be helpful to know your system OS/environment configuration.
from gpstk.
Related Issues (20)
- merge SBAS files
- Assert failing in debug build for MSVC 2017 14.1
- Rinex 3 obs file reading error
- Doesn't compile in C++17 HOT 5
- Website down HOT 8
- DDBase support
- Bad BINEX CRC for BINEX Record 0x7f
- Examples for RTK positioning? HOT 2
- http://www.gpstk.org/ can not access?
- Unable to locate GTest/Gmock when running build.sh on unbunt 18.04 HOT 2
- C1P is not stored in system G? HOT 2
- Fail to read renix file 'onsa2240.05o' HOT 2
- Missing data types for Python HOT 1
- wavelength of LC
- Cannot handle GAGP
- SaasTropModel Humidity Confusion
- Doesn't compile in ubuntu HOT 1
- update the documents URL in README.md
- Missing SatelliteSystem::Mixed enum value in systemChar(), systemString(), systemString3() functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpstk.