Skip to content

pvbrowser compiling error #31

@williamwanjia

Description

@williamwanjia

Compiling the project using build.sh gave the following error:

When USE_VTK:

QVTKWidget.cpp: In constructor ‘QVTKWidget::QVTKWidget(QWidget*)’:
QVTKWidget.cpp:106:23: error: ‘f’ was not declared in this scope
: QWidget(parent, f | Qt::MSWindowsOwnDC), mRenWin(NULL),
^
QVTKWidget.cpp: In member function ‘virtual bool QVTKWidget::event(QEvent*)’:
QVTKWidget.cpp:392:12: error: ‘TRUE’ was not declared in this scope
return TRUE;
^~~~

When Not USE_VTK:

g++ -static-libgcc -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o pvbrowser main.o mainwindow.o dlgopt.o opt.o tcputil.o interpreter.o MyWidgets.o MyTextBrowser_v5pc.o mywebenginepage.o QDrawWidget.o QImageWidget.o qwtplotwidget.o dlgtextbrowser.o dlgmybrowser.o pvglwidget.o gldecode.o qrc_pvbrowser.o moc_mainwindow.o moc_dlgopt.o moc_MyWidgets.o moc_MyTextBrowser_v5pc.o moc_mywebenginepage.o moc_qimagewidget.o moc_qdrawwidget.o moc_qwtwidgets.o moc_qwtplotwidget.o moc_dlgtextbrowser.o moc_dlgmybrowser.o moc_pvglwidget.o -ldl ../qwt/lib/libqwt.a -lQt5WebEngineWidgets -lQt5PrintSupport -lQt5UiTools -lQt5Svg -lQt5Widgets -lQt5Multimedia -lQt5WebEngineCore -lQt5Quick -lQt5Gui -lQt5WebChannel -lQt5Qml -lQt5Network -lQt5Positioning -lQt5Xml -lQt5Core -lGL -lpthread
interpreter.o: In function Interpreter::interpretv(char const*)': interpreter.cpp:(.text+0x3f99): undefined reference to pvVtkTclWidget::interpret(char const*, ...)'
interpreter.cpp:(.text+0x3fd1): undefined reference to pvVtkTclWidget::updateGL()' interpreter.cpp:(.text+0x4289): undefined reference to pvVtkTclWidget::interpretFile(char const*)'
interpreter.o: In function Interpreter::interpretQ(char const*)': interpreter.cpp:(.text+0x9765): undefined reference to pvVtkTclWidget::pvVtkTclWidget(QWidget*, char const*, int, int*)'
collect2: error: ld returned 1 exit status
Makefile:265: recipe for target 'pvbrowser' failed

Other information might be helpful:
sys: ubuntu 18.04
VTK 5.10 compiled from source
tcl/tk8.5 installed from apt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions