Closed FFFwarp closed 4 years ago
It looks like you are in the apps
directory: when the linker tries to create the file ospTutorial
it cannot, because ospTutorial
already exists (and it is a directory). The command line you use is from v1.8, better use the current v2.0 with the current command line
gcc -std=c99 ../apps/ospTutorial/ospTutorial.c -I ../ospray/include -L . -lospray -Wl,-rpath,. -o ospTutorial
(given paths assume you are in a build directory under the OSPRay root folder, and that OSPRay has already been compiled (which should also automatically compile the tutorial))
Please reopen if the problem still persists.
i'm new to rendering areas, i want to build this example. but when i run this command, there's an error. could you tell me how can i compile this file?
gcc -std=c99 ospTutorial/ospTutorial.c -I include -L . -lospray -Wl,-rpath,. -o ospTutorial
/usr/bin/ld: cannot open output file ospTutorial: Is a directory collect2: error: ld returned 1 exit status
Thanks a lot!!!!!!