Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Resolved] link error when using QVTKWidget under QtCreator
Forum Updated to NodeBB v4.3 + New Features

[Resolved] link error when using QVTKWidget under QtCreator

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cerina
    wrote on last edited by
    #1

    Hi all,
    I tried to use QVTKWidget in my application. I used the design to promote the class QVTKWidget to my widget.But, when i compile my program, i got this error:
    @FenClient.obj:-1: erreur : LNK2019: unresolved external symbol "public: __thiscall QVTKWidget::QVTKWidget(class QWidget *,class QFlags<enum Qt::WindowType>)" (??0QVTKWidget@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in function "public: void __thiscall Ui_FenClient::setupUi(class QWidget *)" (?setupUi@Ui_FenClient@@QAEXPAVQWidget@@@Z)@

    and this one :
    @release\client.exe:-1: erreur : LNK1120: 1 unresolved externals@
    Even, when i add the libs to my .pro file , i still have these errors :
    @LIBS += -LC:/vtkqt/lib/vtk-5.8 -lvtkWidgets
    -LC:/vtkqt/lib/vtk-5.8 -lvtkCharts
    -LC:/vtkqt/lib/vtk-5.8 -lvtksys
    -LC:/vtkqt/lib/vtk-5.8 -lvtkGeovis
    -LC:/vtkqt/lib/vtk-5.8 -lvtkViews
    -LC:/vtkqt/lib/vtk-5.8 -lvtkInfovis
    -LC:/vtkqt/lib/vtk-5.8 -lvtkVolumeRendering
    -LC:/vtkqt/lib/vtk-5.8 -lvtkHybrid
    -LC:/vtkqt/lib/vtk-5.8 -lvtkRendering
    -LC:/vtkqt/lib/vtk-5.8 -lvtkGenericFiltering
    -LC:/vtkqt/lib/vtk-5.8 -lvtkGraphics
    -LC:/vtkqt/lib/vtk-5.8 -lvtkIO
    -LC:/vtkqt/lib/vtk-5.8 -lvtkCommon
    -LC:/vtkqt/lib/vtk-5.8 -lvtkProj4
    @

    Any help please and thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Hi,

      Did you make a clean and call qmake once again? Sometimes it helps to clean old makefiles manually from build directory.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cerina
        wrote on last edited by
        #3

        thanks guziemic for reply.I tied to do your suggestion, but the same errors appear

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cerina
          wrote on last edited by
          #4

          oh, i resolved it. I forget to add QtNetwork4.lib to the Input Linker

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved