FFMPEG with gnutls static build for Android

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

FFMPEG with gnutls static build for Android

Michael Wood
Hi,

I'm trying to build ffmpeg with gnutls as a static library, but the issue
i'm seeing is when I link to the built ffmpeg libs in my project, that
should build a final shared library, i'm getting undefined references to
gnutls and its dependencies.

I'm trying to figure out how to proceed with this. I've expected that the
final libs would have no external dependencies if they are built as static
or am i missing something ?

Best,
Mike
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG with gnutls static build for Android

Reindl Harald


Am 08.02.21 um 17:47 schrieb Michael Wood:

> Hi,
>
> I'm trying to build ffmpeg with gnutls as a static library, but the issue
> i'm seeing is when I link to the built ffmpeg libs in my project, that
> should build a final shared library, i'm getting undefined references to
> gnutls and its dependencies.
>
> I'm trying to figure out how to proceed with this. I've expected that the
> final libs would have no external dependencies if they are built as static
> or am i missing something ?

yes you miss something, thats's only possible if the library is even
available as static library itself

https://stackoverflow.com/questions/12237282/whats-the-difference-between-so-la-and-a-library-files/12237595

if there is only a .so it can be only linked dynamic and so you need a
static library version of *everything* you link against
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG with gnutls static build for Android

Michael Wood
Hi Reindl

The dependencies are all built from source as static libs (gnutls, gmp,
nettle).

Thanks


On Mon, Feb 8, 2021 at 5:51 PM Reindl Harald <[hidden email]> wrote:

>
>
> Am 08.02.21 um 17:47 schrieb Michael Wood:
> > Hi,
> >
> > I'm trying to build ffmpeg with gnutls as a static library, but the issue
> > i'm seeing is when I link to the built ffmpeg libs in my project, that
> > should build a final shared library, i'm getting undefined references to
> > gnutls and its dependencies.
> >
> > I'm trying to figure out how to proceed with this. I've expected that the
> > final libs would have no external dependencies if they are built as
> static
> > or am i missing something ?
>
> yes you miss something, thats's only possible if the library is even
> available as static library itself
>
>
> https://stackoverflow.com/questions/12237282/whats-the-difference-between-so-la-and-a-library-files/12237595
>
> if there is only a .so it can be only linked dynamic and so you need a
> static library version of *everything* you link against
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG with gnutls static build for Android

Reindl Harald


Am 08.02.21 um 18:02 schrieb Michael Wood:
> Hi Reindl
>
> The dependencies are all built from source as static libs (gnutls, gmp,
> nettle).

besides that you shouldn't top-post your theard start is completly
useless! no configuire line, no details, nothing

> On Mon, Feb 8, 2021 at 5:51 PM Reindl Harald <[hidden email]> wrote:
>
>>
>>
>> Am 08.02.21 um 17:47 schrieb Michael Wood:
>>> Hi,
>>>
>>> I'm trying to build ffmpeg with gnutls as a static library, but the issue
>>> i'm seeing is when I link to the built ffmpeg libs in my project, that
>>> should build a final shared library, i'm getting undefined references to
>>> gnutls and its dependencies.
>>>
>>> I'm trying to figure out how to proceed with this. I've expected that the
>>> final libs would have no external dependencies if they are built as
>> static
>>> or am i missing something ?
>>
>> yes you miss something, thats's only possible if the library is even
>> available as static library itself
>>
>>
>> https://stackoverflow.com/questions/12237282/whats-the-difference-between-so-la-and-a-library-files/12237595
>>
>> if there is only a .so it can be only linked dynamic and so you need a
>> static library version of *everything* you link against
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG with gnutls static build for Android

Michael Wood
Sorry about that,

Here is my configure

./configure
--cross-prefix=arm-linux-androideabi-
--sysroot=${HOME}/Android/sdk/ndk/latest/toolchains/llvm/prebuilt/darwin-x86_64/sysroot
--prefix=${HOME}/Developer/mobile-ffmpeg/prebuilt/android-arm/ffmpeg
--pkg-config=/usr/local/bin/pkg-config
--enable-version3
--arch=armv7-a
--cpu=armv7-a
--cc=armv7a-linux-androideabi16-clang
--cxx=armv7a-linux-androideabi16-clang++
--extra-libs='\''-L${HOME}/Developer/mobile-ffmpeg/prebuilt/android-arm/cpu-features/lib
-lndk_compat'\''
--target-os=android
--disable-neon
--enable-asm
--enable-inline-asm
--enable-cross-compile
--enable-pic
--enable-jni
--enable-optimizations
--enable-swscale
--enable-v4l2-m2m
--enable-static
--disable-shared
--disable-outdev=fbdev
--disable-indev=fbdev
--enable-small
--disable-openssl
--disable-xmm-clobber-test
--disable-debug
--disable-lto
--disable-neon-clobber-test
--disable-programs
--disable-postproc
--disable-doc
--disable-htmlpages
--disable-manpages
--disable-podpages
--disable-txtpages
--disable-sndio
--disable-schannel
--disable-securetransport
--disable-xlib
--disable-cuda
--disable-cuvid
--disable-nvenc
--disable-vaapi
--disable-vdpau
--disable-videotoolbox
--disable-audiotoolbox
--disable-appkit
--disable-alsa
--disable-cuda
--disable-cuvid
--disable-nvenc
--disable-vaapi
--disable-vdpau
--enable-gmp
--enable-gnutls
--enable-iconv
--disable-sdl2
--enable-zlib'

From what i can tell, pretty much normal stuff.


On Mon, Feb 8, 2021 at 6:10 PM Reindl Harald <[hidden email]> wrote:

>
>
> Am 08.02.21 um 18:02 schrieb Michael Wood:
> > Hi Reindl
> >
> > The dependencies are all built from source as static libs (gnutls, gmp,
> > nettle).
>
> besides that you shouldn't top-post your theard start is completly
> useless! no configuire line, no details, nothing
>
> > On Mon, Feb 8, 2021 at 5:51 PM Reindl Harald <[hidden email]>
> wrote:
> >
> >>
> >>
> >> Am 08.02.21 um 17:47 schrieb Michael Wood:
> >>> Hi,
> >>>
> >>> I'm trying to build ffmpeg with gnutls as a static library, but the
> issue
> >>> i'm seeing is when I link to the built ffmpeg libs in my project, that
> >>> should build a final shared library, i'm getting undefined references
> to
> >>> gnutls and its dependencies.
> >>>
> >>> I'm trying to figure out how to proceed with this. I've expected that
> the
> >>> final libs would have no external dependencies if they are built as
> >> static
> >>> or am i missing something ?
> >>
> >> yes you miss something, thats's only possible if the library is even
> >> available as static library itself
> >>
> >>
> >>
> https://stackoverflow.com/questions/12237282/whats-the-difference-between-so-la-and-a-library-files/12237595
> >>
> >> if there is only a .so it can be only linked dynamic and so you need a
> >> static library version of *everything* you link against
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG with gnutls static build for Android

Carl Eugen Hoyos-2
Am Mo., 8. Feb. 2021 um 18:20 Uhr schrieb Michael Wood <[hidden email]>:

> From what i can tell, pretty much normal stuff.

No.

Please find out what top-posting means and avoid it here,
then test with something like:
$ ./configure --cross-prefix=-... arch=... --target-os=...
--sysprefix=... --cc=... --enable-gnutls
run "make V=1 ffmpeg" twice (or more often) and provide the configure
line and the console output of the last run (do not post the
console output of the first run).

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FFMPEG with gnutls static build for Android

Michael Wood
> On Mon, Feb 8, 2021 at 7:11 PM Carl Eugen Hoyos <[hidden email]>
wrote:

> > Am Mo., 8. Feb. 2021 um 18:20 Uhr schrieb Michael Wood <
[hidden email]>:

> >

> >> From what i can tell, pretty much normal stuff.

> >

> > No.

> >

> > Please find out what top-posting means and avoid it here,

> > then test with something like:

> > $ ./configure --cross-prefix=-... arch=... --target-os=...

> > --sysprefix=... --cc=... --enable-gnutls

> > run "make V=1 ffmpeg" twice (or more often) and provide the configure

> > line and the console output of the last run (do not post the

> > console output of the first run).

>
> Carl Eugen

Sorry about that. Hopefully it should be fine now.

Here is the config log https://0x0.st/-HpM.zip
And here is the verbose build log https://0x0.st/-H9t.zip

Best,
Mike
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".