Comments (6)
Can you post the output of the waf configure
command here? My guess is that waf
is either not finding Python at all or doesn't like something about it. When it can't build the Python bindings, it doesn't add the Python targets in which I think is why it can't find a task generator for it.
from six-library.
Here are the relevant parts of the output of 'waf configure'
Checking for program python : /home/userjb/srcMisc/Python-2.7.13/INSTALL/bin/python
Checking for python version : 2.7.13
Checking for library python2.7 in LIBDIR : not found
Checking for library python2.7 in python_LIBPL : not found
Checking for library python2.7 in $prefix/libs : not found
Checking for library python2.7m in LIBDIR : not found
Checking for library python2.7m in python_LIBPL : not found
Checking for library python2.7m in $prefix/libs : not found
Checking for library python27 in LIBDIR : not found
Checking for library python27 in python_LIBPL : not found
Checking for library python27 in $prefix/libs : not found
Checking for program /home/userjb/srcMisc/Python-2.7.13/INSTALL/bin/python-config,python2.7-config,python-config-2.7,python2.7m-config :
/home/userjb/srcMisc/Python-2.7.13/INSTALL/bin/python-config
Checking for header Python.h : :-(
Asking python-config for pyembed --cflags flags : yes
Asking python-config for pyembed --libs flags : yes
Asking python-config for pyembed --ldflags flags : yes
Getting pyembed flags from python-config : Could not build a python embedded interpreter
The configuration failed
(complete log in /home/userjb/src/Work/Software/ngaSIXLibrary/target/config.log)
Python lib/headers : The configuration failed
(complete log in /home/userjb/src/Work/Software/ngaSIXLibrary/target/config.log) (Is python built with -fPIC?)
I'm using a locally installed version of python so it's quite possible something isn't right.
from six-library.
Thanks for the log.
Yeah you can take a look at /home/userjb/src/Work/Software/ngaSIXLibrary/target/config.log
to get a little more detail (you'll see waf
actually trying to compile the various things that are failing and see the compiler/linker errors). I'm betting that you'll see a linker error; if that locally installed Python is one you built from source, Python doesn't build with PIC by default. You'll want to rebuild your Python and in its configure step use --with-pic
(I think that's the configure option).
from six-library.
It looks like I have two separate errors in the config.log. They happen close together. The first is:
err: g++: error: unrecognized command line option '-fp-model'
The second is a g++ compile command that is defining
-DPYTHONDIR="/home/userjb/src/ngaSIXLibrary/install/lib/python2.7/site-packages
-DPYTHONARCHDIR="/home/userjb/src/ngaSIXLibrary/install/lib/python2.7/site-packages
The error message is
not found
It advises:
try again with -L$python_LIBPL (some systems don't install the python library in $prefix/lib)
But that isn't a waf command-line option. How can I tell waf where the python libraries are?
from six-library.
I recompiled python with -fPIC (setenv CFLAGS "-fPIC") and the ngaSIX install was successful. Thanks for helping with this.
from six-library.
OK great!
from six-library.
Related Issues (20)
- Expose nitf::BandInfo to python
- CSM3.0.3 version is out of date HOT 2
- Build fails if tests are disabled
- Numpyutils-c++ unit test fails build on Centos 7
- Slow performance reading and writing AMP8I_PHS8I HOT 7
- Embedding xsd schemas HOT 1
- Compilation Error six-library 3.1.2
- CSM project not included in CMake build system
- Enums.cpp does not compile under C++11 HOT 2
- Incorrect partial derivatives from ProjectionModel::slantToImagePartials
- build with shared libs broken
- Unable to configure build on Windows
- The configuration failed (complete log in C:\source-engine-master\build\config.log)
- SIDD 2.0.0 reading fails if no LUT present HOT 1
- Broken Sample SICD Links
- Issue with trying to build six 3.2.4, "numpyutils/AutoPtr.h" not found HOT 1
- CPHD Reader for build HOT 1
- python cphd module has broken SWIG bindings
- Where can one acquire sample CPHD?
- Building, installing and linking with six-library
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 six-library.