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 error #2

Open
shujaatak opened this issue Jan 1, 2022 · 5 comments
Open

Build error #2

shujaatak opened this issue Jan 1, 2022 · 5 comments

Comments

@shujaatak
Copy link

shujaatak commented Jan 1, 2022

I am getting the following error while building RouteEditor main branch:

/RouteEditor/tools/trajectory.cpp:13:12: error: invalid conversion from ‘Trajectory*’ to ‘SectionTrajectory*’ [-fpermissive]
   13 |     , traj(parent)
      |            ^~~~~~
      |            |
      |            Trajectory*
make[2]: *** [CMakeFiles/tools.dir/build.make:132: CMakeFiles/tools.dir/tools/trajectory.cpp.o] Error 1

@shujaatak
Copy link
Author

Whereas SplineCurves branch has many errors, one is given below:

/RouteEditor/RouteEditor/RRSConv/src/MainConvWindow.h:26:41: error: ‘Track’ was not declared in this scope
   26 |     void generateTrackFile(vsg::ref_ptr<Track> track);

@shujaatak
Copy link
Author

shujaatak commented Jan 1, 2022

Main branch:

/home/shujaat/Desktop/RouteEditor/src/MainWindow.h:12: error: ObjectModel.h: No such file or directory
In file included from /home/shujaat/Desktop/RouteEditor/src/MainWindow.cpp:1:
/home/shujaat/Desktop/RouteEditor/src/MainWindow.h:12:10: fatal error: ObjectModel.h: No such file or directory
   12 | #include "ObjectModel.h"
      |          ^~~~~~~~~~~~~~~

@shujaatak
Copy link
Author

Today I tried to build the SplineCurves branch again and it got built flawlessly! Amazing job!
But when I run the application I get this error:

Ошибка при загрузке маршрута

So can you please attach a sample Route so that this error can be bypassed.

@asafran
Copy link
Owner

asafran commented Jan 9, 2022

Make sure you set the env variable RRS2_ROOT to root directory with "routes", "objects" and "shaders" subdirectories. Use https://github.com/openscenegraph/VirtualPlanetBuilder from OSG to create a geocentric database. After that, convert it to vsg format using vsgconv. Put database in "routes" directory. Sorry, I can't attach a simple route due to GitHub limitations.

@shujaatak
Copy link
Author

I downloaded the latest master branches of both OpenSceneGraph and VirtualPlanetBuilder from the official repositories and then I successfully built OpenSceneGraph and installed it and then I built VirtualPlanetBuilder and got the executables in the bin directory. But I don't know why I get segmentation fault error while running vpbmaster.
I don't know what I am doing wrong. I am using Ubuntu 20.04.03 LTS.

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