static-libraries

Xamarin.iOS Binding Libraries / Native Frameworks

回眸只為那壹抹淺笑 提交于 2019-12-01 10:51:06
问题 For some reason i need to use this native framework in my Xamarin.iOS app and the problem comes, that i have no idea how to make bindings properly. So as i understood correctly, this framework also uses another one framework and i'm little bit confused, what exactly i need to do? Questions : Do i need to implement static library(is this possible to do with native frameworks ) as it shows on official documentation of Xamarin ? Can i make bindings for native framework that is using another

How to make Xcode 3.2.3 build a specfic architecture?

老子叫甜甜 提交于 2019-12-01 10:00:45
问题 I'm getting the following error when including static libraries: missing required architecture i386 in file This worked 30 seconds previously, and only failed when I upgraded to Xcode 3.2.3. I've used "file" command to check - and, yes, XCode is building completely the wrong architecture (armv6 + armv7 instead of i386). This seems to be a major bug in latest Xcode, where Apple has re-written the build / compile / link settings. There's a note in the release notes saying very vaguely that they

Static Vs Dynamic libraries

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 09:09:36
问题 I have read about static and dynamic libraries. My question is little specifie dlopen dlclose : Benifit of dlopen is we can start the EXE with out loading the necessary libraries at the begining. Only when we need we will load the libratries and unload it from the memory. This is behaviour of dynamic linking libaries. My question is if i link the library libUtlities ld -o EXE main.o -lUtilities When I run the EXE, libUtlities will be loaded to the memory before I first use there

Compiling C library for android, but no symbols found

岁酱吖の 提交于 2019-12-01 08:48:06
I am trying to compile a simple C library for android, but the resulting library doesn't contain any symbols/objects! I am checking the library using nm command. This is the Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := my_lib_static LOCAL_MODULE_FILENAME := libmylib LOCAL_C_INCLUDES := $(LOCAL_PATH) LOCAL_SRC_FILES := File1.c File2.c include $(BUILD_SHARED_LIBRARY) # or include $(BUILD_STATIC_LIBRARY) EDIT : A subfolder called "objs" is created, which has all the symbols. EDIT : This is the output of gobjdump : MyLibBot.o: file format elf32-littlemips gobjdump

Compiling C library for android, but no symbols found

可紊 提交于 2019-12-01 06:53:41
问题 I am trying to compile a simple C library for android, but the resulting library doesn't contain any symbols/objects! I am checking the library using nm command. This is the Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := my_lib_static LOCAL_MODULE_FILENAME := libmylib LOCAL_C_INCLUDES := $(LOCAL_PATH) LOCAL_SRC_FILES := File1.c File2.c include $(BUILD_SHARED_LIBRARY) # or include $(BUILD_STATIC_LIBRARY) EDIT : A subfolder called "objs" is created, which has all

How to resolve linking error - static lib iPhone

妖精的绣舞 提交于 2019-12-01 06:14:48
问题 I have tried making a static lib on my iPhone but I am not able to use it in another project. I am getting this error: .objc_class_name_XMLParser", referenced from: literal-pointer@__OBJC@__cls_refs@XMLParser in Minutes2MidnightViewController.o ".objc_class_name_TickerViewController", referenced from: literal-pointer@__OBJC@__cls_refs@TickerViewController in Minutes2MidnightViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status XML and Ticker are my classes, I am using

Can't use attachInterrupt in a library

北城余情 提交于 2019-12-01 05:36:21
I'm writing a simple library for an ultrasonic distance sensor and thought i'd try using interrupts. However i can't set my functions in the attachCallback method properly. I want HCSR04Interrupt::echoHigh() and HCSR04Interrupt::echoLow() called when the pin goes high and low respectively. I've Googled this to no avail. The Ardiuno IDE says the following: ./Arduino/libraries/HCSR04/HCSR04Interrupt.cpp: In member function 'void HCSR04Interrupt::getDistance()': ./Arduino/libraries/HCSR04/HCSR04Interrupt.cpp:31: error: argument of type 'void (HCSR04Interrupt::)()' does not match 'void (*)()' .

Creating both static and shared C++ libraries

人盡茶涼 提交于 2019-12-01 04:29:16
I'd like to build both static and shared libraries in a project. I know that shared libraries need to be be created from objects compiled with -fpic to get Position Independent Code while the static library doesn't need this. This is all fine and I can create either a shared or static library. I wouldn't want to compile my source twice to get the different object files, so how is this usually done? I read how to get a shared library based on a static one . However, the example shows the static library being built with -fpic. Is this the way to go? Are there things to be aware of with this? Is

Link Visual C againts MinGW's static library

早过忘川 提交于 2019-12-01 04:11:05
How can one link Visual C++ (2010) console app with a STATIC library created by MinGW ( *.a format)? Is it compatible with Visual C++ 2010? Thank you. It's not compatible. However, if you extract all the object files from the library (use ar ), the VC++ linker is able to deal with those (I tested it, although I used cygwin gcc rather than mingw gcc). Note that you may still have name mangling problems if you don't use extern "C" . You may of course use VC++'s LIB.EXE tool to make these into a static library in VC++ format. As @Michael points out, you will definitely have problems if you try to

Compile linux kernel (2.6) module including non kernel headers

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 04:10:48
Is it possible to compile a linux kernel(2.6) module that includes functionality defined by non-kernel includes? For example: kernelmodule.h #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> // printk() // ... #include <openssl/sha.h> // ... Makefile obj-m := kernelmodule.o all: $(MAKE) -C /lib/modules/`uname -r`/build M=`pwd` modules clean: $(MAKE) -C /lib/modules/`uname -r`/build M=`pwd` clean $(RM) Module.markers modules.order The kernel module I have written and are trying to compile contains functionality found in a number of openssl include files. The standard