LibrePilot Forum

Development => GCS General => Topic started by: Wascally Wabbit on January 04, 2016, 07:28:38 am

Title: Trouble building for Windows (debug)
Post by: Wascally Wabbit on January 04, 2016, 07:28:38 am
I am having a hard time figuring this out. Anyone know off the top of the head? I did a '.\tools\bin\make gcs GCS_BUILD_CONF=debug V1' to get here.


moc C:/Users/Eric/Downloads/LibrePilot/ground/gcs/src/libs/osgearth/osgQtQuick/OSGViewport.hpp
compiling debug/moc_OSGViewport.cpp
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libcurl-4.dll" "C:/Users/Eric/Downloads
/LibrePilot/build/librepilot-gcs_debug/bin/libcurl-4.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libfreetype-6.dll" "C:/Users/Eric/Downl
oads/LibrePilot/build/librepilot-gcs_debug/bin/libfreetype-6.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libgdal.dll" "C:/Users/Eric/Downloads/L
ibrePilot/build/librepilot-gcs_debug/bin/libgdal.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libgeos-3-3-8.dll" "C:/Users/Eric/Downl
oads/LibrePilot/build/librepilot-gcs_debug/bin/libgeos-3-3-8.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libgeos_c-1.dll" "C:/Users/Eric/Downloa
ds/LibrePilot/build/librepilot-gcs_debug/bin/libgeos_c-1.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libjpeg-9.dll" "C:/Users/Eric/Downloads
/LibrePilot/build/librepilot-gcs_debug/bin/libjpeg-9.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libpng16-16.dll" "C:/Users/Eric/Downloa
ds/LibrePilot/build/librepilot-gcs_debug/bin/libpng16-16.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libproj-0.dll" "C:/Users/Eric/Downloads
/LibrePilot/build/librepilot-gcs_debug/bin/libproj-0.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libtiff-5.dll" "C:/Users/Eric/Downloads
/LibrePilot/build/librepilot-gcs_debug/bin/libtiff-5.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libtiffxx-5.dll" "C:/Users/Eric/Downloa
ds/LibrePilot/build/librepilot-gcs_debug/bin/libtiffxx-5.dll"
cp -f "C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/zlib1.dll" "C:/Users/Eric/Downloads/Lib
rePilot/build/librepilot-gcs_debug/bin/zlib1.dll"
make[5]: *** No rule to make target 'C:/Users/Eric/Downloads/LibrePilot/tools/osg-3.4-mingw492_32-qt-5.5.1/bin/libOpenTh
readsd.dll', needed by 'C:/Users/Eric/Downloads/LibrePilot/build/librepilot-gcs_debug/bin/libOpenThreadsd.dll'.  Stop.
make[5]: Leaving directory 'C:/Users/Eric/Downloads/LibrePilot/build/librepilot-gcs_debug/src/libs/osgearth'
Makefile:34: recipe for target 'debug' failed
make[4]: *** [debug] Error 2
make[4]: Leaving directory 'C:/Users/Eric/Downloads/LibrePilot/build/librepilot-gcs_debug/src/libs/osgearth'
Makefile:434: recipe for target 'sub-osgearth-make_first-ordered' failed
make[3]: *** [sub-osgearth-make_first-ordered] Error 2
make[3]: Leaving directory 'C:/Users/Eric/Downloads/LibrePilot/build/librepilot-gcs_debug/src/libs'
Makefile:41: recipe for target 'sub-libs-make_first-ordered' failed
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory 'C:/Users/Eric/Downloads/LibrePilot/build/librepilot-gcs_debug/src'
makefile:39: recipe for target 'sub-src-make_first-ordered' failed
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory 'C:/Users/Eric/Downloads/LibrePilot/build/librepilot-gcs_debug'
makefile:283: recipe for target 'gcs' failed
make: *** [gcs] Error 2
Title: Re: Trouble building for Windows (debug)
Post by: Wascally Wabbit on January 04, 2016, 08:00:29 am
Edit:
I have figured out the obvious, and I have the *release* version of that DLL, which seems to come out of Qt. The *debug* version is missing. I installed Qt when I did a 'make all_sdk_install', and apparently I missed the debug version.

What should I be doing here? I don't think I need debug Qt-ware.
Title: Re: Trouble building for Windows (debug)
Post by: filnet on January 04, 2016, 11:25:29 am
Hi,

Debug build is broken on Windows.

Just remove the "GCS_BUILD_CONF=debug" part of your make invocation.


Title: Re: Trouble building for Windows (debug)
Post by: Wascally Wabbit on January 04, 2016, 04:50:30 pm
Wah! What if I want to debug the running app? No options but fixing the build?
Title: Re: Trouble building for Windows (debug)
Post by: filnet on January 04, 2016, 09:46:17 pm
Windows debug build should now work.
Title: Re: Trouble building for Windows (debug)
Post by: Wascally Wabbit on January 04, 2016, 11:32:58 pm
So this means ... I should resync and try again? Or my build failed for unknown and unexpected reasons?
Title: Re: Trouble building for Windows (debug)
Post by: Wascally Wabbit on January 05, 2016, 05:40:18 am
Heeeeey ... I just built debug. OK.  ;)
Title: Re: Trouble building for Windows
Post by: al on January 22, 2016, 11:35:51 am
Heeeeey ... I just built debug. OK.  ;)

Hi all,

since a week I cannot build under windows, am I doing anything wrong? I have re-installed the complete toolchain
but this didn't help:

compiling D:/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp
moc D:/code/librepilot/ground/gcs/src/libs/sdlgamepad/sdlgamepad.h
compiling release/moc_sdlgamepad.cpp
make[5]: *** No rule to make target 'D:/code/librepilot/tools/qt-5.5.1/5.5/mingw
492_32/bin/SDL.dll', needed by 'D:/code/librepilot/build/librepilot-gcs_release/
bin/SDL.dll'.  Stop.
make[5]: Leaving directory 'D:/code/librepilot/build/librepilot-gcs_release/src/
libs/sdlgamepad'
Makefile:34: recipe for target 'release' failed
make[4]: *** [release] Error 2
make[4]: Leaving directory 'D:/code/librepilot/build/librepilot-gcs_release/src/
libs/sdlgamepad'
Makefile:391: recipe for target 'sub-sdlgamepad-make_first-ordered' failed
make[3]: *** [sub-sdlgamepad-make_first-ordered] Error 2
make[3]: Leaving directory 'D:/code/librepilot/build/librepilot-gcs_release/src/
libs'
Makefile:41: recipe for target 'sub-libs-make_first-ordered' failed
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory 'D:/code/librepilot/build/librepilot-gcs_release/src'

makefile:39: recipe for target 'sub-src-make_first-ordered' failed
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory 'D:/code/librepilot/build/librepilot-gcs_release'
makefile:271: recipe for target 'gcs' failed
make: *** [gcs] Error 2
Title: Re: Trouble building for Windows (debug)
Post by: f5soh on January 22, 2016, 05:18:30 pm
Build system moved to Msys2, see Contributing.md file for more details.