[Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Alan Teeder
Just a heads up. The error report is :-

Alan


3  shContext.c
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(37): error 
C2491: 'vgCreateContextSH' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(65): error 
C2491: 'vgResizeSurfaceSH' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(86): error 
C2491: 'vgDestroyContextSH' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(258): error 
C2491: 'vgGetError' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(267): error 
C2491: 'vgFlush' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(274): error 
C2491: 'vgFinish' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(282): error 
C2491: 'vgMask' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(286): error 
C2491: 'vgClear' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(346): error 
C2491: 'vgLoadIdentity' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(362): error 
C2491: 'vgLoadMatrix' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(393): error 
C2491: 'vgGetMatrix' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(416): error 
C2491: 'vgMultMatrix' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(446): error 
C2491: 'vgTranslate' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(457): error 
C2491: 'vgScale' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(468): error 
C2491: 'vgShear' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(479): error 
C2491: 'vgRotate' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shContext.c(493): error 
C2491: 'vgHardwareQuery' : definition of dllimport function not allowed
3  shGeometry.c
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shGeometry.c(852): error 
C2491: 'vgPathBounds' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shGeometry.c(891): error 
C2491: 'vgPathTransformedBounds' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shGeometry.c(926): error 
C2491: 'vgPathLength' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shGeometry.c(935): error 
C2491: 'vgPointAlongPath' : definition of dllimport function not allowed
3  shImage.c
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(564): error C2491: 
'vgCreateImage' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(622): error C2491: 
'vgDestroyImage' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(644): error C2491: 
'vgClearImage' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(808): error C2491: 
'vgImageSubData' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(853): error C2491: 
'vgGetImageSubData' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(896): error C2491: 
'vgCopyImage' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(948): error C2491: 
'vgSetPixels' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(1001): error 
C2491: 'vgWritePixels' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(1058): error 
C2491: 'vgGetPixels' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(1109): error 
C2491: 'vgReadPixels' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(1162): error 
C2491: 'vgCopyPixels' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(1179): error 
C2491: 'vgChildImage' : definition of dllimport function not allowed
3C:\FlightGear\simgear\simgear\canvas\ShivaVG\src\shImage.c(1184): error 
C2491: 'vgGetParent' : definition of dllimport function not allowed

Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Thomas Geymayer
Am 2012-11-05 12:14, schrieb Alan Teeder:
 Just a heads up. The error report is :-

Thanks for the report. Should now be fixed.

Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org

  Student of Computer Science @ Graz University of Technology
--- Austria 

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Alan Teeder


-Original Message- 
From: Thomas Geymayer
Sent: Monday, November 05, 2012 12:19 PM
To: flightgear-devel@lists.sourceforge.net
Subject: Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

Am 2012-11-05 12:14, schrieb Alan Teeder:
 Just a heads up. The error report is :-

Thanks for the report. Should now be fixed.

Tom


Yes - it all compiles and runs again. And my canvas HUD (in development) 
still works!

Thanks

Alan 


--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Vivian Meazza
:Alan Teeder wrote

 
 Am 2012-11-05 12:14, schrieb Alan Teeder:
  Just a heads up. The error report is :-
 
 Thanks for the report. Should now be fixed.
 
 Tom
 
 
 Yes - it all compiles and runs again. And my canvas HUD (in development)
still
 works!
 

But mine doesn't :-(

https://dl.dropbox.com/u/57645542/fgfs-screen-068.png

Any clues/hints?

Vivian






--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Thomas Geymayer
Am 2012-11-05 16:02, schrieb Vivian Meazza:
 But mine doesn't :-(
 
 https://dl.dropbox.com/u/57645542/fgfs-screen-068.png
 
 Any clues/hints?

Have you also updated fgdata? The way how the background color is set
has been changed (Now it uses only on single property for the whole
color instead of one for each color component) and defaults to opaque
black. Using the latest Nasal API for setting the background color
should still work the same as before.

Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org

  Student of Computer Science @ Graz University of Technology
--- Austria 

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread James Turner

On 5 Nov 2012, at 13:50, Alan Teeder wrote:

 Yes - it all compiles and runs again. And my canvas HUD (in development) 
 still works!

Can you talk a little about the Canvas HUD? Moving the HUD to use the Canvas 
would be a great step from my point of view, since it and 2D panels (which I am 
happy to write the convert for!) are the last places besides the UI which make 
raw OpenGL calls, and hence would benefit from moving to the Canvas (and thus, 
to use OSG internally)

James




--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Alan Teeder
There is a template on the canvas wiki - 
http://wiki.flightgear.org/Canvas_HUD, which I have used. The Nasal code is 
quite simple and hardly needs explaining.

The symbology that I needed is not hard-coded into the existing 
(flightgear/src/Instrumentation/HUD/) and I had been putting off doing that 
job, until the canvas HUD suddenly appeared.

My HUD is that used on the TSR2 and was a development of the even more basic 
HUD fitted to early Buccaneers. I spent many, many hours behind this HUD in 
the simulator at Weybridge.

The TSR2 is still very much in development, and I am currently replacing a 
very unstable Datcom based FDM with CFD derived data. You can preview it at 
g...@gitorious.org:fg-ajt/tsr2.git. The main differences between the TSR2 and 
later HUDs are the flight director and the pitch gearing. The flight 
director was named highway in the sky and looks like a runway pattern. You 
fly the vanishing point of the runway to the central circle of the HUD. The 
HUD is not geared 1 to 1 in pitch. This sounds quite wrong, but the gearing 
is similar to that of the head-down artificial horizon, which pilots are 
quite accustomed to. Once I get an attack computer built up, there is simple 
symbology for that also.

To fly the TSR2, use the idiot start button (as with the Lightning). 
Select one notch of flap. With the autopilot menu-bar  (F11) select the 
take-off flight director. When the engines are running open up full and 
follow the director signal. It should demand rotation at 160 kts. Keep 
manoeuvres small, otherwise the present FDM will soon get unstable. Also 
keep a close eye on airspeed as the minimum drag speed is quite high and 
therefore it is speed unstable.

In short the canvas HUD is very simple to program.

Alan



-Original Message- 
From: James Turner
Sent: Monday, November 05, 2012 3:11 PM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows


On 5 Nov 2012, at 13:50, Alan Teeder wrote:

 Yes - it all compiles and runs again. And my canvas HUD (in development)
 still works!

Can you talk a little about the Canvas HUD? Moving the HUD to use the Canvas 
would be a great step from my point of view, since it and 2D panels (which I 
am happy to write the convert for!) are the last places besides the UI which 
make raw OpenGL calls, and hence would benefit from moving to the Canvas 
(and thus, to use OSG internally)

James




--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel 


--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Vivian Meazza
Thomas wrote

fails on windows
 
 Am 2012-11-05 16:02, schrieb Vivian Meazza:
  But mine doesn't :-(
 
  https://dl.dropbox.com/u/57645542/fgfs-screen-068.png
 
  Any clues/hints?
 
 Have you also updated fgdata? 

Yes, using MSVC10, and after the same problems as Alan.

The way how the background color is set has
 been changed (Now it uses only on single property for the whole color
 instead of one for each color component) and defaults to opaque black.

Looks like it might be using the default ... but

 Using the latest Nasal API for setting the background color should still
work
 the same as before.

I'm using the Nasal API - it used to all work before today's update. Can't
really see what to change

Vivian 




--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Thomas Geymayer
Am 2012-11-05 18:30, schrieb Vivian Meazza:
 I'm using the Nasal API - it used to all work before today's update. Can't
 really see what to change

Are you using canvas.setColorBackground(r, g, b, a) and is there a function

setColorBackground: func () { me.texture.getNode('background',
1).setValue(_getColor(arg)); me; }

in your Nasal/canvas/api.nas?

Are there /canvas/by-index[i]/color-background/[red,green,blue,alpha]
nodes in your property tree or just a single
/canvas/by-index[i]/background string property per canvas?

Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org

  Student of Computer Science @ Graz University of Technology
--- Austria 

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Alan Teeder
VivianĀ“s Buccaneer, (from fgdata  git, with canvas hud) is fine on my 
laptop, but has an occluded screen on my desktop. Both have Windows 7 and 
Nvidia cards.

On the other hand my development TSR2 hud is fine on both machines.

This is with git sources (fgdata, flightgear and simgear) up to date at the 
time of posting.

Strange.

Alan



-Original Message- 
From: Thomas Geymayer
Sent: Monday, November 05, 2012 5:52 PM
To: flightgear-devel@lists.sourceforge.net
Subject: Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

Am 2012-11-05 18:30, schrieb Vivian Meazza:
 I'm using the Nasal API - it used to all work before today's update. Can't
 really see what to change

Are you using canvas.setColorBackground(r, g, b, a) and is there a function

setColorBackground: func () { me.texture.getNode('background',
1).setValue(_getColor(arg)); me; }

in your Nasal/canvas/api.nas?

Are there /canvas/by-index[i]/color-background/[red,green,blue,alpha]
nodes in your property tree or just a single
/canvas/by-index[i]/background string property per canvas?

Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org

  Student of Computer Science @ Graz University of Technology
--- Austria 

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel 


--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear/ShivaVG compile fails on windows

2012-11-05 Thread Vivian Meazza
Thomas wrote:

 Am 2012-11-05 18:30, schrieb Vivian Meazza:
  I'm using the Nasal API - it used to all work before today's update.
  Can't really see what to change
 
 Are you using canvas.setColorBackground(r, g, b, a) 
 I have this:

m.canvas.addPlacement(placement);
m.canvas.setColorBackground(0.36, 1, 0.3, 0.02);

which is a direct copy from

http://wiki.flightgear.org/Canvas_HUD

 and is there a function
 setColorBackground: func () { me.texture.getNode('background',
 1).setValue(_getColor(arg)); me; }

No - there isn't one in 

http://wiki.flightgear.org/Canvas_HUD

 in your Nasal/canvas/api.nas?
 
 Are there /canvas/by-index[i]/color-background/[red,green,blue,alpha]
 nodes in your property tree or just a single
/canvas/by-index[i]/background
 string property per canvas?

And no other references to color-background

Vivian



--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel