Results 1 to 8 of 8

Thread: compilation on Qt 4 under Windows platform

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default compilation on Qt 4 under Windows platform

    hi guy. please excuse me for disturbing you.

    i have a serial problem. i'm developping web browser. and at the step of compilation, i had the following error:

    ":-1: erreur : LNK1104: impossible d'ouvrir le fichier 'qcncodecsd.lib'"

    this is in french translated in english it is: no such file, unable to find 'qcncodecsd.lib'

    and i don't know the real problem. my codes seem to be correct.

    here is my .pro file(i mean a part):
    CONFIG += static
    QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico


    here is also a part of my main.cpp file:

    #ifndef QT_SHARED
    #include <QtPlugin>

    #ifndef Q_WS_WIN
    Q_IMPORT_PLUGIN(qico)
    #endif
    #include <QtCore>
    Q_IMPORT_PLUGIN(qcncodecs)
    Q_IMPORT_PLUGIN(qjpcodecs)
    Q_IMPORT_PLUGIN(qkrcodecs)
    Q_IMPORT_PLUGIN(qtwcodecs)
    #endif


    please i really need help as soon as possible.

    thanks for anticipation to you members.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: compilation on Qt 4 under Windows platform

    Did you build your static Qt libraries with debug libraries?

  3. #3
    Join Date
    Sep 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: compilation on Qt 4 under Windows platform

    i think no. please excuse me, but can you explain clearly what you mean by "with debug libraries" to ensure that i had the good answer. thanks for your reply.

    if that can help you, here is the entire contents of my .pro file. maybe you'll find the answer in it.



    TEMPLATE = app
    TARGET = QtWeb
    DESTDIR = ./release
    QT += network xml webkit
    CONFIG += static
    QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico
    DEFINES += QT_NO_UITOOLS

    INCLUDEPATH += ./tmp/moc/release_static \
    . \
    ./tmp/moc/Release_static \
    ./tmp/rcc/Release_static

    DEPENDPATH += .
    MOC_DIR += ./tmp/moc/release_static
    OBJECTS_DIR += release
    UI_DIR += .
    RCC_DIR += ./tmp/rcc/release_static

    #Include file(s)
    include(QtWeb.pri)

    #Windows resource file
    win32:RC_FILE = QtWeb.rc
    macx {
    QMAKE_CXXFLAGS = -fvisibility=hidden -fvisibility-inlines-hidden
    ICON = qtweb.icns
    }

    message("qmake finished.")

    OTHER_FILES += \
    qtc_packaging/debian_harmattan/rules \
    qtc_packaging/debian_harmattan/README \
    qtc_packaging/debian_harmattan/manifest.aegis \
    qtc_packaging/debian_harmattan/copyright \
    qtc_packaging/debian_harmattan/control \
    qtc_packaging/debian_harmattan/compat \
    qtc_packaging/debian_harmattan/changelog

    thanks again for quick reply.

    i think no. please excuse me, but can you explain clearly what you mean by "with debug libraries" to ensure that i had the good answer. thanks for your reply.

    if that can help you, here is the entire contents of my .pro file. maybe you'll find the answer in it.



    TEMPLATE = app
    TARGET = QtWeb
    DESTDIR = ./release
    QT += network xml webkit
    CONFIG += static
    QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs qico
    DEFINES += QT_NO_UITOOLS

    INCLUDEPATH += ./tmp/moc/release_static \
    . \
    ./tmp/moc/Release_static \
    ./tmp/rcc/Release_static

    DEPENDPATH += .
    MOC_DIR += ./tmp/moc/release_static
    OBJECTS_DIR += release
    UI_DIR += .
    RCC_DIR += ./tmp/rcc/release_static

    #Include file(s)
    include(QtWeb.pri)

    #Windows resource file
    win32:RC_FILE = QtWeb.rc
    macx {
    QMAKE_CXXFLAGS = -fvisibility=hidden -fvisibility-inlines-hidden
    ICON = qtweb.icns
    }

    message("qmake finished.")

    OTHER_FILES += \
    qtc_packaging/debian_harmattan/rules \
    qtc_packaging/debian_harmattan/README \
    qtc_packaging/debian_harmattan/manifest.aegis \
    qtc_packaging/debian_harmattan/copyright \
    qtc_packaging/debian_harmattan/control \
    qtc_packaging/debian_harmattan/compat \
    qtc_packaging/debian_harmattan/changelog

    thanks again for quick reply.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: compilation on Qt 4 under Windows platform

    The library 'qcncodecsd.lib' that is mentioned in the error message is a debug library. A release library would look like 'qcncodecs.lib'... no 'd'.
    If you did not build your static Qt libraries to include debug version then this would explain the failure to build your project in debug mode.

    Can you build your project in release mode?

  5. #5
    Join Date
    Sep 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: compilation on Qt 4 under Windows platform

    excuse me guy for being so tedious. i'm really a beginner. so please explain how to do that.

    the truth is that: it is a project that i have downloaded from "3w.googlecode.com" and compiled on my computer in Qt 4.8.1.

    so if there is a solutions whathever the solution, i'll use it.

    thanks again for your good answer, and for trying to help me. i really need help.
    thanks again to others members.

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: compilation on Qt 4 under Windows platform

    Build in release mode:
    Qt Code:
    1. qmake CONFIG+=release
    2. nmake
    3. # OR jom
    4. # OR mingw32-make
    To copy to clipboard, switch view to plain text mode 

    You have downloaded what from Google Code?

  7. #7
    Join Date
    Sep 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: compilation on Qt 4 under Windows platform

    thanks again for you anwser and sorry for keeping silent.

    i've downloaded the project QtWeb from Google Code. for more details here is the url of the downloading page: http://code.google.com/p/qtweb/downloads/list .

    Please can explain me step by step how to implement the above Qt build Code that you gave to me. Sorry for disturbing you .
    Last edited by kfsc; 6th September 2013 at 12:55. Reason: was not complete

  8. #8
    Join Date
    Sep 2013
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: compilation on Qt 4 under Windows platform

    please ChrisW67 help me. i need your help. and i'm also asking help to all other members

Similar Threads

  1. QGraphicsscene.sceneRect on Windows platform
    By sanku3 in forum Qt Programming
    Replies: 0
    Last Post: 26th September 2011, 08:12
  2. macintosh style on windows platform
    By ad3d in forum Newbie
    Replies: 1
    Last Post: 27th July 2011, 06:08
  3. Using Kcfg in qt on windows platform
    By kurrachow in forum Newbie
    Replies: 0
    Last Post: 18th March 2011, 13:33
  4. Compilation fails in Windows XP
    By sim in forum Newbie
    Replies: 3
    Last Post: 1st July 2010, 16:56
  5. Qt compilation windows with g++
    By bonics in forum Qt Programming
    Replies: 2
    Last Post: 14th August 2007, 13:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.