810 questions
1
vote
0
answers
37
views
Adios2 Missing Library
I'm having trouble downloading Adios2 as I am trying to run Einstein's toolkit, and no matter how I download it, I keep being told I'm missing a library called "libadios2_evpath_mpi.dylib". ...
0
votes
0
answers
160
views
__DATA_CONST segment missing SG_READ_ONLY flag
I'm trying to import a .NET project from iOS native project.
During build time I'm getting linker error: ld: __DATA_CONST segment missing SG_READ_ONLY flag in .../Build/Products/Debug-iphoneos/[...
0
votes
1
answer
37
views
Free Pascal dylib exports with name clauses not findable via dlsym on macOS
I'm creating a Free Pascal dynamic library (.dylib) on macOS that works on Windows but fails to load symbols on macOS. The symbols appear in the symbol table when checked with nm, but dlsym cannot ...
0
votes
0
answers
32
views
Debug MacOS dynamic linking missing symbol
I'm trying to rebuild an old research package (MONA Tool) in MacOS 15.3.2. It built and ran fine in MacOS14 but that build and any new build fails at runtime with the error:
~/Programming/mona-1.4 % ...
0
votes
1
answer
490
views
How to call native functions in Compose Multiplatform application for MacOS?
I have a macOS application built using Compose Multiplatform. In this application, I need to call several native system functions, such as accessing a folder for writing or retrieving the device ...
0
votes
1
answer
173
views
SDL2-CS automatically trying to find libSDL2.dll instead of libSDL2.dylib on an M2 Mac
so I have finally managed to get Rider to not give errors when doing: using SDL2. I did this by not installing SDL2-CS but instead SDL2-CS.NetCore because I am using .NET 8 .
The following code is the ...
1
vote
0
answers
99
views
Connecting golang with flutter for macos
Here is my main.dart Code
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:window_manager/window_manager.dart';
import 'package:agiler/providers/...
1
vote
0
answers
84
views
macOS in-app purchases via dylib - is it possible? alternatives? suggestions?
I've got a big macOS program, developed with Lazarus/FPC/C (i.e. without Xcode) and I need to implement macOS in-app purchases in order to submit it on Apple's App Store. With 1M+ lines of code, ...
1
vote
0
answers
137
views
.dylib not Found Trying to Open the Program After Being Generated by PAServer
I use FireMonkey to generate executables for MacOS-64.
I'm developing software that uses a third-party dylib, I call it like this:
{$IFDEF OSX64}cdecl; external 'R_mylib.a.dylib' name 'LibCall';
{$...
1
vote
1
answer
299
views
z3: sudo make install fails to set up dynamic libraries on MacOS Sonoma (M1 pro)
I tried installing z3 compiling it from this repository (sudo make install) on my MacBook with M1 pro processor and MacOS Sonoma.
make examples worked.
I succesfully compiled a file in another ...
3
votes
1
answer
292
views
How does one consistently set rpath on a dynamic library and compile time?
I spent an inordinate amount of time this past week adding comprehensive OS, Perl Version, and cmark version tests to the Perl CommonMark module (pull request). Most of my time was spent trying to get ...
1
vote
1
answer
814
views
Pyinstaller on macos doesn't load library with --add-binary
I have a dev macOS VM and the builds work fine using pyinstaller 4.0.
As soon as I update pyinstaller anything other than 4.0, it fails to load my custom *.dylib files which are in the application ...
0
votes
1
answer
2k
views
How do I include and link a .dylib file using CMake in VSCode?
I've just started learning how to use CMake and I'm trying to include glfw files into my project.
The structure of my project is as follows:
main.cpp
CMakeLists.txt
build
dependencies
- glfw
...
1
vote
0
answers
245
views
Failed to get function pointers, Dylib Injection Struggles
I am trying to inject a dylib into a game called Roblox and have found the memory addresses neccessary already. When I inject using DYLD_INSERT_LIBRARIES, the code does nothing and gives the error ...
0
votes
1
answer
154
views
Notifications through Dylib Injection on MacOSX in c++
I am attempting to write a .dylib in c++ that will make a notification after injection. It has not had any errors nor output.
in main.cpp:
#include <cstdio>
#include <syslog.h>
#include &...
0
votes
0
answers
43
views
How to execute in another Mac(Another computer) a C program + MySql client
I'm new in C language programing, and i'm working in an Mac OS enverimont!
I'm testing a code, that takes the current hostname from machine and send it to an MySql database.
In my computer it works!
I ...
0
votes
0
answers
221
views
How to add ARC for a single .dylib file
In the recent Penetration test of our iOS app we found a vulnerability that {appName}.app/Frameworks/libswiftCoreImage.dylib does not enforce automatic reference counting protection.How to enable the ...
0
votes
1
answer
256
views
Is it possible to link to a dynamic library that may have one of a few possible names or paths so that at runtime it'll use any one of those paths?
I'm working on a Qt plugin for macOS. I want it to be as easy to integrate and use as possible, both for developers and end users. To that end, I want to provide compiled versions of it for different ...
0
votes
1
answer
359
views
Linking c++ dylib in unity gives undefined symbol error
What I want to do
I want to use dylib (C header library) from unity.
Target is iOS
What I did.
dylib in Assets/Plugins/iOS.
Use __Internal for iOS when routing dylib
#if (UNITY_IPHONE &...
2
votes
1
answer
439
views
XCode: specify different dylib paths for builds of different architectures
I'm trying to build a MacOS app for both x86_64 and arm64 architectures.
I'm also linking it with some .dylib libraries which I have in both architectures.
In XCode I figured that I can set the search ...
1
vote
1
answer
312
views
Two macOS dylibs with Shared Static Library: Why Are Global Variables Shared?
To my surprise, when compiling two separate dylibs that happen to share a static library, the global variables defined in that static library seem to be shared. This SO article would seem to indicate ...
1
vote
1
answer
646
views
How can I specify a relative dylib path in cgo on macOS
I am currently attempting to get an existing dylib written in C working in Go.
For this, I am using Cgo and everything compiles correctly.
When go build attempts to run the resulting executable dyld ...
0
votes
1
answer
66
views
C library can't find it's .cfg file on iOS
I have compiled the labstreaminglayer library for an iOS app, which works fine. But I would like to do some configuration as described here. But I can't get the library to find the lsl_api.cfg file.
...
1
vote
0
answers
394
views
Injecting a Dylib into Processes Running Under Rosetta
I need to inject a dynamic library into a process exclusively targeting the x86_64 instruction set. My host architecture is aarch64.
I attempted injection using the following C++ code...
#define ...
0
votes
1
answer
780
views
Apple app store support ios app with dylib
I am trying to make an ios app with a dylib as framework instead of the standard .framework or .xcframework structure.
Does the app store review work with such a shared library structure.
I see from ...