Partage
  • Partager sur Facebook
  • Partager sur Twitter

[Qt] Dll ?

    31 octobre 2009 à 9:34:01

    Bonjour.

    J'ai ajouté à un code une partie 'web'.
    Donc, on me demande de mettre les dll :
    - mingwm10
    - QtCore4
    - QtGui4
    - QtWebKit4
    - QtNetwork4

    Seulement, lorsque je lance, il me met l'erreur du QtCore4 du debug : 'Le point d'entrée _Z blabla est introuvable dans la bibliothèque de liaison dynamique QtCore4.dll'
    Je sais ce qu'il faut faire, je vais chercher celle de 2.61 Mo.
    Et quand je mets cette autre QtCore4, ils me mettent :

    Le point d'entrée de procédure ?append@?$QVector@VQPoint@@@QAEXABVQPoint@@@Z est introuvable dans la bibliothèque de liaisons dynamique QtCore4.dll.


    Bref, soit je mets l'un et l'ai un bug, soit je mets l'autre et j'ai aussi un bug ?
    Comment faire ??
    Recompiler Qt en static ? x)

    Merci d'avance ! ;)
    • Partager sur Facebook
    • Partager sur Twitter
      31 octobre 2009 à 9:43:47

      essaye avec les _d.dll des fois elles marchent.
      • Partager sur Facebook
      • Partager sur Twitter

      "J'aimerai faire un jeu, mais pas un gros jeu hein. Un petit truc simple du style MMO."

        31 octobre 2009 à 9:56:04

        pre/>
        qmake
        Could not find mkspecs for your QMAKESPEC(win32-g++) after trying:
                C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cr
        ate_more/Troll/4.5.0/qt\mkspecs
        Error processing project file: C:/chemindemonprojet monprojet.pro
        
        mingw32-make release
        Could not find mkspecs for your QMAKESPEC(win32-g++) after trying:
                C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cr
        ate_more/Troll/4.5.0/qt\mkspecs
        Error processing project file: C:/chemindemonprojet/monprojet.pro


        Que dois-je faire ? o_Opre>-no-libpng ......... Do not compile in PNG support.     -qt-libpng ......... Use the libpng bundled with Qt.  +  -system-libpng ..... Use libpng from the operating system.                          See http://www.libpng.org/pub/png     -no-libmng ......... Do not compile in MNG support.     -qt-libmng ......... Use the libmng bundled with Qt.  +  -system-libmng ..... Use libmng from the operating system.                          See See http://www.libmng.com     -no-libtiff ........ Do not compile the plugin for TIFF support.     -qt-libtiff ........ Use the libtiff bundled with Qt.  +  -system-libtiff .... Use libtiff from the operating system.                          See http://www.libtiff.org     -no-libjpeg ........ Do not compile the plugin for JPEG support.     -qt-libjpeg ........ Use the libjpeg bundled with Qt.  +  -system-libjpeg .... Use libjpeg from the operating system.                          See http://www.ijg.org Qt for Windows only:     -no-dsp ............ Do not generate VC++ .dsp files.  *  -dsp ............... Generate VC++ .dsp files, only if spec "win32-msvc".     -no-vcproj ......... Do not generate VC++ .vcproj files.  *  -vcproj ............ Generate VC++ .vcproj files, only if platform                          "win32-msvc.net".     -no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to                          custom build steps.  +  -incredibuild-xge .. Add IncrediBuild XGE distribution commands to custom                          build steps. This will distribute MOC and UIC steps,                          and other custom buildsteps which are added to the                          INCREDIBUILD_XGE variable.                          (The IncrediBuild distribution commands are only added                          to Visual Studio projects)     -no-plugin-manifests Do not embed manifests in plugins.  *  -plugin-manifests .. Embed manifests in plugins.     -no-qmake .......... Do not compile qmake.  *  -qmake ............. Compile qmake.     -dont-process ...... Do not generate Makefiles/Project files. This will                          override -no-fast if specified.  *  -process ........... Generate Makefiles/Project files.     -no-rtti ........... Do not compile runtime type information.  *  -rtti .............. Compile runtime type information.     -no-mmx ............ Do not compile with use of MMX instructions  +  -mmx ............... Compile with use of MMX instructions     -no-3dnow .......... Do not compile with use of 3DNOW instructions  +  -3dnow ............. Compile with use of 3DNOW instructions     -no-sse ............ Do not compile with use of SSE instructions  +  -sse ............... Compile with use of SSE instructions     -no-sse2 ........... Do not compile with use of SSE2 instructions  +  -sse2 .............. Compile with use of SSE2 instructions  +  -direct3d .......... Compile in Direct3D support (experimental - see                          INSTALL for more info)     -no-openssl ........ Do not compile in OpenSSL support  +  -openssl ........... Compile in run-time OpenSSL support     -openssl-linked .... Compile in linked OpenSSL support     -no-dbus ........... Do not compile in D-Bus support  +  -dbus .............. Compile in D-Bus support and load libdbus-1 dynamicall                          y     -dbus-linked ....... Compile in D-Bus support and link to libdbus-1     -no-phonon ......... Do not compile in the Phonon module  +  -phonon ............ Compile the Phonon module (Phonon is built if a decent                          C++ compiler is used.)     -no-phonon-backend . Do not compile the platform-specific Phonon backend-pl                          ugin  *  -phonon-backend .... Compile in the platform-specific Phonon backend-plugin     -no-webkit ......... Do not compile in the WebKit module  +  -webkit ............ Compile in the WebKit module (WebKit is built if a                          decent C++ compiler is used.)     -no-scripttools .... Do not build the QtScriptTools module.  *  -scripttools ....... Build the QtScriptTools module.     -arch <arch> ....... Specify an architecture.                          Available values for <arch>:  *                         windows                            windowsce                            boundschecker                            generic     -no-style-<style> .. Disable <style> entirely.     -qt-style-<style> .. Enable <style> in the Qt Library.                          Available styles:  *                         windows  +                         windowsxp  +                         windowsvista  *                         plastique  *                         cleanlooks  *                         motif  *                         cde                            windowsce                            windowsmobile     -loadconfig <config> Run configure with the parameters from file configure_                          <config>.cache.     -saveconfig <config> Run configure and save the parameters in file                          configure_<config>.cache.     -redo .............. Run configure with the same parameters as last time. Qt for Windows CE only:     -no-iwmmxt ......... Do not compile with use of IWMMXT instructions  +  -iwmmxt ............ Do compile with use of IWMMXT instructions (Qt for                          Windows CE on Arm only)  *  -no-crt ............ Do not add the C runtime to default deployment rules     -qt-crt ............ Qt identifies C runtime during project generation     -crt <path> ........ Specify path to C runtime used for project generation.     -no-cetest ......... Do not compile Windows CE remote test application  +  -cetest ............ Compile Windows CE remote test application     -signature <file> .. Use file for signing the target project     -opengl-es-cm ...... Enable support for OpenGL ES Common     -opengl-es-cl ...... Enable support for OpenGL ES Common Lite  *  -phonon-wince-ds9 .. Enable Phonon Direct Show 9 backend for Windows CE C:\Qt\2009.01\qt>configure.exe -static This is the Qt for Windows Open Source Edition. You are licensed to use this software under the terms of the GNU Lesser Public License (LGPL) version 2.1 or GNU General Public License ( GPL) version 3. Type 'L' to view the GNU Lesser General Public License version 2.1 (LGPLv2.1). Type '3' to view the GNU General Public License version 3 (GPLv3). Type 'y' to accept this license offer. Type 'n' to decline this license offer. Do you accept the terms of the license? y Setting Direct3D to NO, since the proper Direct3D SDK was not detected. Make sure you have the Direct3D SDK installed, and that you have run the <path to SDK>\Utilities\Bin\dx_setenv.cmd script. The D3D SDK library path *needs* to appear before the Platform SDK library path in your LIB environment variable. All the required DirectShow/Direct3D files couldn't be found. Make sure you have either the platform SDK AND the DirectX SDK or the Windows SD K installed. If you have the DirectX SDK installed, please make sure that you have run the <p ath to SDK>\SetEnv.Cmd script. Environment:     INCLUDE=       Unset     LIB=       Unset     PATH=       c:\Qt\2009.01\qt\bin       c:\Qt\2009.01\bin       c:\Qt\2009.01\mingw\bin       C:\WINDOWS\System32 You are licensed to use this software under the terms of the GNU LGPL version 2. 1 or the GNU GPL version 3. See C:/Qt/2009.01/qt/LICENSE.LGPL  or C:/Qt/2009.01/qt/LICENSE.GPL3 Configuration:     dist-config     large-config     medium-config     minimal-config     small-config     full-config     build_all     debug Qt Configuration:     release     debug     zlib     gif     png     accessibility     qt3support     opengl     ipv6     scripttools     xmlpatterns     webkit     svg     minimal-config     small-config     medium-config     large-config     full-config QMAKESPEC...................win32-g++ (env) Architecture................windows Maketool....................mingw32-make Debug symbols...............yes Accessibility support.......yes STL support.................yes Exception support...........yes RTTI support................yes MMX support.................no 3DNOW support...............no SSE support.................no SSE2 support................no IWMMXT support..............no OpenGL support..............yes Direct3D support............no OpenSSL support.............no QtDBus support..............no QtXmlPatterns support.......yes Phonon support..............no WebKit support..............yes QtScriptTools support.......yes Graphics System.............raster Qt3 compatibility...........yes Third Party Libraries:     ZLIB support............qt     GIF support.............yes     TIFF support............plugin     JPEG support............plugin     PNG support.............qt     MNG support.............plugin Styles:     Windows.................yes     Windows XP..............yes     Windows Vista...........yes     Plastique...............yes     Cleanlooks..............yes     Motif...................yes     CDE.....................yes     Windows CE..............no     Windows Mobile..........no Sql Drivers:     ODBC....................no     MySQL...................no     OCI.....................no     PostgreSQL..............no     TDS.....................no     DB2.....................no     SQLite..................plugin (qt)     SQLite2.................no     InterBase...............no Sources are in..............C:\Qt\2009.01\qt Build is done in............C:\Qt\2009.01\qt Install prefix..............C:\Qt\2009.01\qt Headers installed to........C:/Qt/2009.01/qt/include Libraries installed to......C:/Qt/2009.01/qt/lib Plugins installed to........C:/Qt/2009.01/qt/plugins Binaries installed to.......C:/Qt/2009.01/qt/bin Docs installed to...........C:/Qt/2009.01/qt/doc Data installed to...........C:/Qt/2009.01/qt Translations installed to...C:/Qt/2009.01/qt/translations Examples installed to.......C:/Qt/2009.01/qt/examples Demos installed to..........C:/Qt/2009.01/qt/demos WARNING: Using static linking will disable the use of plugins.          Make sure you compile ALL needed modules into the library. Creating qmake... g++ -c -oqconfig.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige nerators/mac -IC:\Qt\2009.01\qt/include -IC:\Qt\2009.01\qt/include/QtCore -IC:\Q t\2009.01\qt/include -IC:\Qt\2009.01\qt/include/QtCore -IC:\Qt\2009.01\qt/src/co relib/global -IC:\Qt\2009.01\qt/include/QtScript -IC:\Qt\2009.01\qt/mkspecs/win3 2-g++ -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE - DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_Q MAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQM AKE_OPENSOURCE_EDITION C:\Qt\2009.01\qt/src/corelib/global/qconfig.cpp g++  -o qmake.exe project.o main.o makefile.o unixmake.o unixmake2.o mingw_make. o option.o winmakefile.o projectgenerator.o property.o meta.o makefiledeps.o met amakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_dsp.o m svc_vcproj.o msvc_objectmodel.o qbitarray.o qbuffer.o qbytearray.o qcryptographi chash.o qvsnprintf.o qbytearraymatcher.o qconfig.o qdatetime.o qdir.o qdiriterat or.o qfile.o qtemporaryfile.o qfileinfo.o qabstractfileengine.o qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_win.o qfsfileengine_iterator_win.o qgloba l.o qhash.o qiodevice.o qlibraryinfo.o qlistdata.o qlinkedlist.o qlocale.o qmall oc.o qmap.o qregexp.o qstring.o qstringlist.o qtextstream.o quuid.o qvector.o qu rl.o qsettings.o qsettings_win.o qvariant.o qmetatype.o qnumeric.o qscriptasm.o qscriptast.o qscriptastvisitor.o qscriptcompiler.o qscriptecmaarray.o qscriptecm aboolean.o qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o qscriptecma global.o qscriptecmamath.o qscriptecmanumber.o qscriptecmaobject.o qscriptecmare gexp.o qscriptecmastring.o qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o  qscriptengine_p.o qscriptengineagent.o qscriptextenumeration.o qscriptextvarian t.o qscriptcontext.o qscriptcontextinfo.o qscriptfunction.o qscriptgrammar.o qsc riptlexer.o qscriptclassdata.o qscriptparser.o qscriptprettypretty.o qscriptsynt axchecker.o qscriptclass.o qscriptclasspropertyiterator.o qscriptstring.o qscrip tvalue.o qscriptvalueimpl.o qscriptvalueiterator.o qscriptvalueiteratorimpl.o -l ole32 -luuid copy qmake.exe C:\Qt\2009.01\qt\bin\qmake.exe         1 fichier(s) copié(s). Creating makefiles in src... Generating Makefiles... Could not find mkspecs for your QMAKESPEC(win32-g++) after trying:         C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cre ate_more/Troll/4.5.0/qt\mkspecs Error processing project file: C:/Qt/2009.01/qt/projects.pro Qmake failed, return code 3

        Et quand je compile maintenant :
        • Partager sur Facebook
        • Partager sur Twitter
          31 octobre 2009 à 9:59:40

          Bonjour,

          Il faut mettre impérativement celles ( :-° ) qui se trouvent dans qt/bin. (les DLLs)

          (C:\Qt\xxxx.xx\qt\bin)

          Ca devrait marcher après. (si tu avais mis les DLLs de C:\Qt\xxxx.xx\bin)
          • Partager sur Facebook
          • Partager sur Twitter
            31 octobre 2009 à 10:02:36

            Précédent post édité ^^"

            Et avec le 'core4 de c:/qt/2009.01/bin toujours la même erreur u_u
            • Partager sur Facebook
            • Partager sur Twitter
              31 octobre 2009 à 10:09:45

              Il faut mettre celles de C:\Qt\xxxx.xx\qt\bin.
              • Partager sur Facebook
              • Partager sur Twitter
                31 octobre 2009 à 10:10:44

                Citation : Shydow

                Précédent post édité ^^"

                Et avec le 'core4 de c:/qt/2009.01/bin toujours la même erreur u_u

                en même temps tu lis de travers ... c'est pas dans qt/xxxx.xx/bin qu'il faut prendre les DLL mais dans qt/xxxx.xx/qt/bin ;)

                EDIT: grilled par algo

                • Partager sur Facebook
                • Partager sur Twitter
                  31 octobre 2009 à 12:28:26

                  EDIT : Et m**** !!!!!

                  J'ai modifié qtenv.bat, maintenant, ça remarche.
                  Mais il ne sait pas où sont mes headers !

                  mingw32-
                  make release
                  mingw32-make -f Makefile.Release
                  mingw32-make[1]: Entering directory `C:/Documents and Settings/Remi/Mes document
                  s/BrainFunge Winner XP Win32'
                  g++ -c -O2 -Wall -fno-exceptions -fno-rtti -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT
                  _NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NE
                  EDS_QMAIN -I"c:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_les
                  s_create_more\Troll\4.5.0\qt\include\QtCore" -I"c:\qt-greenhouse\Trolltech\Code_
                  less_create_more\Trolltech\Code_less_create_more\Troll\4.5.0\qt\include\QtGui" -
                  I"c:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_mo
                  re\Troll\4.5.0\qt\include\QtWebKit" -I"c:\qt-greenhouse\Trolltech\Code_less_crea
                  te_more\Trolltech\Code_less_create_more\Troll\4.5.0\qt\include" -I"." -I"c:\qt-g
                  reenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\
                  4.5.0\qt\include\ActiveQt" -I"release" -I"." -I"..\..\..\..\Qt\2009.01\qt\mkspec
                  s\win32-g++" -o release\FenPrincipale.o FenPrincipale.cpp
                  In file included from FenPrincipale.cpp:1:
                  FenPrincipale.h:4:17: QtGui: No such file or directory
                  FenPrincipale.h:5:20: QtWebKit: No such file or directory
                  In file included from FenPrincipale.h:6,
                                   from FenPrincipale.cpp:1:
                  ui_untitled2.h:13:27: QtCore/QVariant: No such file or directory
                  ui_untitled2.h:14:25: QtGui/QAction: No such file or directory
                  ui_untitled2.h:15:30: QtGui/QApplication: No such file or directory
                  ui_untitled2.h:16:30: QtGui/QButtonGroup: No such file or directory
                  ui_untitled2.h:17:29: QtGui/QHeaderView: No such file or directory
                  ui_untitled2.h:18:24: QtGui/QLabel: No such file or directory
                  ui_untitled2.h:19:29: QtGui/QMainWindow: No such file or directory
                  ui_untitled2.h:20:23: QtGui/QMenu: No such file or directory
                  ui_untitled2.h:21:26: QtGui/QMenuBar: No such file or directory
                  ui_untitled2.h:22:28: QtGui/QStatusBar: No such file or directory
                  ui_untitled2.h:23:27: QtGui/QTextEdit: No such file or directory
                  ui_untitled2.h:24:26: QtGui/QToolBar: No such file or directory
                  ui_untitled2.h:25:25: QtGui/QWidget: No such file or directory
                  In file included from FenPrincipale.h:6,
                                   from FenPrincipale.cpp:1:
                  ui_untitled2.h:29: error: expected constructor, destructor, or type conversion b
                  efore "class"
                  ui_untitled2.h:671: error: expected class-name before '{' token
                  In file included from FenPrincipale.h:7,
                                   from FenPrincipale.cpp:1:
                  Highlighter.h:4:31: QSyntaxHighlighter: No such file or directory
                  Highlighter.h:6:18: QHash: No such file or directory
                  Highlighter.h:7:28: QTextCharFormat: No such file or directory
                  In file included from FenPrincipale.h:7,
                                   from FenPrincipale.cpp:1:
                  Highlighter.h:10: error: expected constructor, destructor, or type conversion be
                  fore "class"
                  Highlighter.h:13: error: expected class-name before '{' token
                  Highlighter.h:16: error: ISO C++ forbids declaration of `Q_OBJECT' with no type
                  Highlighter.h:16: error: expected `;' before "public"
                  Highlighter.h:20: error: expected `,' or `...' before '&' token
                  Highlighter.h:20: error: ISO C++ forbids declaration of `QString' with no type
                  Highlighter.h:25: error: `QRegExp' does not name a type
                  Highlighter.h:26: error: `QTextCharFormat' does not name a type
                  Highlighter.h:28: error: ISO C++ forbids declaration of `QVector' with no type
                  Highlighter.h:28: error: expected `;' before '<' token
                  Highlighter.h:30: error: `QRegExp' does not name a type
                  Highlighter.h:31: error: `QRegExp' does not name a type
                  Highlighter.h:33: error: `QTextCharFormat' does not name a type
                  Highlighter.h:34: error: `QTextCharFormat' does not name a type
                  Highlighter.h:35: error: `QTextCharFormat' does not name a type
                  Highlighter.h:36: error: `QTextCharFormat' does not name a type
                  Highlighter.h:37: error: `QTextCharFormat' does not name a type
                  Highlighter.h:38: error: `QTextCharFormat' does not name a type
                  Highlighter.h:39: error: `QTextCharFormat' does not name a type
                  Highlighter.h:40: error: `QTextCharFormat' does not name a type
                  Highlighter.h:41: error: `QTextCharFormat' does not name a type
                  Highlighter.h:42: error: `QTextCharFormat' does not name a type
                  Highlighter.h:45:8: warning: no newline at end of file
                  In file included from FenPrincipale.cpp:1:
                  FenPrincipale.h:10: error: expected class-name before '{' token
                  FenPrincipale.h:13: error: ISO C++ forbids declaration of `Q_OBJECT' with no typ
                  e
                  FenPrincipale.h:13: error: expected `;' before "public"
                  FenPrincipale.h:16: error: expected `:' before "slots"
                  FenPrincipale.h:17: error: expected primary-expression before "void"
                  FenPrincipale.h:17: error: ISO C++ forbids declaration of `slots' with no type
                  FenPrincipale.h:17: error: expected `;' before "void"
                  FenPrincipale.cpp:5: error: expected `)' before '*' token
                  FenPrincipale.cpp:64: error: no `void FenPrincipale::openOperTable()' member fun
                  ction declared in class `FenPrincipale'
                  FenPrincipale.cpp: In member function `void FenPrincipale::openOperTable()':
                  FenPrincipale.cpp:65: error: `system' was not declared in this scope
                  FenPrincipale.cpp:65: warning: unused variable 'system'
                  FenPrincipale.cpp: In member function `void FenPrincipale::aboutBF()':
                  FenPrincipale.cpp:70: error: `system' was not declared in this scope
                  FenPrincipale.cpp:70: warning: unused variable 'system'
                  FenPrincipale.cpp: In member function `void FenPrincipale::openfile()':
                  FenPrincipale.cpp:75: error: `QString' was not declared in this scope
                  FenPrincipale.cpp:75: error: expected `;' before "fichier"
                  FenPrincipale.cpp:76: error: `QFile' was not declared in this scope
                  FenPrincipale.cpp:76: error: expected `;' before "myFile"
                  FenPrincipale.cpp:77: error: expected `;' before "file2"
                  FenPrincipale.cpp:78: error: `file2' was not declared in this scope
                  FenPrincipale.cpp:78: error: `QIODevice' has not been declared
                  FenPrincipale.cpp:78: error: `WriteOnly' was not declared in this scope
                  FenPrincipale.cpp:79: error: `QTextStream' was not declared in this scope
                  FenPrincipale.cpp:79: error: expected `;' before "flux"
                  FenPrincipale.cpp:80: error: `flux' was not declared in this scope
                  FenPrincipale.cpp:80: error: `fichier' was not declared in this scope
                  FenPrincipale.cpp:82: error: expected `;' before "texte"
                  FenPrincipale.cpp:83: error: `myFile' was not declared in this scope
                  FenPrincipale.cpp:83: error: `QIODevice' has not been declared
                  FenPrincipale.cpp:83: error: `ReadOnly' was not declared in this scope
                  FenPrincipale.cpp:85: error: `texte' was not declared in this scope
                  FenPrincipale.cpp:85: warning: unused variable 'texte'
                  FenPrincipale.cpp:88: error: `texte' was not declared in this scope
                  FenPrincipale.cpp:88: warning: unused variable 'texte'
                  FenPrincipale.cpp:83: warning: unused variable 'ReadOnly'
                  FenPrincipale.cpp:89: error: 'class Ui::FenPrincipale' has no member named 'text
                  Edit_2'
                  FenPrincipale.cpp:89: error: `texte' was not declared in this scope
                  FenPrincipale.cpp:78: warning: unused variable 'WriteOnly'
                  FenPrincipale.cpp:79: warning: unused variable 'QTextStream'
                  FenPrincipale.cpp:80: warning: unused variable 'flux'
                  FenPrincipale.cpp:80: warning: unused variable 'fichier'
                  FenPrincipale.cpp:89: warning: unused variable 'texte'
                  FenPrincipale.cpp: In member function `void FenPrincipale::savefile()':
                  FenPrincipale.cpp:95: error: `QFile' was not declared in this scope
                  FenPrincipale.cpp:95: error: expected `;' before "oh_file"
                  FenPrincipale.cpp:96: error: `oh_file' was not declared in this scope
                  FenPrincipale.cpp:96: error: `QIODevice' has not been declared
                  FenPrincipale.cpp:96: error: `ReadOnly' was not declared in this scope
                  FenPrincipale.cpp:98: error: `QString' was not declared in this scope
                  FenPrincipale.cpp:98: error: expected `;' before "fichier"
                  FenPrincipale.cpp:100: error: `QTextStream' was not declared in this scope
                  FenPrincipale.cpp:100: error: expected `;' before "flux"
                  FenPrincipale.cpp:102: error: `fichier' was not declared in this scope
                  FenPrincipale.cpp:102: error: `flux' was not declared in this scope
                  FenPrincipale.cpp:104: error: expected `;' before "saved"
                  FenPrincipale.cpp:105: error: `saved' was not declared in this scope
                  FenPrincipale.cpp:105: error: `QIODevice' has not been declared
                  FenPrincipale.cpp:105: error: `WriteOnly' was not declared in this scope
                  FenPrincipale.cpp:105: error: `QIODevice' has not been declared
                  FenPrincipale.cpp:105: error: `Truncate' was not declared in this scope
                  FenPrincipale.cpp:107: error: expected `;' before "flux2"
                  FenPrincipale.cpp:109: error: expected `;' before "saving"
                  FenPrincipale.cpp:110: error: `flux2' was not declared in this scope
                  FenPrincipale.cpp:110: error: `saving' was not declared in this scope
                  FenPrincipale.cpp:96: warning: unused variable 'ReadOnly'
                  FenPrincipale.cpp:102: warning: unused variable 'fichier'
                  FenPrincipale.cpp:102: warning: unused variable 'flux'
                  FenPrincipale.cpp:105: warning: unused variable 'WriteOnly'
                  FenPrincipale.cpp:105: warning: unused variable 'Truncate'
                  FenPrincipale.cpp:110: warning: unused variable 'flux2'
                  FenPrincipale.cpp:110: warning: unused variable 'saving'
                  FenPrincipale.cpp: In member function `void FenPrincipale::newfile()':
                  FenPrincipale.cpp:120: error: 'class Ui::FenPrincipale' has no member named 'tex
                  tEdit_2'
                  FenPrincipale.cpp:121: error: `QString' was not declared in this scope
                  FenPrincipale.cpp:121: error: expected `;' before "file"
                  FenPrincipale.cpp:122: error: `QFile' was not declared in this scope
                  FenPrincipale.cpp:122: error: expected `;' before "fichier"
                  FenPrincipale.cpp:123: error: `fichier' was not declared in this scope
                  FenPrincipale.cpp:123: error: `QIODevice' has not been declared
                  FenPrincipale.cpp:123: error: `WriteOnly' was not declared in this scope
                  FenPrincipale.cpp:125: error: expected `;' before "laster"
                  FenPrincipale.cpp:126: error: `laster' was not declared in this scope
                  FenPrincipale.cpp:126: error: `QIODevice' has not been declared
                  FenPrincipale.cpp:127: error: `QTextStream' was not declared in this scope
                  FenPrincipale.cpp:127: error: expected `;' before "flux"
                  FenPrincipale.cpp:128: error: `flux' was not declared in this scope
                  FenPrincipale.cpp:128: error: `file' was not declared in this scope
                  FenPrincipale.cpp:121: warning: unused variable 'QString'
                  FenPrincipale.cpp:127: warning: unused variable 'QTextStream'
                  FenPrincipale.cpp:128: warning: unused variable 'flux'
                  FenPrincipale.cpp:128: warning: unused variable 'file'
                  FenPrincipale.cpp: In member function `void FenPrincipale::helpfile()':
                  FenPrincipale.cpp:134: error: `system' was not declared in this scope
                  FenPrincipale.cpp:134: warning: unused variable 'system'
                  FenPrincipale.cpp: In member function `void FenPrincipale::quitter()':
                  FenPrincipale.cpp:139: error: `QMessageBox' has not been declared
                  FenPrincipale.cpp:139: error: `QMessageBox' has not been declared
                  FenPrincipale.cpp:139: error: `Yes' was not declared in this scope
                  FenPrincipale.cpp:139: error: `QMessageBox' has not been declared
                  FenPrincipale.cpp:139: error: `No' was not declared in this scope
                  FenPrincipale.cpp:139: error: `warning' was not declared in this scope
                  FenPrincipale.cpp:140: error: `QMessageBox' has not been declared
                  FenPrincipale.cpp:142: error: `close' was not declared in this scope
                  FenPrincipale.cpp:142: warning: unused variable 'close'
                  FenPrincipale.cpp:144: error: `QMessageBox' has not been declared
                  FenPrincipale.cpp:139: warning: unused variable 'warning'
                  FenPrincipale.cpp: At global scope:
                  FenPrincipale.cpp:151: error: no `void FenPrincipale::readBefng()' member functi
                  on declared in class `FenPrincipale'
                  FenPrincipale.cpp:151: error: `void FenPrincipale::readBefng()' and `void FenPri
                  ncipale::readBefng()' cannot be overloaded
                  FenPrincipale.cpp: In member function `void FenPrincipale::readBefng()':
                  FenPrincipale.cpp:152: error: `QWebView' was not declared in this scope
                  FenPrincipale.cpp:152: error: expected `;' before "pageWeb"
                  FenPrincipale.cpp:153: error: `pageWeb' was not declared in this scope
                  FenPrincipale.cpp:153: error: `QUrl' was not declared in this scope
                  FenPrincipale.cpp:152: warning: unused variable 'QWebView'
                  FenPrincipale.cpp:153: warning: unused variable 'pageWeb'
                  FenPrincipale.cpp:153: warning: unused variable 'QUrl'
                  mingw32-make[1]: *** [release/FenPrincipale.o] Error 1
                  mingw32-make[1]: Leaving directory `C:/Documents and Settings/Remi/Mes documents
                  /BrainFunge Winner XP Win32'
                  mingw32-make: *** [release] Error 2


                  Marre !!!!!
                  Un peu d'aide ?

                  Le qtenv.bat contient :
                  @echo off
                  rem
                  rem This file is generated
                  rem
                  echo Setting up a MinGW/Qt only environment...
                  echo -- QTDIR set to c:\Qt\2009.01\qt
                  echo -- PATH set to c:\Qt\2009.01\qt\bin
                  echo -- Adding c:\Qt\2009.01\bin to PATH
                  echo -- Adding %SystemRoot%\System32 to PATH
                  echo -- QMAKESPEC set to win32-g++
                  set QTDIR=c:\Qt\2009.01\qt
                  set PATH=c:\Qt\2009.01\qt\bin
                  set PATH=%PATH%;c:\Qt\2009.01\bin;c:\Qt\2009.01\mingw\bin
                  set PATH=%PATH%;%SystemRoot%\System32
                  set QMAKESPEC=C:\Qt\2009.01\qt\mkspecs\win32-g++
                  




                  RE-EDIT : Méthode Dev-Cpp trouvée.
                  Template :
                  [Template]
                  ver=1
                  Name=Qt
                  Icon=Qt.ico
                  Description=Create a GUI using the Qt library.
                  Catagory=GUI
                  
                  [Unit0]
                  CppName=main.cpp
                  Cpp=qt_cpp.txt
                  
                  [Project]
                  UnitCount=1
                  Type=0
                  CppCompiler=-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -O2 -frtti -fexceptions -mthreads -Wall $(DEFINES) -I"..\..\..\..\Qt\2009.01\include\QtCore" -I"..\..\..\..\Qt\2009.01\include\QtCore" -I"..\..\..\..\Qt\2009.01\include\QtGui" -I"..\..\..\..\Qt\2009.01\include\QtGui" -I"..\..\..\..\Qt\2009.01\include" -I"." -I"c:\Qt\2009.01\include\ActiveQt" -I"release" -I"." -I"..\..\..\..\Qt\2009.01\mkspecs\win32-g++"
                  Linker=C:/Qt/2009.01/lib/libQt3Support4.a C:/Qt/2009.01/lib/libQtAssistantClient4.a C:/Qt/2009.01/lib/libQtCore4.a C:/Qt/2009.01/lib/libQtDesigner4.a C:/Qt/2009.01/lib/libQtDesignerComponents4.a C:/Qt/2009.01/lib/libQtGui4.a C:/Qt/2009.01/lib/libqtmain.a C:/Qt/2009.01/lib/libQtNetwork4.a C:/Qt/2009.01/lib/libQtOpenGL4.a C:/Qt/2009.01/lib/libQtSql4.a C:/Qt/2009.01/lib/libQtXml4.a 
                  Includes=C:/Qt/2009.01/include;C:/Qt/2009.01/include/ActiveQt;C:/Qt/2009.01/include/Qt;C:/Qt/2009.01/include/Qt3Support;C:/Qt/2009.01/include/QtAssistant;C:/Qt/2009.01/include/QtCore;C:/Qt/2009.01/include/QtDesigner;C:/Qt/2009.01/include/QtGui;C:/Qt/2009.01/include/QtMotif;C:/Qt/2009.01/include/QtNetwork;C:/Qt/2009.01/include/QtNsPlugin;C:/Qt/2009.01/include/QtOpenGL;C:/Qt/2009.01/include/QtSql;C:/Qt/2009.01/include/QtXml
                  Libs=C:\Qt\2009.01\lib
                  Name=Qt 4
                  

                  Trouvé sur un topic.

                  Seulement voilà :
                  pour cela :
                  #include <QApplication>
                  #include <QPushButton>
                  
                  int main(int argc, char *argv[])
                  {
                      QApplication app(argc, argv);
                  
                      QPushButton hello("Hello world!");
                      hello.resize(100, 30);
                  
                      hello.show();
                      return app.exec();
                  }
                  

                  Bin il me compte les .h qui ne sont pas présents, pas moyen de les enlever ?
                  Car si je mets pas QApplication.h et que je refais pas tous les headers de Qt avec des .h dans les includes, ben :
                  jk.cpp:1:24: QApplication: No such file or directory
                  jk.cpp:2:23: QPushButton: No such file or directory
                  jk.cpp: In function `int main(int, char**)':
                  jk.cpp:6: error: `QApplication' undeclared (first use this function)
                  jk.cpp:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
                  jk.cpp:6: error: expected `;' before "app"
                  jk.cpp:8: error: `QPushButton' undeclared (first use this function)
                  
                  jk.cpp:8: error: expected `;' before "hello"
                  jk.cpp:9: error: `hello' undeclared (first use this function)
                  jk.cpp:12: error: `app' undeclared (first use this function)
                  
                  make.exe: *** [jk.o] Error 1
                  
                  ...
                  • Partager sur Facebook
                  • Partager sur Twitter
                    1 novembre 2009 à 12:55:37

                    Up !

                    J'ai réinstallé puis désinstallé, pareil !
                    Sous Dev, marche pas !
                    Sous C::B avec QtWorkBench, ça me met "no target to make makefile.release" ...

                    Help !
                    • Partager sur Facebook
                    • Partager sur Twitter
                      1 novembre 2009 à 16:32:56

                      bonjour... :)
                      Est-tu sûr que ce n'est la DLL Qtcored4 que le compilateur de demande?
                      • Partager sur Facebook
                      • Partager sur Twitter
                        1 novembre 2009 à 18:57:24

                        C'est plus le blème ET je compile en release ... donc pas de ...d.dll
                        • Partager sur Facebook
                        • Partager sur Twitter
                          7 décembre 2009 à 18:54:55

                          Bonjour, juste une question en passant. Quelle différence entre les dll de bin et celles de qt\bin ? (je parle pas de celles de debug *d.dll).

                          Merci
                          • Partager sur Facebook
                          • Partager sur Twitter
                            23 décembre 2009 à 11:10:08

                            Alors Shydow, tu t'en es sorti ? Si oui, comment ??
                            • Partager sur Facebook
                            • Partager sur Twitter
                              23 décembre 2009 à 13:26:01

                              Houlà c'est vieux ce sujet.
                              J'ai désintallé 4.5 et installé 4.6, c'est tout ^^"
                              • Partager sur Facebook
                              • Partager sur Twitter
                                23 décembre 2009 à 13:40:12

                                Ah.
                                Ce que je cherche à faire c'est (avec Qt 4.6 et Visual 2008) réaliser des exécutables pouvant être utilisés sur une machine n'ayant absolument rien de tout ça (Qt et compilateur etc).
                                Et je ne comprends pas bien comment faire, j'ai d'abord fait des mofids dans le qmake de façon à se séparer des libraires msvcrt de Visual. Puis configurer Qt en -static lors de l'install. (m'enfin là ça compile tjr depuis ce matin..)
                                Mais je maîtrise mal tout ça et galère un peu beaucoup. As-tu réussi ?
                                • Partager sur Facebook
                                • Partager sur Twitter

                                [Qt] Dll ?

                                × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
                                × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
                                • Editeur
                                • Markdown