- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to build the SDK using mingw32-make -f "Makefile". First I runcmake -G "MinGW Makefiles", which runs smoothly , but the second command mingw32-make -f "Makefile" is raising an error that you can see below.
I have installed mingw64 version 13.1.0
Cmake is also installed.
Do you know what could be the problem?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @reda ,
You need to follow all the below steps, make sure you have installed all the mentioned below.
-
Install MINGW with MSYS
-
Install gcc, g++, gdb, and cmake using pacman.
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-gdb
pacman -S mingw-w64-x86_64-cmake
-
Check installation:
gcc --version
g++ --version
gdb --version
-
Edit environment variables for your account (PATH)
C:\msys64\mingw64\bin
C:\Program Files\CMake\bin
Also make sure that you have installed correct version of CMake.
Thank you,
Siddharth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @reda ,
Can you trying installing gcc built by MSYS2 project and check if that works. I used that and it works perfectly.
Let me know if that works.
Thank you, Siddharth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Siddarth for the suggetion.
I have another problem with that. Cmake cannot find the compiler then, and I have a problem when running cmake -G "MinGW Makefiles"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @reda ,
It looks like you have added the mingw64/bin that you downloaded before, to the path.
Instead, you should be adding the mingw64/bin found inside MSYS2.
C:\msys64\msys64\mingw64\bin
Add the above address to the path, this should solve the issue.
Thank you,
Siddharth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Siddharth,
I have tried this, but got a new error with cmake.
The environment variables are
Bests,
Reda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @reda ,
You need to follow all the below steps, make sure you have installed all the mentioned below.
-
Install MINGW with MSYS
-
Install gcc, g++, gdb, and cmake using pacman.
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-gdb
pacman -S mingw-w64-x86_64-cmake
-
Check installation:
gcc --version
g++ --version
gdb --version
-
Edit environment variables for your account (PATH)
C:\msys64\mingw64\bin
C:\Program Files\CMake\bin
Also make sure that you have installed correct version of CMake.
Thank you,
Siddharth