make: missing separator: Makefile.am

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
fester2251
Posts: 81
Joined: Sun Dec 11, 2011 4:59 pm

make: missing separator: Makefile.am

Post by fester2251 »

(Sorry, so far I have been unable to determine which version of FreeCAD I downloaded from github last week.)

When I run "make", I get "/freecad/Makefile.am:40: *** missing separator. Stop."

I've gone through Makefile.am, and all the tabs are tabs, not spaces,

Does anybody know what the missing separator in Makefile.am is?
"When the facts change, I change my mind. What do you do, sir?"
-- John Maynard Keynes
peterl94
Veteran
Posts: 1001
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: make: missing separator: Makefile.am

Post by peterl94 »

Did you use CMake? Autotools is not supported any more.
fester2251
Posts: 81
Joined: Sun Dec 11, 2011 4:59 pm

Re: make: missing separator: Makefile.am

Post by fester2251 »

Yes, I am using CMAKE. However, Makefile.am comes with the FreeCAD download from github.
"When the facts change, I change my mind. What do you do, sir?"
-- John Maynard Keynes
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: make: missing separator: Makefile.am

Post by NormandC »

Do you mean you downloaded the archived source in zip format rather than making a "git clone" in the console?

Edit: I just downloaded the zip file and the archive contains no Makefile.am...

2nd edit: it may be useful to indicate the url you got your FreeCAD sources from.
fester2251
Posts: 81
Joined: Sun Dec 11, 2011 4:59 pm

Re: make: missing separator: Makefile.am

Post by fester2251 »

git clone git://git.code.sf.net/p/free-cad/code freecad
"When the facts change, I change my mind. What do you do, sir?"
-- John Maynard Keynes
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: make: missing separator: Makefile.am

Post by NormandC »

OK in your first post you mentioned GitHub which is a different repository, it's actually a mirror for the one at Sourceforge. The Github one allows you to download a zip file.

It's very odd, maybe try to update your sources to current with "git pull" then try again?

Is it a fresh compile or have you already compiled FreeCAD in the same folder? I think it is recommended to do an out-of-source build as it can sometimes avoid corruption problems.
wmayer
Founder
Posts: 20310
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: make: missing separator: Makefile.am

Post by wmayer »

When I run "make", I get "/freecad/Makefile.am:40: *** missing separator. Stop."
What are the exact commands you entered to the terminal window?
Post Reply