Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: malikawan on October 10, 2016, 03:56:08 AM
-
Is there any extension x11grab or its alternate
-
are you referring to the ffmpeg x11grab module?
If so, it is enabled in the corepure64 ffmpeg
-
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.
-
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/
-
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
-
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.
-
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: $ 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.
-
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
-
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
-
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
-
Assuming you're using some kind of x86 cpu, you can use this:
$ 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
-
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
-
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
-
use the command from my last post
-
these are the result from above command
-
That should be "--localstatedir=/var", not "--localestatedir=/var"
-
still received this error
Unknown option "--localstatedir=/var"
-
OK, did you try without that option?
-
Yes i have tried without this option. Also try with -enable-cross-compile
screen shot attached.
-
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?
-
this is config.log file attached
-
I am using tinycore version 4.7.7 and ffmpeg-1.0.0/
-
You are not cross-compiling, stop passing --enable-cross-compile.
-
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$
-
You have not installed compiletc then, or have some other issue with it.
-
this is config.log file attached
The last few lines of your config.log are: 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: 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?