ggrif

  • *
  • 178
Bonehead attempting to learn how to compile(?) LP firmware
« on: March 02, 2016, 02:16:23 am »
Long story short, several attempts to follow the most excellent instructions for Msys2 have consistently resulted in failure when I attempt to Install The Toolchain.  Love to have some help here, I've tried to solve this myself over the past few weeks but I've bashed my head into the wall so many times I can't see due to the blood in my eyes!  Help...

HP ProBook 6570 b, Win10

This is what I see every time I attempt the toolchain:

 My [email protected] MINGW64 ~/librepilot
$ mingw32-make.exe all_sdk_install
Makefile:33: C:/msys64/home/My: No such file or directory
Makefile:33: HP/librepilot/make/functions.mk: No such file or directory
Makefile:143: C:/msys64/home/My: No such file or directory
Makefile:143: HP/librepilot/make/tools.mk: No such file or directory
Makefile:243: C:/msys64/home/My: No such file or directory
Makefile:243: HP/librepilot/flight/Makefile: No such file or directory
Makefile:267: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:193: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:301: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:267: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:357: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:301: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:361: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:357: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:410: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:361: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:410: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:410: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:410: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:410: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:413: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:410: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:413: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:413: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:413: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:413: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:413: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:413: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:413: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:413: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:413: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:413: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:517: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:413: warning: ignoring old recipe for target 'C:/msys64/home/My'
/usr/bin/sh: --: invalid option
Usage:  /usr/bin/sh [GNU long option] [option] ...
        /usr/bin/sh [GNU long option] [option] script-file ...
GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --protected
        --rcfile
        --restricted
        --verbose
        --version
        --wordexp
Shell options:
        -ilrsD or -c command or -O shopt_option         (invocation only)
        -abefhkmnptuvxBCHP or -o option
Makefile:546: C:/msys64/home/My: No such file or directory
Makefile:546: HP/librepilot/package/Windows.mk: No such file or directory
Makefile:554: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:517: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:557: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:554: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:564: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:557: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:575: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:564: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:581: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:575: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:698: warning: overriding recipe for target 'C:/msys64/home/My'
Makefile:581: warning: ignoring old recipe for target 'C:/msys64/home/My'
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
Makefile:697: target 'C:/msys64/home/My' given more than once in the same rule
mingw32-make: *** No rule to make target 'HP/librepilot/package/Windows.mk'.  Stop.

My [email protected] MINGW64 ~/librepilot
$

hwh

  • *
  • 1018
Re: Bonehead attempting to learn how to compile(?) LP firmware
« Reply #1 on: March 02, 2016, 02:47:26 am »
It looks like you have spaces in your path.  Something like "C:/msys64/home/My Documents".   Reinstall without the space, something like "C:/msys64/home/My_Documents" or "C:/msys64/home/documents".  Never put spaces in unix or unix-like operating system file or directory names, it can be done but it requires every command to have quotes added.

It's a common error for people accustomed to windows operating systems.

ggrif

  • *
  • 178
Re: Bonehead attempting to learn how to compile(?) LP firmware
« Reply #2 on: March 02, 2016, 05:15:59 pm »
It looks like you have spaces in your path.  Something like "C:/msys64/home/My Documents".   Reinstall without the space, something like "C:/msys64/home/My_Documents" or "C:/msys64/home/documents".  Never put spaces in unix or unix-like operating system file or directory names, it can be done but it requires every command to have quotes added.

It's a common error for people accustomed to windows operating systems.
Thanks for the reply.

Not sure I understand.  The spaces are in the path because that's how MySys2 set it up.
I put an "_" in "mingw32-make all_sdk_install" i.e. mingw32-make_all_sdk_install. I've also tried with mingw32-make.exe all_sdk_install, since ".exe" is in the screen shot but not the specific instruction next to it. No joy.

I'll keep digging, I must admit, I haven't done much command line since I had my first IBM PC back in the last century.

f5soh

  • *****
  • 4476
    • LibrePilot
Re: Bonehead attempting to learn how to compile(?) LP firmware
« Reply #3 on: March 02, 2016, 05:24:32 pm »
Just rename the dir inside C:/msys64/home/My ????
the "My something" comes from your username, remove spaces.

ggrif

  • *
  • 178
Re: Bonehead attempting to learn how to compile(?) LP firmware
« Reply #4 on: March 02, 2016, 10:32:32 pm »
Just rename the dir inside C:/msys64/home/My ????
the "My something" comes from your username, remove spaces.

Thanks f5soh, or may I call you Laurent? Problem solved, but I had no idea Win 10 would make it so hard for me to delete a lousy space!

I hope not but I suspect I'll be back with more questions once I start building!

f5soh

  • *****
  • 4476
    • LibrePilot
Re: Bonehead attempting to learn how to compile(?) LP firmware
« Reply #5 on: March 02, 2016, 11:56:54 pm »
F5soh or Laurent refers to the same person :)

ggrif

  • *
  • 178
Toolchain installed, now this happens when attempting to make package...
« Reply #6 on: March 03, 2016, 06:56:58 pm »

 :o

[email protected] MINGW64 ~/librepilot
$ mingw32-make package
/usr/bin/sh: line 1: qmake: command not found
Makefile:185: recipe for target 'C:/msys64/home/Griff/librepilot/build/uavobjgenerator/uavobjgenerator.exe' failed
mingw32-make: *** [C:/msys64/home/Griff/librepilot/build/uavobjgenerator/uavobjgenerator.exe] Error 127

[email protected] MINGW64 ~/librepilot
$

f5soh

  • *****
  • 4476
    • LibrePilot
From doc you need to install all this stuff:
Quote
pacman -S --needed git unzip tar mingw-w64-x86_64-toolchain
mingw-w64-x86_64-qt5 mingw-w64-x86_64-SDL mingw-w64-x86_64-mesa
mingw-w64-x86_64-openssl mingw-w64-x86_64-OpenSceneGraph

Assuming you updated Msys2
https://msys2.github.io/
see step 5 and 6

Edit: joined the new thread with the old one.
« Last Edit: March 03, 2016, 07:06:58 pm by f5soh »