Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails #1

Open
loicspace opened this issue Jul 12, 2017 · 2 comments
Open

Build fails #1

loicspace opened this issue Jul 12, 2017 · 2 comments

Comments

@loicspace
Copy link

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

@loicspace
Copy link
Author

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);

@isenberg
Copy link

The following README.md about build instructions on Ubuntu 20.04 LTS might help you: https://github.com/isenberg/cosmographia_comets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants