Problems linking with XCode

This forum is about all development around libVLC.
DJ_VLC
Blank Cone
Blank Cone
Posts: 10
Joined: 25 Sep 2008 13:21
Contact:

Problems linking with XCode

Postby DJ_VLC » 18 Mar 2016 18:08

Hi!
I have a XCode project, I've coded with JUCE under Windows. Under windows, I had to link against the library which
I generated in this tutorial. The runs fine under Windows.
But under OSX with Target iOS, I have problems linking it. I think, I haven't linked against the right iOS libVLC library.

But I don't know where to get it or how to generate it.

This is my Xcode output:
Undefined symbols for architecture x86_64:
"_libvlc_media_new_location", referenced from:
VideoVLC::loadMedia(juce::String) in VideoVLC.o
"_libvlc_media_player_get_position", referenced from:
VideoVLC::getPosition() in VideoVLC.o
"_libvlc_media_player_get_rate", referenced from:
VideoVLC::getRate() in VideoVLC.o
"_libvlc_media_player_new_from_media", referenced from:
VideoVLC::loadMedia(juce::String) in VideoVLC.o
"_libvlc_media_player_pause", referenced from:
VideoVLC::pause() in VideoVLC.o
"_libvlc_media_player_play", referenced from:
VideoVLC::play() in VideoVLC.o
"_libvlc_media_player_set_hwnd", referenced from:
VideoVLC::loadMedia(juce::String) in VideoVLC.o
"_libvlc_media_player_set_position", referenced from:
VideoVLC::setPosition(float) in VideoVLC.o
"_libvlc_media_player_set_rate", referenced from:
VideoVLC::setRate(float) in VideoVLC.o
"_libvlc_media_player_stop", referenced from:
VideoVLC::stop() in VideoVLC.o
"_libvlc_media_release", referenced from:
VideoVLC::loadMedia(juce::String) in VideoVLC.o
"_libvlc_new", referenced from:
VideoVLC::loadMedia(juce::String) in VideoVLC.o
ld: symbol(s) not found for architecture x86_64

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: Problems linking with XCode

Postby ssbmaccom » 21 Mar 2016 09:33

Maybe you haven't build libVLC or VLCKit for the right archtecture. x86_64 indicates, that you want to use it for simulator, but the library only contains the native architectures for the devices. For VLCKit add the -s to also build it for simulator.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests