ypmen / pulsarx Goto Github PK
View Code? Open in Web Editor NEWPulsar searching
License: GNU General Public License v3.0
Pulsar searching
License: GNU General Public License v3.0
Hi Yunpeng,
I had issues compiling and was able to fix them by two small changes. One is for recent versions of Python. And the other is to get libboost to link correctly:
diff --git a/config/ax_python.m4 b/config/ax_python.m4
index 05efd1c..e66cd55 100644
--- a/config/ax_python.m4
+++ b/config/ax_python.m4
@@ -55,7 +55,7 @@
AC_DEFUN([AX_PYTHON],
[AC_MSG_CHECKING(for python build information)
AC_MSG_RESULT([])
-for python in python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
+for python in python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
AC_CHECK_PROGS(PYTHON_BIN, [$python])
ax_python_bin=$PYTHON_BIN
if test x$ax_python_bin != x; then
diff --git a/configure.ac b/configure.ac
index 3f5ba4d..48aee8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ CXXFLAGS='-std=c++11 -O3'
LT_INIT
# Checks for libraries.
-AX_BOOST_BASE([1.56], [LIBS="$LIBS -lboost_program_options -lboost_log"], [echo "Boost library was not found!";exit -1])
+AX_BOOST_BASE([1.56], [LIBS="$LIBS -lboost_system -lboost_program_options -lboost_log"], [echo "Boost library was not found!";exit -1])
AC_CHECK_LIB([cfitsio], [ffgky], [], [echo "cfitsio library was not found!";exit -1])
AC_CHECK_LIB([png], [png_set_flush], [], [echo "library not found!";exit -1])
AX_PTHREAD([LIBS+=" -lpthread"], [echo "library not found!";exit -1])
Hi Jumei and Dick (cc'ing Yunpeng)
So I'm using a new gcc compiler (v10.2.0) and it is not liking how the global variables (for example, the m_# variables defined in one of the headers) are being handled in the code.
I'm attaching the results of trying to compile. It seems like newer compilers are being more strict about how these things are being handled.
Scott
And here is some of the error output from ld:
ar: creating ymw16.a
a - dmdtau.o
a - dora.o
a - fermibubble.o
a - frb_d.o
a - galcen.o
a - gum.o
a - lmc.o
a - localbubble.o
a - ne_crd.o
a - nps.o
a - smc.o
a - spiral.o
a - thick.o
a - thin.o
a - ymw16par.o
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_3'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `ww'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_5'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_6'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_7'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dora.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_3'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
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.