dylib

Making a 64 bit shared library that dynamically links to a 32 bit library on Mac OS X Snow Leopard

[亡魂溺海] 提交于 2020-01-01 19:25:08
问题 Update: After some more reading I see that this problem is totally general, you can't mix architectures in the same process, so 64 bit Java cannot dlopen() a 32 bit library like FMOD. Is there any possible workaround for this, keeping in mind I'm writing my own C interface to the FMOD library? I need to make a 64-bit dylib on Max OS X because Java Native Access only likes 64-bit libraries on 64-bit machines. The problem is, my C source code dynamically includes FMOD which on Mac only provides

Building and Using a DYLIB in Xcode

余生长醉 提交于 2020-01-01 16:11:19
问题 I'm trying to build a .dylib in Xcode. Currently the .dylib builds, but when I drag the .dylib into another project and try to #import one of the headers (Seeker.h) in the .dylib, I get this error: *: No such file or directory Seeker.h: No such file or directory The project is available as an Xcode project here. I can confirm the header is indeed in a path alongside the .dylib once built, but as for what to do with it I have no idea. My only experience with .dylib files is frameworks built

Building and Using a DYLIB in Xcode

亡梦爱人 提交于 2020-01-01 16:10:02
问题 I'm trying to build a .dylib in Xcode. Currently the .dylib builds, but when I drag the .dylib into another project and try to #import one of the headers (Seeker.h) in the .dylib, I get this error: *: No such file or directory Seeker.h: No such file or directory The project is available as an Xcode project here. I can confirm the header is indeed in a path alongside the .dylib once built, but as for what to do with it I have no idea. My only experience with .dylib files is frameworks built

C++ dylib in Swift project - undefined symbols for function exposed in dylib

血红的双手。 提交于 2019-12-31 03:55:15
问题 C++ dylib exposes as follows __attribute__((visibility("default"))) int addNumber(int number) { return 0; } in my Swift project, I set the Import Paths dir to the dir containing my module.map file: module MyLib { header "myLib.h" export * } I manually add myLib.h to my project: #ifndef mylib_h #define mylib_h int addNumber(int number); #endif My main.swift does the following: import Foundation import MyLib print("Hello, World!") var result = addNumber(3) When I compile the swift project, I

Mac Office 2011 VBA and Dylib

坚强是说给别人听的谎言 提交于 2019-12-31 03:48:26
问题 I'm working on a Word 2011 plugin in Mac OS. Currently, I need to write a code in VBA Macro to retrieve a String from another application (through Socket communication). So, basically in Windows, I can simply make a DLL which help me to do Socket communication with the other application and return the String value to VBA Macro. However, in Mac, I'm able to build a .dylib (in C) and using VBA to communicate with the dylib. However, I'm having a trouble with the return String. My simple C code

CMake: Run-time error (dyld: Library not loaded) for dynamically linked resources on MacOS

拜拜、爱过 提交于 2019-12-30 10:04:44
问题 Problem On MacOS, I get linking problems at runtime for a CMake project that depends on dynamically linked resources – but only after installing the project! The problem does not occur when I only build the binary without installing it. $ ./testapp Hello world! $ $INSTALLDIR/testapp dyld: Library not loaded: @rpath/libvtkDomainsChemistryOpenGL2-7.1.1.dylib Referenced from: /Users/normanius/workspace/installdir/testapp Reason: image not found [1] 76964 trace trap /Users/normanius/workspace

How can I link a dynamic library in Xcode?

£可爱£侵袭症+ 提交于 2019-12-30 08:22:07
问题 I am currently developing a program in Qt and it uses the library libqextserialport.1.dylib. I build it and run in x-code and it spits back: dyld: Library not loaded: libqextserialport.1.dylib Referenced from: /Users/samuelreh/Desktop/QtOpenCV/build/Debug/QtOpenCV.app/Contents/MacOS/QtOpenCV Reason: image not found The library is located in /Users/samuelreh/Desktop/QtOpenCV/qextserialport/build/. I can run my program by changing to the executable folder /Users/samuelreh/Desktop/QtOpenCV/build

How can I link a dynamic library in Xcode?

不羁岁月 提交于 2019-12-30 08:21:32
问题 I am currently developing a program in Qt and it uses the library libqextserialport.1.dylib. I build it and run in x-code and it spits back: dyld: Library not loaded: libqextserialport.1.dylib Referenced from: /Users/samuelreh/Desktop/QtOpenCV/build/Debug/QtOpenCV.app/Contents/MacOS/QtOpenCV Reason: image not found The library is located in /Users/samuelreh/Desktop/QtOpenCV/qextserialport/build/. I can run my program by changing to the executable folder /Users/samuelreh/Desktop/QtOpenCV/build

Setting the Search Path for Plug In (Bundle / DyLib)

自古美人都是妖i 提交于 2019-12-29 09:32:20
问题 I'm creating a Photoshop Plug In on OS X (Basically a Bundle / DyLib). I'm using Intel Compiler and uses OpenMP by linking against OpenMP ( libiomp5 ). When I use Static Linking it crashes Photoshop (Only on OS X, on Windows it works). So I tried dynamic linking. The host, Photoshop, uses by itself libiomp5.dylib which is available on its Framework folder. So, on Xcode I set on the Linking Part the Runpath Search Paths to @executable_path/../Frameworks/ yet when I try to load it on Photoshop

Setting the Search Path for Plug In (Bundle / DyLib)

ε祈祈猫儿з 提交于 2019-12-29 09:32:13
问题 I'm creating a Photoshop Plug In on OS X (Basically a Bundle / DyLib). I'm using Intel Compiler and uses OpenMP by linking against OpenMP ( libiomp5 ). When I use Static Linking it crashes Photoshop (Only on OS X, on Windows it works). So I tried dynamic linking. The host, Photoshop, uses by itself libiomp5.dylib which is available on its Framework folder. So, on Xcode I set on the Linking Part the Runpath Search Paths to @executable_path/../Frameworks/ yet when I try to load it on Photoshop