Page 1 of 2

Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-generic

PostPosted: Thu Jan 13, 2011 6:13 am
by jockmacmad
When I unpack the rar file and start to follow the instructions step 2 tells me to run a script based on the architecture e.g. ./tbs-x84_64.sh. No such script exists in the directory of the extracted bz2 file itself extracted from the rar. I try to run sudo make && sudo make install, a whole bunch of C files are compiled to object files .o succesfully but then during this compilation it fails saying

No rule to make target TBS/linux-s2apitbs6980-1_20101024/v4l/tbs6980ctrl.o needed by TBS/linux-s2apitbs6980-1_20101024/v4l/tda18271.o


Can you help ?

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Thu Jan 13, 2011 7:54 am
by jockmacmad
Upgraded to 10.04.01 LTS which is kernel 2.6.32-27-generic and get exactly the same issue.

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Thu Jan 13, 2011 8:00 am
by jockmacmad
Okay saw the other thread which says use ./v4l/tbs-x86_64.sh rather than ./tbs-x86_64.sh

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Fri Jan 14, 2011 1:48 am
by cody
jockmacmad Wrote:Okay saw the other thread which says use ./v4l/tbs-x86_64.sh rather than ./tbs-x86_64.sh


yes, just do:

Code: Select All Code
# cd ./v4l
# ./tbs-x86_64.sh
# cd ..
# make && make install

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Sun Jan 16, 2011 1:28 am
by jockmacmad
Same issue on a clean Ubuntu 10.10 install after running the script

Code: Select All Code
CC [M]  /home/jock/linux-s2api-tbs6980_1/v4l/cx23885-f300.o
make[3]: *** No rule to make target `/home/jock/linux-s2api-tbs6980_1/v4l/tbs6980ctrl.o', needed by `/home/jock/linux-s2api-tbs6980_1/v4l/tda18271.o'. Stop.
make[2]: *** [_module_/home/jock/linux-s2api-tbs6980_1/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-24-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/jock/linux-s2api-tbs6980_1/v4l'
make: *** [all] Error 2


the output from running the script was:-

Code: Select All Code
./v4l/tbs-x86_64.sh
cp: cannot stat `./tbs6980ctrl.o.x86_64': No such file or directory
cp: cannot stat `./tbs6980fe_driver.o.x86_64': No such file or directory
cp: cannot stat `./tbs6981ctrl.o.x86_64': No such file or directory
cp: cannot stat `./tbs6981fe_driver.o.x86_64': No such file or directory
TBS 6980/6981 driver configured for x86_64 platform.

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Sun Jan 16, 2011 1:44 am
by jockmacmad
Okay so I see the mistake....

need to
Code: Select All Code
cd ./v4l
then
Code: Select All Code
./tbs-x86_64.sh
for the stat to work not use
Code: Select All Code
./v4l/tbs-x86_64.sh


Apologies but I did find in another post to Andrew you put
* Report this post
* Reply with quote

Re: Problem instaling drivers for TBS6981

Postby cody ยป Sun Dec 05, 2010 5:01 pm
hi Andrew,

those errors means that you didn't run './v4l/tbs-x86.sh' or './v4l/tbs-x86_64.sh' (depending on your platform - 32-bit or 64-bit Linux kernel) or the script doesn't finish successfully. did you get:

"TBS 6980/6981 driver configured for x86 platform."
or
"TBS 6980/6981 driver configured for x64 platform."

after executing './v4l/tbs-x86.sh' or './v4l/tbs-x86_64.sh'?


which does have the
or './v4l/tbs-x86_64.sh'
in it.

Anyways onwards and upwards and thanks for the reply :)

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Tue Jan 18, 2011 9:20 am
by cody
jockmacmad Wrote:Okay so I see the mistake....

need to
Code: Select All Code
cd ./v4l
then
Code: Select All Code
./tbs-x86_64.sh
[/code]


Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Tue Jan 18, 2011 9:24 am
by cody
cody Wrote:
jockmacmad Wrote:need to
Code: Select All Code
cd ./v4l
then
Code: Select All Code
./tbs-x86_64.sh
[/code]


that's correct if you use:

http://www.tbsdtv.com/download/TBS6981/linux-s2api-tbs6980-1_20101024.rar

but if you use newer package like:

http://www.tbsdtv.com/download/8921/linux-s2api-tbs8921_v1.24.1.rar

(yes, it includes TBS 6981 support too)

then no need to
Code: Select All Code
cd ./v4l
and then execute
Code: Select All Code
./tbs-x86_64.sh
and just
Code: Select All Code
 ./v4l/tbs-x86_64.sh
will suffice.

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Wed Jan 19, 2011 4:45 pm
by jockmacmad
Shh don't tell me there is a newer one I have it all working :D

Re: Unable to build on Ubuntu 9.10 with kernel 2.6.31-22-gen

PostPosted: Fri Jan 21, 2011 6:36 am
by cody
jockmacmad Wrote:Shh don't tell me there is a newer one I have it all working :D


you don't need to upgrade, because 6980/6981 driver is the same - only the package is a little updated and also includes drivers for our latest products.