Compiling new Contrib Tree with clang

macOS specific usage questions
diegofn
Blank Cone
Blank Cone
Posts: 48
Joined: 06 Mar 2008 17:34

Compiling new Contrib Tree with clang

Postby diegofn » 07 Nov 2011 16:25

Hi!

On November 2, @Feepk update the bootstrap to use clang compiler.

I'm try to compile contrib tree in Xcode 4.1 in MacOSX Lion x86_64 and Its my result

libdvbpsi

I receive the following error
http://pastebin.com/sNBWdBZ1

I fixed it, replacing the optimization flag in clang here

Code: Select all

--- configure-old 2011-11-07 10:21:50.000000000 -0500 +++ configure 2011-11-07 09:52:04.000000000 -0500 @@ -11655,7 +11655,7 @@ if test "$release" = "true" then - CFLAGS="${CFLAGS} -O6" + CFLAGS="${CFLAGS} -O2" else CFLAGS="${CFLAGS} -O2" fi
live555

I'm download the latest version of live555 and the Patch fails, here my Patch

Code: Select all

$ diff live-getaddrinfo.patch live-getaddrinfo.patch.old 45,47c45,47 < --- live.orig//groupsock/inet.c.orig 2011-11-12 15:06:09.000000000 -0500 < +++ live//groupsock/inet.c 2011-11-12 15:06:26.000000000 -0500 < @@ -76,16 +76,6 @@ --- > --- live.orig//groupsock/inet.c 2010-04-09 22:27:39.000000000 +0300 > +++ live//groupsock/inet.c 2010-04-17 20:14:07.000000000 +0300 > @@ -83,16 +83,6 @@ 61c61 < #ifdef USE_SYSTEM_RANDOM --- > #ifndef USE_OUR_RANDOM
libcaca

clang doesn't support weak,alias. Patching from this libcaca ticket

Code: Select all

http://caca.zoy.org/ticket/90
I'm waiting that you accept my comments and changes :)

Greetings from Colombia
Last edited by diegofn on 12 Nov 2011 23:45, edited 3 times in total.

fkuehne
Developer
Developer
Posts: 7190
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Compiling new Contrib Tree with clang

Postby fkuehne » 08 Nov 2011 00:41

Thanks for your work. Could you please send 2 patches for this to vlc-devel so I can merge them retaining your copyright?
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 5 guests