static-libraries

Creating a shared library that statically includes ffmpeg

☆樱花仙子☆ 提交于 2019-12-08 13:22:57
问题 I'm having hard time trying to create a shared library that has ffmpeg libraries "baked in" as static ones. Consider the following directory schema: include/ my own .h files ext/ ffmpeg .h files lib/ libav*.a archive files (softlinks to the actual .a files) libValkka.so (my shared library) test/ mytest.cpp bin/ (binaries appear here) I've come a long way (see Including objects to a shared library from a C++ archive (.a) ) and the library compiles ok with this: ([STUFF] has been omitted for

How to build Qt5 app with their static libs?

穿精又带淫゛_ 提交于 2019-12-08 12:42:07
问题 I'm a Qt beginner and I want to know how to build Qt5 apps with their static libraries. Is that possible to build with static libs everything that can be build with dll's ?. I want to know because I don't want to install Qt libs everywhere where I want my apps to be running. For example I want to build with static libs app which code is in this post: Widgets must be created in the GUI thread Error !. How to correct the code? Is that possible ? How to do that ? 回答1: In order to use Qt as a

ios static library Undefined symbols for architecture x86_64

不问归期 提交于 2019-12-08 12:22:54
问题 lipo -info libXxxx.a Architectures in the fat file: libXxxx.a are: armv7 i386 arm64 But compiler in the dependant project is giving linking error, Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ClassXXXX", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Am I missing something? All the lib project's target have Architectures: Standard Architectures (armv7,

undefined reference to `lzma_code'

允我心安 提交于 2019-12-08 09:19:40
问题 I try to pack my application and static link all libraries. But I get this error.The Makefile is shown below: CC = gcc INCPATH = -I/home/johnny/Application/FileBasedReG/include/RealityGrid LIBS = -L/home/johnny/Application/FileBasedReG/lib/RealityGrid -lReG_Steer -l:libxml2.a -l:libncurses.a -l:libm.a -l:libz.a -l:libtermcap.a OBJECTS = mini_steerer.o TARGET = mini_steerer ###### Compile ###### all: $(TARGET) $(TARGET): $(OBJECTS) $(CC) $(INCPATH) -o $(TARGET) $(OBJECTS) $(LIBS) mini_steerer

DLL linking to static libraries

我是研究僧i 提交于 2019-12-08 07:58:10
问题 We have a project which is an executable, which loads DLL files at run time as plugins. We're trying to make a new plug in which has many library dependencies, and some of those dependencies are the same library but different versions that other plugins link to. Because the libraries are depended on by different plugins at different versions, I would like to statically link/build any dependencies into the new plugin - that way they can't conflict with the old plugin dependencies. As far as I

OpenCV static linking error

青春壹個敷衍的年華 提交于 2019-12-08 05:38:07
问题 I want to use OpenCV as a static library. After compiling the library as a static library now i'm testing with some examples to see all the dependencies. The dependencies added to compile are -static pkg-config --libs opencv -lpthread -ljpeg -ltiff -lz -ljasper -lpng12 But obtain the following Error message: g++ -c -g -Wall -O2 `pkg-config --cflags opencv` formas.cpp g++ -g -Wall -O2 `pkg-config --cflags opencv` formas.o -o paint -static `pkg-config --libs opencv` -lpthread -ljpeg -ltiff -lz

Build a library for Swift and Objective-C

安稳与你 提交于 2019-12-08 04:52:47
问题 I need to make a library with swift that support both swift and object c project (also support xcode 5), this will be a distribution library (do not share source code). There are two ways to do this: create a Cocoa Touch Framework or create a Cocoa Touch Static Library. I make some research, but still find out the solution. It seems the Cocoa Touch Framework not support to buid a distribution library, and I'm not sure the Cocoa Touch Static Library work perfect with with Swift yet or not. Any

What Clever Solutions are There for Including Resources in a Static Lib?

≡放荡痞女 提交于 2019-12-08 04:36:12
问题 I have a static library Xcode 4 project that includes a home-brewed rendering engine, and I re-use this engine in multiple apps. This engine uses OpenGL ES 2.0, and by extension, shaders. As shaders got more complicated, I moved away from storing them as NSStrings in a source file, and now store them as standalone text files with the .vert and .frag extensions. This works fine for apps that include the rendering engine in their own source; the shaders are simply added to the app's "Copy

iOS:Unix:Mac extract info from a static lib regarding supported architecture(s). How?

笑着哭i 提交于 2019-12-08 03:59:58
问题 I have a static library on my Mac and curious to know if the lib was built for armV7s architecture or not? Is any command/tools available to show the supported architectures in this library? Thank you, Kamran 回答1: You may use otool for getting that information. From otool's manpage -L Display the names and version numbers of the shared libraries that the object file uses. As well as the shared library ID if the file is a shared library. Example > otool -L libRaptureXML_universal.a Archive :

Adding FacebookSDK.framework into my own Static library

孤街浪徒 提交于 2019-12-08 03:18:51
问题 I am creating a static library which i will be using for more than one projects, which i am developing. I will build the static library as .framework file and will drag and drop to use in other projects. It is working fine. Now i am adding some more functionalities to the framework. I am adding FacebookSDK.framework to the static library for log in purpose, but when i drag the framework to another project and build it, it throws an error. "FacebookSDK/FacebookSDK.h" file not found. Please