dynamic-linking

Linking opencv nonfree components (SIFT features and OCL specifically)

巧了我就是萌 提交于 2019-12-23 12:45:20
问题 I am having trouble compiling some code after a OS upgrade (Ubuntu 12.04 to 14.04) and a re-install of opencv. The general issue is with the "nonfree" parts of opencv which I compiled from source using the following procedure: mkdir ~/OpenCV && cd ~/OpenCV wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.10/opencv-2.4.10.zip unzip opencv-2.4.10.zip cd opencv-2.4.10 cmake -D WITH_CUDA=ON -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr . make sudo make

Linking Frameworks into QuickLook plugins

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 09:02:54
问题 I am trying to write a QuickLook generator. For this, I need to link against a framework I created. However, as soon as I link against said framework, qlmanage refuses to load my plugin by telling me: [ERROR] Can't load plug-in at /path/to/my-ql.qlgenerator: The bundle “my-ql” couldn’t be loaded because it is damaged or missing necessary resources. I have read all the relevant tutorials on Linking, Frameworks and QuickLook but found no answer. Things I have found out/ruled out so far

Changing function reference in Mach-o binary

我的未来我决定 提交于 2019-12-23 06:07:33
问题 I need to change to reference of a function in a mach-o binary to a custom function defined in my own dylib. The process I am now following is, Replacing references to older functions to the new one. e.g _fopen to _mopen using sed. I open the mach-o binary in MachOView to find the address of the entities I want to change. I then manually change the information in the binary using a hex editor. Is there a way I can automate this process i.e write a program to read the symbols, and dynamic

Failed to linked symbol in .so file while the symbol exists

不羁岁月 提交于 2019-12-22 17:49:16
问题 I want to install lxml module in my unix system, and it doesn't work. the problem is failed to reference symbol: Python 2.6.4 (r264:75706, Sep 12 2010, 18:46:30) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> from lxml import etree Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: ld.so.1: isapython2.6: fatal: relocation error: file lxml/etree.so: symbol __xmlStructuredErrorContext: referenced symbol not found however

Calling Java (or python or perl) from a PHP script

假如想象 提交于 2019-12-22 10:54:00
问题 I've been trying to build a simple prototype application in Django, and am reaching the point of giving up, sadly, as it's just too complicated (I know it would be worth it in the long-run, but I really just don't have enough time available -- I need something up and running in a few days). So, I'm now thinking of going with PHP instead, as it's the method for creating dynamic web content I'm most familiar with, and I know I can get something working quickly. My application, while simple, is

Linking issue when prebuilt static and shared libraries with the Android NDK

故事扮演 提交于 2019-12-22 08:34:40
问题 I have a program I am porting that links together multiple libraries when creating the executable. I have built all those libraries using the stand alone toolchain and using the standalone toolchain I am able to create an executable that works on an android device. So, it seems like the libraries I have built are functional. Now I am trying to incorporate those libraries with an app. So, in my android.mk I have something like this: LOCAL_PATH := $(call my-dir) ROOT_PATH := $(LOCAL_PATH)

Why doesn't g++ link with the dynamic library I create?

孤人 提交于 2019-12-22 06:29:38
问题 I've been trying to make some applications which all rely on the same library, and dynamic libraries were my first thought: So I began writing the "Library": /* ThinFS.h */ class FileSystem { public: static void create_container(string file_name); //Creates a new container }; /* ThinFS.cpp */ #include "ThinFS.h" void FileSystem::create_container(string file_name) { cout<<"Seems like I am going to create a new file called "<<file_name.c_str()<<endl; } I then compile the "Library" g++ -shared

Python ctypes not loading dynamic library on Mac OS X

别来无恙 提交于 2019-12-22 05:20:19
问题 I have a C++ library repeater.so that I can load from Python in Linux the following way: import numpy as np repeater = np.ctypeslib.load_library('librepeater.so', '.') However, when I compile the same library on Mac OS X (Snow Leopard, 32 bit) and get repeater.dylib , and then run the following in Python: import numpy as np repeater = np.ctypeslib.load_library('librepeater.dylib', '.') I get the following error: OSError: dlopen(/mydir/librepeater.dylib, 6): no suitable image found. Did find:

Library path order for alternate glibc dynamic linker (ld.so)

末鹿安然 提交于 2019-12-22 03:47:29
问题 I need to use an alternate glibc version, newer than the one installed on my system ( 2.18 vs 2.15 ). Several related issues are covered here and here. The specific question I'm asking here is the following: I set up the library path of the new dynamic linker ( ld-2.18.so ) so that the new libc ( libc-2.18.so ) is found ahead of the old libc ( libc-2.15.so ). However, when I try to run a program with the new ld , the old version of libc is picked up, generating a SEGV . Why is that happening?

How do I display randomly-chosen text with an associated image?

五迷三道 提交于 2019-12-22 01:09:01
问题 I'm a beginner web designer and I need to know how can I link one thing to another. The thing is that I'm making different quotes change every time the site refreshes. And I need to do the same thing with images that are located in a different div tag. The reason I need to link them is because the image needs to coordinate with the quote. For example: quote 0 with image 0. Here is the javascript code: var quotes=new Array(); quotes[0] = "text1"; quotes[1] = "Text2"; quotes[2] = "text3";