Help with GCS build
« on: March 03, 2016, 04:42:16 pm »
I'm using a Windows 10 PC to build Next. All of the firmware is compiled. But, when the GCS was building everything looked like it was going fine until I ended with this:

mingw32-make[5]: Leaving directory 'C:/msys64/home/Ron/librepilot/build/librepilot-gcs_release/src/libs/qwt/src'
mingw32-make[4]: Leaving directory 'C:/msys64/home/Ron/librepilot/build/librepilot-gcs_release/src/libs/qwt'
cd sdlgamepad/ && ( test -e Makefile || C:/msys64/mingw64/bin/qmake.exe C:/msys64/home/Ron/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.pro 'CONFIG+=release osg copy_osg silent' 'GCS_BIG_NAME="LibrePilot GCS"' GCS_SMALL_NAME=librepilot-gcs 'ORG_BIG_NAME="LibrePilot"' ORG_SMALL_NAME=librepilot 'WIKI_URL_ROOT="https://librepilot.atlassian.net/wiki/display/LPDOC/"' 'USAGETRACKER_URL="https://usagetracker.librepilot.org/"' GCS_LIBRARY_BASENAME= -o Makefile ) && C:/msys64/mingw64/bin/mingw32-make -f Makefile
mingw32-make[4]: Entering directory 'C:/msys64/home/Ron/librepilot/build/librepilot-gcs_release/src/libs/sdlgamepad'
compiling C:/msys64/home/Ron/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp
C:/msys64/home/Ron/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp:24:21: fatal error: SDL/SDL.h: No such file or directory
compilation terminated.
Makefile:409: recipe for target 'sdlgamepad.o' failed
mingw32-make[4]: *** [sdlgamepad.o] Error 1
mingw32-make[4]: Leaving directory 'C:/msys64/home/Ron/librepilot/build/librepilot-gcs_release/src/libs/sdlgamepad'
Makefile:391: recipe for target 'sub-sdlgamepad-make_first-ordered' failed
mingw32-make[3]: *** [sub-sdlgamepad-make_first-ordered] Error 2
mingw32-make[3]: Leaving directory 'C:/msys64/home/Ron/librepilot/build/librepilot-gcs_release/src/libs'
Makefile:41: recipe for target 'sub-libs-make_first-ordered' failed
mingw32-make[2]: *** [sub-libs-make_first-ordered] Error 2
mingw32-make[2]: Leaving directory 'C:/msys64/home/Ron/librepilot/build/librepilot-gcs_release/src'
Makefile:40: recipe for target 'sub-src-make_first-ordered' failed
mingw32-make[1]: *** [sub-src-make_first-ordered] Error 2
mingw32-make[1]: Leaving directory 'C:/msys64/home/Ron/librepilot/build/librepilot-gcs_release'
Makefile:269: recipe for target 'gcs' failed
mingw32-make: *** [gcs] Error 2

Any help would be appreciated.
Q450
Revolution

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Help with GCS build
« Reply #1 on: March 03, 2016, 04:49:49 pm »

Re: Help with GCS build
« Reply #2 on: March 03, 2016, 05:00:10 pm »
That's what I installed by following the Windows build WIKI.

I did a "mingw32- make package" and resulted with a "qmake: command not found".

I built QT with "pacman -S --needed mingw-w64-x86_64-qt5" which finished OK.

Then I did "mingw32- make package" again which resulted in about an hour of compiling with the above ending.

If I look in the firmware folder it looks like that is OK.

This if my first attempt at building any software.
Q450
Revolution

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Help with GCS build
« Reply #3 on: March 03, 2016, 05:43:35 pm »
The pacman command line for package install depends on shell you use: 32 or 64 ?

If fails with SDL missing you need to install SDL using pacman.
Assuming you see MINGW64 at prompt (64bit shell) you need to install:

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

Be sure the msys2 package are updated / refreshed
https://msys2.github.io/
steps 5 and 6

Re: Help with GCS build
« Reply #4 on: March 03, 2016, 05:54:16 pm »
Thank you for your reply. I'm in process of doing that again. Hope it works this time.
Q450
Revolution

Re: Help with GCS build
« Reply #5 on: March 05, 2016, 02:35:22 pm »
I was able to do a successful build on my Windows 10 laptop using the 64 bit version and on my Windows 10 tablet using the 32 bit version.

Both run fine but neither one has the Map data. The Map area is blank except for the Home location symbol and the UAV position symbol.
Q450
Revolution