Error while testing Photoshop/MATLAB interface.

>> testall
Harness / mfile version: 11
Harness date: 21-Feb-2007
16-Feb-2025 15:55:06
Error using loadlibrary
Building psmatlab_thunk_pcwin64 failed. Compiler output is:
C:\ProgramData\MATLAB\SupportPackages\R2024b\3P.instrset\mingw_w64.instrset\bin\gcc -I"C:\Program
Files\MATLAB\R2024b\extern\include" -fexceptions -fno-omit-frame-pointer
-I"D:\Matlab\R2024b\work\Photoshop_MATLAB" -I"D:\Matlab\R2024b\work\Photoshop_MATLAB"
"psmatlab_thunk_pcwin64.c" -o "psmatlab_thunk_pcwin64.dll" -shared
Cannot create temporary file in C:\Users\bjbla\AppData\Local\Temp\: Permission denied
gcc: internal compiler error: Aborted signal terminated program collect2
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/mingw-w64> for instructions.
Error in psjavascriptu (line 22)
loadlibrary([libPath ['psmatlab' libExt]], [libPath 'psmatlab.h']);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in testall (line 43)
pslogit(['App name: ' psjavascriptu('app.name')], psdisplay, pslog, pslogfile);
^^^^^^^^^^^^^^^^^^^^^^^^^

10 Commenti

You need to figure out why C:\Users\bjbla\AppData\Local\Temp is not writable. That directory is the default temporary directory for Windows user bjbla and would normally be writable.
AppData is a hidden folder. When I try to make it visible, it disappears.
My Users folder has a red shied with a check mark on it.
>> testall
Harness / mfile version: 11
Harness date: 21-Feb-2007
16-Feb-2025 21:21:52
App name:
App version:
$ version:
MATLAB version: 24.2.0.2833386 (R2024b) Update 4
MATLAB date: December 26, 2024
MATLAB computer: PCWIN64
MATLAB integer maxsize: 281474976710655
MATLAB byte ordering: little endian
MATLAB java version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
env processor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
env OS: Windows_NT
Extra files:
Columns 1 through 6
{'pslogit.m'} {'pstestlog.log'} {'test1.m'} {'test10.m'} {'test11.m'} {'test12.m'}
Columns 7 through 12
{'test13.m'} {'test14.m'} {'test2.m'} {'test3.m'} {'test4.m'} {'test5.m'}
Columns 13 through 18
{'test6.m'} {'test7.m'} {'test8.m'} {'test9.m'} {'testall.m'} {'teststats.m'}
test1 : PASS
test2 : PASS
test3 : FAIL : Error: This statement is incomplete., line: 88
test4 : FAIL : no documents where found in : /MATLAB/Required/demos, line: 34
test5 : FAIL : Error: This statement is incomplete., line: 88
test6 : FAIL : count is off, line: 27
test7 : FAIL : Error: This statement is incomplete., line: 88
test8 : FAIL : Error: This statement is incomplete., line: 88
test9 : FAIL : Error: This statement is incomplete., line: 88
test10 : PASS
test11 : FAIL : Error: This statement is incomplete., line: 88
test12 : FAIL : Error: This statement is incomplete., line: 88
test13 : FAIL : Error: This statement is incomplete., line: 88
test14 : PASS
Times: 0.05699 1.7077 1.1315 0.014424 0.0075651 0.033903 0.0042175 0.0048283 0.0062342 0.0012999 0.006132 0.0044711 0.0046987 0.0002226
Total Time: 2.9842
Total Pass: 4, Total Fail: 10
The red shield possibly means the local files are not synch'ed with OneDrive cloud-saved version...break any link of that file to One Drive.
test3 : FAIL : Error: This statement is incomplete., line: 88
Well, there's a place to start...what is line 88????
Yes, that's the confusing thing. I checked some of the test#.m files and some don't even have a Line 88 and none I checked has anything that prints out__This statement is incomplete. Maybe we should see if Thomas Ruark at Adobe is still around, he wrote the mfiles I believe.
Thomas
Thomas il 20 Feb 2025
Modificato: Thomas il 20 Feb 2025
I don't have MW installed to verify unfortunately. Looks like you are having gcc compile and I have only tested with MS Visual Studio. Please install that and try again. There is a free version of visual studio.
  • In Windows, install Microsoft Visual Studio.
You could try creating this folder C:\Users\bjbla\AppData\Local\Temp\: Permission denied or try running that command at the DOS prompt to see if you can figure out why your gcc is not working correctly.

Accedi per commentare.

Risposte (0)

Categorie

Prodotti

Release

R2024b

Tag

Richiesto:

il 17 Feb 2025

Modificato:

il 20 Feb 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by