cosmographia
cosmographia copied to clipboard
Build fails
Hi!
This tool is absolutely great! I have used the Spice-enhanced version before but I am also interested in trying out the original application -- to potentially explore avenues to include it in some astrodynamics tools I am developing.
I am trying to build from source on Ubuntu 16.04. I generated a makefile using qmake cosmographia.pro
and then try to build using make all
but I end up with the error:
thirdparty/Eigen/src/Array/Functors.h: At global scope:
thirdparty/Eigen/src/Array/Functors.h:242:8: error: partial specialization of ‘struct Eigen::ei_functor_traits<std::greater<T> >’ after instantiation of ‘struct Eigen::ei_functor_traits<std::greater<float> >’ [-fpermissive]
struct ei_functor_traits<std::greater<T> >
Any insight on how to fix that? I realize this error actually comes from the third party library Eigen
, I could try to swap in a more recent version of that, but I suspect that may break more things for Cosmographia itself...
Thanks, Loic
I actually found the google.code page and was able to fix that first error by adding -fpermissive
to CXXFLAGS
, but I end up with a new error, unrelated to the first one I believe:
src/main/UniverseView.cpp: In member function ‘virtual void UniverseView::paintEvent(QPaintEvent*)’:
src/main/UniverseView.cpp:907:40: error: ‘glBindBuffer’ was not declared in this scope
glBindBuffer(GL_ARRAY_BUFFER, 0);
^
src/main/UniverseView.cpp:912:23: error: ‘glUseProgram’ was not declared in this scope
glUseProgram(0);
The following README.md about build instructions on Ubuntu 20.04 LTS might help you: https://github.com/isenberg/cosmographia_comets