Building SDK using mingw32-make -f "Makefile" not working

Announcements

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
reda
Level 1
Level 1
10 sign-ins 5 likes given First like received

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.

 

Screenshot 2023-05-23 005700.png

I have installed mingw64 version 13.1.0

Screenshot 2023-05-23 190955.png

Cmake  is also installed.

Screenshot 2023-05-23 191230.png

 

Do you know what could be the problem?

Thank you.

0 Likes
1 Solution
Siddharth_H
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 50 likes received

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.

Siddharth_0-1685943522141.png

 

 

 

 

 

 

 

Thank you, 

Siddharth

 

 

View solution in original post

0 Likes
5 Replies
Siddharth_H
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 50 likes received

Hi @reda ,

Can you trying installing gcc built by MSYS2 project and check if that works. I used that and it works perfectly.

Siddharth_0-1684904216502.png

Let me know if that works. 

Thank you, Siddharth.

 

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"

 

Screenshot 2023-05-24 184325.png

0 Likes
Siddharth_H
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 50 likes received

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. 

0 Likes
reda
Level 1
Level 1
10 sign-ins 5 likes given First like received

Thank you Siddharth,

 

I have tried this, but got a new error with cmake.

Screenshot 2023-0.png

 

The environment variables are

env.png

Bests,

Reda

0 Likes
Siddharth_H
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 50 likes received

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.

Siddharth_0-1685943522141.png

 

 

 

 

 

 

 

Thank you, 

Siddharth

 

 

0 Likes