Important: Please read the Qt Code of Conduct -

QT nmake exception “Undefined Interface” at QTCharts “cartesianchartaxis_p.h”

  • I'm trying to use QTCharts 2.1.0 for QT 5.4.1 version. I use opensource QT and tried to install QTCharts as the instructions shown in this qtcharts github release-2.1.0 link

    I build without any problems but when I try to run it with nmake I get the exception shown belown and I genuinely have no idea about the reason. So, I'd appreciate any help. I'm using VS2012 x86 Native Tools Command Prompt btw.


    C:\Qt\Qt5.4.1\5.4\msvc2012_opengl\bin\moc.exe -DUNICODE -DWIN32 -DQT_CHA
    E_LIB -DNDEBUG -D_MSC_VER=1700 -D_WIN32 @.moc/release/mocinclude.tmp axis\cartes
    ianchartaxis_p.h -o .moc\release\moc_cartesianchartaxis_p.cpp
    axis\cartesianchartaxis_p.h(44): Error: Undefined interface
    NMAKE : fatal error U1077: 'C:\Qt\Qt5.4.1\5.4\msvc2012_opengl\bin\moc.exe' : ret
    urn code '0x1'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\nmake.exe"' : return code '0x2'
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    NMAKE : fatal error U1077: 'cd' : return code '0x2'

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What exactly did you build ?

  • QtCharts,

    I did qmake CONFIG+="debug_and_release build_all" and after that Qtcharts quide says I need to do make/nmake but when I did I've got the error shown in the question

Log in to reply