Matlab R2012b und Xcode 5 (compiler problem!)

vandread

vandread

Mitglied
Thread Starter
Dabei seit
24.06.2009
Beiträge
28
Reaktionspunkte
0
Hallo Leute,

ich versuche seit Tagen mein Matlab auf meinem Mac zum laufen zu bekommen...
Es handelt sich um die R2012b Version.

Matlab an sich läuft, jedoch benötigen einige Toolboxen (Simulink/Stateflow) einen Compiler.
Genau hier liegt mein Problem laut folgender Seite soll/muss ich den Compiler von Xcode nutzen.
http://www.mathworks.de/support/compilers/R2012b/maci64.html

Dort ist die Rede von Xcode 4, jedoch ist Xcode mittlerweile bei Version 5 angekommen...

Im Internet konnte ich folgende Hilfen finden:
http://www.mathworks.de/support/solutions/en/data/1-OAMYBZ/
http://www.mathworks.de/support/solutions/en/data/1-FR6LXJ/

Jedoch beschreibt keine davon meine Kombination...
Der erste Link ist eigentlich sehr vielversprechend doch konnte er leider nicht helfen, der zweite genau so wenig...

Ich erhalte immer wieder den Fehler:
Code:
/Applications/MATLAB_R2011b.app/bin/mex: line 305: llvm-gcc-4.2: command not found

Was bedeutet dass kein Compiler gefunden/gesetzt wurde...

Eventuell hat hier jemand eine Idee wie ich es zum laufen bekomme?

Danke!
 
Am besten du probierst es mit einer Paketverwaltung wie z.B. MacPorts.

http://www.macports.org

Wenn das mal installiert ist, sollte ein
Code:
sudo port install llvm-gcc42
genügen ;)
 
Werde ich gleich probieren, aber ist den der gcc nicht schon mit Xcode installiert?
 
jein, du musst mit der Xcode app die command line tools nachladen...
 
Die command line tools habe ich bereits bei Xcode nachgeladen...

Habe jetzt Matlab komplett von der Platte geworfen anschließend MacPorts installiert und den gcc geladen...
Danach habe ich wieder Matlab installiert, nach der Installation sagt er wieder folgendes (das hat er bis jetzt immer gebracht).

Code:
1. The following products require a supported compiler:  MATLAB Compiler 4.18 Stateflow 8.0 

2. Simulink requires a C compiler for simulation acceleration, model reference, and MATLAB Function Block capabilities.
It is recommended that you install a supported compiler on your machine.

Verlinkt dabei auf die von mir genannte seite: http://www.mathworks.de/support/compilers/R2012b/maci64.html

Wenn ich nun versuche wieder etwas mit Stateflow zu starten kommt der selbe Fehler...
 
wenn du das terminal öffnest und dort ll und dann tab tab drückst, kriegst du dann llvm-gcc-4.2 angezeigt?
 
Yes, wird angezeigt!
 
dann findet matlab den einfach nicht, vielleicht da mal in den einstellungen nachhelfen...
 
Hier mal der Befehl zu auswählen des compilers...

Code:
>> mex -setup

    Options files control which compiler to use, the compiler and link command
    options, and the runtime libraries to link against.

    Using the 'mex -setup' command selects an options file that is
    placed in /Users/Georgios/.matlab/R2012b and used by default for 'mex'. An options 
    file in the current working directory or specified on the command line 
    overrides the default options file in /Users/Georgios/.matlab/R2012b.
 
    To override the default options file, use the 'mex -f' command
    (see 'mex -help' for more information).

The options files available for mex are:

  1: /Applications/MATLAB_R2012b.app/bin/mexopts.sh : 
      Template Options file for building gcc MEX-files
 

  0: Exit with no changes

Enter the number of the compiler (0-1):
1

Overwrite /Users/Georgios/.matlab/R2012b/mexopts.sh ([y]/n)? 
y

/Applications/MATLAB_R2012b.app/bin/mexopts.sh is being copied to 
/Users/Georgios/.matlab/R2012b/mexopts.sh


**************************************************************************
  Warning: The MATLAB C and Fortran API has changed to support MATLAB 
           variables with more than 2^32-1 elements.  In the near future 
           you will be required to update your code to utilize the new 
           API. You can find more information about this at: 
           http://www.mathworks.com/help/techdoc/matlab_external/bsflnue-1.html
           Building with the -largeArrayDims option enables the new API. 
**************************************************************************

>>

Ich kann mir nicht vorstellen dass man mit dem nachinstallieren von gcc das Problem so einfach lösen kann...
Sonst würde Mathworks nicht so komische Anleitungen schreiben wie man es mit Xcode 4.X hinbekommt oder so...
Das Problem scheint irgendwie tiefer zu sein ):
 
Nimm Mathematica, das läuft... :D ;)

So wirklich unterstützt scheint Xcode 5 (bzw. das 10.8 SDK) ja nicht zu sein.
 
wie wäre es wenn du dir mal
/Users/Georgios/.matlab/R2012b/mexopts.sh
anguckst und dort die pfade zum gcc anpasst?
 
@ProjectBuilder
Mathematica ist leider ein total anderes Programm :)
Damit kann ich nichts anfangen hehe...

@oneOeight
Ja habe ich auch schon gemacht, das steht ja in den Anleitungen von Mathworks auch, das man dort die Versionen anpassen soll usw...
Habe mal den komplett direkten Pfad angegeben aber irgendwie will das nicht...
 
Hat schon jemand Erfahrungen min Matlab R2013a ?

Muss ich mich immer auf solche Probleme einstellen, brauche dieses Programm für die UNI...

Weil Programm Updates kommen ja immer dazwischen, zB bei Matlab und xCode
 
Zurück
Oben Unten