In “Build Steps” you can find the editable line starting with “Make: ….” and “Details” button on right hand side, clicking “Details” reveals two more edit fields, one of which is “Make arguments:” – type ‘-j8’ (without quotes) there and that’s it.įor automatic build you’ll have manual calls for make/nmake/jom somewhere, similarly use ‘-j8’ parameter in case of ‘make’. In Qt Creator it’s in “Projects” -> “Build Settings”. If you use gcc / clang compilers you’ll have ‘make’ calls, which need a ‘-j8’ parameter. Obviously, the most effective way to optimize is to use a parallel buildĪ parallel build is handled mostly by ‘make’ utilities, but for MSVC it is implemented internally in the ‘cl’ compiler. We’ll describe our experience with a build process optimization, try to summarize it and make a simple guide for handling optimization with C++ using Qt. While having to wait hours for a rebuild for each the smallest change can make you more attentive to details and force you to consider each step systematically, it can block a more agile process or collaboration. Multiply that by the time it takes for an entire team or a company of teams, and you’ve got a lot of wasted time in your hands. Generally, the longer it takes to build a project, the more time you waste every day. Jom: C:\Users\Documents\rover_code\qgroundcontrol\build-qgroundcontrol-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile Error 1ġ9:21:07: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.Įrror while building/deploying project qgroundcontrol (kit: Desktop Qt 5.12.How to Build Your C++ Qt Project 10x Faster with 4 Simple OptimizationsĪs a project grows, the time spent on building it becomes more and more valuable. 19:20:48: Running steps for project qgroundcontrol.ġ9:20:48: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"Ĭ:\Qt\5.12.6\msvc2017_64\bin\rcc.exe -name qgroundcontrol "C:\Users\Documents\\rover_code\qgroundcontrol\qgroundcontrol\qgroundcontrol.qrc" -pass 1 -o C:/Users/Documents/rover_code/qgroundcontrol/build-qgroundcontrol-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug/rcc/qrc_qgroundcontrol.cppĬ:\Qt\5.12.6\msvc2017_64\bin\rcc.exe: File does not exist '/Documents/rover_code/qgroundcontrol/build-qgroundcontrol-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug/rcc/qrc_qgroundcontrol.cpp' I have followed the development settings exactly on the QGroundControl dev page. I keep getting the following build error in Qt Creator when trying to compile. I was able to get the build to complete after putting this fix in place. In my case I copied rc.exe and rcdll.dll from: C:\Program Files (x86)\Windows Kits\10\bin\4.0\x86 toĬ:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin Use the Path.txt file to select the path you want to copy the files into. Edit the systems path with a good location for the rc.exe file or copy rc.exe and rcdll.dll to a good path location. That batch file is used to setup the environment to for all of the Microsoft compilers needed by the project, but in this case it did not get the path setup for rc.exe.įind the x86 version for the rc.exe file on your system. This is my full path:Ĭ:\Progam Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86 The full Initialization path will include a parameter passed to the vcvarsall.bat batch file. When you select a Compiler from the list it will show the Initialization files path and parameters for the Compiler below. Select the Compilers tab and select the Compiler being used by the kit. In my case both compilers are the same C and C++ are Microsoft Visual C++ Compiler 14.0 (x86), make note of what yours are. Once you select the kit, look down below the compilers for the kit will be listed. In my case the kit is Desktop Qt 5.11.3 MSVC2015 32bit (default). In the Kits tab select the kit being used for QGC. The vcvarsall.bat edits the systems PATH statement with the paths for all kinds of things but not for rc.exe.įrom within QC Creator load the qgroundcontrol project. The reason the command was not found is because the vcvarsall.bat file that runs from Qt Creator did not create the proper path for rc.exe. For use in the fix later redirect the PATH statement to a text file. After you see the rc is not recognized error, as a test open a command prompt with admin privileges and type in rc.exe then press enter. Qt Creator is just an editor it does not know where the compilers are or in this case, the Microsoft SDK Resource Compiler. The first error “‘rc’ is not recognized as an internal or external command, operable program or batch file.” is where the problem is. “Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.11.3 MSVC2015 32bit) “‘rc’ is not recognized as an internal or external command, operable program or batch file.” Running under local administrator accountīuilding QGC fails to build, and a few errors occur.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |