Setting up Vimeo SDK in iOS - vimeo-ios

Trying to incorporate Vimeo SDK from github into my iOS project.
Xcode 7.3.1
I have cocoa pods installed and my TestVimeo1 project setup but when I attempt target VIMNetworking, AFNetworking and VIMObjectMapper I must not be going about this correct.
ld: warning: directory not found for option '-L/Users/xxxxx/xcodebuild/_buildoutput/TestVimeo1-fktedyrxeulxmicndbpgghnbdjtn/Build/Products/Debug-iphonesimulator/AFNetworking'
ld: warning: directory not found for option '-L/Users/xxxxx/xcodebuild/_buildoutput/TestVimeo1-fktedyrxeulxmicndbpgghnbdjtn/Build/Products/Debug-iphonesimulator/VIMNetworking'
ld: warning: directory not found for option '-L/Users/xxxxx/xcodebuild/_buildoutput/TestVimeo1-fktedyrxeulxmicndbpgghnbdjtn/Build/Products/Debug-iphonesimulator/VIMObjectMapper'
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can't find the output directories. Where am I going wrong with setting up the target builds for these git submodules? Thanks!

Related

Unclear compile error for mpd with ffmpeg on Mac arm64 architecture (M1)

I tried to compile (and install) mpd via brew with
brew reinstall --build-from-source mpd but ffmpeg seems to have some error with the arm64 architecture as the error states:
Undefined symbols for architecture arm64:
"av_free(void*)", referenced from:
AvioStream::~AvioStream() in libdecoder_plugins.a(FfmpegIo.cxx.o)
"av_malloc(unsigned long)", referenced from:
AvioStream::Open() in libdecoder_plugins.a(FfmpegIo.cxx.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I reinstalled ffmpeg (and even it build from source) to make sure it built the arm64 version. Can anyone help me out, about what could be problem?
With an update to 0.28.1 the dependency I could successfully compile it. According to the change logs of the succeeding version 0.29 a build bug has been fixed for macOS:
https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.23.9/NEWS
I assume this has been fixed with the commit https://github.com/MusicPlayerDaemon/MPD/commit/59792cb0b801854ee41be72d33db9542735df754 and the related update of the ffmpeg dependency to version 5.1.

Pybind11 doesn't work or C++ doesn't compile after upgrading to Mojave: -lstdc++ not found

I was able to install the pybind11 example here before I upgraded my MacOS. However, after I upgraded my MacOS to Mojave, when I compile the same example on that link, I see the following error:
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
Am I missing a linker command? I've searched online but couldn't find a solution.
I actually found the answer. I only needed to do
export MACOSX_DEPLOYMENT_TARGET=10.9
The installation went smoothly.

Incompatible architectures when linking to static library on iOS Simulator using Qt

while building my Qt project, an iOS app, I'm getting a symbols not found error for a missing architecture (i386).
The project uses subdirs which again contain 2 self written libraries and an app which links to them.
After some investigating I found out that my libraries use armv7 and arm64 while my app uses i386. What I'm getting from this is that the linker doesn't seem to find the libraries with their respective architectures.
This is what I get from the compiler while building:
ld: warning: ld: warning: ignoring file /Users/me/myprojects/build-myproject-iphonesimulator_clang_Qt_5_7_1_for_iOS-Release/install/lib/libwebdav.a, missing required architecture i386 in file /Users/me/myprojects/build-myproject-iphonesimulator_clang_Qt_5_7_1_for_iOS-Release/install/lib/libwebdav.a (2 slices)ignoring file /Users/me/myprojects/build-myproject-iphonesimulator_clang_Qt_5_7_1_for_iOS-Release/install/lib/libcommon.a, missing required architecture i386 in file /Users/me/myprojects/build-myproject-iphonesimulator_clang_Qt_5_7_1_for_iOS-Release/install/lib/libcommon.a (2 slices)
Undefined symbols for architecture i386:
"CalendarEvent::staticMetaObject", referenced from:
qt_meta_extradata_QMLEventWrapper in moc_qmleventwrapper.o
int qRegisterMetaType(char const*, CalendarEvent::APM_TYPE*, QtPrivate::MetaTypeDefinedHelper::Defined) && (!(QMetaTypeId2::IsBuiltIn))>::DefinedType) in moc_qmleventwrapper.o
"CalendarEvent::colorHex() const", referenced from:
QMLEventWrapper::color() const in qmleventwrapper.o
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...
** BUILD FAILED **
The following build commands failed:
Ld myproject.build/Release-iphonesimulator/myproject.build/Objects-normal/i386/myproject normal i386
(1 failure)
make[1]: * [xcodebuild-release-iphonesimulator] Error 65
make: * [sub-app-make_first] Error 2
Thanks in advance
You are trying to run it on an simulator, which supports architectures i386/x86_64 (the processor of your computer).
Workaround:
Test on a device instead of the simulator
Solution:
Build all used libraries for i386/x86_64 also.
Turned out it was a bug in qmake.
In a very desperate attempt I installed Qt 5.8.0 and tried compiling again. Worked like a charm.
I was using Qt 5.7.1 before which tried to build the libraries for the iPhone instead of the simulator resulting in the wrong architecture.
See https://bugreports.qt.io/browse/QTBUG-58007

How to compile litecoin osx mavericks

I am trying to make a demo cryptocurrency based on litecoin but before even starting to do this, I am currently unable to compile litecoin (unaltered) source code into litecoind.
First I installed the dependencies using Macports:
sudo port install boost db48 qt4-mac openssl miniupnpc git
Cloned from github. (https://github.com/litecoin-project/litecoin.git)
In terminal navigated to the src folder and ran:
make -f makefile.osx USE_UPNP=-
It starts compiling and then gives me the following error:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: * [litecoind] Error 1
I have xcode and have a bit of programming knowledge, but please try and explain in simple terms how to fix this.
Thanks!

Linking boost libraries

I have downloaded the boost library (version 1.46.1), but I don't know how to link it through xcode.I found an old question says to put the -lfftw3 flag, so I've put it.
I also added the path: /home/Documents/C++/boost_1_46_1 (it's the directory where I have put the library), but I am getting an error from the linker:
ld: warning: directory not found for option '-L/home/ramy/Documents/C++/boost_1_46_1'
ld: library not found for -lfftw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Developer/usr/bin/clang++ failed with exit code 1
So the question are two:
1)How to manage xcode to link boost?
2)Where to put the library in file system? In linux there was /usr/lib, here there isn't this path, should I put it in /Developer/usr/lib?
Or for those who are looking for a quick answer (and are on linux), the magic is simply to add the following flags:
-l boost_system