缺少 SDL 库

缺少 SDL 库
~/vidmodel/wvsn-model-omnetpp-v4/geometry/Triangle.o ~/vidmodel/wvsn-model-omnetpp-v4/geometry/Polygon.o ~/vidmodel/wvsn-model-omnetpp-v4/geometry/triangulation.o -Wl,--no-as-needed -Wl,--whole-archive -lSDL -lpng -ljpeg -lz -lSDL_image -Wl,--no-whole-archive -L"/home/sreeram/omnetpp-4.2.2/lib/gcc" -L"/home/sreeram/omnetpp-4.2.2/lib" -loppmain -u _cmdenv_lib -Wl,--no-as-needed -loppcmdenv -loppenvir -loppsim -ldl -lstdc++ 
 /usr/bin/ld: 

cannot find -lSDL
/usr/bin/ld: 

cannot find -lpng
/usr/bin/ld: cannot find -ljpeg
/usr/bin/ld: cannot find -lSDL_image
collect2: ld returned 1 exit 

谁能帮帮我吗

答案1

您需要安装开发文件。这些文件通常称为 libfoo-dev,例如 libjpeg8-dev 或 libsdl2-dev。

请参阅此帖子以了解更多信息:http://who-t.blogspot.com/2014/05/configure-fails-with-no-package-foo.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Who-t+%28Who-T%29

相关内容