Xcode 4.3 with Eclipse, CUDA, problems? - xcode

I understand that the /Developer folder no longer exists after installing XCode4.3. To me, this seems it would have bad consequences. First, CUDA installs into /Developer/GPU_Computing. Second, what happens to the GCC keychain? Eclipse relies on the GCC keychain command line tools, which I'm told disappear with Xcode 4.3.
Can someone shed light as to whether they have dealt with either of these problems?

Xcode 4.3 changed a lot.
Starting from the version 4.3 XCode became a standard Mac OS X application(it reside in the Application Folder), so you can try to move the GPU_Computing under the new root folder of XCode. However i think that an updated version of the CUDA SDK you add support for the new Xcode folder structure.
XCode and Apple are moving towards the new LLVM compiler, so GCC still supported for now, but it will disappear in next releases, so you should migrate to LLVM as soon as you can ...
You can still use GCC with eclipse installing Command line Developer Tools package .

You will have to install command-line tools package.
Run Xcode, open Wcode->Preferences..., and on "Components" tab on the "Downloads" screen select "Command line tools".
I can build and run CUDA Toolkit samples with that package installed.

Related

Attempt to install Qt on OS X gives 'You need to install Xcode 5.0.0', but this version is so old it's not available

I am a Windows/Linux developer who occasionally builds for OS X - particularly in Qt.
I have a simple Qt project that I have been developing on Windows. I now wish to build it on OS X.
I am running Yosemite. I have installed Xcode 7 and am attempting to install Qt 5.5.
When I run the Qt installer, immediately after the prompt to log in to Qt (which is successful), I receive the following error:
You need to install Xcode version 5.0.0.
I have attempted to locate Xcode 5.0.0 on the Apple Developer site, but this is 2 major versions behind the most recent version, and I cannot even find an installer for it.
More to the point, I do wonder why the most recent version of Qt requires a version of Xcode that is considered so old by Apple that it's not even available.
How do I overcome this problem so that I can get Qt installed on OS X?
I ran into the same problem and solved it by following the instructions here. This link describes a similar, but slightly different installer issue.
To summarize, you need to ensure that the Xcode command line tools are installed and set up correctly. I already had them installed, but had to go into Preferences -> Locations in Xcode and set the dropdown to the currently installed version.
The link shows an earlier version of Xcode where the path is actually Preferences -> Downloads -> Components.
Once I'd made this change, the installer continued successfully.
The solution that worked for me (on OSX Sierra XCode 8.2.1) is to open XCode Preferences -> Locations.
There is a drop-down menu named Command Line Tools. Select the available XCode version here. Then restart the Qt Creator installation.
taken from the link above, this resolved my issue:
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
For me closing the prompt and smashing keys (alt F4, I know that its not windows) before the next prompt opened worked... qt is running fine now, as it doesn't need the old version.
you can find the old version of XCode on the the Apple offical site here and download .dmg of xcode 5 or 6.1 for example :
I do this and it's ok for me.

Uninstall Previous XCode and Install XCode 4.5

Is it safe to completely uninstall previous version of XCode and Install the XCode 4.5? because...
I just uninstalled XCode 4.2, and it mostly removed all the files in the Developer Folder, now I installed the 4.5, but it scares me since there is nothing in the Developer Folder.
Would XCode still be working even if that's the case? Thanks
Xcode 4.4+ was designed to be installed via the App Store and now stores everything in the Xcode.app bundle in your /Applications directory.
Make sure you use xcode-select to select the new path for your Xcode installation, and you install the command line tools from within Xcode 4.5.
From the Xcode 4.5 release notes:
Starting in Xcode 4.3, the Xcode.app file package contains all the Xcode developer tools. The man pages for the command-line tools Xcode uses are also placed in this package.
yes It's totally safe to completely uninstall the previous Xcode and install new Xcode4.5. I have done it and all works fine for me.
Just have to install the command line tools after installing the Xcode4.5 from it's preference just as show in below image :)

Where to get macos SDK 10.6 for Xcode?

I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks.
I found that I need to download additional tools from this site. However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences -> Downloads -> Components, but there is no way.
I am wondering how can I install previous SDKs for Xcode?
Unfortunately, Apple tends to make this much harder than you'd like. You can't download SDKs by themselves. They come as part of specific versions of Xcode. So you have to download the right version of Xcode. Search for "10.6", and you'll see that you want Xcode 4.1.
Once you download that, you can install it (that version will go into /Developer, so it won't break your /Applications version), or you can open up the package and find the SDKs in it. If you don't know how to crack open these packages, just install it.
Once you do that, search for "MacOSX10.6.sdk". I forget exactly where it is in that particular version.
What I do at that point is copy the sdk into a /SDKs directory. That way I always have them all.
Now, you need to add it to your current version of Xcode. You can do that by making symlinks in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs. If you like, you can use my tiny link-sdks script for that.
UPDATE: In modern versions of Xcode (7.3+) to use older SDKs edit MinimumSDKVersion here:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
All legacy MacOS SDKs can be found on GitHub -
https://github.com/phracker/MacOSX-SDKs
If you search the openFrameworks forums, there are a few posts where people are providing download links from their public Dropbox folders, for example.
Somewhat off topic, but I hit a very similar problem trying to install Erlang using kerl.
Everything worked for me until the "kerl build ..." step. The build log showed the following error:
odbcserver.c:117:10: fatal error: 'sql.h' file not found #include "sql.h"
The problem is that the ODBC is no longer part of the Mavericks installation(i.e., MacOS 10.6 SDK isn't installed). Piecing together advice from a variety of sites, none of which worked by themselves, the following set of steps fixed the issue:
brew install unixodbc - installs the missing ODBC libraries and include files (e.g., sql.h).
Set CFLAGS to point to the include directory for the unixodbc installation as part of the kerl build command (e.g.,):
CFLAGS="-I/usr/local/Cellar/unixodbc/2.3.2/include" ./kerl build R15B R15B
This points the build to the ODBC include files.
My environment is Mavericks, the xcode command line tools, and xcode v5.1.1.
Some SDK(with Xcode) you can download from direct links. List here:
http://iphonesdkdev.blogspot.ru/2010/04/old-versions-of-iphone-sdk.html
Some don't work, but something you can still download. For example:
http://adcdownload.apple.com/Developer_Tools/xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg

Why is my gcc not in /usr/bin/gcc, even though Xcode 4.3 is installed?

I installed Xcode 4.3 on my machine, but nonetheless, it isn't anywhere, even a
find / -name gcc
doesn't reveal it. Still, Xcode can compile C code. So there must be a compiler on my system!
Where is it?
In the new version of Xcode 4.3, command line tools are optional and are not installed automatically. See here for more info:
Command-Line Tools Are Optional:
The command-line tools are not bundled with Xcode 4.3 by default. Instead, they can be installed optionally using the Components tab of the Downloads preferences panel as shown in Figure 3.
So you have to go to the Downloads Preferences panel and download them.

How do i install additional packages for Xcode on OSX Lion to allow MacPorts to work

When I try and install MacPorts it complains
'Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected.'
I do have Xcode installed from the Appstore so I guess I just have to install these extra parts but how ?
Ive read a couple of questions on Stack Overflow about this but I think the answers must be outdated as they do notmake sense for me, I do not have an Xcode dmg I can reinstall from, and I can't see anything useful in /Developer either, or any preferences within Xcode itself.
I only want Xcode for the purposes of using Macports so I'm not familiar with it.
You probably got Xcode 4.1 from the Mac App Store. In that case, you haven't got Xcode 4.1 installed. However, you now have an Xcode installer in your Applications directory.
Spotlight should find it in any case.
The command line tools aren't included in the default install of Xcode anymore.
Goto the Xcode Preferences --> Downloads Pane --> click the Install button beside "Command Line Tools".
If you don't have Xcode installed you can get the command line tools separately as explained here..
http://osxdaily.com/2012/07/06/install-gcc-without-xcode-in-mac-os-x/
The App Store installs the XCode installer, not Xcode itself. The installer is in your applications folder. Run that.
Today, 16 Feb 2012, when I installed Xcode 4 from the App Store, there was no Setup. Just the app installed, because it was Xcode 4.3 !
Make sure that you install Xcode 4.2 with UNIX Devel. to MacPorts works!
To get the Xcode 4.2 go to https://developer.apple.com.

Resources