Build LibVLC for ARM on MAC

This forum is about all development around libVLC.
Hachaso
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2011 16:54

Build LibVLC for ARM on MAC

Postby Hachaso » 27 Sep 2011 14:31

Hi!

I'm trying to build libVLC for ARM on my MAC OS X computer.
I first go to the extras/contrib folder and type: ./bootstrap arm-eabi unix
I suppose that line means that I want to build for ARM building on UNIX(my MAC OS X). Is this correct?

Later I type: make
This gives me some errors.

Code: Select all

make make -C src ( cd gettext && CC="arm-eabi-gcc" CXX="arm-eabi-g++" LD="arm-eabi-ld" RANLIB="arm-eabi-ranlib" AR="arm-eabi-ar" STRIP="arm-eabi-strip" ./configure --target=arm-eabi --host=arm-eabi --build=i686-apple-darwin10 --program-prefix="" --prefix=/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi --disable-java --disable-native-java --without-emacs) checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-eabi-strip... arm-eabi-strip checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking build system type... i686-apple-darwin10 checking host system type... arm-unknown-eabi configure: creating ./config.status config.status: creating Makefile config.status: creating gnulib-local/Makefile === configuring in gettext-runtime (/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/src/gettext/gettext-runtime) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi' '--target=arm-eabi' '--host=arm-eabi' '--build=i686-apple-darwin10' '--program-prefix=' '--disable-java' '--disable-native-java' '--without-emacs' 'build_alias=i686-apple-darwin10' 'host_alias=arm-eabi' 'target_alias=arm-eabi' 'CC=arm-eabi-gcc' 'CFLAGS=-I/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi/include -DNDEBUG -isystem /Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi/include' 'LDFLAGS=-L/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi/lib ' 'CPPFLAGS=-I/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi/include -DNDEBUG -isystem /Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi/include' 'CXX=arm-eabi-g++' 'CXXFLAGS=-I/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi/include -DNDEBUG -isystem /Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/arm-eabi/include' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-eabi-strip... arm-eabi-strip checking for a thread-safe mkdir -p... ../build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for arm-eabi-gcc... arm-eabi-gcc checking whether the C compiler works... no configure: error: in `/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/src/gettext/gettext-runtime': configure: error: C compiler cannot create executables See `config.log' for more details. configure: error: ./configure failed for gettext-runtime make[1]: *** [.intl] Error 77 make: *** [using-src] Error 2

What am I doing wrong?

Thanks

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Build LibVLC for ARM on MAC

Postby Rémi Denis-Courmont » 27 Sep 2011 17:11

As the error says, the compiler 'arm-eabi-gcc' does not seem to work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Hachaso
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2011 16:54

Re: Build LibVLC for ARM on MAC

Postby Hachaso » 28 Sep 2011 10:37

How do you specify with the bootstrap to point to the correct ARM compiler ?

Hachaso
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2011 16:54

Re: Build LibVLC for ARM on MAC

Postby Hachaso » 28 Sep 2011 11:27

My config.mak file in the extras/contrib folder looks like this before I run make:

Code: Select all

# Automatically generated by bootstrap. # Make changes if you know what you're doing. ARCH = BUILD = i686-apple-darwin10 HOST = i686-apple-darwin10 PREFIX = /Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm CC = ntoarm-gcc CXX = ntoarm-g++ LD = ntoarm-ld RANLIB = ntoarm-ranlib AR = ntoarm-ar STRIP = ntoarm-strip EXTRA_CFLAGS = EXTRA_CPPFLAGS = -isystem $(PREFIX)/include EXTRA_LDFLAGS = EXTRA_PATH = WGET = /Developer/SDKs/qnx650/host/darwin/x86/usr/bin/wget -c --passive SVN = /usr/bin/svn GIT = /usr/bin/git EXTRA_CFLAGS += -DNDEBUG
When I run make this is the output now.

Code: Select all

make -C src ( cd gettext && CC="ntoarm-gcc" CXX="ntoarm-g++" LD="ntoarm-ld" RANLIB="ntoarm-ranlib" AR="ntoarm-ar" STRIP="ntoarm-strip" ./configure --target=i686-apple-darwin10 --host=i686-apple-darwin10 --build=i686-apple-darwin10 --program-prefix="" --prefix=/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm --disable-java --disable-native-java --without-emacs) checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking build system type... i686-apple-darwin10 checking host system type... i686-apple-darwin10 configure: creating ./config.status config.status: creating Makefile config.status: creating gnulib-local/Makefile === configuring in gettext-runtime (/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/src/gettext/gettext-runtime) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm' '--target=i686-apple-darwin10' '--host=i686-apple-darwin10' '--build=i686-apple-darwin10' '--program-prefix=' '--disable-java' '--disable-native-java' '--without-emacs' 'build_alias=i686-apple-darwin10' 'host_alias=i686-apple-darwin10' 'target_alias=i686-apple-darwin10' 'CC=ntoarm-gcc' 'CFLAGS=-I/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm/include -DNDEBUG -isystem /Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm/include' 'LDFLAGS=-L/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm/lib ' 'CPPFLAGS=-I/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm/include -DNDEBUG -isystem /Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm/include' 'CXX=ntoarm-g++' 'CXXFLAGS=-I/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm/include -DNDEBUG -isystem /Users/bcalpe/programming/vlc-1.1.11/extras/contrib/hosts/ntoarm/include' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ../build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for i686-apple-darwin10-gcc... ntoarm-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/Users/bcalpe/programming/vlc-1.1.11/extras/contrib/src/gettext/gettext-runtime': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. configure: error: ./configure failed for gettext-runtime make[1]: *** [.intl] Error 1 make: *** [using-src] Error 2

Could someone help me out how to solve this part?

I'm trying to build for ARM on my MAC OS X

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Build LibVLC for ARM on MAC

Postby Rémi Denis-Courmont » 28 Sep 2011 13:55

You've configure the system for native compilation, yet you're cross-compiling. This confuses GNU/automake.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Hachaso
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2011 16:54

Re: Build LibVLC for ARM on MAC

Postby Hachaso » 28 Sep 2011 14:06

I'm really new at this. Could you maybe explain how to configure so that I can build for ARM on my MAC OS X ?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests