qTango installation error

Hi All,

I am finding some difficulties on installation of qTango.
here is error log.

any help appreciated …

make
/bin/ld: cannot find -lCOSNotify4
/bin/ld: cannot find -lAttNotification4
collect2: error: ld returned 1 exit status
make[1]: *** [libQTangoDBus5.so.5.3.9] Error 1
make[1]: Leaving directory `/home/385866/Downloads/qt/qtango-5.3.9/dbus'
make: *** [sub-dbus-make_default-ordered] Error 2

or


./install
/home/385866/Downloads/qt/qtango-5.3.9 /home/385866/Downloads/qt/qtango-5.3.9
/home/385866/Downloads/qt/qtango-5.3.9
/home/385866/Downloads/qt/qtango-5.3.9 /home/385866/Downloads/qt/qtango-5.3.9
Project MESSAGE: * comment or uncomment the line 
Project MESSAGE: * DEFINES += SCALABLE_FONTS_ENABLED_BY_DEFAULT
Project MESSAGE: * in qtcontrols.pro to have automatically disabled/enabled
Project MESSAGE: * widgets' font scaling. Since version 4.x this directive is defined.
Project MESSAGE: * If you comment out it, then you must explicitly
Project MESSAGE: * enable font scaling on each widget supporting this feature.
Project MESSAGE: * On the other hand, if the directive is defined, all widgets supporting
Project MESSAGE: * font scaling feature are constructed with such property enabled
/home/385866/Downloads/qt/qtango-5.3.9
/home/385866/Downloads/qt/qtango-5.3.9 /home/385866/Downloads/qt/qtango-5.3.9
Project MESSAGE: ---------------------------------
Project MESSAGE: Occhio: i warning sono off
Project MESSAGE: ---------------------------------
/home/385866/Downloads/qt/qtango-5.3.9
/home/385866/Downloads/qt/qtango-5.3.9 /home/385866/Downloads/qt/qtango-5.3.9
Project MESSAGE: ---------------------------------
Project MESSAGE: Occhio: i warning sono off
Project MESSAGE: ---------------------------------
WARNING: plugin_inc.path is not defined: install target not created

/home/385866/Downloads/qt/qtango-5.3.9
/home/385866/Downloads/qt/qtango-5.3.9 /home/385866/Downloads/qt/qtango-5.3.9
/home/385866/Downloads/qt/qtango-5.3.9
/home/385866/Downloads/qt/qtango-5.3.9 /home/385866/Downloads/qt/qtango-5.3.9
Project MESSAGE: ---------------------------------
Project MESSAGE: Occhio: i warning sono off
Project MESSAGE: ---------------------------------
/home/385866/Downloads/qt/qtango-5.3.9
cd dbus/ && make -f Makefile install
make[1]: Entering directory `/home/385866/Downloads/qt/qtango-5.3.9/dbus'
rm -rf libQTangoDBus5.so.5.3.9 libQTangoDBus5.so libQTangoDBus5.so.5 libQTangoDBus5.so.5.3
g++ -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libQTangoDBus5.so.5 -o libQTangoDBus5.so.5.3.9 obj/ActionFactoryAdaptor.o obj/ActionFactoryInterface.o obj/DeviceThreadFactoryAdaptor.o obj/DeviceThreadFactoryInterface.o obj/secondinstancehandler.o obj/tappinfo.o obj/tappinfolist.o obj/TApplicationAdaptor.o obj/TApplicationInterface.o obj/tapplicationspoolproxy.o obj/tapplicationspoolproxy_p.o obj/moc_ActionFactoryAdaptor.o obj/moc_ActionFactoryInterface.o obj/moc_DeviceThreadFactoryAdaptor.o obj/moc_DeviceThreadFactoryInterface.o obj/moc_TApplicationAdaptor.o obj/moc_TApplicationInterface.o obj/moc_tapplicationspoolproxy.o   -L/usr/lib64 -lqwt -L/usr/local/tango-8.1.2.c/lib -L/usr/local/omniorb-4.1.6/lib -L/usr/local/qwt-5.2.1/lib -ltango -llog4tango -lomniORB4 -lomniDynamic4 -lCOS4 -lCOSNotify4 -lAttNotification4 -lCOSDynamic4 -lomnithread -ldl -lX11 -L/usr/local/lib -lzmq -L/runtime/lib -lQtDBus -lQtXml -lQtGui -lQtCore -lpthread  
/bin/ld: cannot find -lCOSNotify4
/bin/ld: cannot find -lAttNotification4
collect2: error: ld returned 1 exit status
make[1]: *** [libQTangoDBus5.so.5.3.9] Error 1
make[1]: Leaving directory `/home/385866/Downloads/qt/qtango-5.3.9/dbus'
make: *** [sub-dbus-install_subtargets-ordered] Error 2
*
* QTango version "5.3.9" failed to compile
*
* The libraries used to build the source lay in the following directoies:
*
	- tango:		/usr/local/tango-8.1.2.c
	- omniorb:		/usr/local/omniorb-4.1.6
	- qwt libraries:	/usr/local/qwt-5.2.1 # /usr
*
* Please check that the omniorb, tango and qwt installations are installed there.
*
* If this does not solve the problem, submit a bug report at this link:
* "http://ken.elettra.trieste.it/bugzilla/"
* or contact the author at mailto:giacomo.strangolino@elettra.trieste.it
*
* To display this message again, run "./install showerror".


Cheers.
AD

Hi,

when I was compiling QTango, I was also unable to find the two libraries COSNotify4 and AttNotification4. After removing -lCOSNotify4 and -lAttNotification4 from qtango.pri, the compilation and installation were successful. I guess that these two libraries are needed only for Tango 7 and earlier, which use CORBA for events.

Regards,
Josef

[quote=“cibulka”]Hi,

when I was compiling QTango, I was also unable to find the two libraries COSNotify4 and AttNotification4. After removing -lCOSNotify4 and -lAttNotification4 from qtango.pri, the compilation and installation were successful. I guess that these two libraries are needed only for Tango 7 and earlier, which use CORBA for events.

Regards,
Josef[/quote]

Hi cibulka,

Thank you for suggestion.
let me try this..

cheer.s

Hi All

Following errors are coming while compiling qtango

Any Help will be appreciated.

Thanks and Regards
TCS-GMRT Team

Hi,
you need QWT version 5, such as qwt - Browse /qwt/5.2.3 at SourceForge.net
The version 6, which you are using, is not fully backwards compatible.

I hope it will help,
Josef

Hi All

Thank you Josef previous solution worked for qwt.

We are getting lot of errors which are looking like

Any Help will be appreciated.

Thanks and Regards
TCS-GMRT Team

Hi,
in qtango.pri, remove the line “QMAKE_CXXFLAGS += -std=gnu++98” and uncomment the line with “QMAKE_CXXFLAGS += -std=c++0x”. Then run qmake and make again and it should compile without these errors.

In the current version of Tango, some header files use unique_ptr, which is in the C++11 standard, but not in the C++98 standard. These headers are included by the QTango sources and so they need C++11 as well, although they themselves do not need any of its new features.

Josef

Build qtango-5.3.9 on Qt5.5

the make output error log is:

[quote]src/eapplicationlauncher.cpp: In member function ‘Window X11Utils::QueryX11Status(QString)’:
src/eapplicationlauncher.cpp:490:50: error: ‘class QWidget’ has no member named ‘x11Info’
disp = ( (QWidget*) QApplication::desktop() )->x11Info().display();[/quote]
but check the Qt5.5’s QWidget Class, it has x11Info() public funciton

any help appreciated…

I have compiled QTango only with QT4 and did not have this problem. According to the QT documentation you should add “QT += x11extras” to your .pro file (I guess either to qtango.pro or to qtcontrols/qtcontrols.pro), which was not needed in QT4.
Or, if you can, you may try downgrading from QT5 to QT4.

Since my last post I found out that the same tweaks that I suggested above in this thread can be found also in a post in the Tango mailing list. The author of the post also uses QT4.

Josef

thanks cibulka

befor make, I have adjusted the qtang.pro file:

[quote]…

QMAKE_CXXFLAGS += -std=gnu++98

QMAKE_CXXFLAGS += -std=c++0x

qt += dbus widgets x11extras

[/quote]
at the same time adjusted some .cpp and .h file in qtcontrols/src directory, mainly the #include<> statement

but it couldn’t work, so i decide to downgrade to Qt4.