Πρόβλημα με compile ενός προγράμματος

...IDE, compilers, κλπ

Συντονιστής: konnn

Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό anagno » 01 Δεκ 2011, 02:26

Προσπαθώ να κάνω compile το roci-local (http://sourceforge.net/projects/roci/) και μου βγάζει τα παρακάτω μετά το make build

Κώδικας: Επιλογή όλων
************************************************
*** Now I will build program Rocinante ***
************************************************

make clean
make[1]: Entering directory `/home/anagno/Documents/roci-local'
#rm -f rocinante
rm -f obj/*
rm -f bin/*
rm -f `find . -name *~`
rm -f src/Makefile
if [ -e src/.qmake.internal.cache ]; then rm -f src/.qmake.internal.cache; fi
make[1]: Leaving directory `/home/anagno/Documents/roci-local'
make[1]: Entering directory `/home/anagno/Documents/roci-local/src'
g++ -c -m64 -pipe -Wall -pedantic -ansi -D_REENTRANT -Wall -W -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 -Igamalib -I../obj -o ../obj/about.o about.cpp
In file included from /usr/include/qt4/QtCore/qnamespace.h:45:0,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtGui/qwindowdefs.h:45,
from /usr/include/qt4/QtGui/qwidget.h:45,
from /usr/include/qt4/QtGui/qdialog.h:45,
from about.h:30,
from about.cpp:29:
/usr/include/qt4/QtCore/qglobal.h:852:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
/usr/include/qt4/QtCore/qglobal.h:853:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
In file included from about.cpp:29:0:
about.h:44:38: error: ‘WFlags’ has not been declared
about.cpp:54:39: error: ‘WFlags’ has not been declared
about.cpp: In constructor ‘Rocinante::AboutDialog::AboutDialog(QWidget*, const char*, bool, int)’:
about.cpp:55:40: error: no matching function for call to ‘QDialog::QDialog(QWidget*&, const char*&, bool&, int&)’
about.cpp:55:40: note: candidates are:
/usr/include/qt4/QtGui/qdialog.h:124:5: note: QDialog::QDialog(const QDialog&)
/usr/include/qt4/QtGui/qdialog.h:124:5: note: candidate expects 1 argument, 4 provided
/usr/include/qt4/QtGui/qdialog.h:108:5: note: QDialog::QDialog(QDialogPrivate&, QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qdialog.h:108:5: note: candidate expects 3 arguments, 4 provided
/usr/include/qt4/QtGui/qdialog.h:65:14: note: QDialog::QDialog(QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qdialog.h:65:14: note: candidate expects 2 arguments, 4 provided
about.cpp:57:63: error: ‘setCaption’ was not declared in this scope
about.cpp:59:51: error: no matching function for call to ‘QVBoxLayout::QVBoxLayout(Rocinante::AboutDialog* const, int)’
about.cpp:59:51: note: candidates are:
/usr/include/qt4/QtGui/qboxlayout.h:166:5: note: QVBoxLayout::QVBoxLayout(const QVBoxLayout&)
/usr/include/qt4/QtGui/qboxlayout.h:166:5: note: candidate expects 1 argument, 2 provided
/usr/include/qt4/QtGui/qboxlayout.h:154:14: note: QVBoxLayout::QVBoxLayout(QWidget*)
/usr/include/qt4/QtGui/qboxlayout.h:154:14: note: candidate expects 1 argument, 2 provided
/usr/include/qt4/QtGui/qboxlayout.h:153:5: note: QVBoxLayout::QVBoxLayout()
/usr/include/qt4/QtGui/qboxlayout.h:153:5: note: candidate expects 0 arguments, 2 provided
about.cpp:83:27: error: ‘WordBreak’ is not a member of ‘QLabel’
about.cpp:83:47: error: ‘AlignAuto’ is not a member of ‘QLabel’
about.cpp:84:27: error: ‘AlignVCenter’ is not a member of ‘QLabel’
about.cpp:84:50: error: ‘AlignLeft’ is not a member of ‘QLabel’
about.cpp: In function ‘void Rocinante::about_rocinante_splash()’:
about.cpp:112:37: error: invalid use of incomplete type ‘struct QDesktopWidget’
/usr/include/qt4/QtGui/qapplication.h:73:7: error: forward declaration of ‘struct QDesktopWidget’
about.cpp:118:42: error: invalid use of incomplete type ‘struct QDesktopWidget’
/usr/include/qt4/QtGui/qapplication.h:73:7: error: forward declaration of ‘struct QDesktopWidget’
about.cpp:119:43: error: invalid use of incomplete type ‘struct QDesktopWidget’
/usr/include/qt4/QtGui/qapplication.h:73:7: error: forward declaration of ‘struct QDesktopWidget’
about.cpp:121:39: error: ‘WDestructiveClose’ is not a member of ‘Qt’
about.cpp:122:26: error: ‘WStyle_Customize’ is not a member of ‘Qt’
about.cpp:122:49: error: ‘WStyle_NoBorder’ is not a member of ‘Qt’
about.cpp:123:26: error: ‘WX11BypassWM’ is not a member of ‘Qt’
about.cpp:131:13: error: ‘class QLabel’ has no member named ‘setCaption’
about.cpp:138:28: error: no matching function for call to ‘QLabel::repaint(bool)’
about.cpp:138:28: note: candidates are:
/usr/include/qt4/QtGui/qwidget.h:470:10: note: void QWidget::repaint()
/usr/include/qt4/QtGui/qwidget.h:470:10: note: candidate expects 0 arguments, 1 provided
/usr/include/qt4/QtGui/qwidget.h:477:10: note: void QWidget::repaint(int, int, int, int)
/usr/include/qt4/QtGui/qwidget.h:477:10: note: candidate expects 4 arguments, 1 provided
/usr/include/qt4/QtGui/qwidget.h:478:10: note: void QWidget::repaint(const QRect&)
/usr/include/qt4/QtGui/qwidget.h:478:10: note: no known conversion for argument 1 from ‘bool’ to ‘const QRect&’
/usr/include/qt4/QtGui/qwidget.h:479:10: note: void QWidget::repaint(const QRegion&)
/usr/include/qt4/QtGui/qwidget.h:479:10: note: no known conversion for argument 1 from ‘bool’ to ‘const QRegion&’
about.cpp:140:5: error: ‘flushX’ is not a member of ‘QApplication’
about.cpp: In function ‘void Rocinante::about_gama()’:
about.cpp:146:37: error: no matching function for call to ‘QMessageBox::QMessageBox(int, const char [11])’
about.cpp:146:37: note: candidates are:
/usr/include/qt4/QtGui/qmessagebox.h:338:5: note: QMessageBox::QMessageBox(const QMessageBox&)
/usr/include/qt4/QtGui/qmessagebox.h:338:5: note: candidate expects 1 argument, 2 provided
/usr/include/qt4/QtGui/qmessagebox.h:212:5: note: QMessageBox::QMessageBox(const QString&, const QString&, QMessageBox::Icon, int, int, int, QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qmessagebox.h:212:5: note: candidate expects 8 arguments, 2 provided
/usr/include/qt4/QtGui/qmessagebox.h:138:5: note: QMessageBox::QMessageBox(QMessageBox::Icon, const QString&, const QString&, QMessageBox::StandardButtons, QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qmessagebox.h:138:5: note: candidate expects 6 arguments, 2 provided
/usr/include/qt4/QtGui/qmessagebox.h:137:14: note: QMessageBox::QMessageBox(QWidget*)
/usr/include/qt4/QtGui/qmessagebox.h:137:14: note: candidate expects 1 argument, 2 provided
about.cpp:148:8: error: ‘class QMessageBox’ has no member named ‘setCaption’
about.cpp:149:71: error: no matching function for call to ‘QApplication::translate(const char [10], const QString&)’
about.cpp:149:71: note: candidates are:
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding)
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: no known conversion for argument 2 from ‘const QString’ to ‘const char*’
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding, int)
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: candidate expects 5 arguments, 2 provided
about.cpp:152:43: error: no matching function for call to ‘QApplication::translate(const char [10], const QString&)’
about.cpp:152:43: note: candidates are:
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding)
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: no known conversion for argument 2 from ‘const QString’ to ‘const char*’
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding, int)
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: candidate expects 5 arguments, 2 provided
make[1]: *** [../obj/about.o] Error 1
make[1]: Leaving directory `/home/anagno/Documents/roci-local/src'
make: *** [build] Error 2


Τι πρέπει να κάνω για να το διορθώσω ???
(υπόψιν είμαι ψιλό άσχετος με τon προγραμματισμό...)

Ευχαριστώ πολύ :)
1 Linux: Αρχάριος ┃ Προγραμματισμός: Αρχάριος ┃ Αγγλικά: Προχωρημένος
2 Ubuntu 14.10 64bit , Windows 8
3 Intel® Core™ i5-3570K CPU @ 3.40GHz × 4 ‖ RAM 16GiB ‖ SABERTOOTH Z77
4 ASUS GTX 560 Ti
anagno
punkTUX
punkTUX
 
Δημοσιεύσεις: 268
Εγγραφή: 08 Οκτ 2011, 14:40
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό simosx » 01 Δεκ 2011, 02:46

anagno έγραψε:
Τι πρέπει να κάνω για να το διορθώσω ???
(υπόψιν είμαι ψιλό άσχετος με τon προγραμματισμό...)


Εδώ, http://sourceforge.net/projects/roci/files/
αναφέρει ότι το πρόγραμμα γράφτηκε το 2004, και είναι πιθανό να γράφτηκε με Qt3.
Οπότε θα χρειαστεί λίγη δουλειά για να μετατραπεί σε Qt4 (εδώ μπορεί να απαντήσει κάποιος που ξέρει προγραμματισμό Qt3/Qt4).
Αυτό που προτείνω είναι να βάλεις σε VirtualBox μια παλαιότερη έκδοση του Ubuntu όπου έχει το Qt3 έτοιμο, και να δοκιμάσεις να μεταγλωττίσεις από εκεί.
Άλλη επιλογή είναι να ρωτήσεις τον προγραμματιστή να ενημερώσει το πρόγραμμα σε Qt4.

Τα σφάλματα που βγάζει, όπως
έγραψε:
about.h:44:38: error: ‘WFlags’ has not been declared
about.cpp:54:39: error: ‘WFlags’ has not been declared

σημαίνουν ότι υπάρχει ασυμφωνία μεταξύ των απαιτήσεων που έχει το πρόγραμμα και των δυνατοτήτων που προσφέρει η βιβλιοθήκη Qt (Qt4) του συστήματός σου.
προσωπικό ιστολόγιο ϗ πλανήτης Ubuntu-gr
Συμβάλετε και εσείς στο ελληνικό βιβλίο Ubuntu!
1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 13.10 saucy 3.11.0-031100rc1-generic 64bit (el_GR.UTF-8, Unity ubuntu)
3 AMD E-450 APU with Radeon HD Graphics ‖ RAM 3555 MiB ‖ Sony Corporation VAIO
4 AMD nee ATI Wrestler [Radeon HD 6320] [1002:9806] {fglrx_pci}
5 eth0: Atheros Inc. AR8151 v2.0 Gigabit Ethernet [1969:1083] (rev c0) ⋮ wlan0: Atheros Inc. AR9285 [168c:002b] (rev 01)
Φτιάξτε και εσείς τη δική σας υπογραφή (παραπάνω κείμενο) αυτόματα με κλικ εδώ!
simosx
Επίτιμο μέλος
Επίτιμο μέλος
 
Δημοσιεύσεις: 10334
Εγγραφή: 11 Μάιος 2008, 18:52
Launchpad: simosx
IRC: simosx
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό anagno » 01 Δεκ 2011, 02:52

Νομíζω πως όντως έχει γραφτεί με Qt3... Η ερώτηση μου είναι η εξής... Δεν μπορώ να απεγκαταστήσω την Qt4 που έχω και να βάλω την Qt3 ??? Δηλαδή η μετάβαση σε Qt4 αχρήστεψε όλα τα προγράμματα σε Qt3 ???
1 Linux: Αρχάριος ┃ Προγραμματισμός: Αρχάριος ┃ Αγγλικά: Προχωρημένος
2 Ubuntu 14.10 64bit , Windows 8
3 Intel® Core™ i5-3570K CPU @ 3.40GHz × 4 ‖ RAM 16GiB ‖ SABERTOOTH Z77
4 ASUS GTX 560 Ti
anagno
punkTUX
punkTUX
 
Δημοσιεύσεις: 268
Εγγραφή: 08 Οκτ 2011, 14:40
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό simosx » 01 Δεκ 2011, 03:16

anagno έγραψε:Δεν μπορώ να απεγκαταστήσω την Qt4 που έχω και να βάλω την Qt3


Χρειάζεσαι της βιβλιοθήκες ανάπτυξης (development libraries) για Qt3, που έχει η διανομή σου.
Με Ubuntu 11.04 έχω το «libqt3-mt-dev».
Οπότε εγκαθιστάς το παραπάνω. Ωστόσο πρέπει να μπεις στον κώδικα του roci και εκεί που έχει αναφορά για π.χ. (λέμε τώρα)

Κώδικας: Επιλογή όλων
#include <qt.h>


να το αλλάξεις σε (λέμε τώρα)
Κώδικας: Επιλογή όλων

#include <qt3.h>


διότι με την έλευση του Qt4 πρέπει να έχουν αλλάξει τα ονόματα των αρχείων *.h.
Αυτά που γράφω έχουν ως στόχο να σε κάνουν να δεις τον κώδικα και να προσπαθήσεις να καταλάβεις τι μπορεί να αλλάξει.
Αν θέλεις κάτι έτοιμο όπου δεν επεμβαίνεις στον κώδικα, πες το. Και η λύση με παλιά διανομή Linux είναι κάτι αρκετά εύκολο.
προσωπικό ιστολόγιο ϗ πλανήτης Ubuntu-gr
Συμβάλετε και εσείς στο ελληνικό βιβλίο Ubuntu!
1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 13.10 saucy 3.11.0-031100rc1-generic 64bit (el_GR.UTF-8, Unity ubuntu)
3 AMD E-450 APU with Radeon HD Graphics ‖ RAM 3555 MiB ‖ Sony Corporation VAIO
4 AMD nee ATI Wrestler [Radeon HD 6320] [1002:9806] {fglrx_pci}
5 eth0: Atheros Inc. AR8151 v2.0 Gigabit Ethernet [1969:1083] (rev c0) ⋮ wlan0: Atheros Inc. AR9285 [168c:002b] (rev 01)
Φτιάξτε και εσείς τη δική σας υπογραφή (παραπάνω κείμενο) αυτόματα με κλικ εδώ!
simosx
Επίτιμο μέλος
Επίτιμο μέλος
 
Δημοσιεύσεις: 10334
Εγγραφή: 11 Μάιος 2008, 18:52
Launchpad: simosx
IRC: simosx
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό anagno » 01 Δεκ 2011, 16:06

simosx έγραψε:
Αυτά που γράφω έχουν ως στόχο να σε κάνουν να δεις τον κώδικα και να προσπαθήσεις να καταλάβεις τι μπορεί να αλλάξει.


Αφού κοίταξα των κώδικα και συνήλθα από το πρώτο σοκ :P έπεσε διάβασμα :geek: . Βρήκα αυτό στο ίντερνετ αυτό http://doc.qt.nokia.com/latest/qt3to4.html και έκανα την μετατροπή. Διόρθωσα μερικά λαθάκια ακόμα και κατέληξα στα εξής:

Κώδικας: Επιλογή όλων

************************************************
*** Now I will build program Rocinante ***
************************************************

make clean
make[1]: Entering directory `/home/anagno/Documents/roci-local'
#rm -f rocinante
rm -f obj/*
rm -f bin/*
rm -f `find . -name *~`
rm -f src/Makefile
if [ -e src/.qmake.internal.cache ]; then rm -f src/.qmake.internal.cache; fi
make[1]: Leaving directory `/home/anagno/Documents/roci-local'
make[1]: Entering directory `/home/anagno/Documents/roci-local/src'
g++ -c -m64 -pipe -Wall -pedantic -ansi -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -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/Qt3Support -I/usr/include/qt4 -Igamalib -I../obj -o ../obj/about.o about.cpp
In file included from /usr/include/qt4/QtCore/qnamespace.h:45:0,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtGui/qwindowdefs.h:45,
from /usr/include/qt4/QtGui/qwidget.h:45,
from /usr/include/qt4/QtGui/qdialog.h:45,
from about.h:30,
from about.cpp:29:
/usr/include/qt4/QtCore/qglobal.h:852:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
/usr/include/qt4/QtCore/qglobal.h:853:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
g++ -c -m64 -pipe -Wall -pedantic -ansi -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -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/Qt3Support -I/usr/include/qt4 -Igamalib -I../obj -o ../obj/config.o config.cpp
In file included from /usr/include/qt4/QtCore/qchar.h:45:0,
from /usr/include/qt4/QtCore/qstring.h:45,
from config.h:31,
from config.cpp:28:
/usr/include/qt4/QtCore/qglobal.h:852:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
/usr/include/qt4/QtCore/qglobal.h:853:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
In file included from gamadata/gamadata.h:38:0,
from network.h:34,
from main_window.h:30,
from config.cpp:29:
gamadata/points.h:35:7: error: ‘GaMaLib’ has not been declared
gamadata/points.h:36:7: error: ‘GaMaLib’ has not been declared
In file included from network.h:34:0,
from main_window.h:30,
from config.cpp:29:
gamadata/gamadata.h:48:31: error: ‘GaMaLib’ was not declared in this scope
gamadata/gamadata.h:48:51: error: template argument 1 is invalid
gamadata/gamadata.h:48:61: error: invalid type in declaration before ‘;’ token
gamadata/gamadata.h:49:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:50:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:51:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:52:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:55:46: error: ‘GaMaLib’ was not declared in this scope
gamadata/gamadata.h:55:66: error: template argument 1 is invalid
gamadata/gamadata.h:55:68: error: template argument 1 is invalid
gamadata/gamadata.h:55:81: error: invalid type in declaration before ‘;’ token
gamadata/gamadata.h:58:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:59:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:60:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:61:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:62:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:63:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:64:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:65:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:66:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:67:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:68:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:69:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:70:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:73:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:74:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:76:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:77:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:79:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:80:13: error: ‘GaMaLib’ does not name a type
gamadata/gamadata.h:83:11: error: ‘GaMaLib’ has not been declared
gamadata/gamadata.h:84:11: error: ‘GaMaLib’ has not been declared
gamadata/gamadata.h:85:11: error: ‘GaMaLib’ has not been declared
In file included from gamalib/gnu_gama/local/network_gso.h:25:0,
from network.h:37,
from main_window.h:30,
from config.cpp:29:
gamalib/gnu_gama/local/network.h:199:51: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from network.h:37:0,
from main_window.h:30,
from config.cpp:29:
gamalib/gnu_gama/local/network_gso.h:50:37: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from network.h:38:0,
from main_window.h:30,
from config.cpp:29:
gamalib/gnu_gama/local/network_svd.h:50:37: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from network.h:42:0,
from main_window.h:30,
from config.cpp:29:
network_default_parameters.h:44:7: error: ‘GaMaLib’ does not name a type
In file included from main_window.h:30:0,
from config.cpp:29:
network.h:85:5: error: ‘PointData’ does not name a type
network.h:86:5: error: ‘ObservationData’ does not name a type
network.h:103:5: error: ‘LocalCS’ does not name a type
network.h:108:44: error: ‘LocalCS’ does not name a type
network.h:108:53: error: ISO C++ forbids declaration of ‘cs’ with no type [-fpermissive]
network.h:308:5: error: ‘GaMaLib’ does not name a type
network.h:313:23: error: ‘GaMaLib’ has not been declared
network.h:313:46: error: expected ‘,’ or ‘...’ before ‘lang’
network.h:331:5: error: ‘GaMaLib’ does not name a type
network.h:363:28: error: ‘GaMaLib’ has not been declared
network.h:363:49: error: expected ‘,’ or ‘...’ before ‘*’ token
network.h:402:5: error: ‘GaMaLib’ does not name a type
network.h: In constructor ‘Rocinante::RocinanteNetwork::RocinanteNetwork()’:
network.h:79:9: error: ‘language’ was not declared in this scope
network.h:79:21: error: ‘DEFAULT_LANGUAGE’ was not declared in this scope
network.h: In member function ‘void Rocinante::RocinanteNetwork::set_local_coordinate_system(const int&)’:
network.h:110:14: error: ‘PD’ was not declared in this scope
network.h:113:9: error: ‘PD’ was not declared in this scope
network.h: In member function ‘bool Rocinante::RocinanteNetwork::get_right_handed_angles() const’:
network.h:119:16: error: ‘PD’ was not declared in this scope
network.h: In member function ‘void Rocinante::RocinanteNetwork::set_right_handed_angles(bool)’:
network.h:124:14: error: ‘PD’ was not declared in this scope
network.h:127:9: error: ‘PD’ was not declared in this scope
network.h: In member function ‘void Rocinante::RocinanteNetwork::set_language(int)’:
network.h:315:13: error: ‘language’ was not declared in this scope
network.h:315:25: error: ‘lang’ was not declared in this scope
network.h:318:9: error: ‘language’ was not declared in this scope
network.h:318:20: error: ‘lang’ was not declared in this scope
network.h: At global scope:
network.h:313:10: warning: unused parameter ‘gama_language’ [-Wunused-parameter]
network.h: In member function ‘void Rocinante::RocinanteNetwork::changeNetwork(int)’:
network.h:368:26: error: ‘LN’ was not declared in this scope
network.h:368:40: error: ‘GaMaLib’ has not been declared
network.h:373:27: error: ‘LN’ was not declared in this scope
network.h:381:13: error: ‘OD’ was not declared in this scope
network.h:383:13: error: ‘PD’ was not declared in this scope
network.h: At global scope:
network.h:363:14: warning: unused parameter ‘LocalNetwork’ [-Wunused-parameter]
In file included from main_window.h:31:0,
from config.cpp:29:
recently_files.h: In member function ‘void Rocinante::RecentlyFiles::addFile(const QString&)’:
recently_files.h:57:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
recently_files.h: In member function ‘void Rocinante::RecentlyFiles::set_max_stored_files(unsigned int)’:
recently_files.h:94:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[1]: *** [../obj/config.o] Error 1
make[1]: Leaving directory `/home/anagno/Documents/roci-local/src'
make: *** [build] Error 2


Νομίζω τώρα πως τα προβλήματα είναι στο gama (το roci είναι το gui του gama). Μάλλον δεν έχω κάνει σωστά το compile και δεν το έχω συνδέσει σωστά... Πως μπορώ να επαληθεύσω την υποψία ???
1 Linux: Αρχάριος ┃ Προγραμματισμός: Αρχάριος ┃ Αγγλικά: Προχωρημένος
2 Ubuntu 14.10 64bit , Windows 8
3 Intel® Core™ i5-3570K CPU @ 3.40GHz × 4 ‖ RAM 16GiB ‖ SABERTOOTH Z77
4 ASUS GTX 560 Ti
anagno
punkTUX
punkTUX
 
Δημοσιεύσεις: 268
Εγγραφή: 08 Οκτ 2011, 14:40
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό anagno » 01 Δεκ 2011, 16:42

Βρήκα τελικά ένα μέρος του προβλήματος... Είχε γίνει μετονομασία της βιβλιοθήκης GaMaLib σε GNU_gama::local ... Αλά δεν λύθηκαν όλα τα προβλήματα... Αυτά παραμένουν :

Κώδικας: Επιλογή όλων

************************************************
*** Now I will build program Rocinante ***
************************************************

make clean
make[1]: Entering directory `/home/anagno/Documents/roci-local'
#rm -f rocinante
rm -f obj/*
rm -f bin/*
rm -f `find . -name *~`
rm -f src/Makefile
if [ -e src/.qmake.internal.cache ]; then rm -f src/.qmake.internal.cache; fi
make[1]: Leaving directory `/home/anagno/Documents/roci-local'
make[1]: Entering directory `/home/anagno/Documents/roci-local/src'
g++ -c -m64 -pipe -Wall -pedantic -ansi -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -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/Qt3Support -I/usr/include/qt4 -Igamalib -I../obj -o ../obj/about.o about.cpp
In file included from /usr/include/qt4/QtCore/qnamespace.h:45:0,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtGui/qwindowdefs.h:45,
from /usr/include/qt4/QtGui/qwidget.h:45,
from /usr/include/qt4/QtGui/qdialog.h:45,
from about.h:30,
from about.cpp:29:
/usr/include/qt4/QtCore/qglobal.h:852:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
/usr/include/qt4/QtCore/qglobal.h:853:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
g++ -c -m64 -pipe -Wall -pedantic -ansi -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -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/Qt3Support -I/usr/include/qt4 -Igamalib -I../obj -o ../obj/config.o config.cpp
In file included from /usr/include/qt4/QtCore/qchar.h:45:0,
from /usr/include/qt4/QtCore/qstring.h:45,
from config.h:31,
from config.cpp:28:
/usr/include/qt4/QtCore/qglobal.h:852:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
/usr/include/qt4/QtCore/qglobal.h:853:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
In file included from gamalib/gnu_gama/local/network_gso.h:25:0,
from network.h:37,
from main_window.h:30,
from config.cpp:29:
gamalib/gnu_gama/local/network.h:199:51: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from network.h:37:0,
from main_window.h:30,
from config.cpp:29:
gamalib/gnu_gama/local/network_gso.h:50:37: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from network.h:38:0,
from main_window.h:30,
from config.cpp:29:
gamalib/gnu_gama/local/network_svd.h:50:37: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from main_window.h:31:0,
from config.cpp:29:
recently_files.h: In member function ‘void Rocinante::RecentlyFiles::addFile(const QString&)’:
recently_files.h:57:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
recently_files.h: In member function ‘void Rocinante::RecentlyFiles::set_max_stored_files(unsigned int)’:
recently_files.h:94:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
g++ -c -m64 -pipe -Wall -pedantic -ansi -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -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/Qt3Support -I/usr/include/qt4 -Igamalib -I../obj -o ../obj/newfile.o newfile.cpp
In file included from /usr/include/qt4/QtCore/qnamespace.h:45:0,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtGui/qwindowdefs.h:45,
from /usr/include/qt4/QtGui/qwidget.h:45,
from /usr/include/qt4/QtGui/qdialog.h:45,
from newfile.h:29,
from newfile.cpp:31:
/usr/include/qt4/QtCore/qglobal.h:852:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
/usr/include/qt4/QtCore/qglobal.h:853:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
newfile.cpp: In constructor ‘Rocinante::NewFile::NewFile(QWidget*, const char*, bool, Qt::WFlags)’:
newfile.cpp:58:39: error: no matching function for call to ‘Q3VBoxLayout::addWidget(Q3IconView*&, int, int)’
newfile.cpp:58:39: note: candidate is:
/usr/include/qt4/QtGui/qboxlayout.h:85:10: note: void QBoxLayout::addWidget(QWidget*, int, Qt::Alignment)
/usr/include/qt4/QtGui/qboxlayout.h:85:10: note: no known conversion for argument 3 from ‘int’ to ‘Qt::Alignment {aka QFlags<Qt::AlignmentFlag>}’
make[1]: *** [../obj/newfile.o] Error 1
make[1]: Leaving directory `/home/anagno/Documents/roci-local/src'
make: *** [build] Error 2


Όποιος βοήθεια εκτιμάται απεριόριστα

Ευχαριστώ πολύ
1 Linux: Αρχάριος ┃ Προγραμματισμός: Αρχάριος ┃ Αγγλικά: Προχωρημένος
2 Ubuntu 14.10 64bit , Windows 8
3 Intel® Core™ i5-3570K CPU @ 3.40GHz × 4 ‖ RAM 16GiB ‖ SABERTOOTH Z77
4 ASUS GTX 560 Ti
anagno
punkTUX
punkTUX
 
Δημοσιεύσεις: 268
Εγγραφή: 08 Οκτ 2011, 14:40
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό the_eye » 01 Δεκ 2011, 17:25

Γιατί δεν επικοινωνείς με τον δημιουργό, μπορεί να έχει κάποια λύση να σου προτείνει

http://roci.sourceforge.net/#contact
Όσο λιγότερο κλειστό λογισμικό έχεις, τόσα λιγότερα προβλήματα.
1 Γνώσεις ⇛ Linux: Καλό ┃ Προγραμματισμός: Ναι PHP, MySQL ┃ Αγγλικά: Καλά
2 Ubuntu 24.04.2
3 Intel Core i5-6500 CPU @ 3.20GHz ‖ RAM 7836 MiB ‖ Gigabyte B150M-HD3 DDR3-CF - Gigabyte B150M-HD3 DDR3
4 Intel HD Graphics 530 [8086:1912] {i915}
5 enp1s0: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Άβαταρ μέλους
the_eye
Διαχειριστής
Διαχειριστής
 
Δημοσιεύσεις: 11717
Εγγραφή: 16 Μαρ 2010, 17:19
Launchpad: ntoulasd
IRC: the_eye_
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό anagno » 01 Δεκ 2011, 20:53

the_eye έγραψε:Γιατί δεν επικοινωνείς με τον δημιουργό, μπορεί να έχει κάποια λύση να σου προτείνει

http://roci.sourceforge.net/#contact


Σωστό και αυτό... Απλώς θέλω να παιδευτώ μία με δύο μέρες ακόμα και αν είναι θα του στείλω και ότι έχω καταφέρει :)
1 Linux: Αρχάριος ┃ Προγραμματισμός: Αρχάριος ┃ Αγγλικά: Προχωρημένος
2 Ubuntu 14.10 64bit , Windows 8
3 Intel® Core™ i5-3570K CPU @ 3.40GHz × 4 ‖ RAM 16GiB ‖ SABERTOOTH Z77
4 ASUS GTX 560 Ti
anagno
punkTUX
punkTUX
 
Δημοσιεύσεις: 268
Εγγραφή: 08 Οκτ 2011, 14:40
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό medigeek » 01 Δεκ 2011, 21:33

Κύπριος; Κόπιασε στο ubuntu-cy! ┃ Launchpad Debian Github
Οδηγός για νεοεισερχόμενους -- Αρχικές οδηγίες για αρχάριους χρήστες του Ubuntu

1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 12.10 quantal 3.5.0-21-generic 64bit (en_US.UTF-8, GNOME cinnamon2d), Ubuntu 3.5.0-19-generic, Windows 7
3 Intel Core2 Duo CPU E6550 2.33GHz ‖ RAM 5970 MiB ‖ MSI MS-7235
4 nVidia G73 [GeForce 7300 GT] [10de:0393] {nvidia}
5 eth0: Realtek RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Άβαταρ μέλους
medigeek
Freedom
Freedom
 
Δημοσιεύσεις: 5023
Εγγραφή: 24 Μάιος 2008, 14:49
Τοποθεσία: Σερβία/Κύπρος
Launchpad: medigeek
IRC: savvas
Εκτύπωση

Re: Πρόβλημα με compile ενός προγράμματος

Δημοσίευσηαπό anagno » 01 Δεκ 2011, 22:45

medigeek έγραψε:Το cartoreso κάνει τη δουλειά;
http://linux.softpedia.com/get/Internet ... 1287.shtml
http://sourceforge.net/projects/cartoreso/


Τί υποτίθεται ότι κάνεi το cartoreso ???
1 Linux: Αρχάριος ┃ Προγραμματισμός: Αρχάριος ┃ Αγγλικά: Προχωρημένος
2 Ubuntu 14.10 64bit , Windows 8
3 Intel® Core™ i5-3570K CPU @ 3.40GHz × 4 ‖ RAM 16GiB ‖ SABERTOOTH Z77
4 ASUS GTX 560 Ti
anagno
punkTUX
punkTUX
 
Δημοσιεύσεις: 268
Εγγραφή: 08 Οκτ 2011, 14:40
Εκτύπωση

Επόμενο

  • ΣΧΕΤΙΚΑ ΘΕΜΑΤΑ
    ΑΠΑΝΤΗΣΕΙΣ
    ΠΡΟΒΟΛΕΣ
    ΣΥΓΓΡΑΦΕΑΣ

Επιστροφή στο Εφαρμογές για Ανάπτυξη Λογισμικού