- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear FORTRAN Community,
I am a newbie regarding the Mac OS X. I have been trying to compile a simple FORTRAN code using my new MacBook Pro (intel64) and XCode 4.4 but haven't been succesful at all. It just does not work. I have followed the procedures presented on the internet but none seem to work. Tried even using a different version of XCode(4.2) but I cannot find the Intel compiler on the 'Build Target' menu.
I have already read on the forum that Xcode 4.4 and Mountain Lion combination is not supported by the current version of the intel compiler. Is that also true for Lion????
I am capable of compiling on the command line though, which works fine but would like to use the IDE if possible.
Can I install Xcode after installing Intel Fortran?
Or do I have to have installed XCode previously, and then Intel FORTRAN?
My current cofiguration is the following:
OS:
System Version: Mac OS X 10.7.4 (11E2068)
Kernel Version: Darwin 11.4.1
Fortran compiler:
Intel Fortran Intel 64 Compiler XE for applications running on Intel 64, Version 12.1.5.344 Build 20120612
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
30 DAY EVALUATION LICENSE
Intel Fortran Intel 64 Compiler XE for applications running on Intel 64, Version 12.1.5.344 Build 20120612Copyright (C) 1985-2012 Intel Corporation. All rights reserved.30 DAY EVALUATION LICENSEXCode4.4.1
Command line tools for Lion
By the way, the error I get, is the following:
error: executable doesn't exist: '/Users/leonardosalemi/Library/Developer/Xcode/DerivedData/test-cooukdkntyeakpazywsefmoazotd/Build/Products/Debug/test'
error: failed to launch '/Users/leonardosalemi/Library/Developer/Xcode/DerivedData/test-cooukdkntyeakpazywsefmoazotd/Build/Products/Debug/test' -- SBTarget is invaliderror: failed to launch '/Users/leonardosalemi/Library/Developer/Xcode/DerivedData/test-cooukdkntyeakpazywsefmoazotd/Build/Products/Debug/test' -- SBTarget is invalid
I would appreciate any help on the matter.
Best regards!
Leonardo
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can answer this question: "Can I install Xcode after installing Intel Fortran?" No. You must install Xcode first, then install Fortran.
The error text you show indicates that Xcode was attempting to run the final executable "test" but that it doesn't exist. I assume there is a prior error message in the build log saying that the build of the target "test" failed.
The error text you show indicates that Xcode was attempting to run the final executable "test" but that it doesn't exist. I assume there is a prior error message in the build log saying that the build of the target "test" failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jeff!
I've uninstalled Xcode, and the Intel compiler. Reinstalled both in the order: 1-XCode 2- FORTRANI still get the same error.
First, it does not produce an executable, and I don't know why. I knew how to use the Visual Studio on Windows and Xcode looked very similar, but it seems now that it's more complicated to configure it to FORTRAN.
Second, when I have to add a 'Build rule' and the info panel, the FORTRAN compiler is not there. I cannot find the option for Intel FORTRAN. It seems XCode 4.4 does not find the compiler to add into its menus. Or there is some switch which I'm not aware of.
About the log, it says the Build was successful. But when I try to run it, I get the error mentioned before.
It's very frustrating, since I've been trying to make it work for at least a week. At least, the command line works and compiles using a makefile, but I wanted to use the capabilities of an IDE.
Any clues?
Thx a lot!
Leo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jeff!
It works now!
Here's what I had to do:
1-I unistalled Xcode 4.4 and the Intel compiler.
2- Downloaded Xcode 3.2.3 and installed it with its Command line utilities;
3- Reinstalled the Intel FORTRAN Compiler;
4- Started a new project as Command line tool, Foundation framework;
5-Deleted the .m .h files from the project;
6-Added new file, and for my surprise, the FORTRAN templates were there!!! Beautiful! That's how it should have worked in XCode 4.4 but it didn't;
7-Build and Run, succeeded;
8- Change menu on the top left(right over Overview) to Release;
9-Build and run;
10-An executable is created under products. If you double click on it, you open a terminal that executes whatever code you have added to the template used;
Well I think that's it. It looks that it works only with earlier versions of XCode, definitely no the combination Lion 10.7.4, XCode 4.4 and Intel FORTRAN 64 Compiler XE 12.5.1.344 Build20120612.
Regards!
Leo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page