Category : apple-silicon

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 have refered previous questions but none of those helped. Issue is similar as mentioned here: Why does the terminal show "^[[A" "^[[B" "^[[C" "^[[D" when pressing the arrow keys in Ubuntu? Executing g++(gcc11) and running it. Cannot move cursor using arrows. Interestingly, while taking input in python does not have this issue. Able to ..

Read more

I’m attempting to compile a hello world program on the new Apple Silicon. I’m in Visual Studio Code running under emulation with Rosetta 2. This is my code: #include <iostream> int main() { std::cout << "Hello World!"; return 0; } I get the error: [Running] cd "/Users/jacob/Documents/VS Code/" && g++ helloWorld.cpp -o helloWorld && "/Users/jacob/Documents/VS ..

Read more

I have a simple C application: #include <stdio.h> int main() { printf("Hello, world!n"); } When I build this on an Apple Silicon device, targeting arm64, but using a build system that is compiled for x86_64, the final binary cannot be executed and is reported as "killed" according to the shell: # arch simulates the build ..

Read more