Skip to content
  • 5 Votes
    31 Posts
    52k Views
    D

    Hello.
    Could you please help,
    I call a command in MSYS2

    ../qt-everywhere-src-5.15.2/configure -platform win32-g++ -xplatform linux-arm-gnueabi-g++ -release -opengl es2 -device linux-rasp-pi3-g++ -sysroot C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot -prefix /usr/local/qt5

    and after some time get an error:

    Creating qmake... make: g++: No such file or directory make: *** [Makefile:258: main.o] Error 127

    But I am sure the PATH variable contains the correct path to the gcc/g++. In windows CMD console I call g++ -v and get correct data.
    If I call "which g++" in MSYS2, I get following:

    # which g++ which: no g++ in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

    Why MSYS2 does not see the gcc/g++ ?? I have restarted PC already, no change.
    From where these path addresses like /usr/local/bin:/usr/bin are coming??

    I stuck on step 9 and 10, and have no idea.

    Thank you!