Leatherface75 / vtuner

Automatically exported from code.google.com/p/vtuner
0 stars 0 forks source link

cannot compile vtuner.apps on ARM #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I've installed a gentoo on a Raspbryy Pi.

When i want to compile to vtuner.apps, ggc freze at this Point:

raspberry_pi vtuner.apps # make -C build/arm
make: Entering directory `/usr/local/src/vtuner.apps/build/arm'
../../dist/arm/vtunerd.arm
vtunerd: vtuner server (vtunerd), part of vtuner project
Visit http://code.google.com/p/vtuner/ for more information
Copyright (C) 2009-11 Roland Mieslinger
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
vtunerd: Revision:b6fa0d2b133b/tip DVB:5.9 allow:5.x NetProto:2 MsgSize:96, 
Debug:0x3
vtunerd: [5362 ../../vtunerd.c:146]  info: S2API tuning support.
vtunerd: [5362 ../../vtuner-dvb-3.c:57]  info: FE_GET_INFO dvb-type:0 
vtuner-type:8
vtunerd: [5362 ../../vtunerd.c:158]  info: adapter:0, frontend:0, demux,0, 
dvr:0 is type:8
vtunerd: [5362 ../../vtunerd-service.c:276]  info: waiting for autodiscover 
packet (groups 0xFFFF) ...

System is:

raspberry_pi vtuner.apps # uname -a
Linux raspberry_pi 3.9.7-cutdown+ #7 PREEMPT Sat Jun 29 18:50:12 CEST 2013 
armv6l BCM2708 GNU/Linux

This is my Make.config:

# define the CC for target arm
CC-arm=gcc -fpic
INCLUDE-arm=

Original issue reported on code.google.com by d_sping...@gmx.de on 29 Jun 2013 at 6:28

GoogleCodeExporter commented 9 years ago
Strange, it looks like your make simply invoke vtunerd.arm what is not what we 
want.

Can you show me all steps how do you start your compilation? And please check 
that you rename Make.config.sample to the Make.config as is needed (as 
described in BUILD.txt)

Original comment by jpetrous on 2 Jul 2013 at 12:39

GoogleCodeExporter commented 9 years ago
> Strange, it looks like your make simply invoke vtunerd.arm what is not what 
we want.
Why not?? The Raspberry Pi is a ARM CPU --> 
http://en.wikipedia.org/wiki/Raspberry_Pi

> Can you show me all steps how do you start your compilation? 

1. i checked out the git
2. i created a Makefile.config as follow:

# define the CC for target arm
CC-arm=gcc -fpic
INCLUDE-arm=

3. i started gcc:   make -C build/arm

Original comment by d_sping...@gmx.de on 2 Jul 2013 at 4:38

GoogleCodeExporter commented 9 years ago
>> Strange, it looks like your make simply invoke vtunerd.arm what is not what 
we want.
>Why not?? The Raspberry Pi is a ARM CPU --> 
http://en.wikipedia.org/wiki/Raspberry_Pi
Well, I perfectly know that RPi is ARM based. 

But now I see the reason - you don't have defined variable STRIP.
Please see in last part of Make.config.sample which variables
should be defined.

Or simply do the way we recommend: rename Make.config.sample
to the Make.config and only change the particular part of file.

/Honza

Original comment by jpetrous on 3 Jul 2013 at 12:40

GoogleCodeExporter commented 9 years ago
1000 THX @ Honza,

with this Make.config,

raspberry vtuner.apps # cat Make.config
# define the CC for target arm
CC-arm=gcc -fpic
STRIP-arm=armv6j-hardfloat-linux-gnueabi-strip
INCLUDE-arm=
raspberry vtuner.apps #

it Woks now. :)

raspberry vtuner.apps # make -C build/arm
make: Entering directory `/usr/local/src/vtuner.apps/build/arm'
gcc -fpic -fpic -DHAVE_DVB_API_VERSION=5 -c -o vtunerd-service.o 
../../vtunerd-service.c
gcc -fpic -fpic -DHAVE_DVB_API_VERSION=5 -c -o vtuner-network.o 
../../vtuner-network.c
gcc -fpic -fpic -DHAVE_DVB_API_VERSION=5 -c -o vtuner-utils.o 
../../vtuner-utils.c
gcc -fpic -fpic -DHAVE_DVB_API_VERSION=5 -c -o vtuner-dvb-3.o 
../../vtuner-dvb-3.c
gcc -fpic -fpic -DHAVE_DVB_API_VERSION=5 -DBUILDVER="\"b6fa0d2b133b/tip\"" 
-DMODFLAG=\"\" -o ../../dist/arm/vtunerd.arm vtuner-network.o vtunerd-service.o 
vtuner-dvb-3.o vtuner-utils.o ../../vtunerd.c -lpthread -lrt
armv6j-hardfloat-linux-gnueabi-strip ../../dist/arm/vtunerd.arm
make: Leaving directory `/usr/local/src/vtuner.apps/build/arm'
raspberry vtuner.apps #

Original comment by d_sping...@gmx.de on 3 Jul 2013 at 5:41

GoogleCodeExporter commented 9 years ago
Good. So I'm closing the bug report :)

/Honza

Original comment by jpetrous on 9 Jul 2013 at 7:31