Giter Club home page Giter Club logo

Comments (14)

rdp avatar rdp commented on September 24, 2024

So you used this to cross compile for windows, from a raspberry pi, or were
you cross compiling for raspberry pi?

On Fri, Feb 1, 2013 at 8:55 AM, Dennis Zierahn [email protected]:

Worked pretty nice.

For libxavs I had to add the "--disable-asm" option to configure.

build_libxavs() {
do_svn_checkout https://xavs.svn.sourceforge.net/svnroot/xavs/trunk xavs
cd xavs
export LDFLAGS='-lm'
generic_configure "--disable-asm" # unfortunately this using --host isn't
enough apparently...
unset LDFLAGS
do_make_install "CC=$(echo $cross_prefix)gcc AR=$(echo $cross_prefix)ar
PREFIX=$mingw_w64_x86_64_prefix RANLIB=$(echo $cross_prefix)ranlib
STRIP=$(echo $cross-prefix)strip"
cd ..
}


Reply to this email directly or view it on GitHubhttps://github.com//issues/3.

from ffmpeg-windows-build-helpers.

dezi avatar dezi commented on September 24, 2024

Hello Roger,

indeed I was cross compiling for windows on my RaspberryPi,
because i have no access to any other Intel linux machine
right now.

Your cross-helpers work pretty good. I appreciate this.

Cross compiling with bootstrapping the cross-compiler, which
also flawlessly worked, took about 20 hours.

The cross compiler on Raspberry had problems with some mmx instructions,
i do not recall the exact error. Anyway, setting the --disable-asm option helped
and was the only problem. Dirty patch of mine.

Cheers
Dennis
----- Original Message -----
From: Roger Pack
To: rdp/ffmpeg-windows-build-helpers
Cc: Dennis Zierahn
Sent: Friday, February 01, 2013 5:52 PM
Subject: Re: [ffmpeg-windows-build-helpers] Running this on Raspberry Pi / Debian / Wheezy (#3)

So you used this to cross compile for windows, from a raspberry pi, or were
you cross compiling for raspberry pi?

On Fri, Feb 1, 2013 at 8:55 AM, Dennis Zierahn [email protected]:

Worked pretty nice.

For libxavs I had to add the "--disable-asm" option to configure.

build_libxavs() {
do_svn_checkout https://xavs.svn.sourceforge.net/svnroot/xavs/trunk xavs
cd xavs
export LDFLAGS='-lm'
generic_configure "--disable-asm" # unfortunately this using --host isn't
enough apparently...
unset LDFLAGS
do_make_install "CC=$(echo $cross_prefix)gcc AR=$(echo $cross_prefix)ar
PREFIX=$mingw_w64_x86_64_prefix RANLIB=$(echo $cross_prefix)ranlib
STRIP=$(echo $cross-prefix)strip"
cd ..
}


Reply to this email directly or view it on GitHubhttps://github.com//issues/3.


Reply to this email directly or view it on GitHub.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

Ok could you post the exact error message so followers can find this? Then
I guess I'll close it and let people manually adjust if they run into it?
-r

On Fri, Feb 1, 2013 at 11:05 AM, Dennis Zierahn [email protected]:

Hello Roger,

indeed I was cross compiling for windows on my RaspberryPi,
because i have no access to any other Intel linux machine
right now.

Your cross-helpers work pretty good. I appreciate this.

Cross compiling with bootstrapping the cross-compiler, which
also flawlessly worked, took about 20 hours.

The cross compiler on Raspberry had problems with some mmx instructions,
i do not recall the exact error. Anyway, setting the --disable-asm option
helped
and was the only problem. Dirty patch of mine.

Cheers
Dennis
----- Original Message -----
From: Roger Pack
To: rdp/ffmpeg-windows-build-helpers
Cc: Dennis Zierahn
Sent: Friday, February 01, 2013 5:52 PM
Subject: Re: [ffmpeg-windows-build-helpers] Running this on Raspberry Pi /
Debian / Wheezy (#3)

So you used this to cross compile for windows, from a raspberry pi, or
were
you cross compiling for raspberry pi?

On Fri, Feb 1, 2013 at 8:55 AM, Dennis Zierahn [email protected]:

Worked pretty nice.

For libxavs I had to add the "--disable-asm" option to configure.

build_libxavs() {
do_svn_checkout https://xavs.svn.sourceforge.net/svnroot/xavs/trunkxavs
cd xavs
export LDFLAGS='-lm'
generic_configure "--disable-asm" # unfortunately this using --host
isn't
enough apparently...
unset LDFLAGS
do_make_install "CC=$(echo $cross_prefix)gcc AR=$(echo $cross_prefix)ar
PREFIX=$mingw_w64_x86_64_prefix RANLIB=$(echo $cross_prefix)ranlib
STRIP=$(echo $cross-prefix)strip"
cd ..
}


Reply to this email directly or view it on GitHub<
https://github.com/rdp/ffmpeg-windows-build-helpers/issues/3>.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-13006042.

from ffmpeg-windows-build-helpers.

dezi avatar dezi commented on September 24, 2024

When compiling for Win32 on a RaspberryPi with Debian Wheezy, You might
encounter the following error log and compiling terminates:


...
Found GNU assembler (GNU Binutils for Debian) 2.22
Minimum version is binutils-2.17
Your compiler can't handle inline SSSE3 asm.
If you really want to compile without asm, configure with --disable-asm.


Just add "--disable-asm" manually to the xavs configure and everything works fine.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

awesome thanks!

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

I wonder why it says "binutils" cannot handle SSE3. Odd.

(note for followers that disabling asm might slow down the final executable
I suppose...well if they ever end up using xavs which is pretty rare I must
imagine...)

On Fri, Feb 1, 2013 at 11:28 AM, Dennis Zierahn [email protected]:

When compiling for Win32 on a RaspberryPi with Debian Wheezy, You might

encounter the following error log and compiling terminates:

...
Found GNU assembler (GNU Binutils for Debian) 2.22
Minimum version is binutils-2.17
Your compiler can't handle inline SSSE3 asm.
If you really want to compile without asm, configure with --disable-asm.

Just add "--disable-asm" manually to the xavs configure and everything
works fine.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-13007034.

from ffmpeg-windows-build-helpers.

dezi avatar dezi commented on September 24, 2024

I belive, the asm sources are not correct prefixed with cross compile settings and the binutils were the native arm binutils.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

Judging from how much support I got from this ticket: https://sourceforge.net/projects/xavs/forums/forum/551032/topic/6136352 I don't have much hope of this ever being fixed, so thanks for posting the work around instructions :)

from ffmpeg-windows-build-helpers.

dezi avatar dezi commented on September 24, 2024

I tried Your workaround which no luck.

do_make_install "CC=$(echo $cross_prefix)gcc AR=$(echo $cross_prefix)ar PREFIX=$mingw_w64_x86_64_prefix RANLIB=$(echo $cross_prefix)ranlib STRIP=$(echo $cross-prefix)strip"

Anyway, the STRIP part has a mistake, there is a hyphen in cross_prefix instead of an underscore.

I am still working on this issue. I am not getting past the configure...

from ffmpeg-windows-build-helpers.

dezi avatar dezi commented on September 24, 2024

I have debugged the xavs configure now and found the problem. It needs --cross-prefix for configure.


build_libxavs() {
do_svn_checkout https://xavs.svn.sourceforge.net/svnroot/xavs/trunk xavs
cd xavs
export LDFLAGS='-lm'
generic_configure "--cross-prefix=$cross_prefix" # unfortunately this using --host isn't enough apparently...
unset LDFLAGS
do_make_install
cd ..
}


The only caveat is, that configure prefers a local native yasm for asm compiling (no prefixing here, which is just what we need). Since i have that installed on my Raspberry Pi, it works like a charm.

I still have to check if ffmpeg.exe is finally linkable and running ok.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

what if you use --cross-prefix and --host maybe?
Just wondering, thanks for debugging it.
-r

On Tue, Feb 19, 2013 at 12:39 AM, Dennis Zierahn
[email protected]:

I have debugged the xavs configure now and found the problem. It needs

--cross-prefix for configure.

build_libxavs() {
do_svn_checkout https://xavs.svn.sourceforge.net/svnroot/xavs/trunk xavs
cd xavs
export LDFLAGS='-lm'
generic_configure "--cross-prefix=$cross_prefix" # unfortunately this
using --host isn't enough apparently...
unset LDFLAGS
do_make_install
cd ..
}


The only caveat is, that configure prefers a local native yasm for asm
compiling (no prefixing here, which is just what we need). Since i have
that installed on my Raspberry Pi, it works like a charm.

I still have to check if ffmpeg.exe is finally linkable and running ok.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-13760496.

from ffmpeg-windows-build-helpers.

dezi avatar dezi commented on September 24, 2024

Since it worked anyway, i did not try it.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

Ok I have attempted to use your suggestions in 4d374e7 (and at least it doesn't hurt it in ubuntu so we're good there). I think using native yasm is ok as long as it calls it like "yasm -f win32" or the like. Thanks for your contribution! -r

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

see #658

from ffmpeg-windows-build-helpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.