Client ftp (qt)

Soyez le premier à donner votre avis sur cette source.

Vue 16 027 fois - Téléchargée 1 409 fois

Description

un petit client ftp multiplateforme (les plateforme supportés par le bibilothèque Qt)qui vous permet de faire des opérations simples, le programme contient encore des bugs que je vais fixer par la suite (je compte sur votre aide pour faire cela).
désolé le code source n'est pas commenté.

Conclusion :


pour compilé ce programme vous avez besoin d'installé la bibiothéque graphique Qt avec minGW (g++) :
http://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/source/qt-win-opensource-4.2.2-mingw.exe
ou:
http://www.trolltech.com/developer/downloads/qt/index

Codes Sources

A voir également

Ajouter un commentaire

Commentaires

cs_bilal
Messages postés
87
Date d'inscription
dimanche 2 février 2003
Statut
Membre
Dernière intervention
4 mars 2010

salut ,

je programme sous c++ builder,

je voudrais savoir si tu peux transférer plusieurs fichiers en même temps ?

Merci et bonne continuation
cs_hibi
Messages postés
23
Date d'inscription
mercredi 18 août 2004
Statut
Membre
Dernière intervention
20 novembre 2007

salut;

Essaie l'une des 2 propositions:

1 - supprimer la ligne suivante:

RC_FILE = rsc.rc

du ficher H-FTP.pro

2 - ou bien de créer un fichier "rsc.rc" et mettre dedaans la ligne suivate:

IDI_ICON1 ICON DISCARDABLE "app.ico"

"app.ico" étant le chemin d'un fichier icone.
cs_jalfr
Messages postés
5
Date d'inscription
dimanche 11 novembre 2007
Statut
Membre
Dernière intervention
20 novembre 2007

Excuse moi, voici l'erreur avec ton .pro et non un que j'ai créé avec un qmake -project

le début semble correct, la fin...

mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/Downloads/ftp/dlzip/H-FTP'
c:\Qt\4.3.2\bin\uic.exe ui\FTPWindow.ui -o build\ui_FTPWindow.h
c:\Qt\4.3.2\bin\uic.exe ui\Connection.ui -o build\ui_Connection.h
c:\Qt\4.3.2\bin\uic.exe ui\about.ui -o build\ui_about.h
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\Main.o src\Main.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\CFTPWindow.o src\CFTPWindow.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\CTreeWidget.o src\CTreeWidget.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\CTreeWidgetItem.o src\CTreeWidgetItem.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\CItemDelegate.o src\CItemDelegate.cpp
src\CItemDelegate.cpp:58:2: warning: no newline at end of file
src\CItemDelegate.cpp: In member function `virtual QWidget* CItemDelegate::creat
eEditor(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const':
src\CItemDelegate.cpp:35: warning: control reaches end of non-void function
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\CConnection.o src\CConnection.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\CFtp.o src\CFtp.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\arthurstyle.o src\arthur\arthurstyle.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\arthurwidgets.o src\arthur\arthurwidgets.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\hoverpoints.o src\arthur\hoverpoints.cpp
C:\Qt\4.3.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore"
-I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNe
twork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\include\ActiveQt" -I"build"
-I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 src\CFT
PWindow.h -o build\moc_CFTPWindow.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\moc_CFTPWindow.o build\moc_CFTPWindow.cpp
C:\Qt\4.3.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore"
-I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNe
twork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\include\ActiveQt" -I"build"
-I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 src\CTr
eeWidget.h -o build\moc_CTreeWidget.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\moc_CTreeWidget.o build\moc_CTreeWidget.cpp
C:\Qt\4.3.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore"
-I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNe
twork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\include\ActiveQt" -I"build"
-I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 src\CIt
emDelegate.h -o build\moc_CItemDelegate.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\moc_CItemDelegate.o build\moc_CItemDelegate.cpp
C:\Qt\4.3.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore"
-I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNe
twork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\include\ActiveQt" -I"build"
-I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 src\CCo
nnection.h -o build\moc_CConnection.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\moc_CConnection.o build\moc_CConnection.cpp
C:\Qt\4.3.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore"
-I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNe
twork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\include\ActiveQt" -I"build"
-I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 src\CFt
p.h -o build\moc_CFtp.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\moc_CFtp.o build\moc_CFtp.cpp
C:\Qt\4.3.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore"
-I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNe
twork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\include\ActiveQt" -I"build"
-I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 src\art
hur\arthurwidgets.h -o build\moc_arthurwidgets.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\moc_arthurwidgets.o build\moc_arthurwidgets.cpp
C:\Qt\4.3.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore"
-I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNe
twork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\Qt
Gui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\include\ActiveQt" -I"build"
-I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 src\art
hur\hoverpoints.h -o build\moc_hoverpoints.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\moc_hoverpoints.o build\moc_hoverpoints.cpp
c:\Qt\4.3.2\bin\rcc.exe -name rc ui\rc.qrc -o release\qrc_rc.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\qrc_rc.o release\qrc_rc.cpp
c:\Qt\4.3.2\bin\rcc.exe -name shared ui\arthur\shared.qrc -o release\qrc_shared.
cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Q
t\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\.
.\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..
\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\include" -I"c:\Qt\4.3.2\incl
ude\ActiveQt" -I"build" -I"build" -I"..\..\..\..\Qt\4.3.2\mkspecs\win32-g++" -o
build\qrc_shared.o release\qrc_shared.cpp
mingw32-make[1]: *** No rule to make target `rsc.rc', needed by `build\rsc_res.o
'. Stop.
mingw32-make[1]: Leaving directory `C:/Downloads/ftp/dlzip/H-FTP'
mingw32-make: *** [release] Error 2

Merci d'avance :)
cs_jalfr
Messages postés
5
Date d'inscription
dimanche 11 novembre 2007
Statut
Membre
Dernière intervention
20 novembre 2007

Salut!

J'ai un petit problème lors de la compilation avec Qt ...
Voici ce qui m'est retourné lors du make:

In file included from src\CFtp.cpp:8:
src\/CFtp.h:11:16: QFtp: No such file or directory
In file included from src\CFtp.cpp:8:
src\/CFtp.h:28: error: `QFtp' has not been declared
src\/CFtp.h:28: error: `TransferMode' has not been declared
src\/CFtp.h:28: error: ISO C++ forbids declaration of `mode' with no type
src\/CFtp.h:37: error: `QFtp' has not been declared
src\/CFtp.h:37: error: variable or field `setTransfertMode' declared void
src\/CFtp.h:37: error: expected `;' before '(' token
src\/CFtp.h:64: error: expected `,' or `...' before '&' token
src\/CFtp.h:64: error: ISO C++ forbids declaration of `QUrlInfo' with no type
src\/CFtp.h:74: error: expected `,' or `...' before '&' token
src\/CFtp.h:74: error: ISO C++ forbids declaration of `QUrlInfo' with no type
src\/CFtp.h:85: error: ISO C++ forbids declaration of `QFtp' with no type
src\/CFtp.h:85: error: expected `;' before '*' token
src\/CFtp.h:92: error: `QFtp' has not been declared
src\/CFtp.h:92: error: ISO C++ forbids declaration of `TransferMode' with no typ
e
src\/CFtp.h:92: error: expected `;' before "mode"
src\/CFtp.h:28: error: `QFtp' has not been declared
src\/CFtp.h:28: error: `Passive' was not declared in this scope
src\CFtp.cpp: In constructor `CFtp::CFtp(QObject*)':
src\CFtp.cpp:22: error: 'class CFtp' has no member named 'mode'
src\CFtp.cpp:22: error: `QFtp' has not been declared
src\CFtp.cpp:22: error: `Passive' undeclared (first use this function)
src\CFtp.cpp:22: error: (Each undeclared identifier is reported only once for ea
ch function it appears in.)
src\CFtp.cpp:24: error: `ftp' undeclared (first use this function)
src\CFtp.cpp:24: error: `QFtp' has not been declared
src\CFtp.cpp: At global scope:
src\CFtp.cpp:37: error: `QFtp' has not been declared
src\CFtp.cpp:37: error: `TransferMode' has not been declared
src\CFtp.cpp:37: error: ISO C++ forbids declaration of `mode' with no type
src\CFtp.cpp: In constructor `CFtp::CFtp(QObject*, QString, int, QString, QStrin
g, QString, int, int)':
src\CFtp.cpp:45: error: 'class CFtp' has no member named 'mode'
src\CFtp.cpp:47: error: `ftp' undeclared (first use this function)
src\CFtp.cpp:47: error: `QFtp' has not been declared
src\CFtp.cpp: At global scope:
src\CFtp.cpp:88: error: `QFtp' has not been declared
src\CFtp.cpp:88: error: variable or field `setTransfertMode' declared void
src\CFtp.cpp:88: error: `int CFtp::setTransfertMode' is not a static member of `
class CFtp'
src\CFtp.cpp:88: error: `TransferMode' was not declared in this scope
src\CFtp.cpp:88: error: expected `,' or `;' before '{' token
src\CFtp.cpp: In member function `int CFtp::getCurrentId()':
src\CFtp.cpp:95: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `int CFtp::getCurrentCommand()':
src\CFtp.cpp:99: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `QString CFtp::getError()':
src\CFtp.cpp:103: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::changeDir(const QString&)':
src\CFtp.cpp:107: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::createDir(const QString&)':
src\CFtp.cpp:111: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::deleteDir(const QString&)':
src\CFtp.cpp:115: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::deleteFile(const QString&)':
src\CFtp.cpp:119: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::rename(const QString&, const QStrin
g&)':
src\CFtp.cpp:123: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::connectToHost()':
src\CFtp.cpp:128: error: `ftp' undeclared (first use this function)
src\CFtp.cpp:128: error: `QFtp' has not been declared
src\CFtp.cpp:128: error: `Unconnected' undeclared (first use this function)
src\CFtp.cpp:128: error: `QFtp' has not been declared
src\CFtp.cpp:128: error: `Closing' undeclared (first use this function)
src\CFtp.cpp:133: error: `mode' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::disconnectFromHost()':
src\CFtp.cpp:144: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::listFiles()':
src\CFtp.cpp:152: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::downloadFile(QString, QString)':
src\CFtp.cpp:165: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::uploadFile(QString)':
src\CFtp.cpp:180: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::downloadDir(QString, QString)':
src\CFtp.cpp:193: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::uploadDir(QString)':
src\CFtp.cpp:204: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: At global scope:
src\CFtp.cpp:217: error: expected `,' or `...' before '&' token
src\CFtp.cpp:217: error: ISO C++ forbids declaration of `QUrlInfo' with no type
src\CFtp.cpp: In member function `void CFtp::listFiles(int)':
src\CFtp.cpp:219: error: `urlInfo' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::commandFinished(int, bool)':
src\CFtp.cpp:236: error: `QFtp' has not been declared
src\CFtp.cpp:236: error: `Command' undeclared (first use this function)
src\CFtp.cpp:236: error: expected `;' before "cmd"
src\CFtp.cpp:238: error: `cmd' undeclared (first use this function)
src\CFtp.cpp:238: error: `QFtp' has not been declared
src\CFtp.cpp:238: error: `Get' undeclared (first use this function)
src\CFtp.cpp:238: error: `QFtp' has not been declared
src\CFtp.cpp:238: error: `Put' undeclared (first use this function)
src\CFtp.cpp:240: error: `ftp' undeclared (first use this function)
src\CFtp.cpp: In member function `bool CFtp::isBusy()':
src\CFtp.cpp:271: error: `ftp' undeclared (first use this function)
src\CFtp.cpp:271: error: `QFtp' has not been declared
src\CFtp.cpp:271: error: `None' undeclared (first use this function)
src\CFtp.cpp: In member function `void CFtp::cancel()':
src\CFtp.cpp:278: error: `ftp' undeclared (first use this function)
src\CFtp.cpp:278: error: `QFtp' has not been declared
src\CFtp.cpp:278: error: `None' undeclared (first use this function)
mingw32-make[1]: *** [release\CFtp.o] Error 1
mingw32-make[1]: Leaving directory `C:/Downloads/ftp/dlzip/H-FTP'
mingw32-make: *** [release] Error 2

Peux tu me dire pourquoi ça me fait ça :( j'aurais bien voulu voir ton projet :(

Merci d'avance :)
++
shenron666
Messages postés
229
Date d'inscription
dimanche 14 septembre 2003
Statut
Membre
Dernière intervention
20 août 2014

"le code source n'est pas commenté"
pas de commentaire + pas de binaire -__-
+1 pour la capture tiens
dommage, ça aurait pu m'intéresser mais pas le courage de perdre des heures à décortiquer ton code

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.