Board index FlightGear Development Canvas

OSG problems in simgear

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

OSG problems in simgear

Postby helijah » Mon Jun 02, 2014 12:27 pm

Hi Hooray

Whit the last OSG GIT (3.3.2 June 02 2014), simgear compilation crash :(

Repport :
http://paste.kde.org/pk7ptl7ol

Regards Emmanuel
Some planes (and other) for FlightGear
http://helijah.free.fr
and
http://embaranger.free.fr
User avatar
helijah
 
Posts: 1042
Joined: Wed Dec 27, 2006 12:35 pm
Location: Chartres (France)
Callsign: helijah
IRC name: helijah
Version: GIT
OS: GNU/Linux

Re: Contributing to the Canvas system (Nasal and C++)

Postby Hooray » Mon Jun 02, 2014 12:45 pm

helijah wrote in Mon Jun 02, 2014 12:27 pm:Whit the last OSG GIT (3.3.2 June 02 2014), simgear compilation crash :(

Something like that is to be expected once you use the latest dependencies (like OSG in this case) - we've had similar issues in the past, completely unrelated to Canvas - basically, OSG is making progress, too - and they're changing a few things that need to be explicitly ported. Which is why this is only in git :)

Imagine it like someone permanently changing their 3D model while others are trying to create liveries for it :D
Or like having a team of people working on a autopilot for a FDM that is still being developed and tuned ...
That is why it's better to use a "stable" version.

So unless there's some strong reason, you probably don't want to use the latest OSG version, typically not even core developers track unreleased stuff.
In fact, I am only really rebuilding OSG just now because of your bug report, to see if I can reproduce it, and to see what's changed in OSG - but otherwise, there's probably no need to rebuild OSG as regularly as SG/FG. I don't know anything about the OSG release schedule, but it's possibly good that you are making this bug report, in case that the upcoming FG relase could coincide with an updated OSG.

Overall, it's better to use the issue tracker for such reports - but like I said, it's not a "bug" per se - it's part of having multiple "moving targets" (OSG/SG/FG) that may even make progress independently.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11437
Joined: Tue Mar 25, 2008 8:40 am

Re: Contributing to the Canvas system (Nasal and C++)

Postby helijah » Mon Jun 02, 2014 1:47 pm

Hooray wrote in Mon Jun 02, 2014 12:45 pm:Overall, it's better to use the issue tracker for such reports -


:) Sorry, but writing in English is already very complex for me. So try to understand the meander of a tracker, I prefer do not even test :)

Another little thing strange

In the .../canvas/ShivaVG/src/ folder, in almost all the .c files we can find

Code: Select all
#include <vg/openvg.h>


On my distribution the folder vg is shown in uppercase in /usr/include

So we should find

Code: Select all
#include <VG/openvg.h>


Regards Emmanuel

P.S. In the meantime, I created a symbolic link vg -> VG to avoid changing code simgear :)
Some planes (and other) for FlightGear
http://helijah.free.fr
and
http://embaranger.free.fr
User avatar
helijah
 
Posts: 1042
Joined: Wed Dec 27, 2006 12:35 pm
Location: Chartres (France)
Callsign: helijah
IRC name: helijah
Version: GIT
OS: GNU/Linux

Re: Contributing to the Canvas system (Nasal and C++)

Postby Hooray » Mon Jun 02, 2014 2:12 pm

nope, you misunderstood: ShivaVG is part of simgear/canvas - better not to change such things, unless you REALLY understand them, especially because shiva has been modified for canvas in SG/FG
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11437
Joined: Tue Mar 25, 2008 8:40 am

Re: Contributing to the Canvas system (Nasal and C++)

Postby helijah » Mon Jun 02, 2014 2:37 pm

Hooray wrote in Mon Jun 02, 2014 2:12 pm:nope, you misunderstood: ShivaVG is part of simgear/canvas - better not to change such things, unless you REALLY understand them, especially because shiva has been modified for canvas in SG/FG


I have certainly misunderstood :) But ShivaVG folder is in the in the canvas folder not simgear.


And all examples found on the net seem to use uppercase vg : VG

Example :
http://community.qnx.com/sf/sfmain/do/downloadAttachment/projects.graphics/discussion.openvg.topc8448/post32076;jsessionid=8D9B4C72BA5F5790E17309FAF2D5CBD5?id=atch4778

Regards Emmanuel
Some planes (and other) for FlightGear
http://helijah.free.fr
and
http://embaranger.free.fr
User avatar
helijah
 
Posts: 1042
Joined: Wed Dec 27, 2006 12:35 pm
Location: Chartres (France)
Callsign: helijah
IRC name: helijah
Version: GIT
OS: GNU/Linux

Re: Contributing to the Canvas system (Nasal and C++)

Postby Hooray » Mon Jun 02, 2014 3:50 pm

helijah wrote in Mon Jun 02, 2014 2:37 pm:But ShivaVG folder is in the in the canvas folder not simgear.

canvas is part of SimGear, and shivaVG is shipped as part of canvas/simgear - that is why.

I'd suggest to just ignore this for now and not modify anything, you still have quite a few misconceptions here, and it probably takes more time to explain all this to you, than it will take for the corresponding fixes to show up in SG/FG, so that latest OSG is also supported by FG. I can however confirm that there are several compilation errors when building SG against osg/master, quite of them completely unrelated to canvas - but like I said: this is to be expected, these are different open source projects that are "moving targets" and that continue to progress independently, so things may be out-of-sync once in a while.

Overall, it's probably not a good idea to review C++ code for correctness as long as you don't know enough about C++, OSG etc
And unless you have a really good reason for doing so, I would suggest NOT to use osg/master from git, but only the latest stable OSG release, you can probably even just install it system-wide using your package manager.

For people that are neither core developers, nor interested in modifying the C++ code or debugging/profiling, there should be rarely any need to build their own OSG version, especially not the latest stuff from osg/master.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11437
Joined: Tue Mar 25, 2008 8:40 am

Re: Contributing to the Canvas system (Nasal and C++)

Postby Hooray » Wed Jun 04, 2014 12:51 pm

OpenSceneGraph-3.3.0 works here for me, you can edit your cmakelist.txt to make sure that too-recent OSG is recognized until things are fixed (but like I said, it's not canvas specific)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11437
Joined: Tue Mar 25, 2008 8:40 am


Return to Canvas

Who is online

Users browsing this forum: No registered users and 1 guest