multiple definition issues in lastest vlc-android git

*nix specific usage questions
vukia
Blank Cone
Blank Cone
Posts: 28
Joined: 24 Jan 2011 07:03

multiple definition issues in lastest vlc-android git

Postby vukia » 08 Feb 2011 11:06

hi all,
here is the error log when I make the libvlcjni:

/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/dummy/.libs/libdummy_plugin.a(libdummy_plugin_la-decoder.o): In function `CloseDecoder':
/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/dummy/../../../../modules/misc/dummy/decoder.c:159: multiple definition of `CloseDecoder'
/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/stats/.libs/libstats_plugin.a(libstats_plugin_la-decoder.o):/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/stats/../../../../modules/misc/stats/decoder.c:106: first defined here
/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/dummy/.libs/libdummy_plugin.a(libdummy_plugin_la-decoder.o): In function `OpenDecoder':
/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/dummy/../../../../modules/misc/dummy/decoder.c:120: multiple definition of `OpenDecoder'
/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/stats/.libs/libstats_plugin.a(libstats_plugin_la-decoder.o):/home/vukia/android-ndk-r5/vlc-android-2011-02-08/vlc-android/builddir/modules/misc/stats/../../../../modules/misc/stats/decoder.c:45: first defined here
collect2: ld returned 1 exit status

i don't know what decoder.c should I use, can anybody give me some suggestion? thanks

JPeg
New Cone
New Cone
Posts: 9
Joined: 01 Nov 2007 23:25

Re: multiple definition issues in lastest vlc-android git

Postby JPeg » 08 Feb 2011 20:31

Hi,

I do not have this error anymore. You probably need to re-run ./bootstrap (from vlc source directory) or a make distclean in your build folder.
Let me know if it still fails to build.

jpeg

vukia
Blank Cone
Blank Cone
Posts: 28
Joined: 24 Jan 2011 07:03

Re: multiple definition issues in lastest vlc-android git

Postby vukia » 09 Feb 2011 08:02

Thanks for your reply,

I clone new version and follow the HOWTO again,
but I still got the same error log :(..

here is my jni make cmd:
VLC_BUILD_DIR=/home/vukia/android-ndk-r5/vlc-android-2011-02-09/vlc-android/builddir make

VLC_CONTRIB lib path is current by watching the Android.mk file..

ps. I uses ANDROID NDK R5 to build vlc-android.

vukia
Blank Cone
Blank Cone
Posts: 28
Joined: 24 Jan 2011 07:03

Re: multiple definition issues in lastest vlc-android git

Postby vukia » 09 Feb 2011 09:40

I've solved this problem by modifing the libvlcjni.h

marked the vlc_declare_plugin(stats) and vlc_plugin(stats) and built successfully,

now the vlc can run on 2.3 emulator and mytouch4G 2.2 ver

thanks everyone :)

sandmen
Blank Cone
Blank Cone
Posts: 14
Joined: 06 Dec 2009 08:04

Re: multiple definition issues in lastest vlc-android git

Postby sandmen » 27 Mar 2011 11:28

Hi,
I have the same error then you.

Code: Select all

SharedLibrary : libvlcjni.so /home/ubuntu/code/vlc-android/builddir/modules/misc/dummy/.libs/libdummy_plugin.a(libdummy_plugin_la-decoder.o): In function `CloseDecoder': /home/ubuntu/code/vlc-android/builddir/modules/misc/dummy/../../../../modules/misc/dummy/decoder.c:159: multiple definition of `CloseDecoder' /home/ubuntu/code/vlc-android/builddir/modules/misc/stats/.libs/libstats_plugin.a(libstats_plugin_la-decoder.o):/home/ubuntu/code/vlc-android/builddir/modules/misc/stats/../../../../modules/misc/stats/decoder.c:106: first defined here /home/ubuntu/code/vlc-android/builddir/modules/misc/dummy/.libs/libdummy_plugin.a(libdummy_plugin_la-decoder.o): In function `OpenDecoder': /home/ubuntu/code/vlc-android/builddir/modules/misc/dummy/../../../../modules/misc/dummy/decoder.c:120: multiple definition of `OpenDecoder' /home/ubuntu/code/vlc-android/builddir/modules/misc/stats/.libs/libstats_plugin.a(libstats_plugin_la-decoder.o):/home/ubuntu/code/vlc-android/builddir/modules/misc/stats/../../../../modules/misc/stats/decoder.c:45: first defined here collect2: ld returned 1 exit status
I need a little bit more information about this.
What i have to do?

Code: Select all

I've solved this problem by modifing the libvlcjni.h marked the vlc_declare_plugin(stats) and vlc_plugin(stats) and built successfully, now the vlc can run on 2.3 emulator and mytouch4G 2.2 ver thanks everyone :)

rockNme2349
New Cone
New Cone
Posts: 1
Joined: 18 Apr 2010 01:34

Re: multiple definition issues in lastest vlc-android git

Postby rockNme2349 » 07 May 2011 04:08

I don't know if you are still working on this, but I recently ran into the same problem and these instructions helped me finally figure out the last hurdle to getting this built.

Open extras/package/android/vlc-android/jni/libvlcjni.h

Replace
vlc_plugin(stats),
with
//vlc_plugin(stats),

and replace
vlc_declare_plugin(stats);
with
//vlc_declare_plugin(stats);


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 20 guests