I’m developing a .NET 5 console application and would like to be able to read some basic system info such as CPU temperature, memory usage, CPU usage, etc. My development machine is running windows but the application is deployed to a Linux machine, therefore I’d like to avoid having to write two different sets of code for both OS. How
Tag: cross-platform
Assimp aiString empty when compiling for Linux
I’m working on a simple OpenGL project and I’m new to C++. I’ve been slowly adding features to a very simple primitive 3D “engine” and I’ve worked to make sure it compiles cross-platform. I have a make file that I run for OSX and Linux (Ubuntu) and for Windows I have a Visual Studio solution file modified to work with
Compiling my C++ exe for Linux with VS2019
I have created a C++ standalone exe with VS2019. This exe uses 1 external ressource file. This exe creates WAV files. It does not use any special libraries. I have been asked if this application runs under Linux, too. What would I have to do / check to see if / how I can compile my application for Linux, and
Where is Unity3D Project Wizard project list stored on Linux/Mac?
In Windows, the project list is stored on the Regedit at this location: But where is this located on Linux or Mac? I want to do a program that need to use this paths. Answer for MacOS:
C# .net Core – Get file size on disk – Cross platform solution
Is there a way to have a common logic to retrieve the file size on disk regardless of the underlying operating system ? The following code works for windows but obviously doesn’t for Linux. Alternatively, I’m looking for a similar implementation that would work on Linux. Can anyone point me in the right direction ? Thanks for your help !
OpenCV different results on Windows and Linux
I’m writing a cross-platform wrapper for OpenCV on rust. And I wrote several tests to check that my wrapper is working correctly. Some tests are passing, some tests are failing with slightly different values, but one test has completely different results. Right number is what I get on windows, left – on linux I tried to reproduce code from this
What is the systematic way when I want my code (client and server ) work on various scenarios?
I developed in on 64-bit MAC. And I wish it would work under two scenarios: 64 bit server and 64 bit client 32 bit server and 64 bit client ONLY DEALING *NIX NOW Between the communication of server A and client B, I would exchange a linked list of struct, which is of the following type: both size of char
Process management code behaves different on Linux and Windows – Why?
(Context) I’m developing a cross-platform (Windows and Linux) application for distributing files among computers, based on BitTorrent Sync. I’ve made it in C# already, and am now porting to C++ as an exercise. BTSync can be started in API mode, and for such, one must start the ‘btsync’ executable passing the name and location of a config file as arguments.
Compiling C Program on OS X to Run on Linux
I have a pretty simple C program that does some cryptographic calculations using only standard library functions. I will be running the program on Ubuntu (10.04, 32 bit) and compiled it on OS X 10.6 using cc with the -m32 flag. When I tried to run it on Ubuntu I got the error message “cannot execute binary file.” When I
Compiling linux sources in Windows environment
I got a source for console program written in c++ for linux Is there a (automated) way to compile this source to run in windows? and what about linux functions and libraries called in this file? Answer It depends on the source, but if it’s using linux functions and libraries, installing Linux might end up being easier that getting it