static-libraries

Static library dependency compiles in simulator on Xcode 3.2.3, fails on device

女生的网名这么多〃 提交于 2019-12-06 10:31:21
问题 Upgrading to XCode 3.2.3 and iPhone 3.2/4.0 SDK has introduced a strange bug into my build process. I have a static library, Compton, which itself depends on three20. I build Compton as a dependency of the client apps that it powers. When I compile Compton as its own project in either simulator or device mode, 3.2 or 4.0 SDK, everything compiles fine, no errors. When I compile a client app that references Compton using the 3.2 or 4.0 SDK, simulator, targeting the iPhone or iPhone / iPad on 3

Unable to edit External Library Files - showing as Locked in Android Studio

拟墨画扇 提交于 2019-12-06 09:35:54
问题 I have ran into an odd issue. I am using an external pdf viewer library for my app and the library gives full read & write access (to modify files). During testing i realised a small glitch (which can be fixed by editing one of the library .java files) however when I go to edit the file it won't let me, in Android Studio it is showing the library as locked. I have tried removing the lock from the bottom right hand corner but this won't work either. Here is the library being added to the

How to make xcodeproj file relative in Xcode 4.5

醉酒当歌 提交于 2019-12-06 09:27:13
问题 I was following this tutorial and stumbled across this screen shot: apparently there was a way to make the Xcode project file relative to some user defined env variable in earlier versions of Xcode (you get there by highlighting the project file then clicking cmd + i ) I couldn't find a way to this in Xcode 4.5 (the closest I could get to that was this post, but the instructions don't work on Xcode 4.5) ideas? update : I tried the idea of changing the 'header search paths' under build

Build errors C++ with Poco and Qt Creator

北城以北 提交于 2019-12-06 08:54:48
I am getting build errors in Qt Creator when trying to build a sample in the Poco library. I used these instructions to build poco with MinGW. This is the sample I am trying to use: // httpget.cpp // // $Id: //poco/1.4/Net/samples/httpget/src/httpget.cpp#3 $ // // This sample demonstrates the HTTPClientSession and the HTTPCredentials classes. // // Copyright (c) 2005-2012, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered

Static Library Performance - Possible to inline calls?

╄→гoц情女王★ 提交于 2019-12-06 08:36:44
I've been trying to make an attempt to make a Game Engine, and I started out by making the Mathmatical foundation ( Vector, Matrix and Point classes. ) I would like to make a static library file (.lib) which I can then use in the rest of my Game Engine where it's needed. What I was wondering is the following. Since most functions in the library need to be as fast as possible. I'd like to see the functions for example a Vector class being inlined. Can the compiler automatically do this? Or is some kind of hint needed? I know I can put all the source in the header files but I think that's not

Using Static/Shared C Libraries in Higher Level Languages [closed]

佐手、 提交于 2019-12-06 07:41:13
Closed . This question needs to be more focused . It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 4 years ago . I'm wondering if there is some way to take my custom shared/static libraries, made in C, and use them into another higher language such as python or node.js. I came with this because I'm writing a few libraries to calculate some math stuff. I heard about node.js not being so good for heavy calculations (but is for networking I/O). Hence, I'm really thinking on spend some time in

Adding FacebookSDK.framework into my own Static library

泪湿孤枕 提交于 2019-12-06 06:25:57
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 help! You should change your import statement to #import "FacebookSDK.h" And add FacebookSDK.framework to

Including objects to a shared library from a C++ archive (.a)

匆匆过客 提交于 2019-12-06 05:49:17
问题 I am trying to include some object files into a shared library I am building. Take the following command (things in [ETC] have been omitted for brevity): /usr/bin/c++ -fPIC -std=c++14 -pthread -Iinclude/ext/liveMedia -Iinclude/ext/groupsock [ETC] -g -shared -Wl,-soname,libValkka.so -o lib/libValkka.so CMakeFiles/Valkka.dir/src/avthread.cpp.o CMakeFiles/Valkka.dir/src/opengl.cpp.o [ETC] CMakeFiles/Valkka.dir/src/decoders.cpp.o -lX11 -lGLEW -lGLU -lGL -Wl,--whole-archive lib/libavcodec.a -Wl,-

Static linking with a Qt project

扶醉桌前 提交于 2019-12-06 04:32:36
问题 I've got a Qt project I've built in Visual Studio 2010 Professional. However, when I run it (in either Debug or Release mode) it asks for a few Qt dll's. It works if I supply the dll's and throw them into System32, but my question is, how do I make it so that all libraries are included in the .exe? I have all of the static libraries I need, I just don't know how to make it so that the app doesn't ask the end user for them. 回答1: The correct way is to create a setup program that installs the Qt

Why does including -fPIC to compile a static library cause a segmentation fault at run time?

不想你离开。 提交于 2019-12-06 04:19:27
I'm compiling C++ static library with g++ and using the -fPIC option. I must use the -fPIC option because eventually this library will be linked with other static libraries to form a dynamic library. When I test the static library locally, it works completely fine when I don't include the -fPIC option. But as soon as I compile the library with -fPIC, I receive a segmentation fault error at run-time when calling one of the functions. What reasons could including -fPIC to compile a static library cause a segementation fault at run-time? A dynamic library is supposed to be loaded at run-time and