build error dm500

Wünsche, Anträge, Fehlermeldungen
LraiZer
Neugieriger
Neugieriger
Beiträge: 6
Registriert: Mittwoch 21. Januar 2009, 21:31
Box 1: Zgemma H2H
Image: self build openPLi image
Box 2: XPEED LX3
Image: self build OpenViX oe-alliance image
Box 3: DM800SE
Image: OpenPli self build image
Box 4: DM500
Image: dev build nuetrino commando.org.uk
Sonstiges: Dbox2 Neutrino with modded internal hard disk ;)

build error dm500

Beitrag von LraiZer »

i have not tried to build image for this for a long time, is tuxbox-cvs from GIT now broken for dm500 build?

Code: Alles auswählen

./autogen.sh

./configure --with-boxtype=dreambox --with-boxmodel=dm500 --prefix=/home/dev/tuxbox/dreambox --with-cvsdir=/home/dev/tuxbox/trunk --with-archivedir=/home/dev/tuxbox/private/Archive --enable-kernel26

make flash-neutrino-squashfs

Code: Alles auswählen

powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../daemons -I../../src -I/home/dev/tuxbox/dreambox/cdkroot/include/tuxbox   -I/home/dev/tuxbox/dreambox/cdkroot/include/freetype2 -I/home/dev/tuxbox/dreambox/cdkroot/include/tuxbox -I/home/dev/tuxbox/dreambox/cdkroot/include/tuxbox   -I/home/dev/tuxbox/dreambox/cdkroot/include/tuxbox/mpegtools   -I../../lib -I/home/dev/tuxbox/dreambox/cdkroot/include -I/home/dev/tuxbox/trunk/driver/include     -I/home/dev/tuxbox/trunk/driver/oldapi/include -I/home/dev/tuxbox/trunk/driver/include -Wextra -Wshadow  -Wall -pipe -Os -mcpu=405 -msoft-float -mmultiple -mstring -meabi -ggdb3 -MT channellist.o -MD -MP -MF .deps/channellist.Tpo -c -o channellist.o channellist.cpp
channellist.cpp: In member function `void CChannelList::paintDetails(unsigned int)':
channellist.cpp:1145: error: 'struct FrontendParameters' has no member named 'frequency'
channellist.cpp:1147: error: 'struct FrontendParameters' has no member named 'frequency'
channellist.cpp:1151: error: 'struct QPSKParameters' has no member named 'symbol_rate'
channellist.cpp:1153: error: 'struct QAMParameters' has no member named 'symbol_rate'
channellist.cpp:1156: error: 'struct QAMParameters' has no member named 'fec_inner'
channellist.cpp:1162: error: `FEC_4_5' undeclared (first use this function)
channellist.cpp:1162: error: (Each undeclared identifier is reported only once for each function it appears in.)
channellist.cpp:1164: error: `FEC_6_7' undeclared (first use this function)
channellist.cpp:1165: error: `FEC_8_9' undeclared (first use this function)
channellist.cpp:1171: error: 'struct QAMParameters' has no member named 'modulation'
channellist.cpp:1699:2: warning: #warning fixme sectionsd should deliver data in UTF-8 format
make[5]: *** [channellist.o] Error 1
make[5]: Leaving directory `/home/dev/tuxbox/trunk/apps/tuxbox/neutrino/src/gui'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/dev/tuxbox/trunk/apps/tuxbox/neutrino/src/gui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/dev/tuxbox/trunk/apps/tuxbox/neutrino/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dev/tuxbox/trunk/apps/tuxbox/neutrino'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dev/tuxbox/trunk/apps/tuxbox/neutrino'
make: *** [/home/dev/tuxbox/dreambox/cdkflash/root-neutrino] Error 2
is broken since Neutrino: add MiniTV to Channellist patch?
http://sourceforge.net/p/tuxbox-cvs/app ... 4430ef939/
seife
Developer
Beiträge: 4189
Registriert: Sonntag 2. November 2003, 12:36

Re: build error dm500

Beitrag von seife »

Yes, you need to fix this up for old DVB API used on dm500.
seife
Developer
Beiträge: 4189
Registriert: Sonntag 2. November 2003, 12:36

Re: build error dm500

Beitrag von seife »

This one could fix it (not tested, not even compiled):

Code: Alles auswählen

--- a/tuxbox/neutrino/src/gui/channellist.cpp
+++ b/tuxbox/neutrino/src/gui/channellist.cpp
@@ -64,6 +64,17 @@
 #include <daemonc/remotecontrol.h>
 #include <zapit/client/zapittools.h>
 
+#if HAVE_DVB_API_VERSION < 3
+#define frequency      Frequency
+#define fec_inner      FEC_inner
+#define modulation     QAM
+#define symbol_rate    SymbolRate
+/* dummy */
+#define FEC_4_5 0xff
+#define FEC_6_7 0xff
+#define FEC_8_9 0xff
+#endif
+
 extern CBouquetList * bouquetList;       /* neutrino.cpp */
 extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
 extern CZapitClient::SatelliteList satList;
LraiZer
Neugieriger
Neugieriger
Beiträge: 6
Registriert: Mittwoch 21. Januar 2009, 21:31
Box 1: Zgemma H2H
Image: self build openPLi image
Box 2: XPEED LX3
Image: self build OpenViX oe-alliance image
Box 3: DM800SE
Image: OpenPli self build image
Box 4: DM500
Image: dev build nuetrino commando.org.uk
Sonstiges: Dbox2 Neutrino with modded internal hard disk ;)

Re: build error dm500

Beitrag von LraiZer »

thanks, was looking to apply similar fix already in \apps\dvb\zapit\src\zapost\frontend.cpp

Edit:
build now finishes with these patches applied, not tested if they are good or not yet?

Code: Alles auswählen

--- a/tuxbox/neutrino/src/gui/channellist.cpp
+++ b/tuxbox/neutrino/src/gui/channellist.cpp
@@ -64,6 +64,13 @@
 #include <daemonc/remotecontrol.h>
 #include <zapit/client/zapittools.h>
 
+#if HAVE_DVB_API_VERSION < 3
+#define frequency Frequency
+#define fec_inner FEC_inner
+#define modulation QAM
+#define symbol_rate SymbolRate
+#endif
+
 extern CBouquetList * bouquetList;       /* neutrino.cpp */
 extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
 extern CZapitClient::SatelliteList satList;
@@ -1159,10 +1166,13 @@
 			case FEC_1_2:	desc+= "1/2";  break;
 			case FEC_2_3:	desc+= "2/3";  break;
 			case FEC_3_4:	desc+= "3/4";  break;
-			case FEC_4_5:	desc+= "4/5";  break;
 			case FEC_5_6:	desc+= "5/6";  break;
+			case FEC_7_8:	desc+= "7/8";  break;
+#if HAVE_DVB_API_VERSION >= 3
+			case FEC_4_5:	desc+= "4/5";  break;
 			case FEC_6_7:	desc+= "6/7";  break;
 			case FEC_8_9:	desc+= "8/9";  break;
+#endif
 			case FEC_AUTO:	desc+= "AUTO"; break;
 				default:	desc+= "UNKNOWN"; break;
 		}

Code: Alles auswählen

--- a/tuxbox/neutrino/src/gui/scan_setup.cpp
+++ b/tuxbox/neutrino/src/gui/scan_setup.cpp
@@ -124,6 +124,10 @@
 #endif
 
 #define CABLESETUP_SCANTP_MOD_COUNT 7
+#if HAVE_DVB_API_VERSION < 3
+/* peeking at the enigma code suggests that QAM_64 might be correct */
+#define QAM_AUTO QAM_64
+#endif
 const CMenuOptionChooser::keyval CABLESETUP_SCANTP_MOD[CABLESETUP_SCANTP_MOD_COUNT] =
 {
 	{ QPSK    , LOCALE_SCANTP_MOD_QPSK     },
Gaucho316
Contributor
Beiträge: 1688
Registriert: Donnerstag 17. Februar 2005, 20:24

Re: build error dm500

Beitrag von Gaucho316 »

I have to be blamed partly for this problem. :oops: A patch comes soon.
Gaucho316
Contributor
Beiträge: 1688
Registriert: Donnerstag 17. Februar 2005, 20:24

Re: build error dm500

Beitrag von Gaucho316 »

I don't like these duplicate defines. My idea is to move them into zapittypes.h. So neutrino and zapit can use them. I hope, seife will have a look at my changes and tell me, whether it is a good idea or not.

It still compiles for d-box, but someone should test it for dreambox.

Neutrino: fix dreambox build and move some duplicate defines to zapittypes.h
0009-Neutrino-fix-dreambox-build-and-move-some-duplicate.patch
Gaucho316
Contributor
Beiträge: 1688
Registriert: Donnerstag 17. Februar 2005, 20:24

Re: build error dm500

Beitrag von Gaucho316 »

If the previous patch compiles for Dreambox, then we can remove one #if HAVE_DVB_API_VERSION from zapit.cpp.

zapit: remove unnecessary #if HAVE_DVB_API_VERSION
0010-zapit-remove-unnecessary-if-HAVE_DVB_API_VERSION.patch


And if someone still compiles for TripleDragon (I don't think so), you have a problem in channellist.cpp.

Neutrino channel list: fix tripledragon build
0011-Neutrino-channel-list-fix-tripledragon-build.patch


I have to say, that I have only compiled these patches for d-box. Someone else should test them for other platforms.
LraiZer
Neugieriger
Neugieriger
Beiträge: 6
Registriert: Mittwoch 21. Januar 2009, 21:31
Box 1: Zgemma H2H
Image: self build openPLi image
Box 2: XPEED LX3
Image: self build OpenViX oe-alliance image
Box 3: DM800SE
Image: OpenPli self build image
Box 4: DM500
Image: dev build nuetrino commando.org.uk
Sonstiges: Dbox2 Neutrino with modded internal hard disk ;)

Re: build error dm500

Beitrag von LraiZer »

RE: 0009-Neutrino-fix-dreambox-build-and-move-some-duplicate.patch
this patch also compiles and builds ok for dm500, thanks :up: