Closed cerberuscl closed 2 months ago
Hi @cerberuscl,
you need a Linux desktop environment with X11 to run with INTERACTIVR_GRAPHICS
. The make.sh
compile script does not detect a monitor on your system, so it compiles without linking the X11 library, and then compiling fails if you have INTERACTIVR_GRAPHICS
enabled. If you have only a command line interface available, use INTERACTIVR_GRAPHICS_ASCII
or only CLI interface and render images to hard drive with enabling the GRAPHICS
module.
Kind regards, Moritz
get this error:
λ ~/FluidX3D/ master ./make.sh Info: Detected Operating System: Linux Info: Compiling with 16 CPU cores. g++ temp/.o -o bin/FluidX3D -std=c++17 -pthread -O -Wno-comment -I./src/OpenCL/include -L./src/OpenCL/lib -lOpenCL /sbin/ld: temp/graphics.o: in function
key_linux(int)': graphics.cpp:(.text+0x2767): undefined reference to
XkbKeycodeToKeysym' /sbin/ld: temp/graphics.o: in functionupdate_frame(double)': graphics.cpp:(.text+0x29e7): undefined reference to
XLockDisplay' /sbin/ld: graphics.cpp:(.text+0x2a26): undefined reference toXPutImage' /sbin/ld: graphics.cpp:(.text+0x2a4a): undefined reference to
XUnlockDisplay' /sbin/ld: graphics.cpp:(.text+0x2a8d): undefined reference toXWarpPointer' /sbin/ld: temp/graphics.o: in function
hide_cursor()': graphics.cpp:(.text+0x2ae0): undefined reference toXCreateBitmapFromData' /sbin/ld: graphics.cpp:(.text+0x2b1c): undefined reference to
XCreatePixmapCursor' /sbin/ld: graphics.cpp:(.text+0x2b39): undefined reference toXDefineCursor' /sbin/ld: graphics.cpp:(.text+0x2b48): undefined reference to
XFreeCursor' /sbin/ld: graphics.cpp:(.text+0x2b57): undefined reference toXFreePixmap' /sbin/ld: temp/graphics.o: in function
show_cursor()': graphics.cpp:(.text+0x2b85): undefined reference toXCreateFontCursor' /sbin/ld: graphics.cpp:(.text+0x2b9e): undefined reference to
XDefineCursor' /sbin/ld: graphics.cpp:(.text+0x2bad): undefined reference toXFreeCursor' /sbin/ld: temp/graphics.o: in function
input_detection()': graphics.cpp:(.text+0x3af5): undefined reference toXNextEvent' /sbin/ld: graphics.cpp:(.text+0x3cf3): undefined reference to
XWarpPointer' /sbin/ld: graphics.cpp:(.text+0x3da1): undefined reference toXWarpPointer' /sbin/ld: temp/graphics.o: in function
main': graphics.cpp:(.text+0x3f3d): undefined reference toXInitThreads' /sbin/ld: graphics.cpp:(.text+0x3f47): undefined reference to
XOpenDisplay' /sbin/ld: graphics.cpp:(.text+0x3f78): undefined reference toXRRGetScreenResources' /sbin/ld: graphics.cpp:(.text+0x3f8a): undefined reference to
XRRGetOutputPrimary' /sbin/ld: graphics.cpp:(.text+0x3f9c): undefined reference toXRRGetOutputInfo' /sbin/ld: graphics.cpp:(.text+0x3fb9): undefined reference to
XRRGetCrtcInfo' /sbin/ld: graphics.cpp:(.text+0x3fcb): undefined reference toXRRGetScreenInfo' /sbin/ld: graphics.cpp:(.text+0x3fec): undefined reference to
XRRConfigCurrentRate' /sbin/ld: graphics.cpp:(.text+0x3ffd): undefined reference toXRRFreeScreenConfigInfo' /sbin/ld: graphics.cpp:(.text+0x4005): undefined reference to
XRRFreeCrtcInfo' /sbin/ld: graphics.cpp:(.text+0x400f): undefined reference toXRRFreeOutputInfo' /sbin/ld: graphics.cpp:(.text+0x4019): undefined reference to
XRRFreeScreenResources' /sbin/ld: graphics.cpp:(.text+0x448a): undefined reference toXCreateWindow' /sbin/ld: graphics.cpp:(.text+0x44fe): undefined reference to
XSetNormalHints' /sbin/ld: graphics.cpp:(.text+0x4552): undefined reference toXInternAtom' /sbin/ld: graphics.cpp:(.text+0x4582): undefined reference to
XChangeProperty' /sbin/ld: graphics.cpp:(.text+0x45a0): undefined reference toXStoreName' /sbin/ld: graphics.cpp:(.text+0x45b3): undefined reference to
XMapRaised' /sbin/ld: graphics.cpp:(.text+0x45d0): undefined reference toXCreateGC' /sbin/ld: graphics.cpp:(.text+0x4615): undefined reference to
XCreateImage' /sbin/ld: graphics.cpp:(.text+0x4638): undefined reference toXSelectInput' /sbin/ld: graphics.cpp:(.text+0x468e): undefined reference to
XWarpPointer' /sbin/ld: graphics.cpp:(.text+0x486f): undefined reference toXFreeGC' /sbin/ld: graphics.cpp:(.text+0x4897): undefined reference to
XDestroyWindow' /sbin/ld: graphics.cpp:(.text+0x48a3): undefined reference to `XCloseDisplay' collect2: error: ld returned 1 exit status make: *** [makefile:25: bin/FluidX3D] Error 1the benchmark run good , ascii graphics is working