-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing Qt in Program files directory #133
Comments
I have the same issue |
Could (either or both of) you attach your full compilation output, in the compile output tab at the bottom of the screen here? You can just Ctrl+A Ctrl+C to select all and copy the window. We'll try to get this resolved as quickly as possible, Dominic |
16:43:17: Running steps for project TudatBundle... |
Thanks for the quick reply! In your Tudat/Astrodynamics/Aerodynamics/CMakeLists.txt file, there are the lines:
Could you comment these out (# is comment symbol in CMake), run it again and give the output here? Thanks! |
I noticed that both @bkoops and @ifodde have place Qt in I just tried to replicate this by moving Qt to Program Files too. I did get different (but perhaps related) compilation errors where there were none before. So I wasn't able to replicate it 100%. If @DominicDirkx approach still yields errors, perhaps someone could you try to uninstall Qt and reinstall it in a different location (preferably short and without spaces), like |
@magnific0 : Could you post the errors you go with Qt in the new directory? |
This is the output I now get: [ 82%] Built target cspice |
Ok, so it looks like it's not anything specific to the test_ControlSurfaceIncrements file, but rather something systemic. Could you post a screenshot of the Tools -> Options -> Build & Run -> Kits window (like on http://tudat.tudelft.nl/attachments/download/3091). Also, could you post a screenshot of your projects tab (left of your window): http://tudat.tudelft.nl/attachments/download/2895/7_Qt_Select_Compile.png The contents of this tab probably look a bit different for you |
Nothing strange there... Could you replace the contents of your Tudat/Astrodynamics/Aerodynamics/UnitTests/unitTestAerodynamicCoefficientsFromFile.cpp file with the |
Now this comes out: 18:05:22: Running steps for project TudatBundle... |
Ok, the problem seems to be that the
line is not parsed correctly. This line should provide the executable with a main function from which to start running the unit tests. Replacing the boost framework with a main function fixes the linking error, so your setup is not inherently incapable of compiling a main function. The issue may be the path in which your compiler/libraries are stored. My advice would be to follow Jacco's advice, uninstall Qt, and reinstall it in C:/. Try this and reopen the Tudat using the newly installed Qt. If it doesn't run, please attach the same screenshots as before. |
Should I also redo the steps you suggested? Thus uncomment and put the text back? |
Yes, indeed, uncomment the CMakeLists.txt and replace the original contents of unit test file. |
I got this error because now the Qt path has changed, is there a way to solve this? Running Windows Runtime device detection.
is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment CMake Error at CMakeLists.txt:14 (project):
is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment -- Configuring incomplete, errors occurred! |
Yes, in your build-tudatBundle... folder there should be a CMakeCache.txt file. Close qt, delete it, and reopen Qt and Tudat. If it doesnt work, please attach the output again and new versions of the screenshots you attached earlier. |
@DominicDirkx I ended the build before it finished, but this was the log up till that point. As I mentioned, the errors are different from the ones reported here, however the build ran fine before moving Qt into Program Files. The errors occur at 84%. |
Unfortunately it didn't work. |
Ok, if you bring your laptop this afternoon, I'll try to find a few minutes to have a look. |
I had a similar error occurring right around 90%, I also installed Qt in |
Ok, so to summarize. This problem is caused by Qt being installed in the Program Files directory in Windows The solution is:
|
A warning (added by @DominicDirkx, styled by me) now explicitly states in the Windows installation manual: I'm closing this issue. @DominicDirkx feel free to reopen in case you want to increase the visibility of this issue. |
I have recieved the following error while working on step 3.4 'Builiding the libraries:
[ 90%] Linking CXX executable "C:\Users\Bram Koops\tudatBundle\tudat\bin\unit_tests\test_ControlSurfaceIncrements.exe"
C:/PROGRA
2/Qt/Tools/MINGW41/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16'collect2.exe: error: ld returned 1 exit status
tudat\Tudat\Astrodynamics\Aerodynamics\CMakeFiles\test_ControlSurfaceIncrements.dir\build.make:122: recipe for target 'C:/Users/Bram Koops/tudatBundle/tudat/bin/unit_tests/test_ControlSurfaceIncrements.exe' failed
mingw32-make.exe[2]: *** [C:/Users/Bram Koops/tudatBundle/tudat/bin/unit_tests/test_ControlSurfaceIncrements.exe] Error 1
CMakeFiles\Makefile2:360: recipe for target 'tudat/Tudat/Astrodynamics/Aerodynamics/CMakeFiles/test_ControlSurfaceIncrements.dir/all' failed
makefile:139: recipe for target 'all' failed
mingw32-make.exe[1]: *** [tudat/Tudat/Astrodynamics/Aerodynamics/CMakeFiles/test_ControlSurfaceIncrements.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
15:12:14: The process "C:\Program Files (x86)\CMake\bin\cmake.exe" exited with code 2.
Error while building/deploying project TudatBundle (kit: Desktop)
When executing step "Make"
The kits in the build and run menu are all configured as it should be.
How can I fix this issue?
The text was updated successfully, but these errors were encountered: