======EyeLink 64bit library installation====== You may install directly from the SR Research website (you will need a login), see [[#Downloading_from_SR_Research|instructions below]] or if you are a GRU member you can download the files directly following the instructions below (note that the libraries are SR Research proprietary so we cannot distribute them to non-lab members). - Make sure that you have already installed the EyeLink_Developers_Kit_For_MacOSX (you should have eyelink frameworks in /Library/Frameworks). - Download the following: {{:gruprivate:efapi_universal.tar|edfapi Universal}} {{:gruprivate:eyelink_core_x64_osx_beta.tar|}} - Double-click on the .tar files to open them (or from a terminal use tar xfv *.tar). - Replace the Frameworks edfapi.framework and eyelink_core.framework from the downloaded files above into your directory /Library/Frameworks. - Compile using "mglMakeMetal mglEyelink" in matlab. If you run into errors see [[#eyelink_compile_errors|below]]. To configure the eye tracker computer's connection with the experiment computer, don't forget to follow the instructions [[https://www.sr-research.com/support/thread-58.html|here]]. Specifically, go to the ethernet service associated with the EyeLink connection and change ip address and subnet mask to: - IP Address: 100.1.1.2 - Subnet Mask: 255.255.255.0 ===== Downloading from SR Research ===== Update Mar 16, 2023 - Create an account at [[https://www.sr-support.com/forums/index.php?|SR research support page]]. - It may take a few hours or so to get your account approved. - Login and download the [[https://www.sr-research.com/support/thread-13.html|EyeLink Developers Kit ]] As of Jun 25, 2013 the installation procedure is as follows: - Create an account at [[https://www.sr-support.com/forums/index.php?|SR research support page]]. - Download an installer and two additional files from [[https://www.sr-support.com/forums/showthread.php?t=15|here]]. I mean all the files.
ld: framework not found edfapi
collect2: ld returned 1 exit status
mex: link of ' "mglEyelinkIsConnected.mexmaci64"' failed.
Error compiling mglEyelinkIsConnected.c
Error using mex (line 206)
Unable to complete successfully.
-- or --
mglEyelinkIsConnected.c:18:21: error: eyelink.h: No such file or directory
mglEyelinkIsConnected.c: In function 'mexFunction':
mglEyelinkIsConnected.c:26: error: 'INT16' undeclared (first use in this function)
mglEyelinkIsConnected.c:26: error: (Each undeclared identifier is reported only once
mglEyelinkIsConnected.c:26: error: for each function it appears in.)
mglEyelinkIsConnected.c:26: error: expected ';' before 'connectionStatus'
mglEyelinkIsConnected.c:29: error: 'connectionStatus' undeclared (first use in this function)
It probably means the compiler/linker cannot find the Framework properly. Make sure of the following:
- /Library/Frameworks has both edfapi.framework and eyelink_core.framwork (just ls the directory and check)
- Make sure that those two frameworks are properly installed. You should be able to ls the directory and get something like this
terranova:/Library/Frameworks> ls /Library/Frameworks/edfapi.framework/
Headers@ Resources@ Versions/ edfapi@
terranova:/Library/Frameworks> ls /Library/Frameworks/eyelink_core.framework/
Headers@ Resources@ Versions/ eyelink_core@
- Now make sure that the mexopts file you are using checks the correct directory. For example, if you are using mexopts.10.8.xcode.4.5 (found in the mgl/mgllib/mglEyelink directory) It should have the flag "-F/Library/Frameworks" in LDFLAGS.
- Finally, if that does not work and you cannot get the compiler to find the frameworks, go to the directory where the frameworks are being loaded from (which may be in the Developer SDK e.g. /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks or /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks) and put links to the two frameworks there
terranova:/Users/justin> cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks
terranova:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks> sudo ln -s /Library/Frameworks/eyelink_core.framework .
Password:
terranova:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks> sudo ln -s /Library/Frameworks/edfapi.framework .