Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

compile de-casteljau_algorithm_demo



  • Im attempting to compile the https://github.com/momesana/de-casteljau_algorithm_demo under windows 10

    Ive installed qt on my d:
    and run the following batch
    path =D:\Qt\Tools\CMake_64\bin;D:\Qt\Tools\mingw810_64\bin;%path%

    set CC=D:\Qt\Tools\mingw810_64\bin\gcc
    set CXX=D:\Qt\Tools\mingw810_64\bin\g++
    set CMAKE_PREFIX_PATH=D:\Qt\5.9.9\mingw53_32\lib\cmake
    set Qt5Core_DIR=D:\Qt\5.9.9\mingw53_32\lib\cmake\Qt5Core
    set Qt5Widgets_DIR=D:\Qt\5.9.9\mingw53_32\lib\cmake\Qt5Widgets
    d:
    cd D:\de-casteljau_algorithm_demo-master\build
    cmake -G "MinGW Makefiles" ..
    pause
    D:\Qt\Tools\mingw810_64\bin\mingw32-make.exe

    it compiles ok
    D:\de-casteljau_algorithm_demo-master\build>D:\Qt\Tools\mingw810_64\bin\mingw32-make.exe
    Scanning dependencies of target de_casteljau_demo_autogen
    [ 9%] Automatic MOC and UIC for target de_casteljau_demo
    [ 9%] Built target de_casteljau_demo_autogen
    Scanning dependencies of target de_casteljau_demo
    [ 18%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/de_casteljau_demo_autogen/mocs_compilation.cpp.obj
    [ 27%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/main.cpp.obj
    [ 36%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/animation.cpp.obj
    [ 45%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/casteljaucanvas.cpp.obj
    [ 54%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/colortoolbutton.cpp.obj
    [ 63%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/listview.cpp.obj
    [ 72%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/mainwindow.cpp.obj
    [ 81%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/pointmodel.cpp.obj
    [ 90%] Building CXX object src/CMakeFiles/de_casteljau_demo.dir/settings.cpp.obj
    [100%] Linking CXX executable de_casteljau_demo.exe
    however fails to link
    CMakeFiles\de_casteljau_demo.dir/objects.a(mocs_compilation.cpp.obj):mocs_compilation.cpp:(.text+0x51): undefined reference to __imp__ZNK11QObjectData17dynamicMetaObjectEv' CMakeFiles\de_casteljau_demo.dir/objects.a(mocs_compilation.cpp.obj):mocs_compilation.cpp:(.text+0xaf): undefined reference to__imp__ZN17QVariantAnimation11qt_metacastEPKc'
    CMakeFiles\de_casteljau_demo.dir/objects.a(mocs_compilation.cpp.obj):mocs_compilation.cpp:(.text+0xed): undefined reference to __imp__ZN17QVariantAnimation11qt_metacallEN11QMetaObject4CallEiPPv' CMakeFiles\de_casteljau_demo.dir/objects.a(mocs_compilation.cpp.obj):mocs_compilation.cpp:(.text+0x26f): undefined reference to__imp__ZNK11QObjectData17dynamicMetaObjectEv'
    CMakeFiles\de_casteljau_demo.dir/objects.a(mocs_compilation.cpp.obj):mocs_compilation.cpp:(.text+0x2cd): undefined reference to `__imp__ZN7QWidget11qt_metacastEPKc'
    etc


Log in to reply