Board index FlightGear Support Compiling

donwload_and_compile.sh not finding Makefile when compiling

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

donwload_and_compile.sh not finding Makefile when compiling

Postby TheEagle » Fri May 28, 2021 9:32 pm

I am trying to compile TerraGear from source (isn't there a binary downloadable somewhere ?), and I ran download_and_compile.sh from the TerraGear/Getting TerraGear wiki. The build and install of SimGear went fine, but when TerraGear was to be built, the script finished with
Code: Select all
make: no makefiles specified

something like that (I translated it from German, as that's the language set in my PC). Any ideas ? Or can someone maybe send me a zip with the binaries ?
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: donwload_and_compile.sh not finding Makefile when compil

Postby benih » Fri May 28, 2021 9:39 pm

Verify that you are on the ‚next‘ branch.
I had trouble compiling lately because it sneaked back to ‚master‘
User avatar
benih
 
Posts: 1689
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: donwload_and_compile.sh not finding Makefile when compil

Postby TheEagle » Fri May 28, 2021 9:41 pm

benih wrote in Fri May 28, 2021 9:39 pm:Verify that you are on the ‚next‘ branch.
I had trouble compiling lately because it sneaked back to ‚master‘

Uh, how do I do that ? I'm not familiar at all with git :roll: ?
EDIT: Did a little research - I was on master branch - did a git checkout next - that outputted only
Code: Select all
Branch 'next' folgt nun Remote-Branch 'next' von 'origin'.
Zu neuem Branch 'next' gewechselt

should that help ?????? AFAICS it didn't change any files …
EDIT2 : ABOVE DID NOT CHANGE ANYTHING :x :x :x
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: donwload_and_compile.sh not finding Makefile when compil

Postby benih » Sat May 29, 2021 10:32 am

How did you switch to next?
If just „git checkout -b next“ then you are on a new local branch called next.
That is not what you want.
You want to checkout the remote branch.

Delete the local branch:
git checkout master
git branch -D next

Then checkout the remote one:
git checkout -t next
User avatar
benih
 
Posts: 1689
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: donwload_and_compile.sh not finding Makefile when compil

Postby TheEagle » Sat May 29, 2021 10:59 am

benih wrote in Sat May 29, 2021 10:32 am:How did you switch to next?
If just „git checkout -b next“ then you are on a new local branch called next.

I did simply "git checkout next" - will try your commands
EDIT: It does not work:
Code: Select all
~$ cd flightgear-terragear
~/flightgear-terragear$ git checkout master
Zu Zweig »master« gewechselt
Ihr Branch ist auf demselben Stand wie 'origin/master'.
~/flightgear-terragear$ git branch -D next
Branch next entfernt (war 37ecd8a).
~/flightgear-terragear$ git checkout -t next
fatal: Vermisse Branchnamen; versuchen Sie -b
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: donwload_and_compile.sh not finding Makefile when compil

Postby TheEagle » Sat May 29, 2021 11:28 am

I resolved above issue by downloading the next branch as a zip file - the makefile is found, but now I'm getting tons of "error: ‘ulong_long_type’ is not a member of ‘boost’" and "error: ‘long_long_type’ is not a member of ‘boost’" - I couldn't find anything on that in the web …
EDIT: resolved this too by emptying "terragear-next/version" (it's contents were "2.1.0" or similar, but was included like a C++ header :roll: ); I think the terragear source code badly needs an overhaul; it really is not user-friendly I think …
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: donwload_and_compile.sh not finding Makefile when compil

Postby benih » Sat May 29, 2021 11:59 am

I think something is wrong with your source code checkout.
User avatar
benih
 
Posts: 1689
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: donwload_and_compile.sh not finding Makefile when compil

Postby TheEagle » Sat May 29, 2021 12:04 pm

benih wrote in Sat May 29, 2021 11:59 am:I think something is wrong with your source code checkout.

Maybe, but that doesn't help me … I can now build everything without errors, but at linking stage it produces tons of undefined references …
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04


Return to Compiling

Who is online

Users browsing this forum: No registered users and 4 guests