A ještě jedna věc.Chtěl jsem si nainstalovat program Kastrolog. (
http://www.paganlink.org/library/astrology/kastrolog.html)
Chtěl bych předem poděkovat za radu!! Z návodu na ubuntu jsem nic nevyčetl. (jaký je rozdíl mezi tím C source a tím for other distro? A lze použít oboje?)
K čemu slouží příkaz ./configure?
TAKŽE:
1) První možnost-přes alien.Vytvořil deb. balík ale pokud chci spustit tak hlásí:
jimmy@jimmy:~/Desktop/k1$ sudo kastrolog
kastrolog: error while loading shared libraries: libqt.so.1: cannot open shared object file: No such file or directory2) tak jsem zkusil stáhnout balík tar.gz-ten spodní (for other PC Linux distributions) a podle návodu jsem dal
makea vyhodilo to:
jimmy@jimmy:~/Desktop/k1$ make
make: *** No targets specified and no makefile found. Stop.3) třetí balík (C source code) - s kterym se to asi ani dělat nemá...vyhodilo to:
jimmy@jimmy:~/Desktop/k2$ make
cd src && make
make[1]: Entering directory `/home/jimmy/Desktop/k2/src'
g++ -I/usr/local/lib/qt/include -I/opt/kde/include -O2 -pipe -o AstroCommand.o -c AstroCommand.cpp
In file included from AstroCommand.h:22,
from AstroCommand.cpp:19:
AstroCommandData.h:25:21: error: qdialog.h: No such file or directory
In file included from AstroCommandData.h:26,
from AstroCommand.h:22,
from AstroCommand.cpp:19:
myLineEdit.h:12:20: error: qlined.h: No such file or directory
In file included from AstroCommand.cpp:20:
AstroWidget.h:9:18: error: drag.h: No such file or directory
AstroWidget.h:10:25: error: qscrollview.h: No such file or directory
AstroWidget.h:11:22: error: qpicture.h: No such file or directory
AstroWidget.h:12:22: error: qpainter.h: No such file or directory
AstroWidget.h:13:23: error: qlineedit.h: No such file or directory
AstroWidget.h:14:21: error: qstring.h: No such file or directory
AstroWidget.h:15:19: error: qlist.h: No such file or directory
AstroWidget.h:16:24: error: kstatusbar.h: No such file or directory
AstroWidget.h:17:22: error: ktoolbar.h: No such file or directory
AstroWidget.h:18:26: error: ktmainwindow.h: No such file or directory
AstroWidget.h:19:25: error: kiconloader.h: No such file or directory
In file included from AstroWidget.h:24,
from AstroCommand.cpp:20:
astrolog.h:970:9: error: "not" cannot be used as a macro name as it is an operator in C++
myLineEdit.h:15: error: expected class-name before ‘{’ token
myLineEdit.h:19: error: expected `)' before ‘*’ token
myLineEdit.h:23: error: ‘QFocusEvent’ has not been declared
myLineEdit.h:24: error: ‘QFocusEvent’ has not been declared
AstroCommandData.h:30: error: expected class-name before ‘{’ token
AstroCommandData.h:31: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
AstroCommandData.h:33: error: expected ‘;’ before ‘public’
AstroCommandData.h:43: error: expected `:' before ‘slots’
AstroCommandData.h:46: error: expected primary-expression before ‘protected’
AstroCommandData.h:46: error: ISO C++ forbids declaration of ‘slots’ with no type
AstroCommandData.h:46: error: expected ‘;’ before ‘protected’
AstroCommand.h:26: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
AstroCommand.h:28: error: expected ‘;’ before ‘public’
AstroCommand.h:38: error: expected `:' before ‘slots’
AstroCommand.h:40: error: expected primary-expression before ‘void’
AstroCommand.h:40: error: ISO C++ forbids declaration of ‘slots’ with no type
AstroCommand.h:40: error: expected ‘;’ before ‘void’
AstroWidget.h:37: error: variable or field ‘NCheck’ declared void
AstroWidget.h:37: error: ‘QLineEdit’ was not declared in this scope
AstroWidget.h:37: error: expected primary-expression before ‘,’ token
AstroWidget.h:37: error: expected primary-expression before ‘int’
AstroWidget.h:37: error: expected primary-expression before ‘int’
AstroWidget.h:37: error: expected primary-expression before ‘const’
AstroWidget.h:37: error: expected primary-expression before ‘int’
AstroWidget.h:37: error: initializer expression list treated as compound expression
AstroWidget.h:38: error: variable or field ‘FCheck’ declared void
AstroWidget.h:38: error: ‘QLineEdit’ was not declared in this scope
AstroWidget.h:38: error: expected primary-expression before ‘,’ token
AstroWidget.h:38: error: expected primary-expression before ‘double’
AstroWidget.h:38: error: expected primary-expression before ‘double’
AstroWidget.h:38: error: expected primary-expression before ‘const’
AstroWidget.h:38: error: expected primary-expression before ‘double’
AstroWidget.h:38: error: initializer expression list treated as compound expression
AstroWidget.h:42: error: expected template-name before ‘<’ token
AstroWidget.h:42: error: expected `{' before ‘<’ token
AstroWidget.h:42: error: expected unqualified-id before ‘<’ token
AstroWidget.h:54: error: invalid use of undefined type ‘class QStringList’
AstroWidget.h:42: error: forward declaration of ‘class QStringList’
AstroWidget.h:76: error: expected template-name before ‘<’ token
AstroWidget.h:76: error: expected `{' before ‘<’ token
AstroWidget.h:76: error: expected unqualified-id before ‘<’ token
AstroWidget.h:83: error: ISO C++ forbids declaration of ‘mypidList’ with no type
AstroWidget.h: In member function ‘void AstroApp::add(pid_t)’:
AstroWidget.h:71: error: request for member ‘add’ in ‘((AstroApp*)this)->AstroApp::mypidList’, which is of non-class type ‘int’
AstroWidget.h: In member function ‘void AstroApp::killall()’:
AstroWidget.h:72: error: request for member ‘killall’ in ‘((AstroApp*)this)->AstroApp::mypidList’, which is of non-class type ‘int’
AstroWidget.h: At global scope:
AstroWidget.h:93: error: expected class-name before ‘{’ token
AstroWidget.h:95: error: expected `)' before ‘*’ token
AstroWidget.h:100: error: expected class-name before ‘{’ token
AstroWidget.h:102: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
AstroWidget.h:104: error: expected ‘;’ before ‘public’
AstroWidget.h:107: error: ‘QPainter’ has not been declared
AstroWidget.h:108: error: ISO C++ forbids declaration of ‘QPainter’ with no type
AstroWidget.h:108: error: ‘QPainter’ declared as an ‘inline’ field
AstroWidget.h:108: error: expected ‘;’ before ‘*’ token
AstroWidget.h:109: error: expected `;' before ‘inline’
AstroWidget.h:112: error: ISO C++ forbids declaration of ‘QFont’ with no type
AstroWidget.h:112: error: ‘QFont’ declared as an ‘inline’ field
AstroWidget.h:112: error: expected ‘;’ before ‘*’ token
AstroWidget.h:113: error: expected `;' before ‘void’
AstroWidget.h:113: error: ‘QResizeEvent’ has not been declared
AstroWidget.h:114: error: ‘QKeyEvent’ has not been declared
AstroWidget.h:158: error: expected `:' before ‘slots’
AstroWidget.h:160: error: expected primary-expression before ‘void’
AstroWidget.h:160: error: ISO C++ forbids declaration of ‘slots’ with no type
AstroWidget.h:160: error: expected ‘;’ before ‘void’
AstroWidget.h:168: error: ISO C++ forbids declaration of ‘QPicture’ with no type
AstroWidget.h:168: error: expected ‘;’ before ‘*’ token
AstroWidget.h:169: error: ISO C++ forbids declaration of ‘QPainter’ with no type
AstroWidget.h:169: error: expected ‘;’ before ‘*’ token
AstroWidget.h:170: error: ISO C++ forbids declaration of ‘QPrinter’ with no type
AstroWidget.h:170: error: expected ‘;’ before ‘*’ token
AstroWidget.h:171: error: ISO C++ forbids declaration of ‘QTimer’ with no type
AstroWidget.h:171: error: expected ‘;’ before ‘*’ token
AstroWidget.h:172: error: ISO C++ forbids declaration of ‘QPixmap’ with no type
AstroWidget.h:172: error: expected ‘;’ before ‘*’ token
AstroWidget.h:174: error: ISO C++ forbids declaration of ‘QFont’ with no type
AstroWidget.h:174: error: expected ‘;’ before ‘*’ token
AstroWidget.h:184: error: expected class-name before ‘{’ token
AstroWidget.h:191: error: ISO C++ forbids declaration of ‘KStatusBar’ with no type
AstroWidget.h:191: error: expected ‘;’ before ‘*’ token
AstroWidget.h:192: error: ISO C++ forbids declaration of ‘KToolBar’ with no type
AstroWidget.h:192: error: expected ‘;’ before ‘*’ token
AstroWidget.h:193: error: ISO C++ forbids declaration of ‘KIconLoader’ with no type
AstroWidget.h:193: error: expected ‘;’ before ‘*’ token
AstroWidget.h: In member function ‘void AstroWindow::init()’:
AstroWidget.h:115: error: ‘void AstroWidget::setPaint(char)’ is private
AstroWidget.h:188: error: within this context
AstroWidget.h:188: error: ‘show’ was not declared in this scope
AstroCommand.cpp: At global scope:
AstroCommand.cpp:24: error: expected `)' before ‘*’ token
AstroCommandData.h: In destructor ‘virtual AstroCommand::~AstroCommand()’:
AstroCommandData.h:41: error: ‘AstroCommandData::~AstroCommandData()’ is private
AstroCommand.cpp:31: error: within this context
AstroCommand.cpp: At global scope:
AstroCommand.cpp:35: error: no ‘void AstroCommand::okslot()’ member function declared in class ‘AstroCommand’
AstroCommand.cpp: In member function ‘void AstroCommand::okslot()’:
AstroCommand.cpp:38: error: ‘class myLineEdit’ has no member named ‘text’
make[1]: *** [AstroCommand.o] Error 1
make[1]: Leaving directory `/home/jimmy/Desktop/k2/src'
make: *** [all] ErrorNávod:
In the meantime, kastrolog can be installed easily, but you need the gcc 2.95 (or above) C and C++ compilers, the "make" tool and all the KDE and QT 1.4x developpement files. Check if your C and make commands exist, and where your qt and kde directories are.
1) Be root or login as root
2) Unpack the file "kastrolog-5.4-1.1.tar.gz" with the following command:
tar xvf kastrolog-5.4-1.1.tar.gz
3) Go to the kastrolog directory:
cd kastrolog
4) Options check. If you don't understand one of the following items,
try to skip it.
4.1) If your C compiler is not gcc, then perform "export CC=<your
compiler>"
4.2) If your C++ compiler is not g++, then perform "export CXX=<your
compiler>"
4.3) If your qt directory is not /usr/local/lib/qt, then "export
QTDIR=<your qt directory>"
4.4) If your kde directory is not /opt/kde, then "export KDEDIR=<your
kde directory>"
4.5) If your C and C++ compilation flags are not '-O2 -pipe', then
"export CFLAGS='<your flags>'"
Examples:
export CC=pgcc
export KDEDIR=/usr
export CFLAGS='-O3 -pipe -mpentium'
5) Compile the project:
make
6) Install the files:
make install
Co s tím?

Díky