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


- Κώδικας: Επιλογή όλων
************************************************
*** 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 και δεν το έχω συνδέσει σωστά... Πως μπορώ να επαληθεύσω την υποψία ???