error compil vnsi3
#1
Hi Fernetmenta,

You will think that i'm quite a pityful user, but i need again your help to compil vdr-vnsiserver3.
i gitclone opdenkamp repository, checkout frodo, but i xcant compil vdr-vnsiserver3 :

Code:
make VDRDIR=/usr/include/vdr/ LIBVDR=/usr/lib/vdr/plugins/
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver3"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o demuxer.o demuxer.c
demuxer.c:28:22: erreur fatale: libsi/si.h : Aucun fichier ou dossier de ce type
#include <libsi/si.h>
                      ^
compilation terminée.

Code:
ls /usr/include/vdr/
audio.h       device.h     dvbsubtitle.h  headers.h    mainmenuitemsprovider.h  nit.h      receiver.h    sdt.h          skinlcars.h     status.h  transfer.h
channels.h    diseqc.h     eit.h          i18n.h       Make.config              osdbase.h  recorder.h    section.h      skins.h         svdrp.h   util.h
ci.h          dvbci.h      eitscan.h      interface.h  Make.global              osd.h      recording.h   sections.h     skinsttng.h     themes.h  vdr.pc
config.h      dvbdevice.h  epg.h          keys.h       menu.h                   pat.h      remote.h      shutdown.h     sourceparams.h  thread.h  vdrttxtsubshooks.h
cutter.h      dvbplayer.h  filter.h       libsi        menuitems.h              player.h   remux.h       si.h           sources.h       timers.h  videodir.h
descriptor.h  dvbspu.h     font.h         lirc.h       menuorgpatch.h           plugin.h   ringbuffer.h  skinclassic.h  spu.h           tools.h
[root@BIBI_SERVER vdr-plugin-vnsiserver]# ls /usr/include/vdr/li
libsi/  lirc.h  
[root@BIBI_SERVER vdr-plugin-vnsiserver]# ls /usr/include/vdr/libsi/
descriptor.h  headers.h  section.h  si.h  util.h
[root@BIBI_SERVER vdr-plugin-vnsiserver]#
Reply
#2
what is your version of vdr?
Reply
#3
2.0.2-2. I use archlinux.
Reply
#4
just type make and omit VDRDIR: http://forum.xbmc.org/showthread.php?tid...pid1261658
Reply
#5
Code:
make
Package vdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdr' found
Failed to open '../../../vdr.pc': No such file or directory
No package '../../../vdr.pc' found
grep: /config.h: Aucun fichier ou dossier de ce type
Package vdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdr' found
Failed to open '../../../vdr.pc': No such file or directory
No package '../../../vdr.pc' found
Package vdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdr' found
Failed to open '../../../vdr.pc': No such file or directory
No package '../../../vdr.pc' found
Package vdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdr' found
Failed to open '../../../vdr.pc': No such file or directory
No package '../../../vdr.pc' found
Package vdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdr' found
Failed to open '../../../vdr.pc': No such file or directory
No package '../../../vdr.pc' found
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver3"' -DVNSI_SERVER_VERSION='"0.9.1"' -I/include -o demuxer.o demuxer.c
Package vdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdr' found
Failed to open '../../../vdr.pc': No such file or directory
No package '../../../vdr.pc' found
Package vdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdr' found
Failed to open '../../../vdr.pc': No such file or directory
No package '../../../vdr.pc' found
demuxer.c:28:22: erreur fatale: libsi/si.h : Aucun fichier ou dossier de ce type
#include <libsi/si.h>
                      ^
compilation terminée.

So i did :

Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/include/vdr
[root@BIBI_SERVER vdr-plugin-vnsiserver]# make
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver3"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o demuxer.o demuxer.c
demuxer.c:28:22: erreur fatale: libsi/si.h : Aucun fichier ou dossier de ce type
#include <libsi/si.h>
                      ^
compilation terminée.
make: *** [demuxer.o] Erreur 1
Reply
#6
I copied all files and directory from /usr/include/vdr to vdr-plugin-vnsiserver.
This solved the libsi/si.h error, but now i get this :

Code:
make
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver3"' -DVNSI_SERVER_VERSION='"0.9.1"'  -o vnsi.o vnsi.c
vnsi.c: In member function ‘virtual bool cPluginVNSIServer::ProcessArgs(int, char**)’:
vnsi.c:58:40: erreur: ‘VNSIServerConfig’ was not declared in this scope
           case 't': if(optarg != NULL) VNSIServerConfig.stream_timeout = atoi(optarg);
                                        ^
vnsi.c: In member function ‘virtual bool cPluginVNSIServer::Initialize()’:
vnsi.c:69:3: erreur: ‘VNSIServerConfig’ was not declared in this scope
   VNSIServerConfig.ConfigDirectory = ConfigDirectory(PLUGIN_NAME_I18N);
   ^
vnsi.c: In member function ‘virtual bool cPluginVNSIServer::Start()’:
vnsi.c:75:28: erreur: ‘VNSIServerConfig’ was not declared in this scope
   Server = new cVNSIServer(VNSIServerConfig.listen_port);
                            ^
make: *** [vnsi.o] Erreur 1
Reply
#7
please post your vdr.pc
Reply
#8
On a correct vdr installation the libsi folder is not in the vdr folder:

Code:
xbmc@xbmc:~/progs/src/vdr-2.0.0$ ls -la /usr/local/include/
total 16
drwxr-xr-x  4 root root 4096 Apr  2 07:50 .
drwxr-xr-x 10 root root 4096 Oct 17  2012 ..
drwxrwxr-x  2 xbmc xbmc 4096 Aug 13 14:56 libsi
drwxrwxr-x  2 xbmc xbmc 4096 Aug 13 14:56 vdr
xbmc@xbmc:~/progs/src/vdr-2.0.0$
Reply
#9
Ok.
So i copied /usr/include/vdr/libsi in /usr/include.

My vdr;pc :
Code:
bindir=/usr/bin
mandir=/usr/share/man
configdir=/var/lib/vdr
videodir=/var/lib/video
cachedir=/var/cache/vdr
resdir=/usr/share/vdr
libdir=/usr/lib/vdr/plugins
locdir=/usr/share/locale
plgcfg=
apiversion=2.0.0
cflags=-g -O3 -Wall -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
cxxflags=-g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE

Name: VDR
Description: Video Disk Recorder
URL: http://www.tvdr.de/
Version: 2.0.1
Cflags: ${cflags}

Now i get this error Tongue :
Code:
make
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -shared vnsi.o bitstream.o vnsiclient.o config.o cxsocket.o parser.o parser_AAC.o parser_AC3.o parser_DTS.o parser_h264.o parser_MPEGAudio.o parser_MPEGVideo.o parser_Subtitle.o parser_Teletext.o streamer.o recplayer.o requestpacket.o responsepacket.o vnsiserver.o hash.o recordingscache.o setup.o vnsiosd.o demuxer.o videobuffer.o videoinput.o -o libvdr-vnsiserver3.so
/usr/bin/ld: vnsi.o: réadressage de R_X86_64_32S en vertu de « _ZTV17cPluginVNSIServer » ne peut être utilisé lors de la création d'un objet partagé; recompilez avec -fPIC
vnsi.o: ne peut lire les symboles: Mauvaise valeur
collect2: erreur: ld a retourné 1 code d'état d'exécution
make: *** [libvdr-vnsiserver3.so] Erreur 1

I'm cursed...
Reply
#10
do:
make clean
make

then post output
Reply
#11
It worked !

LaughLaugh
Reply

Logout Mark Read Team Forum Stats Members Help
error compil vnsi30