rzyns / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

MacVim fails to build with XCode 4.3 on fresh install of Lion 10.7.3 #404

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to build MacVim with just XCode 4.3 and the associated Command Line 
Tools package.

What is the expected output? What do you see instead?
I expect MacVim to build. 

xcodebuild -project MacVim/MacVim.xcodeproj ARCHS="x86_64" ONLY_ACTIVE_ARCH="NO"
Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to 
update the developer directory path.
make[1]: *** [macvim] Error 1
make: *** [first] Error 2

Please use labels and text to provide additional information.

With XCode 4.3 the developer directory is now in XCode.App. It would be nice if 
MacVim would build with just the command line tools.

Original issue reported on code.google.com by bullsba...@gmail.com on 20 Feb 2012 at 5:33

GoogleCodeExporter commented 9 years ago
Thanks for the report.

Unfortunately a lot of developers have been affected by changes Apple made to 
Xcode 4.3.  If you have updated from Xcode 4.2 then it should be possible to 
fix by entering the following in Terminal

$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

This will tell Xcode that the Developer dir has moved into the Xcode app bundle.

If you have not updated from Xcode 4.2, then xcode-select is no longer 
available.  One solution in this case may be to enter the following in Terminal 
_before_ attempting to build MacVim:

$ export PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH

It would be nice to save the user from having to manually fix these things, but 
at this point in time it seems Xcode 4.3 has broken so many things that this 
may be difficult (due to the possibility of old broken tools being left behind).

Original comment by bjorn.winckler@gmail.com on 21 Feb 2012 at 8:16

GoogleCodeExporter commented 9 years ago
Another note:

It seems the command line tools (which MacVim relies on) need to be manually 
installed with Xcode 4.3.  To install, open Xcode -> Preferences -> Downloads 
and click the "install" button next to the "Command Line Tools" item.

Original comment by bjorn.winckler@gmail.com on 21 Feb 2012 at 8:38

GoogleCodeExporter commented 9 years ago
I think you may be right here about general brokenness. It looks like the 
xcodebuild that's in /usr/bin/xcodebuild (which is where I would expect the 
command line tools to install everything) is what's throwing the nasty errors 
about missing /Developer.

Original comment by bullsba...@gmail.com on 21 Feb 2012 at 8:43

GoogleCodeExporter commented 9 years ago
Also, everything seems to build just fine with 
/Application/Xcode.app/Contents/Developer/usr/bin in the path, so that seems 
like a decent workaround until this mess gets sorted.

Original comment by bullsba...@gmail.com on 21 Feb 2012 at 8:46

GoogleCodeExporter commented 9 years ago
Another thing that has worked for me is to ln -s 
/Application/Xcode.app/Contents/Developer /

Then all builds seem to run with no issue

Original comment by austi...@gmail.com on 20 Jun 2012 at 7:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I wrote about how to get things up and running on a clean Lion + Xcode 4.3 
install:

http://b4winckler.wordpress.com/2012/03/18/setting-up-xcode-4-3-for-macvim-homeb
rew-and-haskell/

Original comment by bjorn.winckler@gmail.com on 20 Jun 2012 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by bjorn.winckler@gmail.com on 9 Jun 2013 at 2:31