我已经尝试在 11.10 上安装 openFrameworks 一段时间了。对于熟悉 openFrameworks 的人,install_dependencies.s
提供了一个名为 h 的脚本,它应该安装 openFrameworks 所需的所有依赖项。在将我的操作系统更新到 11.10 后运行该脚本时,它最终会停止,以下是它输出的最后几行:
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found
compiling object for ../../../openFrameworks/video/ofVideoPlayer.cpp
mkdir -p obj/Debug/openFrameworks/video
g++ -g3 -Wall -fexceptions -I../../../FreeImage/include -I../../../assimp/include - I../../../assimp/include/Compiler -I../../../cairo/include -I../../../cairo/include/libpng15 -I../../../cairo/include/pixman-1 -I../../../cairo/include/cairo -I../../../fmodex/include -I../../../freetype/include -I../../../freetype/include/freetype2 -I../../../freetype/include/freetype2/freetype -I../../../freetype/include/freetype2/freetype/config -I../../../freetype/include/freetype2/freetype/internal -I../../../freetype/include/freetype2/freetype/internal/services -I../../../glew/include -I../../../glew/include/GL -I../../../kiss/include -I../../../portaudio/include -I../../../rtAudio/include -I../../../tess2/include -I../../../poco/include -I../../../glu/include -I../../../openFrameworks/ -I../../../openFrameworks/events -I../../../openFrameworks/video -I../../../openFrameworks/3d -I../../../openFrameworks/sound -I../../../openFrameworks/utils -I../../../openFrameworks/types -I../../../openFrameworks/math -I../../../openFrameworks/communication -I../../../openFrameworks/app -I../../../openFrameworks/gl -I../../../openFrameworks/graphics -MMD -MP - MFobj/Debug/openFrameworks/video/ofVideoPlayer.d - MTobj/Debug/openFrameworks/video/ofVideoPlayer.d -o obj/Debug/openFrameworks/video/ofVideoPlayer.o -c ../../../openFrameworks/video/ofVideoPlayer.cpp
In file included from ../../../openFrameworks/video/ofGstVideoPlayer.h:3:0,
from ../../../openFrameworks/video/ofVideoPlayer.h:9,
from ../../../openFrameworks/video/ofVideoPlayer.cpp:1:
../../../openFrameworks/video/ofGstUtils.h:5:21: fatal error: gst/gst.h: No such file or directory
compilation terminated.
make: *** [obj/Debug/openFrameworks/video/ofVideoPlayer.o] Error 1
there has been a problem compiling Debug OF library
please report this problem in the forums
我已经安装了 gstreamer-0.10,并且尝试了遇到类似问题的人提供的所有方法,但我仍无法完成该脚本的运行。
有人有什么建议吗?
答案1
对于用户构建的 ubuntu 来说,OF 中的脚本有点缺陷,除非从根终端运行,否则不会运行前两行。
他们应该或者你可以编辑脚本并将 sudo 添加到前两行的开头,如下所示 -
sudo apt-get update
sudo apt-get install 'blah blah'
然后你就可以从普通用户终端提示符下运行
此外,虽然 libjack0/libjack-dev 或 libjack-jack2-0/libjack-jack2-dev 仍然可以使用,但他们/您应该将 dep 切换到更新的后者。