在Ubuntu 16.04上安装Sumo-0.30.0时,“ make”导致以下错误。
make[4]: Entering directory '/home/<path>/sumo-0.30.0/src/gui'
g++ -DHAVE_CONFIG_H -I. -I../../src -I/home/<path>/sumo-0.30.0/./src -I/usr/include/ffmpeg -I/usr/local/include -I/usr/include/fox-1.6 -I/usr/include/gdal -I/usr/local/include -I/usr/include -msse2 -mfpmath=sse -O2 -DNDEBUG -MT GUIViewTraffic.o -MD -MP -MF .deps/GUIViewTraffic.Tpo -c -o GUIViewTraffic.o GUIViewTraffic.cpp
In file included from GUIViewTraffic.cpp:36:0:
../../src/utils/gui/div/GUIVideoEncoder.h:58:32: fatal error: libswscale/swscale.h: No such file or directory
compilation terminated.
Makefile:449: recipe for target 'GUIViewTraffic.o' failed
已经安装了Installing/Linux Build Libraries中提到的所有必备库,并验证了我的ffmpeg版本是最新的,我从installation guide使用./configure命令进行了成功。 ./configure结果的最后几行显示已启用ffmpeg。
Optional features summary
-------------------------
Enabled: TRACI PROJ GDAL GUI ffmpeg
Disabled: Debug Profiling Coverage PIC UnitTests Python OSG
,我也无法找到libswscale目录或swscale.h。
根据另一篇here的帖子,有人提到在Ubuntu上,问题是ffmpeg软件包未安装swscale.h。
我该如何解决?