Barracuda09 / SATPI

SATIP server for linux, suitable to run on an Raspberry Pi, Vu+, GigaBlue or any other linux box. currently supporting DVB-S/S2/T/C and transform DVB-S requests to DVB-C
http://barracuda09.github.io/SATPI
GNU General Public License v2.0
154 stars 32 forks source link

make LIBDVBCSA=yes on main Branch failed (getFrontendDecryptInterface(FeID)) #148

Closed SaulGoodman1337 closed 2 years ago

SaulGoodman1337 commented 2 years ago
g++ -c  -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS src/Version.cpp -o obj/Version.o
g++ obj/Version.o obj/InterfaceAttr.o obj/HeaderVector.o obj/HttpServer.o obj/HttpcServer.o obj/Log.o obj/Properties.o obj/RtspServer.o obj/main.o obj/Satpi.o obj/Stream.o obj/StreamClient.o obj/StreamManager.o obj/StringConverter.o obj/TransportParamVector.o obj/Utils.o obj/base/M3UParser.o obj/base/Thread.o obj/base/ThreadBase.o obj/base/TimeCounter.o obj/base/XMLSaveSupport.o obj/base/XMLSupport.o obj/input/DeviceData.o obj/input/Transformation.o obj/input/dvb/Frontend.o obj/input/dvb/FrontendData.o obj/input/dvb/delivery/DiSEqc.o obj/input/dvb/delivery/DiSEqcEN50494.o obj/input/dvb/delivery/DiSEqcEN50607.o obj/input/dvb/delivery/DiSEqcLnb.o obj/input/dvb/delivery/DiSEqcSwitch.o obj/input/dvb/delivery/DVBC.o obj/input/dvb/delivery/DVBS.o obj/input/dvb/delivery/DVBT.o obj/input/dvb/delivery/Lnb.o obj/input/file/TSReader.o obj/input/file/TSReaderData.o obj/input/childpipe/TSReader.o obj/input/childpipe/TSReaderData.o obj/input/stream/Streamer.o obj/input/stream/StreamerData.o obj/mpegts/Filter.o obj/mpegts/PacketBuffer.o obj/mpegts/PAT.o obj/mpegts/PCR.o obj/mpegts/PidTable.o obj/mpegts/PMT.o obj/mpegts/SDT.o obj/mpegts/TableData.o obj/output/StreamThreadBase.o obj/output/StreamThreadHttp.o obj/output/StreamThreadRtcpBase.o obj/output/StreamThreadRtcp.o obj/output/StreamThreadRtcpTcp.o obj/output/StreamThreadRtp.o obj/output/StreamThreadRtpTcp.o obj/output/StreamThreadTSWriter.o obj/socket/HttpcSocket.o obj/socket/TcpSocket.o obj/socket/SocketAttr.o obj/socket/UdpSocket.o obj/upnp/ssdp/Server.o obj/decrypt/dvbapi/Client.o obj/decrypt/dvbapi/ClientProperties.o obj/decrypt/dvbapi/Keys.o obj/input/dvb/Frontend_DecryptInterface.o -o satpi  -pthread -lrt -ldvbcsa
/usr/bin/ld: obj/decrypt/dvbapi/Client.o: in function `decrypt::dvbapi::Client::decrypt(FeID, mpegts::PacketBuffer&)':
/home/astra/satpi/src/decrypt/dvbapi/Client.cpp:97: undefined reference to `StreamManager::getFrontendDecryptInterface(FeID)'
/usr/bin/ld: obj/decrypt/dvbapi/Client.o: in function `decrypt::dvbapi::Client::stopDecrypt(FeID)':
/home/astra/satpi/src/decrypt/dvbapi/Client.cpp:211: undefined reference to `StreamManager::getFrontendDecryptInterface(FeID)'
/usr/bin/ld: obj/decrypt/dvbapi/Client.o: in function `decrypt::dvbapi::Client::threadEntry()':
/home/astra/satpi/src/decrypt/dvbapi/Client.cpp:468: undefined reference to `StreamManager::getFrontendDecryptInterface(FeID)'
/usr/bin/ld: /home/astra/satpi/src/decrypt/dvbapi/Client.cpp:481: undefined reference to `StreamManager::getFrontendDecryptInterface(FeID)'
/usr/bin/ld: /home/astra/satpi/src/decrypt/dvbapi/Client.cpp:496: undefined reference to `StreamManager::getFrontendDecryptInterface(FeID)'
/usr/bin/ld: obj/decrypt/dvbapi/Client.o:/home/astra/satpi/src/decrypt/dvbapi/Client.cpp:535: more undefined references to `StreamManager::getFrontendDecryptInterface(FeID)' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:197: satpi] Error 1

Building Main Branch with LIBDVBCSA=yes. maybe releated to #145 ?

Barracuda09 commented 2 years ago

Hi @SaulGoodman1337

I have to check this, I most of the time build it with LIBDVBCSA=yes and see no build issues

SaulGoodman1337 commented 2 years ago

with commit-id 70bffd9255a0d1a152fe0583e194fe40e416033d compiling is working.with latest commit it does not work.

and allow me offtopic, can you explain how to build for my gigablue? i don't quite understand cross compiling yet. what do i have to do here ?

Barracuda09 commented 2 years ago

You can download comiler from and unpack it in ~/vu/opt/ https://github.com/Broadcom/stbgcc-8.3/releases

then run: source envARM.sh for ARM cpu make

See: https://github.com/Barracuda09/SATPI/wiki/Build-SatPI

SaulGoodman1337 commented 2 years ago

thanks! its working with ENIGMA=yes. but with libdvbcsa i get following error:

Clearing project...
...Done
root@astra:/home/astra/satpi# make LIBDVBCSA=yes ENIGMA=yes
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/Version.cpp -o obj/Version.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/InterfaceAttr.cpp -o obj/InterfaceAttr.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/HttpServer.cpp -o obj/HttpServer.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/HttpcServer.cpp -o obj/HttpcServer.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/Log.cpp -o obj/Log.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/Properties.cpp -o obj/Properties.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/RtspServer.cpp -o obj/RtspServer.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/main.cpp -o obj/main.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/Satpi.cpp -o obj/Satpi.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/Stream.cpp -o obj/Stream.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/StreamClient.cpp -o obj/StreamClient.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/StreamManager.cpp -o obj/StreamManager.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/StringConverter.cpp -o obj/StringConverter.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/Utils.cpp -o obj/Utils.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/base/M3UParser.cpp -o obj/base/M3UParser.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/base/Thread.cpp -o obj/base/Thread.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/base/ThreadBase.cpp -o obj/base/ThreadBase.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/base/TimeCounter.cpp -o obj/base/TimeCounter.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/base/XMLSaveSupport.cpp -o obj/base/XMLSaveSupport.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/base/XMLSupport.cpp -o obj/base/XMLSupport.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/DeviceData.cpp -o obj/input/DeviceData.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/Transformation.cpp -o obj/input/Transformation.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/Frontend.cpp -o obj/input/dvb/Frontend.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/FrontendData.cpp -o obj/input/dvb/FrontendData.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DiSEqc.cpp -o obj/input/dvb/delivery/DiSEqc.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DiSEqcEN50494.cpp -o obj/input/dvb/delivery/DiSEqcEN50494.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DiSEqcEN50607.cpp -o obj/input/dvb/delivery/DiSEqcEN50607.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DiSEqcLnb.cpp -o obj/input/dvb/delivery/DiSEqcLnb.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DiSEqcSwitch.cpp -o obj/input/dvb/delivery/DiSEqcSwitch.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DVBC.cpp -o obj/input/dvb/delivery/DVBC.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DVBS.cpp -o obj/input/dvb/delivery/DVBS.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/DVBT.cpp -o obj/input/dvb/delivery/DVBT.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/dvb/delivery/Lnb.cpp -o obj/input/dvb/delivery/Lnb.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/file/TSReader.cpp -o obj/input/file/TSReader.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/file/TSReaderData.cpp -o obj/input/file/TSReaderData.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/childpipe/TSReader.cpp -o obj/input/childpipe/TSReader.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/childpipe/TSReaderData.cpp -o obj/input/childpipe/TSReaderData.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/stream/Streamer.cpp -o obj/input/stream/Streamer.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/input/stream/StreamerData.cpp -o obj/input/stream/StreamerData.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/Filter.cpp -o obj/mpegts/Filter.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/PacketBuffer.cpp -o obj/mpegts/PacketBuffer.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/PAT.cpp -o obj/mpegts/PAT.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/PCR.cpp -o obj/mpegts/PCR.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/PidTable.cpp -o obj/mpegts/PidTable.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/PMT.cpp -o obj/mpegts/PMT.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/SDT.cpp -o obj/mpegts/SDT.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/mpegts/TableData.cpp -o obj/mpegts/TableData.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadBase.cpp -o obj/output/StreamThreadBase.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadHttp.cpp -o obj/output/StreamThreadHttp.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadRtcpBase.cpp -o obj/output/StreamThreadRtcpBase.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadRtcp.cpp -o obj/output/StreamThreadRtcp.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadRtcpTcp.cpp -o obj/output/StreamThreadRtcpTcp.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadRtp.cpp -o obj/output/StreamThreadRtp.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadRtpTcp.cpp -o obj/output/StreamThreadRtpTcp.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/output/StreamThreadTSWriter.cpp -o obj/output/StreamThreadTSWriter.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/socket/HttpcSocket.cpp -o obj/socket/HttpcSocket.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/socket/TcpSocket.cpp -o obj/socket/TcpSocket.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/socket/SocketAttr.cpp -o obj/socket/SocketAttr.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/socket/UdpSocket.cpp -o obj/socket/UdpSocket.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/upnp/ssdp/Server.cpp -o obj/upnp/ssdp/Server.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/decrypt/dvbapi/Client.cpp -o obj/decrypt/dvbapi/Client.o
src/decrypt/dvbapi/Client.cpp:37:11: fatal error: dvbcsa/dvbcsa.h: No such file or directory
  #include <dvbcsa/dvbcsa.h>
           ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:202: obj/decrypt/dvbapi/Client.o] Error 1
root@astra:/home/astra/satpi#

how to handle this in this build environment? without ENIGMA=yes building is working.

Barracuda09 commented 2 years ago

You need to copy Lib and Header file to the build env

SaulGoodman1337 commented 2 years ago

i have cline this (https://code.videolan.org/videolan/libdvbcsa/-/tree/master/src) into /home/astra/satpi/src. now i get:

root@astra:/home/astra/satpi# make LIBDVBCSA=yes ENIGMA=yes
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ -c -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -I src -std=c++17 -Werror=vla -Wall -Wextra -Winit-self -pthread  -O2 -s -DNDEBUG -DLIBDVBCSA -DUSE_DEPRECATED_DVBAPI -DHAS_NP_FUNCTIONS -DENIGMA src/Version.cpp -o obj/Version.o
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/arm-linux-c++ obj/Version.o obj/InterfaceAttr.o obj/HttpServer.o obj/HttpcServer.o obj/Log.o obj/Properties.o obj/RtspServer.o obj/main.o obj/Satpi.o obj/Stream.o obj/StreamClient.o obj/StreamManager.o obj/StringConverter.o obj/Utils.o obj/base/M3UParser.o obj/base/Thread.o obj/base/ThreadBase.o obj/base/TimeCounter.o obj/base/XMLSaveSupport.o obj/base/XMLSupport.o obj/input/DeviceData.o obj/input/Transformation.o obj/input/dvb/Frontend.o obj/input/dvb/FrontendData.o obj/input/dvb/delivery/DiSEqc.o obj/input/dvb/delivery/DiSEqcEN50494.o obj/input/dvb/delivery/DiSEqcEN50607.o obj/input/dvb/delivery/DiSEqcLnb.o obj/input/dvb/delivery/DiSEqcSwitch.o obj/input/dvb/delivery/DVBC.o obj/input/dvb/delivery/DVBS.o obj/input/dvb/delivery/DVBT.o obj/input/dvb/delivery/Lnb.o obj/input/file/TSReader.o obj/input/file/TSReaderData.o obj/input/childpipe/TSReader.o obj/input/childpipe/TSReaderData.o obj/input/stream/Streamer.o obj/input/stream/StreamerData.o obj/mpegts/Filter.o obj/mpegts/PacketBuffer.o obj/mpegts/PAT.o obj/mpegts/PCR.o obj/mpegts/PidTable.o obj/mpegts/PMT.o obj/mpegts/SDT.o obj/mpegts/TableData.o obj/output/StreamThreadBase.o obj/output/StreamThreadHttp.o obj/output/StreamThreadRtcpBase.o obj/output/StreamThreadRtcp.o obj/output/StreamThreadRtcpTcp.o obj/output/StreamThreadRtp.o obj/output/StreamThreadRtpTcp.o obj/output/StreamThreadTSWriter.o obj/socket/HttpcSocket.o obj/socket/TcpSocket.o obj/socket/SocketAttr.o obj/socket/UdpSocket.o obj/upnp/ssdp/Server.o obj/decrypt/dvbapi/Client.o obj/decrypt/dvbapi/ClientProperties.o obj/decrypt/dvbapi/Keys.o obj/input/dvb/Frontend_DecryptInterface.o -o satpi -march=armv7ve -mtune=cortex-a15 -mfpu=vfpv4 -pthread -lrt -ldvbcsa
/root/vu/opt/toolchains/stbgcc-8.3-0.4/bin/../lib/gcc/arm-unknown-linux-gnueabihf/8.3.0/../../../../arm-unknown-linux-gnueabihf/bin/ld: cannot find -ldvbcsa
collect2: error: ld returned 1 exit status
make: *** [Makefile:195: satpi] Error 1
Barracuda09 commented 2 years ago

Copy the lib from the receiver

Barracuda09 commented 2 years ago

You need to copy lib and header somewere in vu/opt/toolchains/stbgcc-8.3-0.4 (I do not know at the moment were. Have to look when I am at home again)

SaulGoodman1337 commented 2 years ago

sorry i can't quite follow you. i would be grateful if you could get back to me when you are at home.

Barracuda09 commented 2 years ago

The header file dvbcsa.h needs to go here: ~/vu/opt/toolchains/stbgcc-8.3-0.4/arm-unknown-linux-gnueabihf/include/c++/8.3.0/dvbcsa/

The lib file libdvbcsa.so needs to go here: ~/vu/opt/toolchains/stbgcc-8.3-0.4/arm-unknown-linux-gnueabihf/lib/libdvbcsa.so

libdvbcsa.so can be found on the receiver in /usr/lib/libdvbcsa.so.1.0.1 (just rename it to libdvbcsa.so)

You can install libdvbcsa package in (OpenATV or Teamblue) with: opkg install libdvbcsa

SaulGoodman1337 commented 2 years ago

root@gbue4k:/usr/lib# find / -name "libdvb*" /var/lib/opkg/info/libdvbsi++1.postinst /var/lib/opkg/info/libdvbsi++1.control /var/lib/opkg/info/libdvbsi++1.list /usr/lib/libdvbsi++.so.1 /usr/lib/libdvbsi++.so.1.0.0

root@gbue4k:/usr/lib# find / -name "*dvbcsa*" root@gbue4k:/usr/lib#

there is none /usr/lib/libdvbcsa.so.1.0.1

iam on teamblue image now

Barracuda09 commented 2 years ago

Sorry, You need to install the packages on the receivers with something like: opkg install libdvbcsa

SaulGoodman1337 commented 2 years ago

Sorry, You need to install the packages on the receivers with something like: opkg install libdvbcsa

nice ! up and running ! thanks