makefile:187:目标“glvis”的配方失败

makefile:187:目标“glvis”的配方失败
root@hyunsoo-VirtualBox:/home/hyunsoo/Downloads/glvis-3.4# make MFEM_DIR=../mfem-3.4 -j 4

g++ -O3 -I../mfem-3.4 -DGLVIS_MULTISAMPLE=4 -DGLVIS_MS_LINEWIDTH=1.4 -I/usr/include -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE -I/usr/include/freetype2 -o glvis glvis.cpp -Llib -lglvis -L../mfem-3.4 -lmfem -lrt -L -lX11 -lGL -lGLU -lpng -lfreetype -lfontconfig -lpthread

/usr/bin/ld: lib/libglvis.a(aux_vis.o): undefined reference to symbol 'XGetWindowAttributes'

//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

makefile:187: recipe for target 'glvis' failed

make: *** [glvis] Error 1

如何解决这个问题?我该怎么做才能解决错误(“目标‘glvis’的配方失败”)?

相关内容