Android OS Forum banner
21 - 37 of 37 Posts

·
Android Apprentice
Joined
·
113 Posts
Giving this another try

I installed Mint 11 under virtual machine in Windows 7, updated Mint 11 to the most current state. Start pasting the commands listed in the first post of this thread, errors out again when it's trying to compile, stops with:

configure: error: C compiler cannot create executables

I did notice that after entering the "make" command I get an error 2 message that looks like the following

Code:
[email protected] ~/vlc-android/extras/contrib $ make<br />
make -C build-src tools<br />
make[1]: Entering directory `/home/kahlil/vlc-android/extras/contrib/build-src'<br />
make[1]: Nothing to be done for `tools'.<br />
make[1]: Leaving directory `/home/kahlil/vlc-android/extras/contrib/build-src'<br />
make -C build-src<br />
make[1]: Entering directory `/home/kahlil/vlc-android/extras/contrib/build-src'<br />
"/usr/bin/wget" -c --passive [URL=http://heanet.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar]http://heanet.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar[/URL].gz<br />
--2011-07-01 23:36:11--  [URL=http://heanet.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar]http://heanet.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar[/URL].gz<br />
Resolving heanet.dl.sourceforge.net... 193.1.193.66, 2001:770:18:aa40::c101:c142<br />
Connecting to heanet.dl.sourceforge.net|193.1.193.66|:80... connected.<br />
HTTP request sent, awaiting response... 302 Found<br />
Location: [URL=http://downloads.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar.gz?download&failedmirror=heanet.dl.sourceforge.net]http://downloads.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar.gz?download&failedmirror=heanet.dl.sourceforge.net[/URL] [following]<br />
--2011-07-01 23:36:11--  [URL=http://downloads.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar.gz?download&failedmirror=heanet.dl.sourceforge]http://downloads.sourceforge.net/sourceforge/libpng/zlib-1.2.5.tar.gz?download&failedmirror=heanet.dl.sourceforge[/URL].net<br />
Resolving downloads.sourceforge.net... 216.34.181.59<br />
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.<br />
HTTP request sent, awaiting response... 301 Moved Permanently<br />
Location: [URL=http://downloads.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz?download=&failedmirror=heanet.dl.sourceforge.net]http://downloads.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz?download=&failedmirror=heanet.dl.sourceforge.net[/URL] [following]<br />
--2011-07-01 23:36:12--  [URL=http://downloads.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz?download=&failedmirror=heanet.dl.sourceforge]http://downloads.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz?download=&failedmirror=heanet.dl.sourceforge[/URL].net<br />
Reusing existing connection to [URL=downloads.sourceforge.net:80]downloads.sourceforge.net:80[/URL].<br />
HTTP request sent, awaiting response... 302 Found<br />
Location: [URL=http://cdnetworks-us-1.dl.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz]http://cdnetworks-us-1.dl.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar.gz[/URL] [following]<br />
--2011-07-01 23:36:12--  [URL=http://cdnetworks-us-1.dl.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar]http://cdnetworks-us-1.dl.sourceforge.net/project/libpng/zlib/1.2.5/zlib-1.2.5.tar[/URL].gz<br />
Resolving cdnetworks-us-1.dl.sourceforge.net... 174.35.19.11<br />
Connecting to cdnetworks-us-1.dl.sourceforge.net|174.35.19.11|:80... connected.<br />
HTTP request sent, awaiting response... 200 OK<br />
Length: 544640 (532K) [application/x-gzip]<br />
Saving to: `zlib-1.2.5.tar.gz'<br />
<br />
100%[======================================>] 544,640      486K/s   in 1.1s    <br />
<br />
2011-07-01 23:36:13 (486 KB/s) - `zlib-1.2.5.tar.gz' saved [544640/544640]<br />
<br />
rm -rf zlib || true<br />
gunzip -c zlib-1.2.5.tar.gz | tar xf - --exclude='[*?:<>\|]'<br />
mv zlib-1.2.5 zlib || true<br />
touch zlib<br />
patch -p0 < Patches/zlib-wince.patch<br />
patching file zlib/zutil.h<br />
patch -p0 < Patches/zlib-static.patch<br />
patching file zlib/Makefile.in<br />
(cd zlib; CC="arm-linux-androideabi-gcc -nostdlib -lc -lgcc" CXX="arm-linux-androideabi-g++ -nostdlib -lc -lgcc -D__STDC_VERSION__=199901L" LD="arm-linux-androideabi-ld" RANLIB="arm-linux-androideabi-ranlib" AR="arm-linux-androideabi-ar" STRIP="arm-linux-androideabi-strip" ./configure --prefix=/home/kahlil/vlc-android/extras/contrib/hosts/arm-eabi --static && make install)<br />
Building static library libz.a version 1.2.5 with arm-linux-androideabi-gcc -nostdlib -lc -lgcc.<br />
Checking for off64_t... No.<br />
Checking for fseeko... No.<br />
Checking for unistd.h... No.<br />
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf().<br />
Checking for snprintf() in stdio.h... No.<br />
  WARNING: snprintf() not found, falling back to sprintf(). zlib<br />
  can build but will be open to possible buffer-overflow security<br />
  vulnerabilities.<br />
Checking for return value of sprintf()... No.<br />
  WARNING: apparently sprintf() does not return a value. zlib<br />
  can build but will be open to possible string-format security<br />
  vulnerabilities.<br />
make[2]: Entering directory `/home/kahlil/vlc-android/extras/contrib/build-src/zlib'<br />
arm-linux-androideabi-gcc -nostdlib -lc -lgcc -I/home/kahlil/vlc-android/extras/contrib/hosts/arm-eabi/include  -DNDEBUG -I/usr/local/android-ndk/sources/cxx-stl/gnu-libstdc++/include -I/usr/local/android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -isystem /home/kahlil/vlc-android/extras/contrib/hosts/arm-eabi/include -I/usr/local/android-ndk/platforms/android-9/arch-arm/usr/include -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -I/home/kahlil/vlc-android/extras/contrib/hosts/arm-eabi/include  -DNDEBUG -I/usr/local/android-ndk/sources/cxx-stl/gnu-libstdc++/include -I/usr/local/android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -isystem /home/kahlil/vlc-android/extras/contrib/hosts/arm-eabi/include -I/usr/local/android-ndk/platforms/android-9/arch-arm/usr/include  -c -o adler32.o adler32.c<br />
make[2]: arm-linux-androideabi-gcc: Command not found<br />
make[2]: *** [adler32.o] Error 127<br />
make[2]: Leaving directory `/home/kahlil/vlc-android/extras/contrib/build-src/zlib'<br />
make[1]: *** [.zlib] Error 2<br />
make[1]: Leaving directory `/home/kahlil/vlc-android/extras/contrib/build-src'<br />
make: *** [using-src] Error 2
What does that mean and how do I go about fixing it?

I restarted the virtual machine and tried it again, after pasting the second line of code, this is what I get:

Code:
[email protected] ~ $ sudo apt-get install wget subversion libtool dh-autoreconf<br />
[sudo] password for kahlil: <br />
Reading package lists... Done<br />
Building dependency tree       <br />
Reading state information... Done<br />
dh-autoreconf is already the newest version.<br />
libtool is already the newest version.<br />
wget is already the newest version.<br />
subversion is already the newest version.<br />
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
What is the 7 not upgraded and how do I upgrade them?

I also installed the previous recommended packages, but it doesn't seem to have made a difference.

I fail at Linux :_con:

Any help would greatly be appreciated.
 

·
Developer
Joined
·
194 Posts
Discussion Starter · #22 ·
I'm still not the best at diagnosing problems in Linux since I've only been doing this for a few months, but it does get less scary as you go along. The packages are not upgrading because you already have the most up-to-date version of them. So that's why you're getting that error =)

Also, you're cross compiling from a Mac that's in Windows right?

You could try installing and see if these let you make it further.

$ sudo apt-get install gcc-4.5-arm-linux-gnueabi gcc-4.5-arm-linux-gnueabi-base
 

·
Android Apprentice
Joined
·
113 Posts
After pasting: sudo apt-get install gcc-4.5-arm-linux-gnueabi gcc-4.5-arm-linux-gnueabi-base

Terminal spits out the following:

[email protected] ~ $ sudo apt-get install gcc-4.5-arm-linux-gnueabi gcc-4.5-arm-linux-gnueabi-base
[sudo] password for kahlil:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.5-arm-linux-gnueabi is already the newest version.
gcc-4.5-arm-linux-gnueabi set to manually installed.
gcc-4.5-arm-linux-gnueabi-base is already the newest version.
gcc-4.5-arm-linux-gnueabi-base set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

Would you like me to paste the log?

I'm currently running Mint 11 using Windows Virtual PC on Windows 7 Desktop. I had Mint 11 installed on my 2008 MacBook Pro, it was running pretty well, I still got the same "C compiler cannot create executables." Had to uninstall the Mint 11 Dual boot because every time I tried to boot into Snow Leopard, my maximum resolution would only be 800 x 600 and going into system settings couldn't change it.
 

·
Developer
Joined
·
194 Posts
Discussion Starter · #24 ·
Sure, I wouldn't mind seeing the log now. I'm wondering if you're having trouble compiling because you're doing it from in Windows.

Have you done an update and an upgrade lately?

$ sudo apt-get update
$ sudo apt-get dist-upgrade
 

·
Average Android
Joined
·
169 Posts
Anyone have this problem on the last command?
Code:
[email protected]:~/vlc-android/extras/package/android$ VLC_BUILD_DIR=~/vlc-android/builddir VLC_CONTRIB=~/vlc-android/extras/contrib/build make<br />
=== Building APK ==<br />
<br />
BUILD FAILED<br />
/home/coggy9/vlc-android/extras/package/android/vlc-android/build.xml:84: Unable to resolve target 'android-8'<br />
<br />
Total time: 0 seconds<br />
make: *** [vlc-android/bin/VLC-debug.apk] Error 1
Didn't see anything wrong with the other steps.
EDIT: Installed 2.2 SDK platform, fixed it.
 

·
Developer
Joined
·
194 Posts
Discussion Starter · #26 ·
If you run into any other errors while compiling other projects that give a different android-#, then Sagi's Tech could be a good page to keep bookmarked for reference.

Unable to resolve target 'android-1' ==> (Android 1.0) change the "AndroidManifest.xml"
Unable to resolve target 'android-2' ==> (Android 1.1) change the "AndroidManifest.xml"
Unable to resolve target 'android-3' ==> install SDK Platform Android 1.5
Unable to resolve target 'android-4' ==> install SDK Platform Android 1.6
Unable to resolve target 'android-5' ==> install SDK Platform Android 2.0
Unable to resolve target 'android-6' ==> install SDK Platform Android 2.0.1
Unable to resolve target 'android-7' ==> install SDK Platform Android 2.1
Unable to resolve target 'android-8' ==> install SDK Platform Android 2.2
Unable to resolve target 'android-9' ==> install SDK Platform Android 2.3
Unable to resolve target 'android-10' ==> install SDK Platform Android 2.3.3
Unable to resolve target 'android-11' ==> install SDK Platform Android 3.0
Unable to resolve target 'android-12' ==> install SDK Platform Android 3.1
 

·
Android Beginner
Joined
·
4 Posts
Hi to everybody!

I've got error when compiling extras. A problem with compiling ffmpeg i think...
The last messages i see (sorry, they are in Russian, i tried to translate some of them):
make[2]: Leaving directory `/home/rimmer/vlc-android/extras/contrib/build-src/ffmpeg'
make[2]: Entering directory `/home/rimmer/vlc-android/extras/contrib/build-src/ffmpeg'
make[2]: предупреждение: сервер задач недоступен: используется -j1.
Add `+' to the parent make rule.
INSTALL libavdevice/libavdevice.a
INSTALL libavformat/libavformat.a
INSTALL libavcodec/libavcodec.a
INSTALL libpostproc/libpostproc.a
INSTALL libswscale/libswscale.a
INSTALL libavcore/libavcore.a
INSTALL libavutil/libavutil.a
INSTALL libavdevice/avdevice.h
INSTALL libavdevice/libavdevice.pc
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/libavformat.pc
INSTALL libavcodec/avcodec.h
INSTALL libavcodec/avfft.h
INSTALL libavcodec/dxva2.h
INSTALL libavcodec/opt.h
INSTALL libavcodec/vaapi.h
INSTALL libavcodec/vdpau.h
INSTALL libavcodec/xvmc.h
INSTALL libavcodec/libavcodec.pc
INSTALL libpostproc/postprocess.h
INSTALL libpostproc/libpostproc.pc
INSTALL libswscale/swscale.h
INSTALL libswscale/libswscale.pc
INSTALL libavcore/audioconvert.h
INSTALL libavcore/avcore.h
INSTALL libavcore/imgutils.h
INSTALL libavcore/parseutils.h
INSTALL libavcore/samplefmt.h
INSTALL libavcore/libavcore.pc
INSTALL libavutil/adler32.h
INSTALL libavutil/attributes.h
INSTALL libavutil/avassert.h
INSTALL libavutil/avstring.h
INSTALL libavutil/avutil.h
INSTALL libavutil/base64.h
INSTALL libavutil/bswap.h
INSTALL libavutil/common.h
INSTALL libavutil/cpu.h
INSTALL libavutil/crc.h
INSTALL libavutil/error.h
INSTALL libavutil/eval.h
INSTALL libavutil/fifo.h
INSTALL libavutil/file.h
INSTALL libavutil/intfloat_readwrite.h
INSTALL libavutil/intreadwrite.h
INSTALL libavutil/lfg.h
INSTALL libavutil/log.h
INSTALL libavutil/lzo.h
INSTALL libavutil/mathematics.h
INSTALL libavutil/md5.h
INSTALL libavutil/mem.h
INSTALL libavutil/opt.h
INSTALL libavutil/pixdesc.h
INSTALL libavutil/pixfmt.h
INSTALL libavutil/random_seed.h
INSTALL libavutil/rational.h
INSTALL libavutil/sha1.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/libavutil.pc
make[2]: Leaving directory `/home/rimmer/vlc-android/extras/contrib/build-src/ffmpeg'
touch .ffmpeg
make[1]: Entering directory `/home/rimmer/vlc-android/extras/contrib/build-src'
make: *** [using-src] Error 2
 

·
Developer
Joined
·
194 Posts
Discussion Starter · #28 ·
Are you on the ./compile step? It might be better to ./compile -k depending on the build of the VLC at the time. They seem to have problems with certain aspects of the building and features working better/worse everytime I download and recompile it.
 

·
Android Beginner
Joined
·
4 Posts
Tahl said:
Are you on the ./compile step? It might be better to ./compile -k depending on the build of the VLC at the time. They seem to have problems with certain aspects of the building and features working better/worse everytime I download and recompile it.
no, i'm on make step (in contrib dir)
i use make -k, but it doesn't succeed
 

·
Developer
Joined
·
194 Posts
Discussion Starter · #30 ·
I am out of state and away from my computer at the moment. Did you try using just make? I would delete the VLC git and start over with just make and not make -k. If they had any errors when you downloaded it originally they may be fixed now.

Sent from my DROIDX using Tapatalk
 

·
Android Beginner
Joined
·
4 Posts
Tahl said:
I am out of state and away from my computer at the moment. Did you try using just make? I would delete the VLC git and start over with just make and not make -k. If they had any errors when you downloaded it originally they may be fixed now.

Sent from my DROIDX using Tapatalk
yes, i tried make, and tried make -k
now i will try on virtual machine with Ubuntu 10.04 x86, hope will succeed :)

tnx for paying attention to me ;)
 

·
Android Beginner
Joined
·
4 Posts
ok, so i succeed compiling VLC!
i user clear installation of Ubuntu 10.04 x86 on my VirtualBox

only one error occured, but i fixed it in .cpp file (incorrect type conversion)
so it seems, that if u want to compile VLC on Android, u should use Ubuntu 10.04 and it should be x86 (not x64)

thanks once more for paying attention to me )
 

·
Developer
Joined
·
194 Posts
Discussion Starter · #33 ·
rimmer said:
ok, so i succeed compiling VLC!
i user clear installation of Ubuntu 10.04 x86 on my VirtualBox

only one error occured, but i fixed it in .cpp file (incorrect type conversion)
so it seems, that if u want to compile VLC on Android, u should use Ubuntu 10.04 and it should be x86 (not x64)

thanks once more for paying attention to me )
I'm glad you could get it working. It's very strange that some people are having to use x86 version of Ubuntu 10.04 to compile though. I haven't had any problems compiling it in Linux Mint 11 on a 64 bit install. I'm wondering if has to do with hardware that people are using.
 

·
Average Android
Joined
·
79 Posts
I've been working on this for a couple of days now. Problem I had at first was not having the libstdc++.a in the android-ndk, but it still compiled. I copied the file from the /usr/lib/gcc directory, and now it won't compile due to missing lliveMedia.

My question is, am I gonna have to compile livemedia before building vlc or is there something I'm missing here? Thanks in advance for your help.

Sent from my Droid using Tapatalk
 

·
Registered
Joined
·
1 Posts
Hello Tahl

I am not very experienced with Linux.

I tried following your steps but I got the same problems as kman79

When running the command: sh ~/vlc-android/extras/package/android/configure.sh

it came with the same errors as kman79 posted.

I followed all the tryouts with installing packages, but it still will not finnish the script.

Here is the last output i get from running the configure.sh script:

:~/vlc-android/builddir$ sh ~/vlc-android/extras/package/android/configure.sh
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-eabi-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-eabi-linux-strip... /usr/local/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86/bin//arm-linux-androideabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for arm-eabi-linux-gcc... /usr/local/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86/bin//arm-linux-androideabi-gcc --sysroot=/usr/local/android-ndk/platforms/android-9/arch-arm
checking whether the C compiler works... no
configure: error: in `/home/per-jarle/vlc-android/builddir':
configure: error: C compiler cannot create executables
See `config.log' for more details

I tried to attach the config.log file, but I don't have permissions to upload this kind of file.

I'm running Ubuntu 12.10

Do you have any advice how to get further?

Best regards

Per-Jarle
 

·
Premium Member
Joined
·
4,348 Posts
I'm running Ubuntu 12.10

Do you have any advice how to get further?

Best regards

Per-Jarle
You're missing the system install of gcc. Install build-essential if you have not.

aptitude install build-essential

or

apt-get install build-essential

Always Google your error messages. You can't rely on someone always solving your issues as not always will someone reply. Plus, replies take a while. Especially in threads as old as this one, it's unlikely the creator will even reply at this point.
 
21 - 37 of 37 Posts
Top