You need to log in to create posts and topics.

Cross-compilation on Windows seems to require some updates.

Target file : SimulIDE.prj

After some update, the simulIDE has been build on windows.

Necessary Adjustments for Compiling SimuIDE on Windows

When attempting to compile SimuIDE on Windows, I noticed that certain system-specific differences between Windows and Linux require adjustments in the build scripts to ensure proper functionality.

Problem Encountered

The original version used standard Unix commands (cp, mkdir, move) to copy resources and create the necessary directories. While effective on Linux, these commands are not directly compatible with the Windows environment.

Solutions Implemented

In the corrected version, we made the following modifications to ensure full compatibility with Windows:

  1. Directory creation before copying:
    1. We use mkdir to check and create the required folders before performing copy operations.
  2. Use of the Windows xcopy command:
    1. We completed the xcopy, which is tailored for Windows and supports recursive file copying.
  3. Addition of a move command:
    1. To complement the changes, we added a step to move files after translation to match the expected folder structure.

Overview of Changes

Here are the main adjustments made (for informational purposes, left: original version, right: corrected version):

These changes ensure that SimuIDE can be compiled and used on Windows environments without requiring additional external dependencies.

Note for Linux Users

These modifications do not affect compatibility with Linux, where native commands remain unchanged.

Last point :

I added this directive "QMAKE_CXXFLAGS += -Wno-deprecated-declarations" because I had too many  warnings

 

 

I hope this post is helpful to you.

Thank you for these suggestions.
I will have a look.

NeoDarwin has reacted to this post.
NeoDarwin