static-libraries

Build OpenJpeg for iPhone with configure and make

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 06:13:33
问题 How do you build Open Jpeg for iPhone? I know it can be done as stated in this thread: jpeg2000 on ios app But there are no instructions how to compile this for iPhone. What configure arguments do you need to make this for the correct architecture? I tried this generic iPhone configure file with no luck: https://github.com/jlongster/configure-iphone Here is the Open Jpeg project: http://www.openjpeg.org/index.php?menu=download 回答1: I've compiled OpenSSL for iOS a few weeks ago and used the

compiling wget with static linking

瘦欲@ 提交于 2019-12-11 06:04:23
问题 I've tried to statically build wget , ./bootstrap env CPPFLAGS="-I/usr/include" LDFLAGS="-L/usr/lib/ssl" ./configure --with-ssl=openssl make CPPFLAGS="-I/usr/include" LDFLAGS="-L/usr/lib -L/usr/lib/ssl -static" cd src/ gcc -O2 -Wall -L/usr/lib -L/usr/lib/ssl -lz -static -o wget connect.o convert.o cookies.o ftp.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o html-parse.o html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o res.o retr.o spider.o url.o utils.o exits.o build

Whether Nib(.xib) files can be added to a Static Library?

前提是你 提交于 2019-12-11 05:46:23
问题 I am developing a static library. To implement two main functionalities, I have used totally 4 xibs. I have added those file to the Headers while building the SDK. But while using the SDK in some other project as implementation, I am getting an error like : "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle" Can anyone give an answer quickly. Do I need to change the view controller? It will be much painful at this time. Thank

How to compile a static library with Codelite 11.0.0?

醉酒当歌 提交于 2019-12-11 05:38:00
问题 I would like to compile a static library out of all the functions I have written for a C++ project. I am using CodeLite 11.0.0 on Ubuntu 16.04, configured to use GCC as compiler. I have followed the instructions in CodeLite's tutorial, according to which this should be possible, and changed the project type from Executable to Static Library. After running the project (CTRL+F5 command), I expected to find a .a file in the /Debug folder, either along with, or in place of the executable file.

Rcpp: Install package with static libraries for platform independent usage

你离开我真会死。 提交于 2019-12-11 05:34:38
问题 I want to use the libDAI C++ library within an R-package and want the package: to be usable on Linux and Windows save disc space (the external library has ~60 Mb) the end user does not need to install boost and gmp for compilation My current setup is: precompile libDAI copy libdai.a to lib/ copy all libDAI header files to inst/include add Makevar to src/ Modify Makevar file: # include libraries PKG_CPPFLAGS =-I../inst/include/ PKG_LIBS = -Llib -l../lib/libdai.a My script for accessing the

Undefined reference to Boost timer::auto_cpu_timer

。_饼干妹妹 提交于 2019-12-11 05:03:13
问题 I have a CMake project which uses the unit_test_framework and filesystem libraries from boost. I'm trying to use boost::timer::auto_cpu_timer and can't get it to link on Ubuntu 12.04. The build on Win32 works fine. The code in question. #include <boost/timer/timer.hpp> long some_function() { boost::timer::auto_cpu_timer t; ...rest omitted... } I use boost 1.52.0 which was build by hand (complete; versioned; d, mt, mt-d, mt-s, mt-sd, s, sd; static and shared). I'm using the following

using c++ static library in objective c

戏子无情 提交于 2019-12-11 04:21:41
问题 I have a static library, whose code was in c++. I want to use it in an objective C app. (I have been using C libraries preiously, they have been working fine.) I added the library and tried to build, it couldn't because 'namespace' and vectors were somewhere used in the header files. So, I had to change the type of my objective C file to objective c++. (I didn't change the extension to .mm). Since this file was to be included in another file, that file also had to be changed to c++, similarly

Compile position-independent executable with statically linked library on 64 bit machine

好久不见. 提交于 2019-12-11 04:16:45
问题 When I try to compile with the following command-line: g++ code.cpp /usr/lib/x86_64-linux-gnu/libcrypto.a -ldl -Fpie -pie -o executable I get the following error message: /usr/bin/ld: /tmp/ccNHn5FA.o: Die Umlagerung von /tmp/ccNHn5FA.o: error adding symbols: Ungültiger Wert collect2: error: ld returned 1 exit status I am wondering why this does not work, because exactly the same command line on my 32 bit machine works fine. What am I doing wrong? 回答1: When I try to compile with the following

Make static library for iOS with existing C code in Xcode

烈酒焚心 提交于 2019-12-11 04:04:32
问题 Short version of the question: So basically what I'm looking to do is to take an existing library written in C (https://github.com/lsalzman/enet) and turn it into a static library for iOS. I am just looking for an easy to understand step by step of how to accomplish this in Xcode. Long version: I've gone over some tutorials for making a simple static library that's written in Objective-C (http://www.raywenderlich.com/41377/creating-a-static-library-in-ios-tutorial), and I generally understand

Opencv Static build, jpeg,png,tiff not static linked?

你。 提交于 2019-12-11 03:28:36
问题 I build opencv 233 as a static lib, but when i use it in my application, it gives link errors when calling cv::imwrite() that tiff,png,jasp libs are not linked. Is this the intention that i should link these my self in my app or did i build it wronge. I would like that the 3party libs are static included in the opencv_highgui.lib instead of having to link them myself in my apps. 回答1: In the solution, if configured for visual studio 2010, the 3th party libs are not set to be linked in. Change