me-tv 1.4.0.9 doesnt build under fedora

Asked by remmah on 2012-06-05

autogen.sh and configure run without errors:
    Configure summary:

       Source code location .......: .
       Compiler ...................: gcc
       Compiler flags .............: -O0 -g
       Enable compile warnings ....: minimum
       Enable more warnings .......: yes
       Extra Compiler Warnings ....: -g -O2 -Wall -Wno-unused -Wextra -Wcast-align -Wcast-qual -Wcomment -Wformat -Wimplicit -Wmissing-braces -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch-default -Wundef
       Debug support ..............: yes
       Installing into prefix .....: /usr

    Type make to build Me TV 1.4.0.9

but when running make i get this errors:

$ make
make all-recursive
make[1]: Entering directory `/home/geo/tmp/me-tv-1.4.0.9'
Making all in common
make[2]: Entering directory `/home/geo/tmp/me-tv-1.4.0.9/common'
g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/libxml++-2.6 -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2 -g -O2 -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.cc
common.cc: In function ‘void write_string(int, const Glib::ustring&)’:
common.cc:106:17: error: ‘::write’ has not been declared
common.cc: In function ‘Glib::ustring read_string(int)’:
common.cc:125:24: error: ‘::read’ has not been declared
make[2]: *** [common.o] Error 1
make[2]: Leaving directory `/home/geo/tmp/me-tv-1.4.0.9/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/geo/tmp/me-tv-1.4.0.9'
make: *** [all] Error 2

i installed all the dependencies checked by configure and all those i thought maybe not checked for

Question information

Language:
English Edit question
Status:
Solved
For:
Me TV Edit question
Assignee:
No assignee Edit question
Solved by:
Jobst Hoffmann
Solved:
Last query:
Last reply:
Revision history for this message
Best Jobst Hoffmann (j-hoffmann) said :
#1

Fedora 17 comes with gcc 4.7.0, which requests to give some additional information:

- in file common.h add the line

#include <unistd.h>

just before the line 24:

#include <glibmm.h>

- in file thread.cc change line 59

from

usleep(1000);

to

Glib::usleep(1000);

Revision history for this message
remmah (ka-ahnung) said :
#2

Thanks Jobst Hoffmann, that solved my question.

Revision history for this message
remmah (ka-ahnung) said :
#3

compiling works now, but i can't scan for channels or import them from a channels.conf

Revision history for this message
Jobst Hoffmann (j-hoffmann) said :
#4

Am Freitag, den 15.06.2012, 10:45 +0000 schrieb remmah:
> Question #199426 on Me TV changed:
> https://answers.launchpad.net/me-tv/+question/199426
>
> remmah posted a new comment:
> compiling works now, but i can't scan for channels or import them from a
> channels.conf
>

Install w_scan-20120112-1.fc17.x86_64.rpm

yum install w_scan

and generate a channels.conf list by

w_scan -X > channels.conf

This channels.conf works for me, if you have problems, look at
http://linuxtv.org/wiki/index.php/W_scan

HTH

Revision history for this message
remmah (ka-ahnung) said :
#5

works fine, thanks

Revision history for this message
Binnette (binnette) said :
#6

Solution, gived by Jobst Hoffmann, works for me too.

Revision history for this message
Frédéric Côté (frederic-cote) said :
#7

Added the fix propose by Jobst Hoffmann into the version 1.4.0.12.

Revision history for this message
Binnette (binnette) said :
#8

I forgot to mention that these compilation errors also occur on Ubuntu 12.10
And are solved by this fix.