Moderator Control Panel ]

sasc-ng with Ubungu 11.04

sasc-ng with Ubungu 11.04

Postby Vojta1 » Tue Jul 19, 2011 9:21 pm

Hi,
anyone using this card with sasc-ng in Ubuntu 11.04, I have a problem with freezing whatever application wants to use the card after sasc-ng installation. This is what I do:
Install ubuntu 11.04
install TBS driver - after installation everything works perfect - in MythTV I am normally able to tune channels and watch
after installation of sasc-ng using patch on http://www.eurocardsharing.com/f273/ubu ... ack-348184 , I am unable to use the card in any application, it always freezes when I want to tune channels, add cards, watch or whatever. I tried to search google but no help. Anybody experienced similar problem?
Vojta1
 
Posts: 8
Joined: Sat Mar 19, 2011 9:07 pm

Re: sasc-ng with Ubungu 11.04

Postby piotrekfronc » Wed Jul 27, 2011 3:33 am

Hmm, I have same problem, tried 2.6.35 and also hangs.
Good tutorial would be appreciated.
piotrekfronc
 
Posts: 21
Joined: Wed Jul 06, 2011 8:09 am

Re: sasc-ng with Ubungu 11.04

Postby piotrekfronc » Wed Jul 27, 2011 6:00 am

UPDATE: NOW SASC-NG SHOULD WORK WITHOUT PATCH FOR SASC-NG JUST SIMPLY USE:

Code: Select All Code
hg clone http://85.17.209.13:6100/sc
cd sc/contrib/sasc-ng
gedit Makefile


remove from CXX Werrors from compiler config (treating warinings as errors option)
----------------------------------------------------------------------------------------------------------------------------

Sasc-ng works now well see below tutorial, sorry for some mistakes etc... ;-)


This tutorial should work for ANY tbs tuner (also non tbs but you need to adjust it for your drivers/kernel)
You need to have phoenix card reader available from TBS website, also working and valid subscription card.

This tutorial is only about running sasc-ng to use your phoenix reader with channels that you have paid for (it will not work if you didnt buy subscryption or channels are not ones subscribed - u must have reader and card inserted). I have got flustrated that in all network there is some cccam or oscam stuff (totaly useless if you simply wanna channels you paid for!).

So here you go, this covers sasc-ng only.

Mine config is:
-6 month subscription smartcard (Conax)
-Phoenix Card reader (Switches: 3.3V, Phoenix, 3.579)
-TBS5980 or TBS6925 (yea, I have both :) soon selling USB)

What is interesting... CAM module works 10x slower than sasc-ng o_O... but lets start.

Whats necessary:
Kernel 2.6.38.8 (should work for 2.6.39 or 2.6.35 too) with sources, I always use version from kernel.org
(See later how to do custom kernel) but you can use ubuntu 2.6.38 version if you want.
I have tested sasc-ng only with my custom kernel.

Also dev tools for compilation and so on you can try installing:

Code: Select All Code
sudo apt-get install build-essential devscripts mercurial


Before we start fun we need to patch kernel which will be simple thing.

If you have your own drivers (like in TBS case) you need to go to that drivers directory, same as in linux sources, assuming my tbs drivers are in ~/linux-tbs-drivers_110717/linux-tbs-drivers:

Code: Select All Code
cd ~/linux-tbs-drivers_110717/linux-tbs-drivers/linux


if you just use standard kernel drivers:

Code: Select All Code
cd /usr/src/linux

wget http://www.vanbest.org/drupal6/sites/www.vanbest.org/files/linux-2.6.38-dvb-mutex.patch


Code: Select All Code
patch -p1 < linux-2.6.38-dvb-mutex.patch


If you use x86 arch for TBS driver dont forget to:

Code: Select All Code
cd ~/linux-tbs-drivers_110717/linux-tbs-drivers && sh v4l/tbs-x86.sh


It must switch sources to x86 mode, if you use x86_64 linux just leave it as is.
To compile tbs driver type

Code: Select All Code
make
sudo make install


Let's get now sasc-ng soft that will replace annoying cam module :-)

Create somewhere directory (let's say named "src"), to make it easy:

Code: Select All Code
cd && mkdir src && cd src


Fetch latest sources (you need to have mercurial installed):

Code: Select All Code
hg clone -r 570 http://85.17.209.13:6100/sc

cd sc


Apply mutex patch:

Code: Select All Code
wget http://www.vanbest.org/drupal6/sites/www.vanbest.org/files/vdr-sasc-ng-2.6.38.patch

patch -p1 < vdr-sasc-ng-2.6.38.patch


Configure your sasc-ng module:

Code: Select All Code
cd contrib/sasc-ng

chmod +x configure
chmod +x dvbloopback/module/config_dvb.pl
./configure --dvb-dir=~/linux-tbs-drivers_110717/linux-tbs-drivers
make
make module


If compilation fails (it will, sasc-ng is prepared for <=2.6.33 kernels and expects v4l headers, in 2.6.38 we have v4l2 only), do this:

Code: Select All Code
gedit sc/dvbdevice.cpp


find line with:
Code: Select All Code
#include <libv4l1-videodev.h>

replace with:
Code: Select All Code
#include <libv4l2.h>


Save.

Try again:

Code: Select All Code
make
make module


Go root:
Code: Select All Code
sudo -s


Then install the stuff:

Code: Select All Code
cp sasc-ng /usr/local/bin/
cp sc/PLUGINS/lib/* /usr/local/lib/
mkdir -p /lib/modules/`uname -r`/misc/
cp dvbloopback.ko /lib/modules/`uname -r`/misc/
depmod -av


Now configure sasc-ng:

Code: Select All Code
mkdir /etc/sc_files


create in /etc/sc_files cardslot.conf file:

Code: Select All Code
touch /etc/sc_files/cardslot.conf


I assume you have phoenix reader from TBS shop:

Code: Select All Code
nano /etc/sc_files/cardslot.conf


put line there:

Code: Select All Code
serial:/dev/ttyUSB0:0:0


(its your card reader)

Put your subscription card to reader and connect it to computer together with TBS tuner :-)

Voila! Reboot!

How to run your tv:

I assume you will have channels.conf already (you scanned your card and you use some soft to watch tv).

I use gxine and .xine/channels.conf file (standard channels list).

You will customize your autoscripts in rc.d and so on so I'll only show in command line whats necessary:

Code: Select All Code
sudo modprobe dvbloopback
sasc-ng -j 0:1 --cam-budget --cam-dir /etc/sc_files


(I have simply added:

Code: Select All Code
modprobe dvbloopback
sasc-ng -j 0:1 --cam-budget --cam-dir /etc/sc_files > /dev/null 2>&1&


to /etc/rc.local, it will run it each time at boot time)

Turn your player on and thats it.

In gxine I had to change dvb device number to 1 (thats the fake sasc-ng device).
If you use kaffeine, do scan using the new card (it will have no name in options menu), and all subscribed channels uncheck as paid (fake dvb tuner will use your smartcard and decrypt all transparently) , kaffeine has some trouble of using always adapter0 device, search on google how to set it up to read from fake adapter.

I'm gonna get rid of my cam modules finally. Phoenix reader seems to be much better (and cheaper too).

PS. If links are broken or sth like that let me know I have saved copies, with respect to other users involved:
Code: Select All Code
http://www.vanbest.org/drupal6/content/installing-sasc-ng-linux-2.6.38


For enthusiasts reminder, how to make custom kernel:

download sources from kernel[dot]org and copy it to /usr/src

unpack it

Code: Select All Code
make symlink /usr/src/linux -> /usr/src/linux-your-unpacked-dir

cd /usr/src/linux


If you have ncurses installed:

Code: Select All Code
make menuconfig


Choose your stuff etc. (check all dvb v4l stuff, adjust also other things if you want)

to compile after that:

Code: Select All Code
CONCURRENCY_LEVEL=4 fakeroot make-kpkg --revision=1 --append-to-version=-custom --initrd kernel_image kernel_headers


You can remove CONCURRENCY_LEVEL=4 if you want, I add it to tell compiler to use all of my 4 cores ;-)
(its 4 times faster... but sometimes may cause compilation breaks)

After compilation you will have 2 new files in /usr/src

Code: Select All Code
linux-image-<kernel version>.deb and linux-headers-<kernel version>.deb


install both with dpkg -i command.

run also

Code: Select All Code
update-initramfs -u


And make sure you have initramfs files /boot/initrd.img-<kernel version> directory.
If not create them using

Code: Select All Code
update-initramfs -c <kernel version>


Reboot, update your nvidia driver if any (for me It always only work to use drivers from nvidia.com).
Last edited by piotrekfronc on Sun Oct 23, 2011 10:18 pm, edited 2 times in total.
piotrekfronc
 
Posts: 21
Joined: Wed Jul 06, 2011 8:09 am

Re: sasc-ng with Ubungu 11.04

Postby dulcet » Wed Aug 03, 2011 8:14 pm

thank you very much

following this tutorial & everything working very well

dulcet
dulcet
 
Posts: 9
Joined: Sun Feb 27, 2011 5:12 am

Re: sasc-ng with Ubungu 11.04

Postby piotrekfronc » Thu Aug 04, 2011 6:08 pm

Thanks, I'm happy it's usefull. On google there is not much proper "up to date" user easy solutions.
piotrekfronc
 
Posts: 21
Joined: Wed Jul 06, 2011 8:09 am

Re: sasc-ng with Ubungu 11.04

Postby piotrekfronc » Thu Aug 04, 2011 6:15 pm

Another useful stuff I have experienced:

VDR may be a bit annoying to use without sc plugin, but to be honest... I prefer GUI apps for TV on desktop (clicking is easier than remote or keyboard navigation...).

I have configured and fully working:

- Xine and Gxine (gxine is nicer)
- Me-tv - it's MUCH better than gxine in my opinion - dont forget to pass --device parameter
- Kaffeine - really awesome but with one warning.... dont use 1.x version, it's crap. Use 0.8 version, I'll explain why.

Kaffeine 1.x is full of bugz and practically its impossible to change device (! yes, u cannot change it will always use /dev/dvb/adadapter0 !!!), also
some of nice plugins for kaffeine WILL NOT work.
I find 0.8 even faster and more stable :) ...
piotrekfronc
 
Posts: 21
Joined: Wed Jul 06, 2011 8:09 am

Re: sasc-ng with Ubungu 11.04

Postby tuksmr » Sat Aug 13, 2011 6:43 am

Hello everybody.

i've problem with compile sasc-ng. i've followed with instructions and i've error
Code: Select All Code
marcin@dragon:~/src/sc/contrib/sasc-ng$ ./configure --dvb-dir=/usr/src/dvb/linux-tbs-drivers
Using C++ compiler: g++
Using compile type debug
Processor capabilities: native ( mmx sse sse2 )
Trying various FFdecsa optimizations...
    PARALLEL_32_INT: test failed
    PARALLEL_64_2INT: test failed
    PARALLEL_64_LONG: 116
    PARALLEL_64_MMX: 237
    PARALLEL_128_2LONG: 158
    PARALLEL_128_2MMX: 276
    PARALLEL_128_SSE: 379
    PARALLEL_128_SSE2: 444
Choosing PARALLEL_MODE = PARALLEL_128_SSE2
Using DVB_DIR: /usr/src/dvb/linux-tbs-drivers/linux
marcin@dragon:~/src/sc/contrib/sasc-ng$ make
g++ -Wall -D__user= -g -o objs/forward.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/forward.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from dvbloopback/src/forward.c:38:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/process_req.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/process_req.c
g++ -Wall -D__user= -g -o objs/msg_passing.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/msg_passing.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from dvbloopback/src/msg_passing.c:30:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_getsid.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_getsid.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvbloopback/src/plugin_getsid.c:36:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_ringbuf.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_ringbuf.c
g++ -Wall -D__user= -g -o objs/plugin_showioctl.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_showioctl.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvbloopback/src/plugin_showioctl.c:33:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_legacysw.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_legacysw.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvbloopback/src/plugin_legacysw.c:34:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_dss.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_dss.c
g++ -Wall -D__user= -g -o objs/plugin_cam.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvblb_plugins/plugin_cam.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvblb_plugins/plugin_cam.c:10:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_ffdecsa.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvblb_plugins/plugin_ffdecsa.c
g++ -Wall -D__user= -g -o objs/plugin_scan.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvblb_plugins/plugin_scan.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvblb_plugins/plugin_scan.c:38:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/version.o -c -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES objs/version.cpp
g++ -Wall -D__user= -g -o objs/misc.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/misc.cpp
g++ -Wall -D__user= -g -o objs/dvbdevice.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/dvbdevice.cpp
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from sc/include/vdr/dvbdevice.h:13,
                 from sc/dvbdevice.cpp:10:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/osdbase.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/osdbase.cpp
g++ -Wall -D__user= -g -o objs/menuitems.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/menuitems.cpp
g++ -Wall -D__user= -g -o objs/device.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/device.cpp
g++ -Wall -D__user= -g -o objs/thread.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/thread.cpp
g++ -Wall -D__user= -g -o objs/tools.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/tools.cpp
g++ -Wall -D__user= -g -o objs/sasccam.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/sasccam.cpp
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from sc/include/vdr/dvbdevice.h:13,
                 from sc/sasccam.cpp:25:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
sc/sasccam.cpp: In constructor ‘sascCam::sascCam(int)’:
sc/sasccam.cpp:64:14: error: ‘class cSascDvbDevice’ has no member named ‘Cam’
sc/sasccam.cpp: In member function ‘void sascCam::AddPrg(int, int*, const unsigned char*, int)’:
sc/sasccam.cpp:80:28: error: invalid use of incomplete type ‘struct cPrg’
sc/PLUGINS/src/sc-src/cam.h:41:7: error: forward declaration of ‘struct cPrg’
sc/sasccam.cpp:81:14: error: invalid use of incomplete type ‘struct cPrg’
sc/PLUGINS/src/sc-src/cam.h:41:7: error: forward declaration of ‘struct cPrg’
sc/sasccam.cpp:83:5: error: ‘cPrgPid’ was not declared in this scope
sc/sasccam.cpp:83:14: error: ‘pid’ was not declared in this scope
sc/sasccam.cpp:83:22: error: expected type-specifier before ‘cPrgPid’
sc/sasccam.cpp:83:22: error: expected ‘;’ before ‘cPrgPid’
sc/sasccam.cpp:84:8: error: invalid use of incomplete type ‘struct cPrg’
sc/PLUGINS/src/sc-src/cam.h:41:7: error: forward declaration of ‘struct cPrg’
make: *** [objs/sasccam.o] Błąd 1
marcin@dragon:~/src/sc/contrib/sasc-ng$

Code: Select All Code
marcin@dragon:~/src/sc/contrib/sasc-ng$ uname -a
Linux dragon 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux
marcin@dragon:~/src/sc/contrib/sasc-ng$
what i'm doing wrong?
tuksmr
 
Posts: 7
Joined: Sat Aug 13, 2011 6:39 am

Re: sasc-ng with Ubungu 11.04

Postby piotrekfronc » Sun Aug 14, 2011 9:34 pm

I have checked wats goin on, sources are broken after last commit, use revision number 570. See tutorial - updated.
Last edited by piotrekfronc on Mon Aug 15, 2011 2:47 am, edited 1 time in total.
piotrekfronc
 
Posts: 21
Joined: Wed Jul 06, 2011 8:09 am

Re: sasc-ng with Ubungu 11.04

Postby piotrekfronc » Sun Aug 14, 2011 11:09 pm

Guys, use 570 revision for this solution, lesli has commited experimental code for cam structs and they are broken at the moment.

when you clone repo with mercurial, add parameter -r 570 which will specify revision number.

like hg clone -r 570 ... etc.


cheers :roll:
piotrekfronc
 
Posts: 21
Joined: Wed Jul 06, 2011 8:09 am

Re: sasc-ng with Ubungu 11.04

Postby piotrekfronc » Mon Aug 15, 2011 12:04 am

tuksmr Wrote:Hello everybody.

i've problem with compile sasc-ng. i've followed with instructions and i've error
Code: Select All Code
marcin@dragon:~/src/sc/contrib/sasc-ng$ ./configure --dvb-dir=/usr/src/dvb/linux-tbs-drivers
Using C++ compiler: g++
Using compile type debug
Processor capabilities: native ( mmx sse sse2 )
Trying various FFdecsa optimizations...
    PARALLEL_32_INT: test failed
    PARALLEL_64_2INT: test failed
    PARALLEL_64_LONG: 116
    PARALLEL_64_MMX: 237
    PARALLEL_128_2LONG: 158
    PARALLEL_128_2MMX: 276
    PARALLEL_128_SSE: 379
    PARALLEL_128_SSE2: 444
Choosing PARALLEL_MODE = PARALLEL_128_SSE2
Using DVB_DIR: /usr/src/dvb/linux-tbs-drivers/linux
marcin@dragon:~/src/sc/contrib/sasc-ng$ make
g++ -Wall -D__user= -g -o objs/forward.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/forward.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from dvbloopback/src/forward.c:38:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/process_req.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/process_req.c
g++ -Wall -D__user= -g -o objs/msg_passing.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/msg_passing.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from dvbloopback/src/msg_passing.c:30:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_getsid.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_getsid.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvbloopback/src/plugin_getsid.c:36:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_ringbuf.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_ringbuf.c
g++ -Wall -D__user= -g -o objs/plugin_showioctl.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_showioctl.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvbloopback/src/plugin_showioctl.c:33:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_legacysw.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_legacysw.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvbloopback/src/plugin_legacysw.c:34:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_dss.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvbloopback/src/plugin_dss.c
g++ -Wall -D__user= -g -o objs/plugin_cam.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvblb_plugins/plugin_cam.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvblb_plugins/plugin_cam.c:10:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/plugin_ffdecsa.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvblb_plugins/plugin_ffdecsa.c
g++ -Wall -D__user= -g -o objs/plugin_scan.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include dvblb_plugins/plugin_scan.c
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/dmx.h:27:0,
                 from dvblb_plugins/plugin_scan.c:38:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/version.o -c -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES objs/version.cpp
g++ -Wall -D__user= -g -o objs/misc.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/misc.cpp
g++ -Wall -D__user= -g -o objs/dvbdevice.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/dvbdevice.cpp
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from sc/include/vdr/dvbdevice.h:13,
                 from sc/dvbdevice.cpp:10:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
g++ -Wall -D__user= -g -o objs/osdbase.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/osdbase.cpp
g++ -Wall -D__user= -g -o objs/menuitems.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/menuitems.cpp
g++ -Wall -D__user= -g -o objs/device.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/device.cpp
g++ -Wall -D__user= -g -o objs/thread.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/thread.cpp
g++ -Wall -D__user= -g -o objs/tools.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/tools.cpp
g++ -Wall -D__user= -g -o objs/sasccam.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Isc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/dvb/linux-tbs-drivers/linux/include -Idvbloopback/module -I/lib/modules/2.6.38-10-generic/build/include sc/sasccam.cpp
In file included from /usr/src/dvb/linux-tbs-drivers/linux/include/linux/dvb/frontend.h:29:0,
                 from sc/include/vdr/dvbdevice.h:13,
                 from sc/sasccam.cpp:25:
/lib/modules/2.6.38-10-generic/build/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
sc/sasccam.cpp: In constructor ‘sascCam::sascCam(int)’:
sc/sasccam.cpp:64:14: error: ‘class cSascDvbDevice’ has no member named ‘Cam’
sc/sasccam.cpp: In member function ‘void sascCam::AddPrg(int, int*, const unsigned char*, int)’:
sc/sasccam.cpp:80:28: error: invalid use of incomplete type ‘struct cPrg’
sc/PLUGINS/src/sc-src/cam.h:41:7: error: forward declaration of ‘struct cPrg’
sc/sasccam.cpp:81:14: error: invalid use of incomplete type ‘struct cPrg’
sc/PLUGINS/src/sc-src/cam.h:41:7: error: forward declaration of ‘struct cPrg’
sc/sasccam.cpp:83:5: error: ‘cPrgPid’ was not declared in this scope
sc/sasccam.cpp:83:14: error: ‘pid’ was not declared in this scope
sc/sasccam.cpp:83:22: error: expected type-specifier before ‘cPrgPid’
sc/sasccam.cpp:83:22: error: expected ‘;’ before ‘cPrgPid’
sc/sasccam.cpp:84:8: error: invalid use of incomplete type ‘struct cPrg’
sc/PLUGINS/src/sc-src/cam.h:41:7: error: forward declaration of ‘struct cPrg’
make: *** [objs/sasccam.o] Błąd 1
marcin@dragon:~/src/sc/contrib/sasc-ng$

Code: Select All Code
marcin@dragon:~/src/sc/contrib/sasc-ng$ uname -a
Linux dragon 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux
marcin@dragon:~/src/sc/contrib/sasc-ng$
what i'm doing wrong?




Use sasc-ng revision 570 (tutorial is already updated for this).
piotrekfronc
 
Posts: 21
Joined: Wed Jul 06, 2011 8:09 am

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest