Board index FlightGear Support Tools Atlas

Atlas VOR lables unreadable

Atlas is an addon that lets FlightGear users display a real-time "moving-map" of their flight.

Atlas VOR lables unreadable

Postby bishb25 » Tue Oct 30, 2012 4:01 am

Hi All,

I have Atlas 0.4.0 working on my PC (linux 32 bit) with FlightGear (GIT). I was able to generate the maps and everything is working fine to my knowledge, however, the lables for the VOR stations are unreadable. They appear as a small rectangular box with a light gray background and only slightly darker gray letters making them hard to read. Then, no matter how much I zoom in the label stays too small read (about 1 inch by 3/8 inch on a 1024x768 screen.) Is there a way to change the lables or font color to make them more readable?

Thanks
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: Atlas VOR lables unreadable

Postby bschack » Fri Nov 02, 2012 9:41 pm

Can you post a screenshot? And to answer your question, there's no way at the moment to change fonts, font colours, or font sizes.

Thanks,
Brian
Last edited by Gijs on Fri Nov 02, 2012 9:47 pm, edited 1 time in total.
Reason: No useless quoting please.
bschack
 
Posts: 195
Joined: Tue Jul 01, 2008 10:04 am

Re: Atlas VOR lables unreadable

Postby bishb25 » Fri Nov 02, 2012 11:46 pm

As requested...
Image
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: Atlas VOR lables unreadable

Postby bschack » Sat Nov 03, 2012 4:06 pm

I was doing some looking around in the atlas-devel mailing list and found the exact same problem described here:

http://sourceforge.net/mailarchive/message.php?msg_id=25492842

The solution is exactly clear from the posts, but I think it just required downloading the latest version and recompiling. Where did you get the code for Atlas from?

Brian
bschack
 
Posts: 195
Joined: Tue Jul 01, 2008 10:04 am

Re: Atlas VOR lables unreadable

Postby bishb25 » Sat Nov 03, 2012 4:51 pm

I got an Atlas package from my linux distribution's software reopositories. As I said it's version 0.4.0 as listed in the repos.
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: Atlas VOR lables unreadable

Postby bishb25 » Sun Nov 04, 2012 12:38 am

Ok,

I'm now trying to compile from CVS sources, but I am stuck on a GLUTWindow.cxx error.
Code: Select all
GLUTWindow.cxx: In member function ‘void GLUTWindow::startTimer(unsigned int, void (GLUTWindow::*)())’:
GLUTWindow.cxx:126:21: error: ‘random’ was not declared in this scope
GLUTWindow.cxx: In member function ‘void GLUTMenu::addItem(const char*, void (GLUTMenu::*)())’:
GLUTWindow.cxx:339:29: error: ‘random’ was not declared in this scope
make[3]: *** [GLUTWindow.o] Error 1
make[3]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make: *** [all-recursive] Error 1


Any Ideas
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: Atlas VOR lables unreadable

Postby bschack » Sun Nov 04, 2012 3:32 pm

bishb25 wrote in Sun Nov 04, 2012 12:38 am:Ok,

I'm now trying to compile from CVS sources, but I am stuck on a GLUTWindow.cxx error.
Code: Select all
GLUTWindow.cxx: In member function ‘void GLUTWindow::startTimer(unsigned int, void (GLUTWindow::*)())’:
GLUTWindow.cxx:126:21: error: ‘random’ was not declared in this scope
GLUTWindow.cxx: In member function ‘void GLUTMenu::addItem(const char*, void (GLUTMenu::*)())’:
GLUTWindow.cxx:339:29: error: ‘random’ was not declared in this scope
make[3]: *** [GLUTWindow.o] Error 1
make[3]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make: *** [all-recursive] Error 1


Any Ideas


Try adding

Code: Select all
#include <stdlib.h>


to the top of the file.

Brian
bschack
 
Posts: 195
Joined: Tue Jul 01, 2008 10:04 am

Re: Atlas VOR lables unreadable

Postby bishb25 » Sun Nov 04, 2012 8:32 pm

Thanks,

That seemed to fix GLUTWindow.cxx but now I get an error in Preferences.cxx

Code: Select all
Preferences.cxx: In member function ‘bool Preferences::_load(int, char**, Pref::PrefSource)’:
Preferences.cxx:895:5: error: ‘optreset’ was not declared in this scope
make[3]: *** [Preferences.o] Error 1
make[3]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make: *** [all-recursive] Error 1

I googled and found a devel thread that said to try setting optind=0, but that didn't work either.

bschack,
When you said
Try adding

Code: Select all
 #include <stdlib.h>


to the top of the file.

how do you find out what files are missing?
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: Atlas VOR lables unreadable

Postby bschack » Mon Nov 05, 2012 10:09 pm

bishb25 wrote in Sun Nov 04, 2012 8:32 pm:Thanks,

That seemed to fix GLUTWindow.cxx but now I get an error in Preferences.cxx

Code: Select all
Preferences.cxx: In member function ‘bool Preferences::_load(int, char**, Pref::PrefSource)’:
Preferences.cxx:895:5: error: ‘optreset’ was not declared in this scope
make[3]: *** [Preferences.o] Error 1
make[3]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make: *** [all-recursive] Error 1

I googled and found a devel thread that said to try setting optind=0, but that didn't work either.

bschack,
When you said
Try adding

Code: Select all
 #include <stdlib.h>


to the top of the file.

how do you find out what files are missing?


I just did a 'man random' in a terminal window (you may have to type 'man 3 random'). Under the SYNPOSIS section it shows you any include files needed.

As for the 'optreset' error, try removing that line and see what happens (you may have to set optind to 0 or 1). It turns out everybody seems to have a different implementation of getopt_long - what works for me on OS X often doesn't work for others.

Brian
bschack
 
Posts: 195
Joined: Tue Jul 01, 2008 10:04 am

Re: Atlas VOR lables unreadable

Postby bishb25 » Fri Nov 09, 2012 1:02 am

I had to comment out "optreset = 1" to get past the error, but, you guessed it, a new error!

Code: Select all
misc.cxx: In function ‘double magneticVariation(double, double, double)’:
misc.cxx:404:29: error: no matching function for call to ‘SGTime::update(double&, double&, int, int)’
/home/benjamin/flightgear2.9/include/simgear/timing/sg_time.hxx:149:10: note: candidate is: void SGTime::update(const SGGeod&, time_t, long int)
make[3]: *** [misc.o] Error 1
make[3]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/benjamin/flightgear2.9/src/Atlas/src'
make: *** [all-recursive] Error 1


I searched and someone else had this error but they switched simgear to an older version to fix it. Does Atlas actually compile?
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: Atlas VOR lables unreadable

Postby icecode » Fri Nov 09, 2012 5:21 pm

As far as I can see, the update() function expects a SGGeod while Atlas is passing 2 doubles. Atlas is not updated really frequently, and SimGear has changed a lot since Atlas was really maintained.

To fix that, just go to line 404 at src/misc.cxx and replace this:

Code: Select all
t1.update(lon, lat, 0, 0);


with this:

Code: Select all
SGGeod pos = SGGeod::fromDeg(lon, lat);
t1.update(pos, 0, 0);


...remove these 2 lines:
Code: Select all
lon *= SGD_DEGREES_TO_RADIANS;
lat *= SGD_DEGREES_TO_RADIANS;


...and in the beginning of the file, around line 42, write this:
Code: Select all
#include <simgear/math/SGGeod.hxx>


That should do the trick, but I would recommend not to compile from source, since you will eventually encounter more errors. I see you are a Linux user, so running your package manager and installing Atlas from there will be easier. Another option would be building Atlas with an old version of SimGear as you said.
icecode
 
Posts: 709
Joined: Thu Aug 12, 2010 1:17 pm
Location: Spain
Version: next
OS: Fedora


Return to Atlas

Who is online

Users browsing this forum: No registered users and 3 guests