shared-libraries

Redundant dependencies with RequireJS

牧云@^-^@ 提交于 2019-12-04 14:25:30
问题 My problem is with having redundant RequireJS dependencies that point to the same JS library. The referenced library is jQuery UI , it's referenced both internally and by external library Gridstack , which is causing this issue. Both internal and external references should point to ONE file jquery-ui.js . How to configure RequireJS (i.e. inside main.js ) to handle these references as one without doing any changes to any of the existing modules/libraries? JQuery UI v1.11.2 - My JQuery UI

DLL Main on Windows Vs. __attribute__((constructor)) entry points on Linux

心不动则不痛 提交于 2019-12-04 12:33:23
问题 Consider code EXE: int main () { printf("Executable Main, loading library\n"); #ifdef HAVE_WINDOWS HMODULE lib = LoadLibraryA ("testdll.dll"); #elif defined(HAVE_LINUX) void * lib = dlopen("testdll.so", RTLD_LAZY); #endif if (lib) { printf("Executable Main, Freeing library\n"); #ifdef HAVE_WINDOWS FreeLibrary (lib); #elif defined(HAVE_LINUX) dlclose(lib); #endif } printf("Executable Main, exiting\n"); return 0; } DLL struct Moo { Moo() { printf("DLL Moo, constructor\n"); } ~Moo() { printf(

Can TFS Projects Reference Each Other?

眉间皱痕 提交于 2019-12-04 12:31:14
I've recently begun working in an enterprise software environment with hundreds of different applications all confined to their own "silos." One of my tasks is to try to standardize things a bit, and the first attempt will be a standard event logging. Currently, the company's "standard" is "everyone should use Enterprise Library for logging." What this translates to in reality is that different developers working on different projects implement different logging in different ways, and just most of the time use that library. To that end, I'm looking to abstract out the actual logging tool

How to use android native libraries in Java using eclipse?

≯℡__Kan透↙ 提交于 2019-12-04 12:03:46
问题 Can any body provide me a steps, How to use native libraries in eclipse. Your help highly appreciated. I don't want to create any native libraries. I just want to use predefined libraries. 回答1: I got the link, which described how to use native libraries in your eclipse step by step. Very nice tutorial. 回答2: You could also avoid dealing with JNI and the NDK altogether by using JavaCPP: http://code.google.com/p/javacpp/#Instructions_for_Android 来源: https://stackoverflow.com/questions/5190117

How do you foster the use of shared components in your organization?

那年仲夏 提交于 2019-12-04 11:53:22
If your company or project places an emphasis on (or at least appreciates) the development of code and components that can be reused and shared across projects, what are the "social engineering" things you've needed to do to facilitate the re-use the code? In my experience, code or components that are simply stated as being "reusable" won't be reused unless that code has someone to champion or evangelize it. Otherwise, people simply won't know about it. How do you make sure shared components or reusable code work in your organization? A couple of thoughts come to mind: Make them very well

How to use JNAerator with multiple dynamic libraries under one header?

北慕城南 提交于 2019-12-04 11:28:10
I am using JNAerator to generate a single jar file I can include in a project, and I'd like to support the dynamic libraries for each operating system and arch all in this single jar. In fiddling with JNAerator so far, I've been able to include a single dynamic library using a command like the following: java -jar jnaerator.jar test.dll test.h [...] -mode StandaloneJar However, this only packages test.dll , while I have dynamic libraries for multiple systems ( test_win32.dll , test_win64.dll , libtest_mac.dylib , libtest_linux_x86.so , and libtest_linux_amd64.so ) which I would like to all

Unable to printf floating point numbers from executable shared library

*爱你&永不变心* 提交于 2019-12-04 11:25:16
问题 I'm developing a shared library which can be executed independently to print it's own version number. I've defined a custom entry point as: const char my_interp[] __attribute__((section(".interp"))) = "/lib64/ld-linux-x86-64.so.2"; void my_main() { printf("VERSION: %d\n", 0); _exit(0); } and I compile with gcc -o list.os -c -g -Wall -fPIC list.c gcc -o liblist.so -g -Wl,-e,my_main -shared list.os -lc This code compiles and runs perfectly. My issue is when I change the parameter of the printf

Crosscompiler Binary compatibility in C

左心房为你撑大大i 提交于 2019-12-04 11:13:04
问题 I need to verify something for which I have doubts. If a shared library ( .dll) is written in C, with the C99 standard and compiled under a compiler. Say MinGw. Then in my experience it is binary compatible and hence useable from any other compiler. Say MS Visual Studio. I say in my experience because I have tried it successfully more than once. But I need to verify if this is a rule. And in addition I would like to ask if it is indeed so, then why libraries written completely in C, like

checking shared libraries for non default loaders

僤鯓⒐⒋嵵緔 提交于 2019-12-04 10:56:51
问题 ldd is a good simple way to check for shared libraries a given executable is or will be using. However it does not always work as expected. For example, see the following shell snippet that demonstrates how it "fails" to found the libreadline "dependency" into the python binary I've tried many other distributions, but I'm copying from Tikanga $ lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64

Loading Linux libraries at runtime

☆樱花仙子☆ 提交于 2019-12-04 10:49:20
I think a major design flaw in Linux is the shared object hell when it comes to distributing programs in binary instead of source code form. Here is my specific problem: I want to publish a Linux program in ELF binary form that should run on as many distributions as possible so my mandatory dependencies are as low as it gets: The only libraries required under any circumstances are libpthread, libX11, librt and libm (and glibc of course). I'm linking dynamically against these libraries when I build my program using gcc. Optionally, however, my program should also support ALSA (sound interface),