How to compile ffmpeg in QNX OS ?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to compile ffmpeg in QNX OS ?

veni
I downloaded ffmpeg-2.1.1 and trying to compile in QNX OS.

1) # ./configure
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.


What are the setting i need to provide to compile it to QNX OS.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg in QNX OS ?

Carl Eugen Hoyos
veni <mudiam.veni <at> gmail.com> writes:

> I downloaded ffmpeg-2.1.1 and trying to compile in QNX OS.

(You should always test current FFmpeg git head before
reporting a problem here.)

Please explain what you mean with "compile in QNX OS".
You are not the first to ask and I am interested
(actually eager) to help but I still don't understand
how QNX is different from other embedded systems (which
apparently makes compilation more difficult).

> 1) # ./configure

What does cc -v report?
Did you set any environment variables before calling
configure? Imo, you shouldn't do this but call the
script explicitely with all necessary options.

> 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 <at> 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.

Did you read this?

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg in QNX OS ?

veni
1) cc -v reports
# cc -v
cc: looking for gcc_ntox86 in /usr/qnx650/host/qnx6/x86/etc/qcc/gcc/4.4.2/gcc_ntox86++.conf
cc: looking for gcc_ntox86 in /usr/qnx650/host/qnx6/x86/etc/qcc/gcc/4.4.2/gcc_ntox86.conf
cc: no files to process

2) tail end of config.log
WARNING: pkg-config not found, library detection may fail.
mktemp -u XXXXXX
./configure[2674]: mktemp: cannot execute - No such file or directory
check_ld cc
check_cc
BEGIN /tmp/ffconf..ERIQNXM5.0.411504679.c
    1   int main(void){ return 0; }
END /tmp/ffconf..ERIQNXM5.0.411504679.c
gcc -c -o /tmp/ffconf..ERIQNXM5.0.411504679.c
gcc: no input files
C compiler test failed.


Any help is much appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg in QNX OS ?

Carl Eugen Hoyos
veni <mudiam.veni <at> gmail.com> writes:

> ./configure[2674]: mktemp: cannot execute - No such file or directory

Try --tempprefix and please report back.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg in QNX OS ?

basil64
I have similar problems. I built mktemp from mktemp.org (mktemp not found in qnx6) and discovered new problems with gcc tests. The first was detected in line 783 in file configure(function check_cc).  I changed it to <check_cmd $cc $CPPFLAGS $CFLAGS "$@" $CC_C $TMPC -o $TMPO> . Analogous correction had to be made in function check_ld, check_cxx. Also had to use the options --disable-yasm, --disable-pthreads .Now i have new problems

./configure[3606]: -std=c99: cannot execute - No such file or directory
./configure[4028]: -fomit-frame-pointer: cannot execute - No such file or directory
./configure[4637]: -Wdeclaration-after-statement: cannot execute - No such file or directory
./configure[4638]: -Wall: cannot execute - No such file or directory
./configure[4639]: -Wdisabled-optimization: cannot execute - No such file or directory
./configure[4640]: -Wpointer-arith: cannot execute - No such file or directory
./configure[4641]: -Wredundant-decls: cannot execute - No such file or directory
./configure[4642]: -Wwrite-strings: cannot execute - No such file or directory
./configure[4643]: -Wtype-limits: cannot execute - No such file or directory
./configure[4644]: -Wundef: cannot execute - No such file or directory
./configure[4645]: -Wmissing-prototypes: cannot execute - No such file or directory
./configure[4646]: -Wno-pointer-to-int-cast: cannot execute - No such file or directory
./configure[4647]: -Wstrict-prototypes: cannot execute - No such file or directory
./configure[4655]: -Wparentheses: cannot execute - No such file or directory
./configure[4656]: -Wswitch: cannot execute - No such file or directory
./configure[4657]: -Wformat-zero-length: cannot execute - No such file or directory
./configure[4658]: -Wpointer-sign: cannot execute - No such file or directory
./configure[4731]: -O3: cannot execute - No such file or directory
./configure[4732]: -fno-math-errno: cannot execute - No such file or directory
./configure[4733]: -fno-signed-zeros: cannot execute - No such file or directory
./configure[4817]: -fno-tree-vectorize: cannot execute - No such file or directory
./configure[4817]: -Werror=implicit-function-declaration: cannot execute - No such file or directory
./configure[4817]: -Werror=missing-prototypes: cannot execute - No such file or directory
./configure[4817]: -Werror=return-type: cannot execute - No such file or directory
./configure[4817]: -Werror=vla: cannot execute - No such file or directory
./configure[4817]: -Wmaybe-uninitialized: cannot execute - No such file or directory


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg in QNX OS ?

yijian
In reply to this post by veni
Hi veni:
  did you suceed to compile ffmpeg in QNX OS? Please Give me some direction about it. And the binary is better.

Thank you for help.
Best regards.

Zefa,Liu.