Building on ubuntu 12.04 / elementary os #1

Closed
opened 2013-12-29 01:17:12 +01:00 by ways · 4 comments
ways commented 2013-12-29 01:17:12 +01:00 (Migrated from github.com)

Hi

What are the build requirements? I've installed build-essentials, libqt4-dev, qt4-qmake and I get:

$ make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Iyat/backend -Iyat/yat_declarative -I.moc -o .obj/yat_pty.o yat/backend/yat_pty.cpp
In file included from yat/backend/yat_pty.cpp:21:0:
yat/backend/yat_pty.h:41:5: error: ‘QSize’ does not name a type
/usr/include/qt4/QtCore/qsocketnotifier.h: In constructor ‘YatPty::YatPty()’:
/usr/include/qt4/QtCore/qsocketnotifier.h:76:10: error: ‘void QSocketNotifier::activated(int)’ is protected
yat/backend/yat_pty.cpp:71:39: error: within this context
yat/backend/yat_pty.cpp:71:73: error: no matching function for call to ‘YatPty::connect(QSocketNotifier_&, void (QSocketNotifier::)(int), YatPty* const, void (YatPty::)())’
yat/backend/yat_pty.cpp:71:73: note: candidates are:
/usr/include/qt4/QtCore/qobject.h:204:17: note: static bool QObject::connect(const QObject_, const char_, const QObject_, const char_, Qt::ConnectionType)
/usr/include/qt4/QtCore/qobject.h:204:17: note: no known conversion for argument 2 from ‘void (QSocketNotifier::)(int)’ to ‘const char
/usr/include/qt4/QtCore/qobject.h:217:17: note: static bool QObject::connect(const QObject_, const QMetaMethod&, const QObject_, const QMetaMethod&, Qt::ConnectionType)
/usr/include/qt4/QtCore/qobject.h:217:17: note: no known conversion for argument 2 from ‘void (QSocketNotifier::)(int)’ to ‘const QMetaMethod&’
/usr/include/qt4/QtCore/qobject.h:337:13: note: bool QObject::connect(const QObject
, const char_, const char_, Qt::ConnectionType) const
/usr/include/qt4/QtCore/qobject.h:337:13: note: no known conversion for argument 2 from ‘void (QSocketNotifier::)(int)’ to ‘const char
yat/backend/yat_pty.cpp: At global scope:
yat/backend/yat_pty.cpp:111:22: error: no ‘QSize YatPty::size() const’ member function declared in class ‘YatPty’
make: *_* [.obj/yat_pty.o] Error 1

Hi What are the build requirements? I've installed build-essentials, libqt4-dev, qt4-qmake and I get: $ make g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Iyat/backend -Iyat/yat_declarative -I.moc -o .obj/yat_pty.o yat/backend/yat_pty.cpp In file included from yat/backend/yat_pty.cpp:21:0: yat/backend/yat_pty.h:41:5: error: ‘QSize’ does not name a type /usr/include/qt4/QtCore/qsocketnotifier.h: In constructor ‘YatPty::YatPty()’: /usr/include/qt4/QtCore/qsocketnotifier.h:76:10: error: ‘void QSocketNotifier::activated(int)’ is protected yat/backend/yat_pty.cpp:71:39: error: within this context yat/backend/yat_pty.cpp:71:73: error: no matching function for call to ‘YatPty::connect(QSocketNotifier_&, void (QSocketNotifier::_)(int), YatPty\* const, void (YatPty::_)())’ yat/backend/yat_pty.cpp:71:73: note: candidates are: /usr/include/qt4/QtCore/qobject.h:204:17: note: static bool QObject::connect(const QObject_, const char_, const QObject_, const char_, Qt::ConnectionType) /usr/include/qt4/QtCore/qobject.h:204:17: note: no known conversion for argument 2 from ‘void (QSocketNotifier::_)(int)’ to ‘const char_’ /usr/include/qt4/QtCore/qobject.h:217:17: note: static bool QObject::connect(const QObject_, const QMetaMethod&, const QObject_, const QMetaMethod&, Qt::ConnectionType) /usr/include/qt4/QtCore/qobject.h:217:17: note: no known conversion for argument 2 from ‘void (QSocketNotifier::_)(int)’ to ‘const QMetaMethod&’ /usr/include/qt4/QtCore/qobject.h:337:13: note: bool QObject::connect(const QObject_, const char_, const char_, Qt::ConnectionType) const /usr/include/qt4/QtCore/qobject.h:337:13: note: no known conversion for argument 2 from ‘void (QSocketNotifier::_)(int)’ to ‘const char_’ yat/backend/yat_pty.cpp: At global scope: yat/backend/yat_pty.cpp:111:22: error: no ‘QSize YatPty::size() const’ member function declared in class ‘YatPty’ make: *_\* [.obj/yat_pty.o] Error 1
Swordfish90 commented 2013-12-29 02:02:46 +01:00 (Migrated from github.com)

Hello... Sadly it is not so easy to make it work on that version of ubuntu since qt5 are not in the official repositories. You are trying to build against qt4.8 and this causes the errors you list. The easiest solution would be to wait until ubuntu 14.04 which includes them by default or trying to download them from the official website (http://qt-project.org/downloads) and compile linking to those libraries...

Hello... Sadly it is not so easy to make it work on that version of ubuntu since qt5 are not in the official repositories. You are trying to build against qt4.8 and this causes the errors you list. The easiest solution would be to wait until ubuntu 14.04 which includes them by default or trying to download them from the official website (http://qt-project.org/downloads) and compile linking to those libraries...
ways commented 2014-01-03 09:43:21 +01:00 (Migrated from github.com)

Ok. Can you upload a compiled binary?

Ok. Can you upload a compiled binary?
ghost commented 2014-07-29 23:06:26 +02:00 (Migrated from github.com)

I'm just having a "/usr/bin/ld: cannot find -lGL" error during make.

I have a solution here:
http://ubuntuforums.org/showthread.php?t=1480282

just not sure where to create the symbolic link ...

I'm just having a "/usr/bin/ld: cannot find -lGL" error during make. I have a solution here: http://ubuntuforums.org/showthread.php?t=1480282 just not sure where to create the symbolic link ...
ways commented 2014-07-31 10:01:24 +02:00 (Migrated from github.com)

Building worked fine for me after installing that qt binary linked on the setup page. Would upload the compiled binary, but seems one needs lots of dependecies just to run it. Better to wait for final release.

Building worked fine for me after installing that qt binary linked on the setup page. Would upload the compiled binary, but seems one needs lots of dependecies just to run it. Better to wait for final release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#1
No description provided.