Project error failed to parse qmlimportscanner output

Hello. I am trying to build Qt5 static but its failed because of missing executables. PS D:vcpkgvcpkg> .vcpkg install qt5-tools:x64-windows-static The following packages will be built and ins...

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


Closed

VladBolotov opened this issue

Oct 25, 2018

· 11 comments

Labels

category:port-bug

The issue is with a library, which is something the port should already support

Comments

@VladBolotov

Hello. I am trying to build Qt5 static but its failed because of missing executables.

PS D:vcpkgvcpkg> .vcpkg install qt5-tools:x64-windows-static
The following packages will be built and installed:
  * qt5-declarative[core]:x64-windows-static
    qt5-tools[core]:x64-windows-static
Additional packages (*) will be modified to complete this operation.
Starting package 1/2: qt5-declarative:x64-windows-static
Building package qt5-declarative[core]:x64-windows-static...
-- Using cached D:/vcpkg/vcpkg/downloads/qtdeclarative-everywhere-src-5.11.1.tar.xz
-- Using source at D:/vcpkg/vcpkg/buildtrees/qt5-declarative/src/5.11.1-f24c2c5092
-- Configuring x64-windows-static-rel
-- Configuring x64-windows-static-rel done
-- Configuring x64-windows-static-dbg
-- Configuring x64-windows-static-dbg done
-- Package makefiles-x64-windows-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: D:/vcpkg/vcpkg/downloads/tools/jom/jom-1.1.2/jom.exe;qmake_all
    Working Directory: D:/vcpkg/vcpkg/buildtrees/qt5-declarative/x64-windows-static-dbg
    See logs for more information:
      D:vcpkgvcpkgbuildtreesqt5-declarativepackage-makefiles-x64-windows-static-dbg-out.log
      D:vcpkgvcpkgbuildtreesqt5-declarativepackage-makefiles-x64-windows-static-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_qmake.cmake:31 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_build_qmake.cmake:45 (run_jom)
  installed/x64-windows-static/share/qt5modularscripts/qt_modular_library.cmake:47 (vcpkg_build_qmake)
  ports/qt5-declarative/portfile.cmake:5 (qt_modular_library)
  scripts/ports.cmake:71 (include)

Looks like build script cant find some executables. Here is an error.log:

jom 1.1.2 - empower your cores

'D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgbinqmlimportscanner.exe' is not recognized as an internal or external command,
operable program or batch file.
D:/vcpkg/vcpkg/installed/x64-windows-static/share/qt5/debug/mkspecs/features/qt.prf:312: Error parsing JSON at 1:1: illegal value
Project ERROR: Failed to parse qmlimportscanner output.
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsMakefile [sub-qml-qmake_all] Error 3
'D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgbinqmlimportscanner.exe' is not recognized as an internal or external command,
operable program or batch file.
D:/vcpkg/vcpkg/installed/x64-windows-static/share/qt5/debug/mkspecs/features/qt.prf:312: Error parsing JSON at 1:1: illegal value
Project ERROR: Failed to parse qmlimportscanner output.
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsMakefile [sub-qmleasing-qmake_all] Error 3
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgMakefile [sub-tools-qmake_all] Error 2

I tried dirty trick — put those binaries qml.exe, qmlcachegen.exe, qmleasing.exe, qmlimportscanner.exe, qmllint.exe, qmlmin.exe, qmlplugindump.exe, qmlprofiler.exe, qmlscene.exe, qmltestrunner.exe from dynamic build in a build time. But I stuck with another errors:

jom 1.1.2 - empower your cores

The system cannot find the path specified.
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmlminMakefile.Debug [....binqmlmin.exe] Error 1
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmlminMakefile [debug] Error 2
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsMakefile [sub-qmlmin-make_first] Error 2
The system cannot find the path specified.
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmllintMakefile.Debug [....binqmllint.exe] Error 1
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmllintMakefile [debug] Error 2
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsMakefile [sub-qmllint-make_first] Error 2
The system cannot find the path specified.
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmlimportscannerMakefile.Debug [....binqmlimportscanner.exe] Error 1
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmlimportscannerMakefile [debug] Error 2
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsMakefile [sub-qmlimportscanner-make_first] Error 2
The system cannot find the path specified.
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmlcachegenMakefile.Debug [....binqmlcachegen.exe] Error 1
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsqmlcachegenMakefile [debug] Error 2
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgtoolsMakefile [sub-qmlcachegen-make_first] Error 2
jom: D:vcpkgvcpkgbuildtreesqt5-declarativex64-windows-static-dbgMakefile [sub-tools-make_first] Error 2

UPD:

PS D:vcpkgvcpkg> .vcpkg version
Vcpkg package management program version 2018.10.20-nohash

@ZeroAbility

I had this same issue just now. I ended up installing it like this:

.vcpkg.exe install qt5-declarative --triplet x64-windows

This tells me either a configuration doesn’t exist for a «static» build, or the package was never meant to be built as static. If it’s the latter, they should probably put a check or some type of logic to say, «regardless of how qt5 gets installed, if there are certain parts that can’t be static, force them to be dynamic. Otherwise, if you attempt to build Qt 5 as static, this will happen. If Qt 5 shouldn’t be built that way, they should probably force the option to build as dynamic or handle it in some other way.

@qdtk

I have been trying to compile qt5 static with shared crt.
I got the modules I needed to compile but qt5 declarative is causing me problems.
After configuration, it turns out that a few of the projects in qt5 declarative are using the LIBAPP and LIBFLAGS macros to build their project but LIBAPP and LIBFLAGS are not defined.
LIBFLAGS is effectively LFLAGS and LIBS together and LIBAPP can be LINKER or it can be ‘lib’ application.

For the first module I came across (sorry cann’t remember its name right now), I wrote a quick and dirty fix in python that finds every Makefile.Debug and Makefile.Release and
adds definitions to these makefiles for LIBAPP and LIBFLAGS and that fixed it.

But the build order in qt5 declarative is different and the fix fails to address the issue. I been trying to go through the qt configuration files trying to find the place LIBAPP is defined in the generation of the Makefile to know available. My hope is to define this variable properly but I can’t find it in the files.

Would someone have a suggestion about how I can define LIBAPP &/or LIBFLAGS ?
Thanks.

@qdtk

I believe I have figured out that «LIBAPP» and «LIBFLAGS» are part of the qmake code. They are defined in winmakefile.cpp and msvc_nmake.cpp in qtbaseqmakegeneratorswin32 and they are only used in a static build.

But for some reason on a static build, the resulting makefiles that generated for the qt5-declarativetools use LIBAPP and LIBFLAGS to build the applications but the definitions do not exist.

Any idea why?

@sipsorcery

I battled this for a few days as well and got bogged down in the vcpkg scripts->qmake (spiral…spiral)->nmake before giving up.

Prior to this I was eventually able to build a static x64 version of Qt from source using:

..Qtv5.9.7_srcconfigure -developer-build -confirm-license -debug-and-release -opensource -platform win32-msvc -opengl desktop -no-shared -static -no-static-runtime -mp -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -ltcg -make libs -make tools -nomake examples -no-compile-examples -no-dbus -no-qml-debug -no-icu -no-gtk -no-opengles3 -no-angle -no-sql-sqlite -no-sql-odbc -no-sqlite -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -nomake tests

That worked for me but I generally prefer the vcpkg deployment approach so had a try at fixing this, no joy. Anotheralternative is to download the prebuilt binaries from https://github.com/martinrotter/qt5-minimalistic-builds.

@qdtk

Thanks

On Feb 21, 2019, at 4:11 PM, Aaron Clauson ***@***.***> wrote:

I battled this for a few days as well and got bogged down in the vcpkg scripts->qmake (spiral…spiral)->nmake before giving up.

Prior to this I was eventually able to build a static x64 version of Qt from source using:

..Qtv5.9.7_srcconfigure -developer-build -confirm-license -debug-and-release -opensource -platform win32-msvc -opengl desktop -no-shared -static -no-static-runtime -mp -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -ltcg -make libs -make tools -nomake examples -no-compile-examples -no-dbus -no-qml-debug -no-icu -no-gtk -no-opengles3 -no-angle -no-sql-sqlite -no-sql-odbc -no-sqlite -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -nomake tests

That worked for me but I generally prefer the vcpkg deployment approach so had a try at fixing this, no joy. Anotheralternative is to download the prebuilt binaries from https://github.com/martinrotter/qt5-minimalistic-builds.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@Kissaki

I can confirm building/installing qt-declarative with x64-windows works fine, while building with x64-windows-static does not.

The error log shows:

vcpkgbuildtreesqt5-declarativex64-windows-static-dbgbinqmlimportscanner.exe' is not recognized as an internal or external command,
operable program or batch file.

Comparing the buildtree bin folders vcpkgbuildtreesqt5-declarativex64-windows-dbgbin and vcpkgbuildtreesqt5-declarativex64-windows-static-dbgbin the first is filled with binaries, while the second is completely empty.

Checking the Makefile at vcpkgbuildtreesqt5-declarativex64-windows-static-dbgMakefile documents the qmake call that was used:

# Command: …vcpkginstalledx64-windows-statictoolsqt5qmake.exe -o Makefile …vcpkgbuildtreesqt5-declarativesrc5.12.1-1f64885d6fqtdeclarative.pro "CONFIG-=release" "CONFIG+=debug" "CONFIG+=staticlib" -qtconf …/vcpkg/buildtrees/qt5-declarative/x64-windows-static-dbg/qt.conf

To me the CONFIG value staticlib looks like it could be wrong. I guess this should be simply static instead?

Where does this come from exactly? The ports file is trivial. Where would I have to check?

Unfortunately manually building in that folder with adequate qmake file did not succeed — although it did produce two files in the bin folder before failing (to link the qmllint.exe). The command there looks like it used the staticlib CONFIG value still though, so this is probably an incomplete change and thus fails to build.

Does the CONFIG+=staticlib declaration come from the vcpkg triplet configuration, cmake, or Qt?

@JackBoosY

@JackBoosY

@Kissaki It seems that the option staticlib is not supported on the latest version. I checked out the official static build script(documentation) and I tried to replace it with static, and this seems to work.

@JackBoosY

Hi @VladBolotov, thanks for reporting this issue.
Since qt has been upgrade to 5.12.4, we fixed this issue. Please update vcpkg and rebuild qt5-declarative.

Thanks.

@chanwoood

@JackBoosY
Error: Building package qt5-declarative:x86-windows-static failed with: BUILD_FAILED
Please ensure you’re using the latest portfiles with .vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: qt5-declarative:x86-windows-static
Vcpkg version: 2020.06.15-nohash

@JackBoosY

@96chh Can you open a new issue to report that?

Thanks.

Labels

category:port-bug

The issue is with a library, which is something the port should already support

  • Home
  • Forum
  • Qt
  • Qt for Embedded and Mobile
  • Errors to build app in iOS and Android

  1. Default Errors to build app in iOS and Android

    Hello everyone!

    I am having a 2 problems:

    To run an app in iOS
    Appears the error when I change the build to iphonesimulator-clang 5.4.0 for iOS:
    Project ERROR: Failed to parse qmlimportscanner output.

    To run an app in Android
    Appears the error when I run or build the project — I am using Android for armeabi-v7a (GCC 4.9, Qt 5.4.0) in Android AVD:
    [install target] error 71 (ignored)

    I am using OSX with Qt 5.4.1

    Could anyone help me?

    Thanks in advance.

    Sorry, wrong category. But could anyone help me?


  2. Default Re: Errors to build app in iOS and Android

    [install target] error 71 (ignored)

    This does not seem to work for android builds. I have the same config as you, and cannot get this to work even on Qt example projects. However, you can disable the «make install» step in Qt Creator and everything seems to work fine. Using the USB debugger, the app deploys and runs on the target device.

    I suspect there’s a bug in the ant build script on android, but I haven’t cared enough to investigate.

    Can’t comment on the iPhone issue — no experience with that.


Similar Threads

  1. Replies: 0

    Last Post: 13th April 2014, 23:29

  2. Replies: 2

    Last Post: 17th March 2014, 08:42

  3. Replies: 0

    Last Post: 10th August 2011, 17:59

  4. Replies: 2

    Last Post: 4th June 2009, 08:51

  5. Replies: 0

    Last Post: 19th April 2007, 21:54

Tags for this Thread

Bookmarks

Bookmarks


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules

Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.

Мне нужно статически скомпилировать Qt. Мне нужно сделать это на виртуальной машине под управлением Windows XP. Из-за этого требования я не могу использовать сценарий PowerShell 3.0, предложенный на вики-странице Как создать статический Qt для Windows / MinGW (PowerShell 3.0 не может быть установлен на WinXP).

Я попытался прочитать сценарий и выполнить его пошагово вручную.

Я добавил в конец файла C:Qt5.3Srcqtbasemkspecswin32-g++qmake.conf:

# [QT-STATIC-PATCH]
QMAKE_LFLAGS += -static -static-libgcc
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE += -Os -momit-leaf-frame-pointer
DEFINES += QT_STATIC_BUILD

Я запустил конфигурацию:

mkdir C:Qt5.3Static-build
cd C:Qt5.3Static-build
..Srcconfigure.bat -static -debug-and-release -platform win32-g++ 
-prefix C:Qt5.3Static -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg 
-qt-freetype -opengl desktop -qt-sql-sqlite -no-openssl -opensource 
-confirm-license -make libs -nomake tools -nomake examples -nomake tests

И это кажется нормальным:

This is the Qt for Windows Open Source Edition.

You have already accepted the terms of the license.

Creating qmake...
mingw32-make: Nothing to be done for 'first'.
Running configuration tests...
Environment:
    INCLUDE=
      Unset
    LIB=
      Unset
    PATH=
      C:Qt5.3mingw482_32bin
      C:QtToolsmingw482_32bin
      C:Program FilesGitgit-cheetah..bin
      C:Program FilesGitgit-cheetah..bin
      C:Program FilesGitgit-cheetah..bin
      C:Program FilesGitgit-cheetah..bin
      C:Program FilesGitgit-cheetah..bin
      C:Program FilesGitgit-cheetah..bin
      C:Program FilesGitgit-cheetah..bin
      C:WINDOWSsystem32
      C:WINDOWS
      C:WINDOWSSystem32Wbem
      C:Program FilesGitcmd
      C:Program FilesTortoiseGitbin
      C:Program FilesCMakebin
      C:Python27
      C:StrawberryPerlperlbin
      C:StrawberryPerlwin32
      C:WINDOWSsystem32WindowsPowerShellv1.0
Configuration:
    pcre
    debug
    compile_examples
Qt Configuration:
    minimal-config
    small-config
    medium-config
    large-config
    full-config
    debug_and_release build_all release
    debug
    c++11
    static
    zlib
    gif
    jpeg
    png
    freetype
    build_all
    accessibility
    opengl
    audio-backend
    native-gestures
    qpa
    iconv
    concurrent

QMAKESPEC...................win32-g++ (commandline)
Architecture................i386, features:
Host Architecture...........i386, features:
Maketool....................mingw32-make
Debug build.................yes (combined)
Default build...............debug
Force debug info............no
C++11 support...............yes
Link Time Code Generation...no
Accessibility support.......yes
RTTI support................yes
SSE2 support................yes
SSE3 support................yes
SSSE3 support...............yes
SSE4.1 support..............yes
SSE4.2 support..............yes
AVX support.................yes
AVX2 support................yes
NEON support................no
IWMMXT support..............no
OpenGL support..............yes
Large File support..........yes
NIS support.................no
Iconv support...............yes
Evdev support...............no
Mtdev support...............no
Inotify support.............no
eventfd(7) support..........no
Glib support................no
CUPS support................no
OpenVG support..............no
OpenSSL support.............no
Qt D-Bus support............no
Qt Widgets module support...yes
Qt GUI module support.......yes
QML debugging...............yes
DirectWrite support.........no
Use system proxies..........no

QPA Backends:
    GDI.....................yes
    Direct2D................no

Third Party Libraries:
    ZLIB support............qt
    GIF support.............yes
    JPEG support............yes
    PNG support.............yes
    FreeType support........yes
    Fontconfig support......no
    HarfBuzz-NG support.....no
    PCRE support............qt
    ICU support.............no
    ANGLE...................no
    Dynamic OpenGL..........no

Styles:
    Windows.................yes
    Windows XP..............yes
    Windows Vista...........yes
    Fusion..................yes
    Windows CE..............no
    Windows Mobile..........no

Sql Drivers:
    ODBC....................no
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................yes (qt)
    SQLite2.................no
    InterBase...............no

Sources are in..............C:Qt5.3Srcqtbase
Build is done in............C:Qt5.3Static-buildqtbase
Install prefix..............C:Qt5.3Static
Headers installed to........C:Qt5.3Staticinclude
Libraries installed to......C:Qt5.3Staticlib
Arch-dep. data to...........C:Qt5.3Static
Plugins installed to........C:Qt5.3Staticplugins
Library execs installed to..C:Qt5.3Staticbin
QML1 imports installed to...C:Qt5.3Staticimports
QML2 imports installed to...C:Qt5.3Staticqml
Binaries installed to.......C:Qt5.3Staticbin
Arch-indep. data to.........C:Qt5.3Static
Docs installed to...........C:Qt5.3Staticdoc
Translations installed to...C:Qt5.3Statictranslations
Examples installed to.......C:Qt5.3Staticexamples
Tests installed to..........C:Qt5.3Statictests
WARNING: Using static linking will disable the use of plugins.
         Make sure you compile ALL needed modules into the library.

Generating Makefiles...


Qt is now configured for building. Just run mingw32-make.
To reconfigure, run mingw32-make confclean and configure.

Но компиляция с помощью mingw32-make в какой-то момент не удалась:

cd qml/ && ( test -e Makefile || c:/Qt/5.3/Static-build/qtbase/bin/qmake.exe C:/Qt/5.3/Src/qtdeclarative/tools/qml/qml.pro -o
 Makefile ) && c:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile
'QT_PLUGIN_PATH' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Project ERROR: Failed to parse qmlimportscanner output.
Makefile:94: recipe for target 'sub-qml-make_first' failed
mingw32-make[2]: *** [sub-qml-make_first] Error 3
mingw32-make[2]: Leaving directory 'c:/Qt/5.3/Static-build/qtdeclarative/tools'
Makefile:66: recipe for target 'sub-tools-make_first' failed
mingw32-make[1]: *** [sub-tools-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/Qt/5.3/Static-build/qtdeclarative'
Makefile:101: recipe for target 'module-qtdeclarative-make_first' failed
mingw32-make: *** [module-qtdeclarative-make_first] Error 2

Извините за французскую формулировку. Интересный момент:

QT_PLUGIN_PATH не распознается как внутренняя или внешняя команда, исполняемая программа или командный файл

Я нашел других людей, у которых возникла такая же проблема (здесь), и попробовал решение, которое они предложили (из здесь):

Я добавил

QMAKE_LFLAGS_STATIC_LIB += -static

В qtbase / mkspecs / win32-g ++ / qmake.conf и добавил

static:win32: QMAKE_LFLAGS += $$QMAKE_LFLAGS_STATIC_LIB

В qtbase / mkspecs / features / default_post.prf

У меня все еще есть ошибка.

Итак, у меня есть 2 вопроса:

  1. Вы знаете, можно ли скомпилировать Qt 5.3 в Windows XP с MinGW?
  2. Кто-нибудь знает, как исправить ошибку 'QT_PLUGIN_PATH' is not recognized [...]?

1 ответ

Лучший ответ

Хорошо, по странной причине, после закрытия моей консоли, повторного открытия и повторной попытки, это сработало: / Я оставляю этот вопрос открытым на случай, если у кого-то есть лучшее объяснение для «QT_PLUGIN_PATH» не распознается [… ]» ошибка. Видимо я не первый застрял на этой ошибке.


0

Antwane
26 Ноя 2014 в 16:50

0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

1

14.02.2021, 22:28. Показов 3118. Ответов 22


Установив Qt creator пытаюсь скомпилировать прогу. Вылетает 3 ошибки.

1) Variable QMAKE_CXX.COMPILER_MACROS is not defined.
2) Project ERROR: failed to parse default search paths from compiler output
3) Ошибка разбора файла C:UsersAdminDocumentsproverochkaproverochka.p ro. Отмена.

Пробовал установить с minGW, с MSVC, во втором случае вообще 5 ошибок. Пытался найти в нете инфу, но не понимаю как сделать то, что советуют знатоки, слишком сложно для новичка. Возможно проблема в том, что для компиляции используется несколько компиляторов или что-то в этом роде. Не испытав удачу в IDE Qt creator, я пошел связывать VS с qt. Установил расширение, далее как в гайде добавляю путь к MSVC, а у меня вылетает ошибка «error registering Qt version».

Устанавливал Qt5. Пытался установить MSVC для VS и 2017, и 2019 — исход один. Установку Qt creator пробовил и через предлагаемую сборку, и кастомную с настройками как вот здесь

Желательно понять в чем проблема с Qt creator, целый день с этим вожусь.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

15.02.2021, 15:11

2

KaffLime,
уточню а вы пробовали ставить через онлайн инсталятор с официального сайта?

Сделайте скрин настроек, и вывод компилятора.



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

15.02.2021, 16:10

 [ТС]

3

Юля_программист, я через него и устанавливал.



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

15.02.2021, 16:29

4

KaffLime,
уточню а вы пробовали ставить через онлайн инсталятор с официального сайта?

Сделайте скрин настроек, и вывод компилятора.

Добавлено через 1 минуту
KaffLime, а почему не выбрали дефолтный пакет?

Я просто тоже ставил через кастомные настройки, замучилась…
А в итоге выбрала по умолчанию и все завелось без проблем.

Добавлено через 4 минуты
KaffLime, не тот скрин…покажите ВЫВОД СБОРКИ

Я наверное не совсем корректно сказала.Покажите настройки в qt creator, а именно Инструменты -> Параметры -> Сборка и Запуск — Комплекты).



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

15.02.2021, 16:36

 [ТС]

5

»

Цитата
Сообщение от KaffLime
Посмотреть сообщение

Установку Qt creator пробовил и через предлагаемую сборку, и кастомную с настройками как вот здесь

На данный момент сборка, которую предлагает инстяллтор

Миниатюры

Ошибка компиляции программы в qt creator
 

Ошибка компиляции программы в qt creator
 



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

15.02.2021, 17:22

 [ТС]

6

Перед запуском, кстати, ошибок куда больше. И связаны они с… VS???

Миниатюры

Ошибка компиляции программы в qt creator
 



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

15.02.2021, 18:10

7

KaffLime, а вам нужен именно vs компилятор. Верно?

Я вижу что у вас есть один рабочий комплект(Комплекты,раздел автоопределенные).
А у остальных есть предупреждения. Покажите чего он там пишет для набора который вы используете.

Добавлено через 8 минут
KaffLime, а переменные среды меняли?
Я с vs компилятором не работаю…но первые же строчки гугла дают решения о том, что надо поменять переменные среды.
Это вы делали?
В посте вы писали

Цитата
Сообщение от KaffLime
Посмотреть сообщение

но не понимаю как сделать то, что советуют знатоки,

Чего они советуют и что вам не понятно?



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

15.02.2021, 18:14

 [ТС]

8

Нахожу алгоритм действий на форуме для решения проблемы. Алгоритм: сделать вот это, вон и все. Я не понимаю что это и где это делается



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

15.02.2021, 18:22

 [ТС]

9

Например, что такое артефакты в первом же пункте?

Миниатюры

Ошибка компиляции программы в qt creator
 



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

16.02.2021, 13:38

10

KaffLime,
— удалите папку со сборкой и файл c расширением *.pro.user
— откройте проект, выберите комплект с компилятором MinGW 64bit
— получите ошибку
— выберите Сборка -> Запустить qmake
— закройте проект Файл-> Закрыть проект
— выберите Недавние проекты, там найдите ваш проект
— Соберите проект

Странно, я в нашла решение проблемы с помощью настройки переменной среды PATH.
Но повторюсь вам принципиально сборка vs компилятором?



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

16.02.2021, 19:59

 [ТС]

11

Цитата
Сообщение от Юля_программист
Посмотреть сообщение

Но повторюсь вам принципиально сборка vs компилятором?

Нет. Мне и там, и там сойдет



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

18.02.2021, 11:53

12

KaffLime,
у вас в настройках есть рабочий комплект с MinGw я его обвела в кружок рядом с цифрой 1. При создании проекта вам надо выбрать этот комплект, и скорее всего если никаких ошибок в путях не будет, то все заработает.

Цифрой 2 я обозначила комплекты с ошибкой, если вы покажите всплывающие ошибки(рядом с комплектом желтый треугольник,наведите на него мышь появится ошибка и скрин сюда) у этих комплектов, скорее всего либо я, либо другие участники форума смогут помочь их настроить.

Ошибка компиляции программы в qt creator



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

19.02.2021, 11:50

 [ТС]

13

Юля_программист, изначально когда я установил qt creator, у меня не было этого mingw, и все эти комплекты были недоступны. После отдельной установки ningw стал доступен только он. Я не мог и не могу выбрать остальные. Чуть позже прикреплю скрины



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

19.02.2021, 12:24

14

KaffLime,
а сейчас вы тоже не можете выбрать комплект с minGW?
Если да, то что пишет. По тому, что я вижу в настройках не должно быть проблем с этим комплектом…

Цитата
Сообщение от KaffLime
Посмотреть сообщение

Чуть позже прикреплю скрины

Давайте разбираться. Жду скринов с ошибками. Посмотрим, что ему не нравится.



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

19.02.2021, 12:30

 [ТС]

15

Юля_программист, тот единственный комплект с minGW, что не отмечен ошибкой доступен. Но с ним при компиляции возникают ошибки. Остальные недоступны для выбора вообще



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

19.02.2021, 12:49

16

Цитата
Сообщение от KaffLime
Посмотреть сообщение

тот единственный комплект с minGW, что не отмечен ошибкой доступен. Но с ним при компиляции возникают ошибки.

скрин ошибок в студию



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

19.02.2021, 12:56

 [ТС]

17

Цитата
Сообщение от Юля_программист
Посмотреть сообщение

скрин ошибок в студию

сверху кидал уже



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

19.02.2021, 13:13

18

KaffLime,
КОМПЛЕКТ: Замена для Desktop Qt 5.15.2 MSVC2019 64bit
Там надо просто задать компилятор, зайдите в настройки этого комплекта и попрубуйте указать ему компилятор из списка.

Цитата
Сообщение от KaffLime
Посмотреть сообщение

сверху кидал уже

что то я потеряла…или как раз таки все первые скрины это про комплект с minGW?

Добавлено через 7 минут
KaffLime,
Посмотрела остальные ошибки.
В конфигурации СMAke не задан путь к компилятору С(или С++), но в комплекте указан корректный интрументарий.
Попробовала у себя, суть в том что вы выбрали не корректный компилятор для этих комплектов.
У вас есть список компиляторов, пробуйте другие. И предупреждения пропадут, и по идеи все должно сработать.



0



0 / 0 / 0

Регистрация: 05.05.2020

Сообщений: 224

19.02.2021, 13:36

 [ТС]

19

Цитата
Сообщение от Юля_программист
Посмотреть сообщение

У вас есть список компиляторов, пробуйте другие

Ничего из списка к устранению предупреждения не приводит. Может нужно какой-то MSVC дополнительно установить?



0



674 / 185 / 59

Регистрация: 04.05.2012

Сообщений: 847

Записей в блоге: 1

19.02.2021, 13:43

20

KaffLime, хм…
если ни один из списка не подходит. Значит да, компилятор не подходит. Надо другой ставить.
Я у себя компиляторы меняла, тоже ошибка появлялась, но при установке другого компитятора ошибка пропадает.

Я тоже долго мучилась, когда ставила. В итоге просто грохнула все qt,и поставила из онлайн инсталятора версию по умолчанию, и все заработало.
До этого, так же как и у вас была тонна ошибок.



0



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

19.02.2021, 13:43

20

Понравилась статья? Поделить с друзьями:
  • Project error building qtqml requires python
  • Project e как изменить emc предмета
  • Project cars 3 как изменить имя
  • Project build error non resolvable parent pom for
  • Progressnotificationcommon dll citrix ошибка при установки