Skip to content

Compilation error using Ubuntu #7

@MarkusMichaelRau

Description

@MarkusMichaelRau

Hi

I'm currently trying to install astro-stomp on Ubuntu 14.04.5 LTS. My gcc version is gcc-4.8. I updated to gcc-6 however in this case I currently have massive issues with the configuration file:

checking for uint8_t... no
checking for ANSI C header files... (cached) yes
checking for floor... no
checking for gettimeofday... no
checking for pow... no
checking for sqrt... no
checking for floor in -lm... no
configure: error: cannot find required math function

Running autogen and configure on gcc-4.8 works perfectly fine, but when I execute the Makefile I get the following error message:

g++: error: unrecognized command line option '-stdlib=libc++'

I can remove this argument but this will trigger multiple other compilation errors due to unrecognized command line options as listed below:
'-Wgnu', '-arch', -Wc++11-narrowing

I can again remove these command line options and sucessfully compile a couple of subdirectories but then end up with another compilation error:

In file included from point.cc:8:0:
pixel.h: At global scope:
pixel.h:213:10: error: 'istream' does not name a type
friend istream& operator>>(istream& input, pixel& pix);
^
In file included from point.cc:9:0:
point.h:198:49: error: 'constexpr' needed for in-class initialization of static data member 'const double s2omp::point::NORMALIZATION_PRECISION' of non-integral type [-fpermissive]
static double const NORMALIZATION_PRECISION = 1.0e-6;

Do you have some tips on how to resolve these issues, or can you give me a hint to a older version of astro-stomp?

Thanks for your help.

Cheers,
Markus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions