Cross-compilation on Windows seems to require some updates.
Quote from NeoDarwin on January 10, 2025, 5:45 pmTarget 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:
- Directory creation before copying:
- We use
mkdir
to check and create the required folders before performing copy operations.- Use of the Windows
xcopy
command:
- We completed the
xcopy
, which is tailored for Windows and supports recursive file copying.- Addition of a
move
command:
- 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.
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:
- Directory creation before copying:
- We use
mkdir
to check and create the required folders before performing copy operations.
- We use
- Use of the Windows
xcopy
command:- We completed the
xcopy
, which is tailored for Windows and supports recursive file copying.
- We completed the
- Addition of a
move
command:- 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.