Category : macos

Goal: I want to retrieve the file paths of dynamic libraries loaded by a process. My code: struct task_dyld_info dyld_info; mach_msg_type_number_t count = TASK_DYLD_INFO_COUNT; struct dyld_image_info dyld_image_info; char path[PATH_MAX]; if (task_info(task, TASK_DYLD_INFO, (task_info_t) & dyld_info, & count) == KERN_SUCCESS) { printf("dyld_all_image_infos: %pn", dyld_info.all_image_info_addr); printf("%dn", dyld_info.all_image_info_size); struct dyld_all_image_infos * dyld_all_image_infos = (struct dyld_all_image_infos * ) dyld_info.all_image_info_addr; ..

Read more

I am currently struggling to find the python headers on my system and can’t include them therefore into a C++ application this is my cmake file –> cmake_minimum_required(VERSION 3.14) project(ondoki-desktop VERSION 0.1 LANGUAGES CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_TOOLCHAIN_FILE /Users/ahoehne/repos/vcpkg/scripts/buildsystems/vcpkg.cmake) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) include_directories(${PYTHON_INCLUDE_DIRS}) find_package(Python3 COMPONENTS Interpreter REQUIRED) if(DEFINED ENV{VIRTUAL_ENV} ..

Read more

I work in VS code and I want to write serious programs in C++ that require the connection of libraries. It’s easy to download them, but I do not know how to connect them, and if, for example, I want to use the same SDL2 in several programs, I will not download and connect as ..

Read more