CLIENT FTP (QT)

cs_Mr.X Messages postés 118 Date d'inscription mercredi 22 octobre 2003 Statut Membre Dernière intervention 2 novembre 2007 - 13 févr. 2007 à 13:37
cs_bilal Messages postés 87 Date d'inscription dimanche 2 février 2003 Statut Membre Dernière intervention 4 mars 2010 - 7 avril 2008 à 19:39
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/41435-client-ftp-qt

cs_bilal Messages postés 87 Date d'inscription dimanche 2 février 2003 Statut Membre Dernière intervention 4 mars 2010
7 avril 2008 à 19:39
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
20 nov. 2007 à 23:24
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
20 nov. 2007 à 22:44
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
20 nov. 2007 à 22:28
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
24 juil. 2007 à 11:09
"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
cs_pakalolo Messages postés 2 Date d'inscription mardi 14 juin 2005 Statut Membre Dernière intervention 2 juin 2007
2 juin 2007 à 00:57
t trop un geek lol
cs_Mr.X Messages postés 118 Date d'inscription mercredi 22 octobre 2003 Statut Membre Dernière intervention 2 novembre 2007
13 févr. 2007 à 13:37
Très bon boulot, j'imagine le temps que sa a du prendre ... respect.
Rejoignez-nous