calllib issue... library not found...
Mostra commenti meno recenti
For some reason I have an error that says "Error using calllib Library was not found" yet I know it is in the MATLAB generals file, I even added the path manually to ensure my files are going there and it still can not find it. I was hoping to have some help if someone knows what the issue is, they would let me know what is up. Thanks!
5 Commenti
Image Analyst
il 26 Gen 2014
Hard to say without seeing any code, don't you think? What if you specify the full file name with fullfile() before you call loadlibrary()?
Chris E.
il 27 Gen 2014
Walter Roberson
il 27 Gen 2014
You might have to compile the example first.
If you
cd(fullfile(matlabroot,'extern','examples','shrlib'))
then what does
ls
report as being present? And are you using 32 bit MATLAB or 64 bit MATLAB? With which operating system?
Chris E.
il 27 Gen 2014
Chris Bresee
il 5 Gen 2022
Modificato: Chris Bresee
il 5 Gen 2022
Just for future people who may have a similar problem: Try adding the directory to your Windows environment system variables, either directly or in matlab, with: setenv('LibraryName', 'c:\Your\Install\Path\Library')
Risposta accettata
Più risposte (3)
Image Analyst
il 27 Gen 2014
0 voti
Worked for me. Can you go here C:\Program Files\MATLAB\R2013a\extern\examples\shrlib and tell us what files you see? Change the version number if you need to, and change Program Files to Program Files (x86) if you have a 64 bit system but are running 32 bit MATLAB. You should see shrlibsample.mexw64, shrlibsample.c, and shrlibsample.h.
Chris Bresee
il 5 Gen 2022
Modificato: Chris Bresee
il 5 Gen 2022
0 voti
I had a similar problem. I was adding .dll and .lib files to my matlab path, but had forgotten to add them to my Windows path. Try: setenv('CEDS64ML', 'c:\Your\Install\Path\CEDS64ML');
parisa
il 19 Ott 2024
0 voti
Error using calllib
Library was not found
1 Commento
Image Analyst
il 21 Ott 2024
This is not an Answer. If you have any questions, then ask them, and attach your data and code to read it in with the paperclip icon after you read this:
Categorie
Scopri di più su Call C from MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!