shared-libraries

MonoDevelop and libpjsipDll.so library on Ubuntu. System.DllNotFoundException

此生再无相见时 提交于 2019-12-21 19:48:29
问题 i am trying to use a dll for Linux called: libpjsipDll_v44.so I got it from here http://code.google.com/p/sipeksdk/downloads/list It's a port for Linux of the http://www.pjsip.org/ is a VOIP library This site claims that is posible to use the library in Linux https://sites.google.com/site/sipekvoip/Home/documentation/pjsipwrapper/pjsipwrapper-for-linux The code in MonoDevelop 4.0.12 with C# the code is like this: internal const string PJSIP_DLL = "libpjsipDll.so"; [DllImportAttribute(PJSIP

How to avoid having version numbers in .so file name

北慕城南 提交于 2019-12-21 07:10:50
问题 I'm trying to build a dynamic library on Linux using qmake. Here is my .pro file: TEMPLATE = lib TARGET = sqxUiBase QT += core gui CONFIG += dll INCLUDEPATH += ../../public/include DEPENDPATH += . UI_DIR += ../GeneratedFiles RCC_DIR += ../GeneratedFiles CONFIG(release, debug|release) { DESTDIR = ../lib/release LIBS += -L"../lib/release" MOC_DIR += ../GeneratedFiles/release OBJECTS_DIR += release } else { DESTDIR = ../lib/debug LIBS += -L"../lib/debug" MOC_DIR += ../GeneratedFiles/debug

How to avoid having version numbers in .so file name

梦想的初衷 提交于 2019-12-21 07:10:09
问题 I'm trying to build a dynamic library on Linux using qmake. Here is my .pro file: TEMPLATE = lib TARGET = sqxUiBase QT += core gui CONFIG += dll INCLUDEPATH += ../../public/include DEPENDPATH += . UI_DIR += ../GeneratedFiles RCC_DIR += ../GeneratedFiles CONFIG(release, debug|release) { DESTDIR = ../lib/release LIBS += -L"../lib/release" MOC_DIR += ../GeneratedFiles/release OBJECTS_DIR += release } else { DESTDIR = ../lib/debug LIBS += -L"../lib/debug" MOC_DIR += ../GeneratedFiles/debug

Include assets when building library using ng-packagr

隐身守侯 提交于 2019-12-21 07:01:19
问题 Could anyone give a hint where to start to include images and css files into Angular library using ng-packagr? 回答1: There's an official issue for that question here. It's actually quite simple to include images and the like to your library: You can just copy them to the dist folder manually after ng-packagr has done its thing. However, it's more difficult to automate the extraction of those files in projects that'll use your library. In the issue referenced above BenjaminDobler suggests to

Shipping GNU/Linux Firefox plugin with shared libraries (for installation with no root access)

旧街凉风 提交于 2019-12-21 05:31:19
问题 The application is a Firefox plugin (loaded from $HOME/.mozilla/plugins), so wrapper script that sets LD_LIBRARY_PATH is not an easy option. RPATH, as far as I know, cannot refer to $HOME and can be only absolue path. Firefox tries to dlopen it's plugin from ~/.mozilla/plugins but fails (because it depends on shared libraries installed somewhere in the user home directory). Modifying Firefox menu item to provide a wrapper (with LD_LIBRARY_PATH) around Firefox is too hacky. What should

Proprietary Haskell Library

夙愿已清 提交于 2019-12-21 05:17:08
问题 I am somewhat new to Haskell, been using it for a few months now for side projects. I'd like to write a Haskell interface to a C library. All code will be proprietary, not open source. So my question is, what if I end up distributing this to a customer and don't want to provide the source code, but rather something like a shared library. In C I can build the code for the target platform and provide header files. Can I do something similar in Haskell? 来源: https://stackoverflow.com/questions

What is the meaning of “Warning: Linking the shared library against static library is not portable”?

痞子三分冷 提交于 2019-12-21 04:15:27
问题 I am making one dynamic library by using some function of libmxml.a library but I get this warning: *Warning: Linking the shared library libgstmatroskademux.la against the _ *static library /home/Mr32/gst-template4_final/gst-plugin/src/libmxml.a _ is not portable! I also get this warning: gcc: /home/Mr32/gst-template4_final/gst-plugin/src/libmxml.a: linker _ input file unused because linking not done So what's the meaning of this warning and how could I solve it? Edit : There is one already

Error handling strategies in a shared library - C

烈酒焚心 提交于 2019-12-21 04:01:49
问题 I am writing a cross platform shared library ( .so in linux and .dll in windows) using C. Currently when there is a error, library functions returns the proper error code and writes error information into the stderr . Library functions also emits some information and debug messages to stdout . This works well for console based clients. Now this library will have client programs that uses GUI programmed using C++ & wxWidgets. I am wondering what would be the best practices in handling the

How do I get rid of LD_LIBRARY_PATH at run-time?

半世苍凉 提交于 2019-12-21 03:58:27
问题 I am building a C++ application that uses Intel's IPP library. This library is installed by default in /opt and requires you to set LD_LIBRARY_PATH both for compiling and for running your software (if you choose the shared library linking, which I did). I already modified my configure.ac / Makefile.am so that I do not need to set that variable when compiling, but I still can't find the shared library at run-time; how do I do that? I'm compiling with the -Wl, -R/path/to/libdir flag using g++

why do we need the shared library during compile time

拈花ヽ惹草 提交于 2019-12-21 03:47:16
问题 Why we need the presence of the shared library during the compile time of my executable? My reasoning is that since shared library is not included into my executable and is loaded during the runtime, it is not supposed to be needed during compile time. Or Am I missing something? #include<stdio.h> int addNumbers(int, int); //prototype should be enough, no? int main(int argc, char* argv[]){ int sum = addNumbers(1,2); printf("sum is %d\n", sum); return 0; } I had the libfoo.so in my current dir