Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
mgl:gettingstarted [2016/10/17 15:33]
mgl:gettingstarted [2023/08/11 21:14] (current)
justin [Compatibility with latest MAC OS and Matlab versions]
Line 48: Line 48:
 If you are running into an obvious error like a segmentation fault, then you may want to recompile. The command to recompile is: If you are running into an obvious error like a segmentation fault, then you may want to recompile. The command to recompile is:
  
- >> ​mglMake(1);+ >> ​mglMakeMetal(1);
  
-If you run into any problems with mglMake, you may want to restart matlab and try again.+If you run into any problems with mglMakeMetal, you may want to restart matlab and try again.
  
-The mglMake ​command simply runs mex on all the .c files in the mgl/mgllib directory -- you can do this by hand (e.g. mex mglPrivateOpen.c),​ if you prefer.+The mglMakeMetal ​command simply runs mex on all the .c files in the mgl/mgllib directory -- you can do this by hand (e.g. mex mglPrivateOpen.c),​ if you prefer.
  
 Note that this requires mex to be setup properly on your machine. On a Mac OS X machine, at a minimum you will need to have the apple developer tools installed (XCode) [[http://​developer.apple.com/​tools/​]]. On linux, you will need a compatible version of gcc (older versions of gcc can be found [[ftp://​ftp.mirrorservice.org/​sites/​sourceware.org/​pub/​gcc/​|here]]). Note that this requires mex to be setup properly on your machine. On a Mac OS X machine, at a minimum you will need to have the apple developer tools installed (XCode) [[http://​developer.apple.com/​tools/​]]. On linux, you will need a compatible version of gcc (older versions of gcc can be found [[ftp://​ftp.mirrorservice.org/​sites/​sourceware.org/​pub/​gcc/​|here]]).
Line 64: Line 64:
  ​option-command-esc  ​option-command-esc
  
-this will quit your matlab session as well. +this will quit your matlab session as well. You may also have to hit the <​ENTER>​ key a couple of times to actually quit matlab.
  
 Also, some of our test programs will run until you hit the <ESC> key (e.g. testExperiment),​ so it is worth trying that as well. Also, some of our test programs will run until you hit the <ESC> key (e.g. testExperiment),​ so it is worth trying that as well.
  
-====== ​ Can I get access to all OpenGL functions? ​ ====== +
-We have only exposed parts of the OpenGL functionality. If you need to dig +
-deeper to code your stimulus, consider writing your own mex file. This will +
-allow you to use the full functionality of the OpenGL library. To do this, +
-you could start by modifying one of our mex functions (e.g. mglClearScreen.c) +
-and add your own GL code to do what you want and compile. +
-====== ​ Printing the wiki help pages  ====== +
-You can print out all the wiki help pages at once, by using this [[mgl:​mglsinglepage|link]].+
  
 ====== ​ Compatibility with latest MAC OS and Matlab versions ====== ====== ​ Compatibility with latest MAC OS and Matlab versions ======
  
-We stay reasonably up-to-date with OS and Matlab versions. As of this writing (12/08/2014) we are using MGL on Mac OS 10.9.5 and Matlab 8.2 on 64 bit. If you are using a newer or very much older version of MGL, you may need to recompile. Note that the Eyelink and NI Digital I/O code may particularly have compatibility issues as they rely on libraries made by their manufacturers. As of this writing Eyelink has a 64 bit library which we run that works. NI Digital I/O is still basically 32 bit. +We stay reasonably up-to-date with OS and Matlab versions. As of this writing (8/2023) we are using MGL on Mac OS 13.5 (Ventura) and Matlab ​2023a
- +
-Note, at this time (12/8/2014Yosemite ​and Matlab ​(particularly older versions) do not play well together. There are some [[http://​www.mathworks.com/​matlabcentral/​answers/​159016-is-matlab-compatible-with-mac-os-x-10-10-yosemite|patches]],​ but we are staying away until Mathworks cleans things up. +