compile error on vlc ios

macOS specific usage questions
kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

compile error on vlc ios

Postby kc.chen » 10 Aug 2012 12:18

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.

kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

Re: compile error on vlc ios

Postby kc.chen » 11 Aug 2012 05:52

./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

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: compile error on vlc ios

Postby jinlsg » 11 Aug 2012 11:45

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

kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

Re: compile error on vlc ios

Postby kc.chen » 11 Aug 2012 18:07

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.

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: compile error on vlc ios

Postby jinlsg » 12 Aug 2012 08:02

i meet this same problem
who can help?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: compile error on vlc ios

Postby Jean-Baptiste Kempf » 13 Aug 2012 00:41

Sorry, you need to find yourself the issue.... iOS is not popular here...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

Re: compile error on vlc ios

Postby kc.chen » 14 Aug 2012 12:19

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. : )

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: compile error on vlc ios

Postby jinlsg » 15 Aug 2012 09:02

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

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: compile error on vlc ios

Postby jinlsg » 15 Aug 2012 09:02

thanks for help

kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

Re: compile error on vlc ios

Postby kc.chen » 15 Aug 2012 09:29

thanks for help
: )

dongyafeiying
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Aug 2012 03:36

Re: compile error on vlc ios

Postby dongyafeiying » 28 Aug 2012 03:23

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
.
.

dongyafeiying
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Aug 2012 03:36

Re: compile error on vlc ios

Postby dongyafeiying » 04 Sep 2012 03:14

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

arun057
New Cone
New Cone
Posts: 1
Joined: 04 Oct 2012 20:25

Re: compile error on vlc ios

Postby arun057 » 04 Oct 2012 20:26

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)

laker
New Cone
New Cone
Posts: 3
Joined: 04 Apr 2012 17:20

Re: compile error on vlc ios

Postby laker » 08 Oct 2012 11:45

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: compile error on vlc ios

Postby Jean-Baptiste Kempf » 08 Oct 2012 19:03

Look at gdb
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

theo
New Cone
New Cone
Posts: 2
Joined: 28 Nov 2012 22:33

Re: compile error on vlc ios

Postby theo » 04 Dec 2012 23:59

Did you find a solution? I have the same problem NSInternalInconsistencyException... (on xcode 4.5.2 and ios5.0)


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 10 guests