LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fontconfig was not found, but it is installed. (https://www.linuxquestions.org/questions/linux-software-2/fontconfig-was-not-found-but-it-is-installed-4175615911/)

sdowney717 10-18-2017 11:03 AM

fontconfig was not found, but it is installed.
 
How can I adjust the path?
I want to compile vdr 2.2
http://tvdr.de/download.htm

Code:

scott@scott-MS-7596:~/Downloads/vdr-2.2.0$ make
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found

font.c:19:10: error: #include expects "FILENAME" or <FILENAME>
 #include FT_FREETYPE_H
          ^~~~~~~~~~~~~
make: *** Deleting file '.dependencies'
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DREMOTE_KBD -DLIRC_DEVICE=\"/var/run/lirc/lircd\" -DVIDEODIR=\"/srv/vdr/video\" -DCONFDIR=\"/var/lib/vdr\" -DARGSDIR=\"/etc/vdr/conf.d\" -DCACHEDIR=\"/var/cache/vdr\" -DRESDIR=\"/usr/local/share/vdr\" -DPLUGINDIR=\"/usr/local/lib/vdr\" -DLOCDIR=\"/usr/local/share/locale\"  -o dvbdevice.o dvbdevice.c
dvbdevice.c: In member function ‘bool cDvbTuner::SetFrontend()’:
dvbdevice.c:848:31: error: call of overloaded ‘abs(unsigned int&)’ is ambiguous
      frequency = abs(frequency); // Allow for C-band, where the frequency is less than the LOF
                              ^
In file included from /usr/include/c++/7/cstdlib:75:0,
                from /usr/include/c++/7/stdlib.h:36,
                from config.h:15,
                from channels.h:13,
                from device.h:13,
                from dvbdevice.h:15,
                from dvbdevice.c:10:
/usr/include/stdlib.h:722:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^~~
In file included from /usr/include/c++/7/cstdlib:77:0,
                from /usr/include/c++/7/stdlib.h:36,
                from config.h:15,
                from channels.h:13,
                from device.h:13,
                from dvbdevice.h:15,
                from dvbdevice.c:10:
/usr/include/c++/7/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
  abs(long __i) { return __builtin_labs(__i); }
  ^~~
/usr/include/c++/7/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
  abs(long long __x) { return __builtin_llabs (__x); }
  ^~~
/usr/include/c++/7/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
  abs(double __x)
  ^~~
/usr/include/c++/7/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
  abs(float __x)
  ^~~
/usr/include/c++/7/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
  abs(long double __x)
  ^~~
/usr/include/c++/7/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
  abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
  ^~~
/usr/include/c++/7/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
  abs(__float128 __x)
  ^~~
Makefile:124: recipe for target 'dvbdevice.o' failed
make: *** [dvbdevice.o] Error 1
scott@scott-MS-7596:~/Downloads/vdr-2.2.0$


Code:

scott@scott-MS-7596:~/Downloads/vdr-2.2.0$ sudo apt install fontconfig
Reading package lists... Done
Building dependency tree     
Reading state information... Done
fontconfig is already the newest version (2.11.94-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
scott@scott-MS-7596:~/Downloads/vdr-2.2.0$

Well, I got fontconfig properly installed, but still wont compile.
https://www.linuxquestions.org/quest...fig-pc-235424/

Code:

scott@scott-MS-7596:~/Downloads/vdr-2.2.0$ make
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DREMOTE_KBD -DLIRC_DEVICE=\"/var/run/lirc/lircd\" -DVIDEODIR=\"/srv/vdr/video\" -DCONFDIR=\"/var/lib/vdr\" -DARGSDIR=\"/etc/vdr/conf.d\" -DCACHEDIR=\"/var/cache/vdr\" -DRESDIR=\"/usr/local/share/vdr\" -DPLUGINDIR=\"/usr/local/lib/vdr\" -DLOCDIR=\"/usr/local/share/locale\" -I/usr/include/freetype2  -o dvbdevice.o dvbdevice.c
dvbdevice.c: In member function ‘bool cDvbTuner::SetFrontend()’:
dvbdevice.c:848:31: error: call of overloaded ‘abs(unsigned int&)’ is ambiguous
      frequency = abs(frequency); // Allow for C-band, where the frequency is less than the LOF
                              ^
In file included from /usr/include/c++/7/cstdlib:75:0,
                from /usr/include/c++/7/stdlib.h:36,
                from config.h:15,
                from channels.h:13,
                from device.h:13,
                from dvbdevice.h:15,
                from dvbdevice.c:10:
/usr/include/stdlib.h:722:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^~~
In file included from /usr/include/c++/7/cstdlib:77:0,
                from /usr/include/c++/7/stdlib.h:36,
                from config.h:15,
                from channels.h:13,
                from device.h:13,
                from dvbdevice.h:15,
                from dvbdevice.c:10:
/usr/include/c++/7/bits/std_abs.h:56:3: note: candidate: long int std::abs(long int)
  abs(long __i) { return __builtin_labs(__i); }
  ^~~
/usr/include/c++/7/bits/std_abs.h:61:3: note: candidate: long long int std::abs(long long int)
  abs(long long __x) { return __builtin_llabs (__x); }
  ^~~
/usr/include/c++/7/bits/std_abs.h:70:3: note: candidate: constexpr double std::abs(double)
  abs(double __x)
  ^~~
/usr/include/c++/7/bits/std_abs.h:74:3: note: candidate: constexpr float std::abs(float)
  abs(float __x)
  ^~~
/usr/include/c++/7/bits/std_abs.h:78:3: note: candidate: constexpr long double std::abs(long double)
  abs(long double __x)
  ^~~
/usr/include/c++/7/bits/std_abs.h:84:3: note: candidate: constexpr __int128 std::abs(__int128)
  abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
  ^~~
/usr/include/c++/7/bits/std_abs.h:102:3: note: candidate: constexpr __float128 std::abs(__float128)
  abs(__float128 __x)
  ^~~
Makefile:124: recipe for target 'dvbdevice.o' failed
make: *** [dvbdevice.o] Error 1
scott@scott-MS-7596:~/Downloads/vdr-2.2.0$


sdowney717 10-18-2017 11:56 AM

I found a ppa, but after I installed VDR, it locked all ATSC pci cards to itself, I suppose, so kaffeine now says no devices found.
So I dont have a clue what to do now.
I tried uninstalling everything I installed, and powered off but still no joy with kaffeine, which had been working ok.

unless someone has an idea, I am going to have to reinstall the OS.

I followed these instructions
http://kodi.wiki/view/VDR/Installation#Installation

ok, somehow doing all those installs modified the kaffeine config file to nothing for the source parameter. It is supposed to be US ATSC CENTER FREQUENCIES 8VSB, and it became set to nothing!

Got another issue with sudo, have to run this
xhost +si:localuser:root


All times are GMT -5. The time now is 09:45 PM.