Board index FlightGear Support Compiling

[SOLVED] How to update Git?

Building FlightGear from source, and in the need for help?

[SOLVED] How to update Git?

Postby DavidZhu » Sat Oct 02, 2010 10:43 pm

hello

I already have Git setup, and everything works fine... until I tried updating

I'm starting to doubt that I did my update correctly, so would someone please be so kind to check the steps I took?

This is what I did:
Code: Select all
cd /usr/local/src/simgear
git pull
./autogen
./configure
make; make install

cd /usr/local/src/flightgear
git pull
./autogen
./configure
make; make install

cd /usr/local/share/FlightGear
git pull



Did I skip something? It keeps saying random files like Propeller.slow and sound files required for landing cannot be found. It also can't read HUD configuration, so HUD never works.

Then the game crashes.

Did I do it right? What am I missing? Thank you guys

P.S. I am using Ubuntu 10.04

Thanks again
Last edited by DavidZhu on Sun Oct 03, 2010 11:55 pm, edited 1 time in total.
Try flying on the East Coast of the United States more often. There are many improved airports that people scarcely use. You might find me somewhere near JFK (or BWI, IAD, ATL, RIC, BOS...)

Fly safe.

-David Zhu (callsign = DavidZh or N48DZ)
DavidZhu
 
Posts: 109
Joined: Fri Jun 18, 2010 7:16 pm
Location: New Jersey, USA
Callsign: DavidZh, N48DZ
Version: Git
OS: Linux Ubuntu 10.04

Re: How to update Git?

Postby AndersG » Sun Oct 03, 2010 1:50 pm

DavidZhu wrote:Did I do it right? What am I missing? Thank you guys


That looks ok. That's pretty much what I do too and that works. However, are you sure all of the commands succeed?
In particular, your 'git pull' commands should not report any errors.

/Anders
Callsign: SE-AG
Aircraft (uhm, well...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, SAAB 29F, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship.
AndersG
 
Posts: 1885
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: How to update Git?

Postby DavidZhu » Sun Oct 03, 2010 6:04 pm

Thanks for the reply Anders

Nothing seems wrong with my compilation or Git pull, so do you think this has to do with the LD_Library_Path thing?

I'm not too familiar, but I know for sure that FG is having trouble finding required files (HUD, Sounds, Propeller animations, etc)

do you think this has to do with paths? Not sure if you have any ideas...

thanks
Try flying on the East Coast of the United States more often. There are many improved airports that people scarcely use. You might find me somewhere near JFK (or BWI, IAD, ATL, RIC, BOS...)

Fly safe.

-David Zhu (callsign = DavidZh or N48DZ)
DavidZhu
 
Posts: 109
Joined: Fri Jun 18, 2010 7:16 pm
Location: New Jersey, USA
Callsign: DavidZh, N48DZ
Version: Git
OS: Linux Ubuntu 10.04

Re: How to update Git?

Postby Hooray » Sun Oct 03, 2010 6:06 pm

You could execute each command using boolean AND ( && ), so that commands are only executed if the previous commands succeeded:

Code: Select all
cd /usr/local/src/simgear && git pull && ./autogen && ./configure && make && make install


You can also display an error message by using an OR ( || ):

Code: Select all
cd /us/loc/sr/simgear || echo "Could not change directory"
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 !
Nasal | Projects | Core development |
Programming resources
Hooray
 
Posts: 6770
Joined: Tue Mar 25, 2008 8:40 am

Re: How to update Git?

Postby DavidZhu » Sun Oct 03, 2010 11:55 pm

What the heck...!?!? It works!

I was stuck on this problem for like 2 weeks, and I'm pretty sure i did everything right... but guess not?

but I just did a git pull, compiled everything in the syntax that Hooray told me, and now its working... :mrgreen: :mrgreen:

Now I'm just wondering if the problem was the syntax or if the Git version had a problem

But who cares, it works now.

I really appreciate it guys! :P :P
Try flying on the East Coast of the United States more often. There are many improved airports that people scarcely use. You might find me somewhere near JFK (or BWI, IAD, ATL, RIC, BOS...)

Fly safe.

-David Zhu (callsign = DavidZh or N48DZ)
DavidZhu
 
Posts: 109
Joined: Fri Jun 18, 2010 7:16 pm
Location: New Jersey, USA
Callsign: DavidZh, N48DZ
Version: Git
OS: Linux Ubuntu 10.04


Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests