Project ERROR: Unknown module(s) in QT: script

678 views
Skip to first unread message

Peter Zhang

unread,
Sep 17, 2020, 12:37:40 AM9/17/20
to ostinato
Hello:

I am trying to build from source on Ubuntu 18.04.1 and running into the following error

Project ERROR: Unknown module(s) in QT: script

while issuing the "make" command

~/ostinato/ostinato-master$ qmake
~/ostinato/ostinato-master$ make

cd common/ && ( test -e Makefile.ostproto || /usr/lib/qt5/bin/qmake -o Makefile.ostproto /home/ubuntu/ostinato/ostinato-master/common/ostproto.pro ) && make -f Makefile.ostproto 
Project ERROR: Unknown module(s) in QT: script
Makefile:103: recipe for target 'sub-common-ostproto-pro-make_first' failed
make: *** [sub-common-ostproto-pro-make_first] Error 3

Please help

Thanks
Peter

Srivats P

unread,
Sep 17, 2020, 10:21:51 AM9/17/20
to Peter Zhang, ostinato
You most likely don't have qt5script package installed.

Srivats (Author, Ostinato)

--
Get Ostinato News and Updates on Twitter - Follow @ostinato (http://twitter.com/ostinato)
---
You received this message because you are subscribed to the Google Groups "ostinato" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ostinato+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ostinato/6d103373-2f6d-4b9c-aa85-1113332ac8f6n%40googlegroups.com.


--
Srivats P (Author, Ostinato)

Peter Zhang

unread,
Sep 17, 2020, 12:15:14 PM9/17/20
to ostinato
You are right Srivats, i was able to fix the error by installing qt5script. However, I am running into new errors, I suspect that it's because my Protocol Buffer Library is on a different version than Protocol Compiler. 

However, when I tried compiling and older version of protoc, i run into more issues. The library is on 3.0.0, is it OK if I run protoc on 3.0.2 ? Or do you know if there is a way to get newer version of the library ? Ubuntu seems to only install 3.0.0 for me

Thanks
Peter

Srivats P

unread,
Sep 17, 2020, 12:16:42 PM9/17/20
to Peter Zhang, ostinato
Anything > protobuf 2.6.0 should work

Srivats (Author, Ostinato)

Peter Zhang

unread,
Sep 17, 2020, 11:52:41 PM9/17/20
to ostinato
I am getting the following errors after make. the output is snipped. let me know if you need the full output

make[1]: Entering directory '/home/ubuntu/ostinato/ostinato-master/client'
g++ -Wl,-O1 -o ostinato arpstatusmodel.o clipboardhelper.o devicegroupdialog.o devicegroupmodel.o devicemodel.o deviceswidget.o dumpview.o stream.o hexlineedit.o logsmodel.o logswindow.o main.o mainwindow.o ndpstatusmodel.o packetmodel.o params.o port.o portconfigdialog.o portgroup.o portgrouplist.o portmodel.o portstatsmodel.o portstatsfilterdialog.o portstatswindow.o portswindow.o preferences.o streamconfigdialog.o streamlistdelegate.o streammodel.o streamstatsmodel.o streamstatswindow.o variablefieldswidget.o version.o qrc_ostinato.o moc_arpstatusmodel.o moc_clipboardhelper.o moc_devicegroupdialog.o moc_devicegroupmodel.o moc_devicemodel.o moc_deviceswidget.o moc_hexlineedit.o moc_logsmodel.o moc_logswindow.o moc_mainwindow.o moc_ndpstatusmodel.o moc_port.o moc_portgroup.o moc_portgrouplist.o moc_portmodel.o moc_portstatsfilterdialog.o moc_portstatsmodel.o moc_portstatsproxymodel.o moc_portstatswindow.o moc_portswindow.o moc_preferences.o moc_streamconfigdialog.o moc_streamlistdelegate.o moc_streammodel.o moc_streamstatsfiltermodel.o moc_streamstatsmodel.o moc_streamstatswindow.o moc_variablefieldswidget.o moc_xtableview.o   -L../common -lostprotogui -lostproto -L../rpc -lpbrpc -lprotobuf -L../extra/qhexedit2/.// -lqhexedit2 -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Script -lQt5Xml -lQt5Core -lGL -lpthread 
devicegroupdialog.o: In function `DeviceGroupDialog::storeDeviceGroup()':
devicegroupdialog.cpp:(.text+0x24fe): undefined reference to `google::protobuf::internal::fixed_address_empty_string[abi:cxx11]'
devicegroupdialog.o: In function `google::protobuf::internal::ArenaStringPtr::CreateInstance(google::protobuf::Arena*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*)':
devicegroupdialog.cpp:(.text._ZN6google8protobuf8internal14ArenaStringPtr14CreateInstanceEPNS0_5ArenaEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6google8protobuf8internal14ArenaStringPtr14CreateInstanceEPNS0_5ArenaEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x4c): undefined reference to `google::protobuf::internal::ArenaImpl::AllocateAlignedAndAddCleanup(unsigned long, void (*)(void*))'
devicegroupdialog.cpp:(.text._ZN6google8protobuf8internal14ArenaStringPtr14CreateInstanceEPNS0_5ArenaEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6google8protobuf8internal14ArenaStringPtr14CreateInstanceEPNS0_5ArenaEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x11b): undefined reference to `google::protobuf::Arena::OnArenaAllocation(std::type_info const*, unsigned long) const'
port.o: In function `Port::modifiablePortConfig(OstProto::Port&) const':
port.cpp:(.text+0x329f): undefined reference to `google::protobuf::internal::fixed_address_empty_string[abi:cxx11]'
portconfigdialog.o: In function `PortConfigDialog::accept()':
portconfigdialog.cpp:(.text+0x9fa): undefined reference to `google::protobuf::internal::fixed_address_empty_string[abi:cxx11]'
portconfigdialog.cpp:(.text+0xb2a): undefined reference to `google::protobuf::internal::fixed_address_empty_string[abi:cxx11]'
portconfigdialog.cpp:(.text+0xbf1): undefined reference to `google::protobuf::internal::fixed_address_empty_string[abi:cxx11]'
portconfigdialog.cpp:(.text+0xc47): undefined reference to `google::protobuf::internal::fixed_address_empty_string[abi:cxx11]'


< snip >



pbrpcchannel.cpp:(.text+0xb37): undefined reference to `google::protobuf::MethodDescriptor::input_type() const'
pbrpcchannel.cpp:(.text+0xc3a): undefined reference to `google::protobuf::MethodDescriptor::input_type() const'
../rpc/libpbrpc.a(pbrpcchannel.o): In function `PbRpcChannel::on_mpSocket_readyRead()':
pbrpcchannel.cpp:(.text+0x1fd9): undefined reference to `google::protobuf::MethodDescriptor::output_type() const'
pbrpcchannel.cpp:(.text+0x209d): undefined reference to `google::protobuf::MethodDescriptor::output_type() const'
pbrpcchannel.cpp:(.text+0x2428): undefined reference to `google::protobuf::MethodDescriptor::input_type() const'
collect2: error: ld returned 1 exit status
Makefile.ostinato:331: recipe for target 'ostinato' failed
make[1]: *** [ostinato] Error 1
make[1]: Leaving directory '/home/ubuntu/ostinato/ostinato-master/client'
Makefile:52: recipe for target 'client-make_first' failed
make: *** [client-make_first] Error 2

Srivats P

unread,
Sep 22, 2020, 11:54:05 AM9/22/20
to Peter Zhang, ostinato
The linker is not able to find the protobuf libraries for linking. If those are not at the standard location, provide the location in LIBRARY_PATH environment variable.

Srivats (Author, Ostinato)

Peter Zhang

unread,
Sep 30, 2020, 1:27:39 PM9/30/20
to ostinato
So I've located the protobuf library under /usr/include/google/protobuff

~/ostinato/ostinato-master$ dpkg -L libprotobuf-dev
/.
/usr
/usr/include
/usr/include/google
/usr/include/google/protobuf
/usr/include/google/protobuf/any.h

and then added it to the library_path

echo $LIBRARY_PATH
/usr/include/google/protobuf

But still getting the same error

Thanks
Reply all
Reply to author
Forward
0 new messages