Bonjour,
je voudrais utiliser pour mon programme sous qt en c++ quazip et twain.
Hors pour utiliser par exemple quazip;
il faut le télécharger : fait
il faut télécharger zlib : fait
il faut indiquer le chemin de zlib a quazip dans le .pro et configurer quelques petites choses : fait ????
voici mon quazip.pro :
quand j'execute le quazip.pro : une fenetre s'ouvre : executable introuvable, merci d'en specifier un.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 TEMPLATE = lib CONFIG += qt warn_on QT -= gui DEPENDPATH += . INCLUDEPATH += /usr/local/zlib/include LIBS += -L/usr/local/zlib/lib DEFINES += QUAZIP_BUILD CONFIG(staticlib): DEFINES += QUAZIP_STATIC # Input HEADERS += \ crypt.h\ ioapi.h\ JlCompress.h\ quaadler32.h\ quachecksum32.h\ quacrc32.h\ quazip.h\ quazipfile.h\ quazipfileinfo.h\ quazipnewinfo.h\ quazip_global.h\ unzip.h\ zip.h\ SOURCES += *.c *.cpp unix:!symbian { headers.path=$$PREFIX/include/quazip headers.files=$$HEADERS target.path=$$PREFIX/lib INSTALLS += headers target OBJECTS_DIR=.obj MOC_DIR=.moc } win32 { headers.path=$$PREFIX/include/quazip headers.files=$$HEADERS target.path=$$PREFIX/lib INSTALLS += headers target } symbian { # Note, on Symbian you may run into troubles with LGPL. # The point is, if your application uses some version of QuaZip, # and a newer binary compatible version of QuaZip is released, then # the users of your application must be able to relink it with the # new QuaZip version. For example, to take advantage of some QuaZip # bug fixes. # This is probably best achieved by building QuaZip as a static # library and providing linkable object files of your application, # so users can relink it. CONFIG += staticlib CONFIG += debug_and_release LIBS += -lezip #Export headers to SDK Epoc32/include directory exportheaders.sources = $$HEADERS exportheaders.path = quazip for(header, exportheaders.sources) { BLD_INF_RULES.prj_exports += "$$header $$exportheaders.path/$$basename(header)" } }
cependant un quazip.dll a été crée, si je la copie dans mon projet et que je modifie le .pro de mon projet comme ci-dessous, il ne reconnais pas quazip (#include <quazip> dans cpp pas reconnu) :
En résumé, je ne sais pas comment sous Qt, compiler correctement cette bibliothèque (ou d'autres d'ailleurs) et comment et ou incorporer cette bibliothèque pour l'utiliser dans mon projet !!!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 QT = core gui\ xml\ phonon\ network\ quazip TARGET = QtGestXavMedias TEMPLATE = app DEPENDPATH += . build src ui SOURCES = main.cpp\ QtGestXavMedias.cpp\ GXMGestionUtilisateurs.cpp\ window.cpp\ filtrer.cpp\ ModifFiches.cpp\ mediaplayer.cpp\ httpwindow.cpp HEADERS = QtGestXavMedias.h\ GXMGestionUtilisateurs.h\ window.h\ filtrer.h\ ModifFiches.h\ mediaplayer.h\ httpwindow.h FORMS = QtGestXavMedias.ui\ GXMGestionUtilisateurs.ui\ ModifFiches.ui\ settings.ui\ authenticationdialog.ui RESOURCES = QtGestXavMedias.qrc RC_FILE = ressources.rc !win32:CONFIG += CONSOLE target.path = QtGestXavMedias sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.html *.doc images sources.path = QtGestXavMedias INSTALLS += target sources
Cordialement
Partager