Witam, wie ktoś może jak dograć QFtp do Qt5.3 ?? Albo jakąś alternatywną bibliotekę.
@Azarien to nie o to się rozchodzi, gdyż biblioteka QFtp jest wspierana tylko do wersji 4.8 a jak ma ktoś zainstalowaną nowszą, np. tak jak ja to trzeba samemu kombinować, gdyż programiście framework-a Qt uznali, że ich biblioteka QFtp jest nie dopracowana i na razie wycofali ją.
zastępstwem dla QFtp
jest chyba QNetworkAccessManager
znalzałem taki przykład: http://qt-project.org/forums/viewthread/31758
Wie ktoś jak połączyć się z serwerem ftp za pomocą QWebView ?? Bo jak robię tak, to nie chce się łączyć.
QUrl lnk;
QWebView *qwv = new QWebView();
...
lnk = "ftp://192.168.1.100";
lnk.setUserName("login");
lnk.setPassword("haslo");
lnk.setPort(21);
qwv->setUrl(lnk);
connect(qwv, SIGNAL(loadFinished(bool)), this, SLOT(finished(bool)));
Mam pytanko, wie może ktoś o co się rozchodzi w krokach nr 4,5,6 ?? http://qt-project.org/forums/viewreply/121595/
Doszedłem do 4 kroku i taki dostałem komunikat w cmd
https://www.dropbox.com/s/0xs5f8r9ud1jfix/qt_qmake.png
Ps. Z krokiem 4 sobie poradziłem, pozostał 5 i 6.
Ps2. Udało się, ale jakieś błędy są w konsoli, i po uruchomieniu qt nie mogę zaincludować qftp
E:\Qt_5.3\5.3\Src\qtftp>E:\Qt_5.3\5.3\mingw482_32\bin\qmake.exe
E:\Qt_5.3\5.3\Src\qtftp>E:\Qt_5.3\Tools\mingw482_32\bin\mingw32-make.exe
cd src\ && ( if not exist Makefile E:\Qt_5.3\5.3\mingw482_32\bin\qmake.exe E:\Qt
_5.3\5.3\Src\qtftp\src\src.pro -o Makefile ) && E:/Qt_5.3/Tools/mingw482_32/bin/
mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'E:/Qt_5.3/5.3/Src/qtftp/src'
cd qftp\ && ( if not exist Makefile E:\Qt_5.3\5.3\mingw482_32\bin\qmake.exe E:\Q
t_5.3\5.3\Src\qtftp\src\qftp\qftp.pro -o Makefile ) && E:/Qt_5.3/Tools/mingw482_
32/bin/mingw32-make -f Makefile
mingw32-make[2]: Entering directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
E:/Qt_5.3/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release all
mingw32-make[3]: Entering directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -W
all -Wextra -DUNICODE -DQT_BUILD_FTP_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNI
NGS -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTR
INGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_U
SE_MATH_DEFINES -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
-I. -I"..\..\include" -I"..\..\include\QtFtp" -I"E:\Qt_5.3\5.3\Src\qtftp\include
\QtFtp\5.0.0" -I"E:\Qt_5.3\5.3\Src\qtftp\include\QtFtp\5.0.0\QtFtp" -I"tmp" -I"E
:\Qt_5.3\5.3\mingw482_32\include" -I"E:\Qt_5.3\5.3\mingw482_32\include\QtNetwork
" -I"E:\Qt_5.3\5.3\mingw482_32\include\QtCore" -I".moc\release" -I"E:\Qt_5.3\5.3
\mingw482_32\mkspecs\win32-g++" -o .obj\release\qftp.o qftp.cpp
g++: error: CreateProcess: No such file or directory
Makefile.Release:375: recipe for target '.obj/release/qftp.o' failed
mingw32-make[3]: *** [.obj/release/qftp.o] Error 1
mingw32-make[3]: Leaving directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
Makefile:38: recipe for target 'release-all' failed
mingw32-make[2]: *** [release-all] Error 2
mingw32-make[2]: Leaving directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
Makefile:38: recipe for target 'sub-qftp-make_first' failed
mingw32-make[1]: *** [sub-qftp-make_first] Error 2
mingw32-make[1]: Leaving directory 'E:/Qt_5.3/5.3/Src/qtftp/src'
Makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2
E:\Qt_5.3\5.3\Src\qtftp>E:\Qt_5.3\Tools\mingw482_32\bin\mingw32-make install
cd src\ && ( if not exist Makefile E:\Qt_5.3\5.3\mingw482_32\bin\qmake.exe E:\Qt
_5.3\5.3\Src\qtftp\src\src.pro -o Makefile ) && E:/Qt_5.3/Tools/mingw482_32/bin/
mingw32-make -f Makefile install
mingw32-make[1]: Entering directory 'E:/Qt_5.3/5.3/Src/qtftp/src'
cd qftp\ && ( if not exist Makefile E:\Qt_5.3\5.3\mingw482_32\bin\qmake.exe E:\Q
t_5.3\5.3\Src\qtftp\src\qftp\qftp.pro -o Makefile ) && E:/Qt_5.3/Tools/mingw482_
32/bin/mingw32-make -f Makefile install
mingw32-make[2]: Entering directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
E:/Qt_5.3/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release install
mingw32-make[3]: Entering directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -W
all -Wextra -DUNICODE -DQT_BUILD_FTP_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNI
NGS -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTR
INGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_U
SE_MATH_DEFINES -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
-I. -I"..\..\include" -I"..\..\include\QtFtp" -I"E:\Qt_5.3\5.3\Src\qtftp\include
\QtFtp\5.0.0" -I"E:\Qt_5.3\5.3\Src\qtftp\include\QtFtp\5.0.0\QtFtp" -I"tmp" -I"E
:\Qt_5.3\5.3\mingw482_32\include" -I"E:\Qt_5.3\5.3\mingw482_32\include\QtNetwork
" -I"E:\Qt_5.3\5.3\mingw482_32\include\QtCore" -I".moc\release" -I"E:\Qt_5.3\5.3
\mingw482_32\mkspecs\win32-g++" -o .obj\release\qftp.o qftp.cpp
g++: error: CreateProcess: No such file or directory
Makefile.Release:375: recipe for target '.obj/release/qftp.o' failed
mingw32-make[3]: *** [.obj/release/qftp.o] Error 1
mingw32-make[3]: Leaving directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
Makefile:44: recipe for target 'release-install' failed
mingw32-make[2]: *** [release-install] Error 2
mingw32-make[2]: Leaving directory 'E:/Qt_5.3/5.3/Src/qtftp/src/qftp'
Makefile:50: recipe for target 'sub-qftp-install_subtargets' failed
mingw32-make[1]: *** [sub-qftp-install_subtargets] Error 2
mingw32-make[1]: Leaving directory 'E:/Qt_5.3/5.3/Src/qtftp/src'
Makefile:52: recipe for target 'sub-src-install_subtargets' failed
mingw32-make: *** [sub-src-install_subtargets] Error 2
E:\Qt_5.3\5.3\Src\qtftp>
Ps3. Problem rozwiązany, zainstalowałem w folderze obok Qt 4.8.1