lee

  • *
  • 42
How to build the GCS in Qt Creator?
« on: January 12, 2016, 06:56:55 am »
Hi, all
I built the "ground" source code in Qt Creator IDE, then some errors ocurred and failed.
I think it's lack of some header files, but I can not know how to deal it.
Could you help me, please?

The error messages as followed:
Code: [Select]
mingw32-make[3]: Entering directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/src/libs'
cd version_info\ && ( if not exist Makefile D:\LGH\ligh\LibrePilot1509-win7sp1-32bit\code\librepilot\tools\qt-5.5.1\5.5\mingw492_32\bin\qmake.exe D:\LGH\ligh\LibrePilot1509-win7sp1-32bit\code\librepilot\ground\gcs\src\libs\version_info\version_info.pro -spec win32-g++ -o Makefile ) && D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/tools/qt-5.5.1/Tools/mingw492_32/bin/mingw32-make -f Makefile
mingw32-make[4]: Entering directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/src/libs/version_info'
D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/tools/qt-5.5.1/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release
mingw32-make[5]: Entering directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/src/libs/version_info'
mkdir D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/../gcs-synthetics
命令语法不正确。
Makefile.Release:97: recipe for target 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/../gcs-synthetics/version_info.cpp' failed
mingw32-make[5]: [D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/../gcs-synthetics/version_info.cpp] Error 1 (ignored)
"python2" "D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/../../make/scripts/version-info.py" --path="D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/../.." --template="D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/src/libs/version_info/version_info.cpp.template" --uavodir="D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/../../shared/uavobjectdefinition" --outfile="D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/../gcs-synthetics/version_info.cpp"
Makefile.Release:97: recipe for target 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/../gcs-synthetics/version_info.cpp' failed
mingw32-make[5]: Leaving directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/src/libs/version_info'
process_begin: CreateProcess(NULL, python2 D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/../../make/scripts/version-info.py --path=D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/../.. --template=D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/src/libs/version_info/version_info.cpp.template --uavodir=D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/ground/gcs/../../shared/uavobjectdefinition --outfile=D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/../gcs-synthetics/version_info.cpp, ...) failed.
make (e=2): 系统找不到指定的文件。

mingw32-make[5]: *** [D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/../gcs-synthetics/version_info.cpp] Error 2
Makefile:34: recipe for target 'release' failed
mingw32-make[4]: Leaving directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/src/libs/version_info'
mingw32-make[4]: *** [release] Error 2
mingw32-make[3]: *** [sub-version_info-make_first-ordered] Error 2
Makefile:46: recipe for target 'sub-version_info-make_first-ordered' failed
mingw32-make[3]: Leaving directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/src/libs'
Makefile:41: recipe for target 'sub-libs-make_first-ordered' failed
mingw32-make[2]: Leaving directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs/src'
Makefile:39: recipe for target 'sub-src-make_first-ordered' failed
mingw32-make[1]: Leaving directory 'D:/LGH/ligh/LibrePilot1509-win7sp1-32bit/code/librepilot/build-ground-Desktop_Qt_5_5_1_MinGW_32bit-Release/gcs'
mingw32-make[2]: *** [sub-libs-make_first-ordered] Error 2
mingw32-make[1]: *** [sub-src-make_first-ordered] Error 2
makefile:39: recipe for target 'sub-gcs-make_first' failed
mingw32-make: *** [sub-gcs-make_first] Error 2
13:55:28: The process "D:\LGH\ligh\LibrePilot1509-win7sp1-32bit\code\librepilot\tools\qt-5.5.1\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project ground (kit: Desktop Qt 5.5.1 MinGW 32bit)
When executing step "Make"
13:55:28: Elapsed time: 01:48.

m_thread

  • *****
  • 87
  • GCS is my home
    • LibrePilot
Re: How to build the GCS in Qt Creator?
« Reply #1 on: January 12, 2016, 08:54:51 am »
Hi
I would need some more info to understand why the build is failing. Can you attach the full log with the errors.
Also if you could show the project settings screens and the qt kit and compiler setup from the options in Qtcreator.
/Fredrik

lee

  • *
  • 42
Re: How to build the GCS in Qt Creator?
« Reply #2 on: January 17, 2016, 08:33:02 am »
Hi, m_thread
I am very sorry to reply so late... because my qt creator can't run normally on win7, it issues "qt has been stopped working", and now I installed vmware+ubuntu1510.
"make all_sdk_install" and "make opfw_resource" was successful, but "make gcs" was failed.
The compile message was attached.
Could you help me, please?
Best Regards!