Infinite building a simple project



  • Hi,

    I have a simple project with "Infinite building". How to solve it?

    This is my project: https://github.com/8Observer8/Qt_AddPersonToDatabase

    [CODE]
    09:54:35: Running steps for project AddPersonToDatabase_EmptyArgumentError_gtests...
    09:54:35: Configuration unchanged, skipping qmake step.
    09:54:35: Starting: "C:\Qt\Qt5.3.0\Tools\mingw482_32\bin\mingw32-make.exe"
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    C:/Qt/Qt5.3.0/5.3/mingw482_32/bin/qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ../AddPersonToDatabase_EmptyArgumentError_gtests/AddPersonToDatabase_EmptyArgumentError_gtests.pro
    09:54:55: The process "C:\Qt\Qt5.3.0\Tools\mingw482_32\bin\mingw32-make.exe" exited with code -1.
    09:54:55: Canceled build/deployment.
    09:54:55: Elapsed time: 00:19.[/CODE]

    [CODE]

    INCLUDEPATH += "C:/GTEST/gtest-1.7.0/include"
    LIBS += "C:/GTEST/lib/libGoogleTest.a"

    INCLUDEPATH += "../../"

    HEADERS +=
    ../../EmptyArgumentError.h

    SOURCES +=
    main.cpp
    [/CODE]

    [CODE]

    #include "gtest/gtest.h"
    #include "EmptyArgumentError.h"

    TEST( EmptyArgumentError001, messageTest )
    {
    std::string functionName = "readData()";
    EmptyArgumentError error( functionName );

    std::string actual = error.getMessage();
    std::string expected = "Error: empty argument in the "
            "function \"" + functionName + "\"";
    ASSERT_EQ( expected, actual );
    

    }

    int main( int argc, char *argv[] )
    {
    ::testing::InitGoogleTest( &argc, argv );
    return RUN_ALL_TESTS();
    }
    [/CODE]



  • I solved this problem :)

    If there is path==171 - it builds fine. For example, it works:
    @
    D:\Qt\QtDatabasesExamples\0004_AddPersonToDatabase\AddPersonToDatabase\Tests\AddPersonToDatabase_EmptyArgumentError_123456\AddPersonToDatabase_EmptyArgumentError12345.pro
    @

    If there is path==172 - this is infinite building. For example:
    @
    D:\Qt\QtDatabasesExamples\0004_AddPersonToDatabase\AddPersonToDatabase\Tests\AddPersonToDatabase_EmptyArgumentError_123456\AddPersonToDatabase_EmptyArgumentError123456.pro@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.