Closed fthommen closed 4 years ago
Got this error when configuring FFMPEG today with Homebrew on macOS 10.11.6. I will try some stuff and keep this updated.
EDIT@ July 2nd:
https://gist.github.com/requeijaum/86f2d529bdc1ce56b3c00a82d1e1f474
Omitting "--with-librsvg" from the flags and using "--HEAD ffmpeg" got the build working.
@fthommen did you ever resolve this issue? I'm having the same problem!
The problem is that librsvg has many dependencies which you all need at include time. This is a bit unusual. So you must make sure that all these pc
files are on the PKG_CONFIG_PATH
.
For example in my machine:
# pkg-config --cflags librsvg-2.0
-I/usr/local/Cellar/libffi/3.3/include -I/usr/local/Cellar/librsvg/2.48.4/include/librsvg-2.0 -I/usr/local/Cellar/gdk-pixbuf/2.40.0/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/glib/2.64.2_1/include -I/usr/local/Cellar/cairo/1.16.0_3/include/cairo -I/usr/local/Cellar/glib/2.64.2_1/include -I/usr/local/Cellar/glib/2.64.2_1/include/glib-2.0 -I/usr/local/Cellar/glib/2.64.2_1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.44/include -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16
It's also apparent from the hardcoded windows cflags which libraries are needed:
I have slightly improved the configure script in rsvg 2.0, hopefully that helps.
Hi,
I am unable to install rsvg when librsvg-2.0 is installed in a non-standard location despite defining
$PKG_CONFIG_PATH
, because systemwide installed headerfiles are then not found:cairo.h
is present in/usr/include/cairo/
. Environment variables like$CFLAGS
or$PKG_CFLAGS
don't seem to be used by R.I also tried to install the package from a locally downloade version with
R CMD INSTALL
:When defining
INCLUDE_DIR
andLIB_DIR
on the commandline, then$PKG_CONFIG_PATH
is ignored:And when setting
INCLUDE_DIR
andLIB_DIR
for all pathes including librsvg-2.0, the situation doesn't change, even though it should:When trying the installation completely manually, the
./configure
step still fails:And running
./configure
in verbose mode (sh -x ./configure
) shows why::The problem seems to appear in lines 51, 52 and 53:
All these commands return a warning
WARNING: ignoring environment value of R_HOME
as first line, which is then assigned to the variables$CC
,$CFLAGS
,$CPPFLAGS
. Of course that cannot work.I'm not sure if the error in
./configure
is the one which triggers the failures when trying the installation fromR
or throughR CMD INSTALL
, though.R
is an installation installed from source. The system is openSuSE 13.1, x86_64.The questions are:
./configure
?Cheers frank