D
D
Dimchik2022-01-13 05:22:40
Qt
Dimchik, 2022-01-13 05:22:40

Qt Qml error after changing Page1Form.qml file name?

Error: NMAKE:-1: error: U1077: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\nmake.exe" .

NMAKE : fatal error U1073:
Stop.
NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\nmake.exe" :
Stop.
09:23:36: The process "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\nmake.exe" exited with code 2
Error while building/deploying project TicTacToeAndroid (kit: Android) When executing
step "Make"

Page1Form {

}

This is a link to the qml file. I needed to rename the Qml file, I did it, and then in the main.qml file I put this order in the file names PageBotForm.qml Page1V1Form.qml. Here is main.qml:
import QtQuick 2.12
import QtQuick.Controls 2.5

ApplicationWindow {
    width: 640
    height: 480
    visible: true
    title: qsTr("Tabs")

    SwipeView {
        id: swipeView
        anchors.fill: parent
        currentIndex: tabBar.currentIndex

        PageBotForm {

        }

        Page1V1Form {

        }
    }

    footer: TabBar {
        id: tabBar
        currentIndex: swipeView.currentIndex

        TabButton {
            text: qsTr("Page 1")
        }
        TabButton {
            text: qsTr("Page 2")
        }
    }
}

PageBotForm and Page1V1Form are almost identical, here is one of them.
import QtQuick 2.12
import QtQuick.Controls 2.5

Page {
    id: v1v
    width: 600
    height: 400

    header: Label {
        text: qsTr("Page 2")
        font.pixelSize: Qt.application.font.pixelSize * 2
        padding: 10
    }

    Label {
        text: qsTr("You are on Page 2.")
        anchors.centerIn: parent
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2022-01-13
@Zifix

Do you have any errors in the build log at the Make step? Did you also rename the .qrc file?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question