Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: malikawan on October 10, 2016, 12:56:08 AM

Title: Need x11grab
Post by: malikawan on October 10, 2016, 12:56:08 AM
Is there any extension x11grab or its alternate
Title: Re: Need x11grab
Post by: Juanito on October 11, 2016, 07:38:19 AM
are you referring to the ffmpeg x11grab module?

If so, it is enabled in the corepure64 ffmpeg
Title: Re: Need x11grab
Post by: malikawan on October 12, 2016, 11:10:56 PM
Basically i am using tinycore 4.7.7 any idea to use x11grab in tinycore 4.7.7. i want to use x11grab with ffmpeg.
Title: Re: Need x11grab
Post by: Juanito on October 12, 2016, 11:17:59 PM
I suggest you check if the ffmpeg-1.0.0 configure script accepts the "--enable-x11grab" switch and, if so, recompile it.

The build instructions and source are here:

http://repo.tinycorelinux.net/4.x/x86/tcz/src/ffmpeg/
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 12:42:49 AM
Sir thanks for reply i have tried but not succeeded.  Please any one give me the link to download ffmpeg-1.0.0 configure script. I have downloaded but its ffmpeg-2.7.1.tar.bz2
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 12:54:59 AM
when i ./configure i receive this error
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.


when i use --enable-cross-compile i get this error

Must specify target arch and OS when cross-compiling
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

Title: Re: Need x11grab
Post by: Juanito on October 13, 2016, 01:01:32 AM
The version of ffmpeg used in tc-4.x is ffmpeg-1.0.0

If you compile a later version of ffmpeg you risk breaking several other extensions in tc-4.x - that is why I suggested using ffmpeg-1.0.0

The configure script is contained in the ffmpeg-1.0.0.tar.bz2 source:
Code: [Select]
$ tar xf ffmpeg-1.0.0.tar.bz2
$ cd ffmpeg-1.0
$ ./configure --help | grep x11
  --enable-x11grab         enable X11 grabbing [no]

..so the "--enable-x11grab" switch exists, but it is disabled by default, hence you will need to recompile.
Title: Re: Need x11grab
Post by: Juanito on October 13, 2016, 01:05:03 AM
when i ./configure i receive this error
gcc is unable to create an executable file.

load the compiletc extension and then follow the insructions here:

http://tinycorelinux.net/4.x/x86/tcz/src/ffmpeg/compile_ffmpeg
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 02:38:26 AM
I have loaded all these extensions but still same error after giving this command
tc@box:~/ffmpeg-1.0/ffmpeg-1.0$ ./configure --prefix=/usr/local --enable-x11grab

gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
tc@box:~/ffmpeg-1.0/ffmpeg-1.0$ ./configure --prefix=/usr/local --enable-cross-compile --enable-x11grab
Must specify target arch and OS when cross-compiling


Please how i give command for arch and os
/configure --prefix=/usr/local --enable-cross-compile --enable-x11grab --arch=x86 --target-os=tinycore
but its not work
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 03:05:11 AM
Please how i give command for arch and os
/configure --prefix=/usr/local --enable-cross-compile --enable-x11grab --arch=x86 --target-os=tinycore
but its not work
Title: Re: Need x11grab
Post by: Juanito on October 13, 2016, 03:13:08 AM
Assuming you're using some kind of x86 cpu, you can use this:
Code: [Select]
$ CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-gpl --enable-version3 --enable-shared --disable-static --enable-small --disable-doc --enable-bzlib --enable-fontconfig --enable-gnutls --enable-libass --enable-libcdio --enable-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-nonfree --enable-libdc1394 --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-libxvid --enable-openal --enable-openssl --enable-libcelt --enable-vdpau --enable-libgsm --enable-libopencv --enable-libtwolame --enable-libx264 --enable-x11grab
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 05:14:20 AM
Please tell me the exact command which i run to ./configure
like
tc@box:~$./configure --prefix=/usr/local --enable-gpl --enable-cross-compile --enable-version3 --enable-shared --disable-static --enable-small --disable-doc --enable-bzlib --enable-fontconfig --enable-gnutls --enable-libass --enable-libcdio --enable-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-nonfree --enable-libdc1394 --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-libxvid --enable-openal --enable-openssl --enable-libcelt --enable-vdpau --enable-libgsm --enable-libopencv --enable-libtwolame --enable-libx264 --enable-x11grab
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 05:16:14 AM
i have downloaded ffmpeg-1.0.tar.bz2 than extract it to tc then
i go to ffmpeg-1.0 directory also i have installed all extensions.

Now which command i have to run this to recompile
Title: Re: Need x11grab
Post by: Juanito on October 13, 2016, 05:22:56 AM
use the command from my last post
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 05:26:18 AM
these are the result from above command
Title: Re: Need x11grab
Post by: Juanito on October 13, 2016, 05:49:14 AM
That should be "--localstatedir=/var", not "--localestatedir=/var"
Title: Re: Need x11grab
Post by: malikawan on October 13, 2016, 05:04:48 PM
still received this error

Unknown option "--localstatedir=/var"
Title: Re: Need x11grab
Post by: Juanito on October 13, 2016, 11:53:27 PM
OK, did you try without that option?
Title: Re: Need x11grab
Post by: malikawan on October 14, 2016, 02:22:43 AM
Yes i have tried without this option. Also try with -enable-cross-compile
screen shot attached.
Title: Re: Need x11grab
Post by: Juanito on October 14, 2016, 02:28:57 AM
What is causing gcc to think that it is cross-compiling - what cpu do you have?

If you look at ffmpeg-1.0.0/config.log, does it give any clues as to the error?
Title: Re: Need x11grab
Post by: malikawan on October 14, 2016, 02:52:25 AM
this is config.log file attached
Title: Re: Need x11grab
Post by: malikawan on October 14, 2016, 02:56:25 AM
I am using tinycore version 4.7.7 and ffmpeg-1.0.0/
Title: Re: Need x11grab
Post by: curaga on October 14, 2016, 03:04:01 AM
You are not cross-compiling, stop passing --enable-cross-compile.
Title: Re: Need x11grab
Post by: malikawan on October 14, 2016, 03:09:08 AM
if i not use cross-compiling then receive error below is exact command and its out put


tc@box:~/ffmpeg-1.0$ CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -
Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -
fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --enable-gpl --enable-
version3 --enable-shared --disable-static --enable-small --disable-doc --enable-
bzlib --enable-fontconfig --enable-gnutls --enable-libass --enable-libcdio --ena
ble-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libpulse --enable
-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enabl
e-zlib --enable-nonfree --enable-libdc1394 --enable-libmp3lame --enable-libv4l2
--enable-libvpx --enable-libxvid --enable-openal --enable-openssl --enable-libce
lt --enable-vdpau --enable-libgsm --enable-libopencv --enable-libtwolame --enabl
e-libx264 --enable-x11grab
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
tc@box:~/ffmpeg-1.0$
Title: Re: Need x11grab
Post by: curaga on October 14, 2016, 03:11:17 AM
You have not installed compiletc then, or have some other issue with it.
Title: Re: Need x11grab
Post by: Juanito on October 14, 2016, 04:35:36 AM
this is config.log file attached

The last few lines of your config.log are:
Code: [Select]
zmbv_encoder='yes'
zmbv_encoder_select='zlib'
zmbv_test_deps='zlib'
Must specify target arch and OS when cross-compiling

If I try, the corresponding lines are:
Code: [Select]
zmbv_encoder='yes'
zmbv_encoder_select='zlib'
zmbv_test_deps='zlib'
mktemp -u XXXXXX
wm3yet
check_ld cc
check_cc
BEGIN /tmp/ffconf.XXjgmDjt.c
END /tmp/ffconf.XXjgmDjt.c
gcc -c -o /tmp/ffconf.XX5ihHVs.o /tmp/ffconf.XXjgmDjt.c
gcc -o /tmp/ffconf.XXZXwD7s /tmp/ffconf.XX5ihHVs.o
check_cflags -std=c99
check_cc -std=c99

..which would seem to indicate that you do not have all of the deps of compiletc loaded - gcc, binutils, gmp, etc?