Category : arm64

I’m trying to match the behavior exactly between an application running on both x86_64 and aarch64/arm64. However, they differ in how they cast a floating point number to an integer when it’s outside of the possible range of integers. Consider the following example: #include <stdio.h> #include <cstdint> void cast(float value) { printf("uint32_t(%.2f) = %un", value, ..

Read more

I am creating a cross-compilation project for x64_arm64. For this, I use the command-line argument -AARM64 to specify the cmake_generator_platform. However, when using the same in ExternalProject_Add command is throwing errors. As per my understanding, this is a cached variable and its value should remain same in the external project. But somehow my observations are ..

Read more

I’m trying to get Matplotlib working in C++ on macOS using Clion as I need to plot 2D graphs. However, after getting over some issues with setting a path for headers: Python.h and arrayobject.h, I cannot get over following error: Undefined symbols for architecture arm64, namely, Undefined symbols for architecture arm64: "_PyCObject_AsVoidPtr", referenced from: _import_array() ..

Read more

I wrote a code using c++ and OpenCV: #include <iostream> #include <time.h> #include <opencv2/opencv.hpp> #include <opencv2/highgui.hpp> using namespace std; int main() { … return 0; } then I trying to Running my code on the terminal and build using g++: g++ $(pkg-config –cflags –libs opencv) -std=c++11 yourFile.cpp -o yourFileProgram but I get this error: … ..

Read more

I am trying to compile & link a simple C++ program using threads on an aarch64 based linux host. The simple program is as follows: #include <iostream> #include <thread> #include <atomic> using namespace std; #define ITERATIONS 1000 // to be called for multi threaded execution void increment_atomic_thread (atomic<int>& a) { for (int i = 0; ..

Read more

I’m trying to compile Valgring3.16.1 with aarch64-linux-gnu-gcc (for xilinx zynq-mp board) the ./configure stage passed ok. when I run: make CC= ….. /bin/aarch64-linux-gnu-gcc I got this error: aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-m64’ How can I fix it? any help will be appreciated, Tzipi Kluska Source: Windows Que..

Read more