Page 1 of 1

compile error on vlc ios

Posted: 10 Aug 2012 12:18
by kc.chen
configure: WARNING: Library kate >= 0.3.0 needed for kate was not found
configure: WARNING: No package 'sdl' found.
configure: WARNING: Library librsvg-2.0 >= 2.9.0 needed for svg was not found
configure: WARNING: Library caca >= 0.99.beta14 needed for caca was not found
configure: WARNING: Library samplerate needed for samplerate was not found
configure: WARNING: The skins2 module depends on the Qt4 interface, Qt4 is not built so skins2 is disabled.
configure: WARNING: No package 'libvsxu' found.
configure: WARNING: Library avahi-client >= 0.6 needed for bonjour was not found
configure: WARNING: Library libudev >= 142 needed for udev was not found
configure: WARNING: Library libupnp needed for upnp was not found
[info] Building libvlc
libtool: compile: specify a tag with `--tag'
make[5]: *** [merge_arm.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Does anyone know how to fix the compile error? I don't know where to add the "--tag" for compile.
I am using the code from git.

Re: compile error on vlc ios

Posted: 11 Aug 2012 05:52
by kc.chen
./buildMobileVLC.sh
[info] Preparing build dirs
[info] Building
[info] Building vlc
[info] Building libvlc for the iOS
[info] Using armv7 with SDK version 5.1
SDKROOT not specified, assuming /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
[info] Building tools
You are ready to build VLC and its contribs
make: `.gas' is up to date.
[info] Building contrib for iOS in '/Users/fuzhicompany/code/MobileVLC/ImportedSources/vlc/contrib/iPhoneOS'
[info] LD FLAGS SELECTED = '-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/lib -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -miphoneos-version-min=5.0 '
/Users/fuzhicompany/code/MobileVLC/ImportedSources/vlc
make: Nothing to be done for `all'.
[info] Bootstraping vlc
/Users/fuzhicompany/code/MobileVLC/ImportedSources/vlc/extras/package/ios
[info] VLCROOT = /Users/fuzhicompany/code/MobileVLC/ImportedSources/vlc
[info] Bootstraping vlc finished
[info] >> --prefix=/Users/fuzhicompany/code/MobileVLC/ImportedSources/vlc/install-ios-OS --host=arm-apple-darwin11
[info] Building libvlc
libtool: compile: specify a tag with `--tag'
make[5]: *** [merge_arm.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Re: compile error on vlc ios

Posted: 11 Aug 2012 11:45
by jinlsg
i meet this the same Problem。
i add
--disable-asm
in
MobileVLC/ImportedSources/vlc/contrib/src/ffmpeg/rules.mak
as this

As this:

FFMPEGCONF = \
--cc="$(CC)" \
--disable-doc \
--disable-decoder=libvpx \
--disable-decoder=bink \
--enable-libgsm \
--enable-libopenjpeg \
--disable-debug \
--disable-avdevice \
--disable-devices \
--disable-avfilter \
--disable-asm \
--disable-filters

Re: compile error on vlc ios

Posted: 11 Aug 2012 18:07
by kc.chen
i meet this the same Problem。
i add
--disable-asm
in
MobileVLC/ImportedSources/vlc/contrib/src/ffmpeg/rules.mak
as this

As this:

FFMPEGCONF = \
--cc="$(CC)" \
--disable-doc \
--disable-decoder=libvpx \
--disable-decoder=bink \
--enable-libgsm \
--enable-libopenjpeg \
--disable-debug \
--disable-avdevice \
--disable-devices \
--disable-avfilter \
--disable-asm \
--disable-filters
Thanks for your reply, I have already changed the file as you said, still get the same error. The way you said is for another error.

Re: compile error on vlc ios

Posted: 12 Aug 2012 08:02
by jinlsg
i meet this same problem
who can help?

Re: compile error on vlc ios

Posted: 13 Aug 2012 00:41
by Jean-Baptiste Kempf
Sorry, you need to find yourself the issue.... iOS is not popular here...

Re: compile error on vlc ios

Posted: 14 Aug 2012 12:19
by kc.chen
i meet this same problem
who can help?

Do some change in MobileVLC/ImportedSources/vlc/modules/video_filter/Modules.am

index 0585d6f..d976380 100644
--- a/modules/video_filter/Modules.am
+++ b/modules/video_filter/Modules.am
@@ -1,3 +1,6 @@
+#kc add for fix
+LIBTOOL=@LIBTOOL@ --tag=CC
+
SUBDIRS = dynamicoverlay

SOURCES_mosaic = mosaic.c mosaic.h

you can fix the error. : )

Re: compile error on vlc ios

Posted: 15 Aug 2012 09:02
by jinlsg
i meet this same problem
who can help?

Do some change in MobileVLC/ImportedSources/vlc/modules/video_filter/Modules.am

index 0585d6f..d976380 100644
--- a/modules/video_filter/Modules.am
+++ b/modules/video_filter/Modules.am
@@ -1,3 +1,6 @@
+#kc add for fix
+LIBTOOL=@LIBTOOL@ --tag=CC
+
SUBDIRS = dynamicoverlay

SOURCES_mosaic = mosaic.c mosaic.h

you can fix the error. : )
i can't find this
index 0585d6f..d976380 100644
--- a/modules/video_filter/Modules.am
+++ b/modules/video_filter/Modules.am

in this files
MobileVLC/ImportedSources/vlc/modules/video_filter/Modules.am

Re: compile error on vlc ios

Posted: 15 Aug 2012 09:02
by jinlsg
thanks for help

Re: compile error on vlc ios

Posted: 15 Aug 2012 09:29
by kc.chen
thanks for help
: )

Re: compile error on vlc ios

Posted: 28 Aug 2012 03:23
by dongyafeiying
I add "LIBTOOL=@LIBTOOL@ --tag=CC" on the head ,it works.

MobileVLC/ImportedSources/vlc/modules/video_filter/Modules.am:

LIBTOOL=@LIBTOOL@ --tag=CC
SUBDIRS = dynamicoverlay
.
.

Re: compile error on vlc ios

Posted: 04 Sep 2012 03:14
by dongyafeiying
But I got another problem:

[info] Building MobileVLC (MobileVLC)
Build settings from command line:
SDKROOT = iphoneos5.0

=== BUILD NATIVE TARGET MobileVLC OF PROJECT MobileVLC WITH CONFIGURATION Release ===
Check dependencies

Ld build/Release-iphoneos/VLC.app/VLC normal armv7
cd /Users/**/MobileVLC
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/**/Documents/android-sdk-macosx/tools"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/**/MobileVLC/build/Release-iphoneos -L/Users/**/MobileVLC/External/MobileVLCKit -L/Users/**/MobileVLC/External/MediaLibraryKit -F/Users/**/MobileVLC/build/Release-iphoneos -filelist /Users/**/MobileVLC/build/MobileVLC.build/Release-iphoneos/MobileVLC.build/Objects-normal/armv7/VLC.LinkFileList -dead_strip -Wl,-no_pie -miphoneos-version-min=5.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework AudioToolbox -framework QuartzCore -liconv -lz /Users/**/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a /Users/**/MobileVLC/ImportedSources/MediaLibraryKit/build/Release-iphoneos/libMobileMediaLibraryKit.a -lsqlite3 -lstdc++.6 -lbz2 -lxml2 -framework CoreData -framework CoreText -framework MediaPlayer -o /Users/**/MobileVLC/build/Release-iphoneos/VLC.app/VLC
ld: '_AmplifyFloat' in /Users/**/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a(libvolume_neon_plugin_la-volume.o) contains undefined reference for architecture armv7
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1

Re: compile error on vlc ios

Posted: 04 Oct 2012 20:26
by arun057
Same here

Code: Select all

Ld build/MobileVLC.build/Release-iphoneos/MobileVLC.build/Objects-normal/armv7s/VLC normal armv7s cd /Users/looneydoodle/projects/MobileVLC setenv IPHONEOS_DEPLOYMENT_TARGET 6.0 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/Users/looneydoodle/.rbenv/shims:/Users/looneydoodle/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/looneydoodle/projects/MobileVLC/build/Release-iphoneos -L/Users/looneydoodle/projects/MobileVLC/External/MobileVLCKit -L/Users/looneydoodle/projects/MobileVLC/External/MediaLibraryKit -F/Users/looneydoodle/projects/MobileVLC/build/Release-iphoneos -filelist /Users/looneydoodle/projects/MobileVLC/build/MobileVLC.build/Release-iphoneos/MobileVLC.build/Objects-normal/armv7s/VLC.LinkFileList -dead_strip -Wl,-no_pie -miphoneos-version-min=6.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework AudioToolbox -framework QuartzCore -liconv -lz /Users/looneydoodle/projects/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a /Users/looneydoodle/projects/MobileVLC/ImportedSources/MediaLibraryKit/build/Release-iphoneos/libMobileMediaLibraryKit.a -lsqlite3 -lstdc++.6 -lbz2 -lxml2 -framework CoreData -framework CoreText -framework MediaPlayer -o /Users/looneydoodle/projects/MobileVLC/build/MobileVLC.build/Release-iphoneos/MobileVLC.build/Objects-normal/armv7s/VLC ld: warning: ignoring file /Users/looneydoodle/projects/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a, file was built for archive which is not the architecture being linked (armv7s): /Users/looneydoodle/projects/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a Undefined symbols for architecture armv7s: "_VLCMediaTracksInformationType", referenced from: -[MLParsingOperation mediaDidFinishParsing:] in libMobileMediaLibraryKit.a(MLFileParserQueue.o) "_VLCMediaTracksInformationVideoWidth", referenced from: -[MLParsingOperation mediaDidFinishParsing:] in libMobileMediaLibraryKit.a(MLFileParserQueue.o) "_VLCMediaTracksInformationVideoHeight", referenced from: -[MLParsingOperation mediaDidFinishParsing:] in libMobileMediaLibraryKit.a(MLFileParserQueue.o) "_OBJC_CLASS_$_VLCMedia", referenced from: objc-class-ref in MVLCMovieViewController.o objc-class-ref in libMobileMediaLibraryKit.a(MLFileParserQueue.o) objc-class-ref in libMobileMediaLibraryKit.a(MLThumbnailerQueue.o) "_OBJC_CLASS_$_VLCMediaPlayer", referenced from: objc-class-ref in MVLCMovieViewController.o "_VLCMediaTracksInformationAudioChannelsNumber", referenced from: -[MLParsingOperation mediaDidFinishParsing:] in libMobileMediaLibraryKit.a(MLFileParserQueue.o) "_VLCMediaTracksInformationAudioRate", referenced from: -[MLParsingOperation mediaDidFinishParsing:] in libMobileMediaLibraryKit.a(MLFileParserQueue.o) "_VLCMediaTracksInformationTypeAudio", referenced from: -[MLParsingOperation mediaDidFinishParsing:] in libMobileMediaLibraryKit.a(MLFileParserQueue.o) "_OBJC_CLASS_$_VLCMediaThumbnailer", referenced from: objc-class-ref in libMobileMediaLibraryKit.a(MLThumbnailerQueue.o) "_OBJC_CLASS_$_VLCTime", referenced from: objc-class-ref in MVLCMovieGridViewCell.o objc-class-ref in MVLCMovieTableViewCell.o "_VLCMediaTracksInformationTypeVideo", referenced from: -[MLParsingOperation mediaDidFinishParsing:] in libMobileMediaLibraryKit.a(MLFileParserQueue.o) ld: symbol(s) not found for architecture armv7s collect2: ld returned 1 exit status ** BUILD FAILED ** The following build commands failed: Ld build/MobileVLC.build/Release-iphoneos/MobileVLC.build/Objects-normal/armv7s/VLC normal armv7s (1 failure)

Re: compile error on vlc ios

Posted: 08 Oct 2012 11:45
by laker
I got it working under XCode 4.5.1 with iOS6.
But, when starting a video on my iPad, I got:

2012-10-08 11:40:51.985 VLC[966:707] *** Assertion failure in -[VLCLibrary init], /MobileVLC/ImportedSources/VLCKit/Sources/VLCLibrary.m:89
2012-10-08 11:40:51.987 VLC[966:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'libvlc failed to initialize'
*** First throw call stack:

Any idea? :)

I got also this warning:
vlc: unknown option or missing mandatory argument `--avcodec-fast'
Try `vlc --help' for more information.

Re: compile error on vlc ios

Posted: 08 Oct 2012 19:03
by Jean-Baptiste Kempf
Look at gdb

Re: compile error on vlc ios

Posted: 04 Dec 2012 23:59
by theo
Did you find a solution? I have the same problem NSInternalInconsistencyException... (on xcode 4.5.2 and ios5.0)