You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I wanted to try your project you wrote about on dev.to but I'm unfortunately unable to compile link on ArchLinux:
[ 14%] Building C object CMakeFiles/oclbhgs.dir/main.c.o
[ 28%] Building C object CMakeFiles/oclbhgs.dir/sources/logics/galaxy.c.o
[ 42%] Building C object CMakeFiles/oclbhgs.dir/sources/logics/body.c.o
[ 57%] Building C object CMakeFiles/oclbhgs.dir/sources/logics/cell.c.o
[ 71%] Building C object CMakeFiles/oclbhgs.dir/sources/logics/ocl.c.o
/home/terence/oclbhgs/sources/logics/ocl.c: In function ‘ocl_init’:
/home/terence/oclbhgs/sources/logics/ocl.c:92:5: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations]
92 | ocl->queue = clCreateCommandQueue(ocl->ctx, ocl->device, 0, &ocl->err);
| ^~~
In file included from /home/terence/oclbhgs/sources/logics/../headers/../kernel_headers/ocl.h:14,
from /home/terence/oclbhgs/sources/logics/../headers/ocl.h:8,
from /home/terence/oclbhgs/sources/logics/ocl.c:18:
/usr/include/CL/cl.h:1443:1: note: declared here
1443 | clCreateCommandQueue(cl_context /* context */,
| ^~~~~~~~~~~~~~~~~~~~
/home/terence/oclbhgs/sources/logics/ocl.c:124:66: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
124 | if (fread(source_code, source_file_size, 1, source_file) < 0) {
| ^
[ 85%] Building C object CMakeFiles/oclbhgs.dir/sources/logics/ogl.c.o
[100%] Linking C executable oclbhgs
/usr/bin/ld: CMakeFiles/oclbhgs.dir/sources/logics/ogl.c.o: undefined reference to symbol 'glLoadIdentity'
/usr/bin/ld: /usr/lib/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/oclbhgs.dir/build.make:183: oclbhgs] Error 1
make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/oclbhgs.dir/all] Error 2
make: *** [Makefile:104: all] Error 2
Hi, I will try to get some time to make the compilation work and find the exact version I used back then. Sorry, should have made the installation guide more detailed :( I have a lot of work right now, I’ll comment back here once I manage to do it
Hey, I wanted to try your project you wrote about on dev.to but I'm unfortunately unable to
compilelink on ArchLinux:I'm on gcc 10.1 and with https://www.archlinux.org/packages/extra/x86_64/freeglut/ for GLUT.
The text was updated successfully, but these errors were encountered: