Page 1 of 1

Problems linking with XCode

Posted: 18 Mar 2016 18:08
by DJ_VLC
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

Re: Problems linking with XCode

Posted: 21 Mar 2016 09:33
by ssbmaccom
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.