Questions tagged [libtool-xcode]

The libtool that is part of Xcode (not GNU libtool).

42 questions
17
votes
1 answer

Cannot create dynamic library for PJSIP

We've a script that will compile PJSIP to a fat static library. But we would like to create a dynamic library so that it can be used within swift only projects. Update 9 sept 2016: When compiling PJSIP with the "--enable-shared" option, most of the…
Bob Voorneveld
  • 553
  • 4
  • 10
17
votes
0 answers

Creating fat files: libtool vs lipo (Should I prefer lipo?)

I wonder what would be the difference when using: lipo -create i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a and libtool -static i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a I have the impression that lipo is more general,…
nacho4d
  • 43,720
  • 45
  • 157
  • 240
8
votes
2 answers

Compile several static libraries into a single iOS Framework

I have a big static library I would like to package into an iOS static framework for ease of use. The library is actually several .a files, one per logical module of the library. I have the compiled .a files built for the device (fat file with…
Olotiar
  • 3,225
  • 1
  • 18
  • 37
6
votes
1 answer

Link error: unknown option character `X' in: -Xlinker

The following linker command results in the error below. This is building for the simulator target in XCode for iOS. it's unclear what is even providing the Xlinker arguments via XCode. Any thoughts on how i might pursue a solution…
glutz
  • 1,889
  • 7
  • 29
  • 44
4
votes
2 answers

Couldn't find libtoolize, even though I have installed libtool in OSX Yosimite

I want to use Make install command and I have installed all requirements like yasm, nasm, curl, ant, rsync and the autotools: autoconf, automake, aclocal, pkgconfig, libtool. (Exactly, I want to compile Linphone Android NDK from Here :…
Redturbo
  • 1,563
  • 8
  • 22
  • 34
3
votes
1 answer

How to fix ranlib/libtool error when running make

I'm getting recurring errors when using make on Mac OS Mountain Lion v10.8.4. I tried to install libev, and, after running ./configure, I ran make and got: libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libev.4.dylib …
guytamir1
  • 73
  • 2
  • 12
3
votes
1 answer

libtool vs ar for creating a static library (xcode linker)

Creating a static library on Mac 10.5 with xcode via libtool and with ar via the command line both generate a libMainProject.a file however, when trying to use the one generate by libtool to link into a xcode application I end up with multiple…
Allen
  • 71
  • 1
  • 3
3
votes
1 answer

iOS: -dynamic not specified the following flags are invalid: -sectcreate

my goal is to build a static iOS library with bundled resources. I have been doing this successfully on OS X years ago, but I am running into an issue here. I am adding my resource with a linker flag: OTHER_LDFLAGS = -sectcreate __DATA __FOO…
below
  • 929
  • 6
  • 26
3
votes
1 answer

Building Apache on Mountain Lion libtool problems

I'm trying to install apache from source on my mac. But keep running into problems. I've tried a ton of different things and just can't get this to build. First, I couldn't configure without errors so I reinstalled apache apr. Now, I can configure…
JonMorehouse
  • 1,313
  • 6
  • 14
  • 34
2
votes
1 answer

Xcode libtool error -- "foo.o is an object file (not allowed in a library)"

I am seeing a lot of this error when I try to link my current project. What am I to make of it? Here is the hopefully relevant portion of the log. I have redacted part of some of the paths: Libtool…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
2
votes
0 answers

Got an error when I build WebRTC with rtc_use_h264=true

Got an error when I build WebRTC. This is my build args INFO:root:Building WebRTC with args: target_os="ios" ios_enable_code_signing=false use_xcode_clang=true is_component_build=false is_debug=false is_component_build=false…
2
votes
0 answers

How to use libtool to create a dylib for iOS simulator?

My goal is to create a dylib using libtool. I'm on macOS, so it's not GNU libtool. I tried to run libtool -dynamic -o foo.dylib *.o -syslibroot $(xcrun --show-sdk-path --sdk iphonesimulator), but got a bunch errors saying ld: warning: building for…
Roovent
  • 311
  • 3
  • 11
2
votes
0 answers

libtool - ld: framework not found AdSupport

I'm trying to convert FirebaseAnalytics (and later the other Firebase Frameworks) to a dynamic framework. I am following the instructions mentioned here (method 1). when trying to execute the following command libtool -dynamic *.o -o…
Yannick Winter
  • 103
  • 2
  • 11
2
votes
0 answers

Packaging static iOS libraries together on command line

I have a static iOS library built for armv7 and arm64, let's call it foo.a. It has dependencies on abc.a and def.a, which I have in armv7 and arm64 versions. I would like to package these together into one static library, so you can just use foo.a…
Sossisos
  • 1,569
  • 2
  • 10
  • 19
2
votes
1 answer

Libtool: can't locate file for: -lPods-RCTMapboxGL

There is a problem at the linking stage of my React Native project. The library libRCTMapboxGL.a is causing this problem. error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for:…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
1
2 3