在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
即使经过similar post here我也找不到
libswscale
目录或swscale.h
。根据here的另一篇文章,有人提到在Ubuntu上,问题在于
ffmpeg
软件包未安装swscale.h
。我该如何解决?
最佳答案
安装libswscale-dev软件包。它提供了/usr/include/*/libswscale/swscale.h
。
关于c++ - libswscale/swscale.h:没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/54770616/