[Ubuntu-BR] Qtstalker

Waldir Leôncio waldir.leoncio em gmail.com
Sexta Abril 6 01:09:22 UTC 2007


Olá, José Geraldo!  Obrigado pela atenção e ajuda!  Aconteceu o seguinte:

você deve começar por isntalar os seguintes pacotes:
>
> libqt3-dev
> libqt3-mt-dev
> libqt3-headers
> qt3-dev-tools
> build-essential


Bom, aconteceu que eu já tinha todos esses pacotes, com exceção do
libqt3-dev (que aparentemente está obsoleto e pode ser substituído pelo
libqt3-mt-dev) e do build-essential (que simplesmente não foi encontrado).
:-/  Enfim, resolvi prosseguir.

se houver um arquivo .pro dentro do diretório raiz, use
> o comando "qmake *.pro" para gerar o Makefile e digite "make" direto
> para ver no que dá. É uma boa maneira de testar se o qt está bem
> configurado.


Rodei "qmake qtstalker.pro" e ele gerou o Makefile corretamente.
Entretanto, quando eu executei o "make", ele deu o monte de erros (pelo
menos são todos do mesmo tipo), a seguir:


> cd lib && qmake lib.pro -o Makefile
> cd lib && make -f Makefile
> make[1]: Entering directory `/home/leoncio/Desktop/qtstalker/lib'
> g++ -c -pipe -ffast-math -Wall -W -O2 -D_REENTRANT -fPIC  -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
> -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o QuotePlugin.o
> QuotePlugin.cpp
> g++ -c -pipe -ffast-math -Wall -W -O2 -D_REENTRANT -fPIC  -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
> -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o
> IndicatorPlugin.o IndicatorPlugin.cpp
> g++ -c -pipe -ffast-math -Wall -W -O2 -D_REENTRANT -fPIC  -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
> -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o DbPlugin.o
> DbPlugin.cpp
> In file included from DbPlugin.cpp:22:
> DbPlugin.h:27:16: error: db.h: No such file or directory
> DbPlugin.h:110: error: ISO C++ forbids declaration of 'DB' with no type
> DbPlugin.h:110: error: expected ';' before '*' token
> DbPlugin.cpp: In constructor 'DbPlugin::DbPlugin()':
> DbPlugin.cpp:42: error: 'db' was not declared in this scope
> DbPlugin.cpp: In destructor 'virtual DbPlugin::~DbPlugin()':
> DbPlugin.cpp:48: error: 'db' was not declared in this scope
> DbPlugin.cpp: In member function 'int DbPlugin::openChart(QString&)':
> DbPlugin.cpp:54: error: 'db' was not declared in this scope
> DbPlugin.cpp:62: error: 'db' was not declared in this scope
> DbPlugin.cpp:62: error: 'db_create' was not declared in this scope
> DbPlugin.cpp:65: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp:69: error: 'DB_BTREE' was not declared in this scope
> DbPlugin.cpp:69: error: 'DB_CREATE' was not declared in this scope
> DbPlugin.cpp:72: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::close()':
> DbPlugin.cpp:88: error: 'db' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getData(QString&,
> QString&)':
> DbPlugin.cpp:97: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:97: error: expected `;' before 'key'
> DbPlugin.cpp:98: error: expected `;' before 'data'
> DbPlugin.cpp:99: error: 'key' was not declared in this scope
> DbPlugin.cpp:100: error: 'data' was not declared in this scope
> DbPlugin.cpp:105: error: 'db' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::setData(QString&,
> QString&)':
> DbPlugin.cpp:113: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:113: error: expected `;' before 'key'
> DbPlugin.cpp:114: error: expected `;' before 'data'
> DbPlugin.cpp:115: error: 'key' was not declared in this scope
> DbPlugin.cpp:116: error: 'data' was not declared in this scope
> DbPlugin.cpp:124: error: 'db' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::deleteData(QString&)':
> DbPlugin.cpp:129: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:129: error: expected `;' before 'key'
> DbPlugin.cpp:130: error: 'key' was not declared in this scope
> DbPlugin.cpp:135: error: 'db' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::dump(QString&, bool)':
> DbPlugin.cpp:213: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:213: error: expected `;' before 'key'
> DbPlugin.cpp:214: error: expected `;' before 'data'
> DbPlugin.cpp:215: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:215: error: 'cur' was not declared in this scope
> DbPlugin.cpp:216: error: 'key' was not declared in this scope
> DbPlugin.cpp:217: error: 'data' was not declared in this scope
> DbPlugin.cpp:219: error: 'db' was not declared in this scope
> DbPlugin.cpp:224: error: 'DB_NEXT' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getFirstBar(Bar&)':
> DbPlugin.cpp:249: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:249: error: expected `;' before 'key'
> DbPlugin.cpp:250: error: expected `;' before 'data'
> DbPlugin.cpp:251: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:251: error: 'cur' was not declared in this scope
> DbPlugin.cpp:252: error: 'key' was not declared in this scope
> DbPlugin.cpp:253: error: 'data' was not declared in this scope
> DbPlugin.cpp:255: error: 'db' was not declared in this scope
> DbPlugin.cpp:256: error: 'DB_NEXT' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getLastBar(Bar&)':
> DbPlugin.cpp:276: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:276: error: expected `;' before 'key'
> DbPlugin.cpp:277: error: expected `;' before 'data'
> DbPlugin.cpp:278: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:278: error: 'cur' was not declared in this scope
> DbPlugin.cpp:279: error: 'key' was not declared in this scope
> DbPlugin.cpp:280: error: 'data' was not declared in this scope
> DbPlugin.cpp:282: error: 'db' was not declared in this scope
> DbPlugin.cpp:283: error: 'DB_PREV' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getPrevBar(QDateTime&,
> Bar&)':
> DbPlugin.cpp:303: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:303: error: expected `;' before 'key'
> DbPlugin.cpp:304: error: expected `;' before 'data'
> DbPlugin.cpp:305: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:305: error: 'cur' was not declared in this scope
> DbPlugin.cpp:306: error: 'key' was not declared in this scope
> DbPlugin.cpp:307: error: 'data' was not declared in this scope
> DbPlugin.cpp:309: error: 'db' was not declared in this scope
> DbPlugin.cpp:314: error: 'DB_SET_RANGE' was not declared in this scope
> DbPlugin.cpp:317: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp:321: error: 'DB_PREV' was not declared in this scope
> DbPlugin.cpp:324: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getNextBar(QDateTime&,
> Bar&)':
> DbPlugin.cpp:344: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:344: error: expected `;' before 'key'
> DbPlugin.cpp:345: error: expected `;' before 'data'
> DbPlugin.cpp:346: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:346: error: 'cur' was not declared in this scope
> DbPlugin.cpp:347: error: 'key' was not declared in this scope
> DbPlugin.cpp:348: error: 'data' was not declared in this scope
> DbPlugin.cpp:350: error: 'db' was not declared in this scope
> DbPlugin.cpp:355: error: 'DB_SET_RANGE' was not declared in this scope
> DbPlugin.cpp:358: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp:362: error: 'DB_NEXT' was not declared in this scope
> DbPlugin.cpp:365: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getSearchBar(QDateTime&,
> Bar&)':
> DbPlugin.cpp:385: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:385: error: expected `;' before 'key'
> DbPlugin.cpp:386: error: expected `;' before 'data'
> DbPlugin.cpp:387: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:387: error: 'cur' was not declared in this scope
> DbPlugin.cpp:388: error: 'key' was not declared in this scope
> DbPlugin.cpp:389: error: 'data' was not declared in this scope
> DbPlugin.cpp:391: error: 'db' was not declared in this scope
> DbPlugin.cpp:396: error: 'DB_SET_RANGE' was not declared in this scope
> DbPlugin.cpp:399: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getHistory(BarData*,
> QDateTime&)':
> DbPlugin.cpp:468: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:468: error: expected `;' before 'key'
> DbPlugin.cpp:469: error: expected `;' before 'data'
> DbPlugin.cpp:470: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:470: error: 'cur' was not declared in this scope
> DbPlugin.cpp:471: error: 'key' was not declared in this scope
> DbPlugin.cpp:472: error: 'data' was not declared in this scope
> DbPlugin.cpp:474: error: 'db' was not declared in this scope
> DbPlugin.cpp:479: error: 'DB_SET_RANGE' was not declared in this scope
> DbPlugin.cpp:482: error: 'db_strerror' was not declared in this scope
> DbPlugin.cpp:486: error: 'DB_PREV' was not declared in this scope
> DbPlugin.cpp: In member function 'void DbPlugin::getAllBars(BarData*)':
> DbPlugin.cpp:622: error: 'DBT' was not declared in this scope
> DbPlugin.cpp:622: error: expected `;' before 'key'
> DbPlugin.cpp:623: error: expected `;' before 'data'
> DbPlugin.cpp:624: error: 'DBC' was not declared in this scope
> DbPlugin.cpp:624: error: 'cur' was not declared in this scope
> DbPlugin.cpp:625: error: 'key' was not declared in this scope
> DbPlugin.cpp:626: error: 'data' was not declared in this scope
> DbPlugin.cpp:632: error: 'db' was not declared in this scope
> DbPlugin.cpp:634: error: 'DB_PREV' was not declared in this scope
> make[1]: *** [DbPlugin.o] Error 1
> make[1]: Leaving directory `/home/leoncio/Desktop/qtstalker/lib'
> make: *** [sub-lib] Error 2


Daí eu larguei a instalação de vez. :P


Quanto ao Patch, ele só é necessário se você pretende acessar o Yahoo.
> Se for o seu caso, continuamos. Se não, paramos aqui.
>
> Minha sugestão é
>
> $ patch -b qtstalker.tar.gz yahoo.patch (os nomes dos arquivos estão
> abreviados).


Tudo certo, vou precisar acessar o banco de dados do Yahoo! ;)

Será que tem como eu usar esse patch numa versão já instalada do qtstalker
(ou seja, a versão mais antiga, disponível nos repositórios do Ubuntu) ou só
compilando o programa novamente?

Um abraço,
Waldir



More information about the ubuntu-br mailing list