Skip to content

Qt Creator and other tools

Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.6k Topics 35.5k Posts
  • 0 Votes
    9 Posts
    3k Views
    JonBJ
    @Nianoniaa I doubt the files' content is getting zapped by a "legitimate" write to the file, more that something nasty is causing the underlying disk area to get corrupted. In itself I can't see that Qt would be the cause. However you probably do a lot more reading/writing of files etc. when you compiling or clanging than in other situations, so the problem may be more likely to show up then.
  • Qt creator has issues while building android for x86 using Cmake

    Unsolved android cmake gcc android studio
    3
    0 Votes
    3 Posts
    3k Views
    A
    Hello, Sorry for the novice mistake! I was trying to use different compilers in the NDK but i end up with the same error. The code i uploaded before was from one of my trials. I did change my configuration to x86 but i still get the same error. Since this is my 1st time for android, I may have missed something. The error stays the same. The 1st few line of my cmake error log states: Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++ Build flags: Id flags: The output was: 1 /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot open crtend_android.o: No such file or directory /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lstdc++ /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lm /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lc /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -ldl collect2: error: ld returned 1 exit status and the cmake output states -- The CXX compiler identification is GNU 4.9.0 -- Check for working CXX compiler: /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc -- Check for working CXX compiler: /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc -- broken CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "/home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/user/testProjects/build-bubbleWork-Android_for_x86_GCC_4_9_Qt_5_9_3_for_Android_x86-Default/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_c05c5/fast" /usr/bin/make -f CMakeFiles/cmTC_c05c5.dir/build.make CMakeFiles/cmTC_c05c5.dir/build make[1]: Entering directory '/home/user/testProjects/build-bubbleWork-Android_for_x86_GCC_4_9_Qt_5_9_3_for_Android_x86-Default/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c05c5.dir/testCXXCompiler.cxx.o /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc -o CMakeFiles/cmTC_c05c5.dir/testCXXCompiler.cxx.o -c /home/user/testProjects/build-bubbleWork-Android_for_x86_GCC_4_9_Qt_5_9_3_for_Android_x86-Default/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTC_c05c5 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c05c5.dir/link.txt --verbose=1 /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc CMakeFiles/cmTC_c05c5.dir/testCXXCompiler.cxx.o -o cmTC_c05c5 -rdynamic /home/user/android-ndk-r16b/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
  • Creator: How to auto-select correct Qt source paths for debugging?

    Unsolved
    1
    0 Votes
    1 Posts
    338 Views
    No one has replied
  • 0 Votes
    21 Posts
    16k Views
    M
    Done https://bugreports.qt.io/browse/QTCREATORBUG-19633
  • qmake does not create the Makefile for jom

    Solved
    20
    0 Votes
    20 Posts
    7k Views
    B
    I have now found my problem. I had two files, with the same name but with different extensions, one .c and one .cpp. Only the .cpp file was "mentioned" in the .pro file, but they both were included in the Build. After removal of the .c file, everything became less confusing, and the remaining problems could be isolated to my own source files. Finally, it compiles and runs now. Again, thanks for the assistance.
  • QTCreator target device

    Solved
    4
    0 Votes
    4 Posts
    811 Views
    K
    @Bengt-0 Glad to hear that problem is solved. There are a couple of ways for installation. probably there is also the way through the linux distribution. Those are typically a bit outdated. Just for clarity my answer concering to tick on gnu c++ is for the online installer. There you get all in one package and installed at once. Please marked your thread as solved. You find "Mark as Solved" in the ComboBox "Topic Tools" under your posts.
  • QtCreator Move to previous or next function

    Solved
    3
    0 Votes
    3 Posts
    774 Views
    J
    Done Thanks
  • Qt installer framework : how to replace in instaleld files from gui text ?

    Unsolved qtifw
    1
    0 Votes
    1 Posts
    744 Views
    No one has replied
  • Qt Creator's Clang Static Code Analyzer does not work for my code-base.

    Unsolved
    3
    0 Votes
    3 Posts
    838 Views
    Sudo007S
    @CleverFish I want to run Qt creator's Clang tool. however i run the above command in the terminal, i got following error: In file included from ../timesys/imx6q_camaro/toolchain/include/features.h:388: ../timesys/imx6q_camaro/toolchain/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found include <gnu/stubs-soft.h>
  • Cannot build project

    Moved Unsolved
    7
    0 Votes
    7 Posts
    11k Views
    aha_1980A
    @ayaniger said in Cannot build project: This may have to do with your locale settings. I had this problem on Debian Linux... That may have worked for you, but @johnnyboy is on Windows. I could rather imagine he has spaces in his path and that causes problems.
  • Qbs and custom compiler?

    Unsolved qbs toolchain
    2
    0 Votes
    2 Posts
    720 Views
    sierdzioS
    I recommend asking on QBS mailing list, all the QBS experts are active there. http://lists.qt-project.org/mailman/listinfo/qbs
  • VCPkg integration on Windows?

    Unsolved
    2
    1 Votes
    2 Posts
    5k Views
    SGaistS
    Hi, From a quick look they provide integration for cmake. See here. That might be the quick and easy way to go.
  • Qt on VS 2017: Link DLLs at Runtime

    Locked Unsolved
    2
    0 Votes
    2 Posts
    465 Views
    SGaistS
    Hi, Please don't post the same question in multiple sub-forum. Duplicates Closing this one.
  • Qt Creator Devices Android cannot add new AVD java.lang.NoClassDefFoundError

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    O
    Hi Same for me when I try to create an AVD: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema I have all green ticks too but I use Windows 7. jdk 1.8.0-152 SDK 26.1.1 NDK 16.1.4479499 ABI armeabi-v7a API android-21
  • folding all function.

    Solved
    2
    0 Votes
    2 Posts
    779 Views
    aha_1980A
    Hi @metalBreed, and welcome. Yes, Creator can fold functions and control statements. I cannot tell you, if you can fold all functions at once. Regards
  • qmake to just generate the <app>_plugin_import.cpp file?

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    raven-worxR
    @Maarten-Verhage said in qmake to just generate the <app>_plugin_import.cpp file?: My question is now if I can use qmake to just generate the <app>_plugin_import.cpp file. Preferably without the need of an project *.pro file. Those files should only be created when building statically. qmake doesn't work without .pro files. You can try to search in the mkspecs folder of your Qt installation if there is any qmake function included during the build process and check on what qmake variables it depends on or maybe even what external tool is called. In the worst case this is even implemented in the qmake source code directly.
  • Will Qt Company make Qt Quick Compiler free available to the community? When?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    hexeditorH
    Thanks, @jsulm, but the current Qt version is Qt 5.10, so... yes... we have to wait longer ;)
  • QtCreator ToolTip for global struct

    Unsolved
    4
    0 Votes
    4 Posts
    922 Views
    Pablo J. RoginaP
    @aha_1980 excellent! Qt Project, a community driven effort!
  • QWebEngineView not showing up in QtCreator

    Unsolved
    5
    0 Votes
    5 Posts
    5k Views
    L
    @jsulm By that I mean that it is available in the standalone "Qt Designer" when launched from the start menu. But it is not available when using the embedded designer in Qt Creator when I click on the .ui file and view it in design mode. I have set up my .pro file as described in the documentation.
  • Using 'staticlib' and 'lib_bundle' together

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    Thanks for the feedback