tskisner / healpix-autotools Goto Github PK
View Code? Open in Web Editor NEWHEALPix with an improved build system
License: GNU General Public License v2.0
HEALPix with an improved build system
License: GNU General Public License v2.0
At install time, healpy extensions need to have the installed C++ headers in the search path. This means that PREFIX/include must be in the CPATH. A better solution would be to add the relative path to the C++ source directories (../cxx/*) to the include_dirs variable in setup.py
Currently the build system assumes that if the python development libs are found, then all package dependencies for healpy are also installed. We should add checks for those and at least print an error and disable healpy building if they are not met. Investigate pyconfig to see whether it could help check for dependencies and in generating setup.py.
This may be related to issue #3.
Symptom reported:
"... on a recent MacOs (10.10.5) in which I installed a genuine gcc (4.9.2) different from clang (7.0.2)
(while gcc has become an alias for clang without OpenMP on MacOSX).
First, in order to compile the C/C++ code (with gcc) I need to set CFLAGS="-std=c99” before running ‘configure’.
But then this becomes a problem for python during ‘make install’ because I get
clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c healpy/src/_healpy_pixel_lib.cc -o build/temp.macosx-10.10-x86_64-2.7/healpy/src/_healpy_pixel_lib.o
error: invalid argument '-std=c99' not allowed with 'C++/ObjC++’
"
Under MacOSX, with ifort 15.0.2 + gcc 4.9.2, the libsharp routines seem not to be found by the calling fortran codes:
the 'make check' step crashes in the F90 step with
SYNFAST> Generating sky map(s)
dyld: lazy symbol binding failed: Symbol not found: _sharp_hp_alm2map_pol_x_s _
Referenced from: [***]/healpix-autotools-3.30.2/src/f90/libhealpix/.libs/libhealpix.1.dylib
Expected in: flat namespace
dyld: Symbol not found: _sharp_hp_alm2map_pol_x_s _
Referenced from: [***]/healpix-autotools-3.30.2/src/f90/libhealpix/.libs/libhealpix.1.dylib
Expected in: flat namespace
Due to loop variable initialization, some compilers (gcc-4.9.0) complain about not have -std=c99. We should add configure checks for c99 and ensure that the compile flags are used in the libsharp Makefile.am
Maybe there are already available and I missed them:
Why putting the data files directly into PREFIX/share/healpix instead of PREFIX/share/healpix/data ?
This would be cleaner and a bit closer to the original directory structure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.