×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    network-chat compile errors

    After installing QT 4.6.2, and N97 device (Nokia_N97_SDK_v1.0), and supporting S60 SDK.
    I did setup the path to include the C:\Qt\4.6.2-Symbian\bin. Also defined the user variables for QTDIR, and QMAKESPEC to symbian-abld. The Qt bin and include in the preferences was also setup.

    I imported the network-chat project from the network examples and get the following compile errors:

    1. undefined identifier 'QTextCodec::codecForName'

    2. illegal use of incomplete struct/union/class 'QTextCodec'

    3. undefined identifier 'sendButton'

    Indications to path settings, but not sure what is the problem.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: network-chat compile errors

    It's especially strange since network-chat doesn't use QTextCodec
    http://qt.gitorious.org/qt/qt/trees/...k/network-chat

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: network-chat compile errors

    Thanks for the link.

    I compared the .pro files and they are exactly the same.

    Any other hints would be greatly appreciated.

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: network-chat compile errors

    Just another note, that I have not done any code changes yet. I just wanted to run the network-chat example as a start prior to any changes.

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: network-chat compile errors

    Quote Originally Posted by emadaq@asu.edu.jo View Post
    Thanks for the link.

    I compared the .pro files and they are exactly the same.

    Any other hints would be greatly appreciated.
    Did you try to compare source files as you have problems with source, not the .pro file? diff utility would be the best tool to do that. Also did you try to compile the example from git? What is exact output of make, can you copy it here?

  6. #6
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: network-chat compile errors

    Thanks Daniil,

    The source files are the same.

    The configure output at the C:\Qt\4.6.2-symbian and has an error about the mingw32-make

    The configure command that I ran from the link http://doc.trolltech.com/4.6/install-symbian.html
    was
    configure -platform win32-g++ -xplatform symbian-abld

    Start -configure output ---

    Which edition of Qt do you want to use ?
    Type 'c' if you want to use the Commercial Edition.
    Type 'o' if you want to use the Open Source Edition.

    This is the Qt for Symbian Open Source Edition.

    You are licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) version 2.1
    or the GNU General Public License (GPL) version 3.

    Type '3' to view the GNU General Public License version 3 (GPLv3).
    Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
    Type 'y' to accept this license offer.
    Type 'n' to decline this license offer.

    Do you accept the terms of the license?
    Environment:
    INCLUDE=

    Unset
    LIB=

    Unset
    PATH=

    C:\Qt\4.6.2-Symbian\bin

    C:\Perl\bin\

    C:\Symbian\Tools\ADT_1.4\Carbide.c++\x86Build\Symbian_Tools\Command_Line_Tools

    C:\Program Files\PC Connectivity Solution\

    C:\Program Files\CSL Arm Toolchain\bin

    C:\Program Files\Common Files\Symbian\Tools

    C:\Perl\site\bin

    C:\Perl\bin

    C:\Program Files\Common Files\Microsoft Shared\Windows Live

    C:\WINDOWS\system32

    C:\WINDOWS

    C:\WINDOWS\System32\Wbem

    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 6.0 for Windows Workstations\

    c:\Program Files\Microsoft SQL Server\90\Tools\binn\

    C:\WINDOWS\system32\WindowsPowerShell\v1.0

    C:\Program Files\Java\jdk1.6.0_18\bin

    C:\Qt\4.6.2-Symbian\bin
    You are licensed to use this software under the terms of the GNU GPL version 3.You are licensed to use this software under the terms of the Lesser GNU LGPL version 2.1.
    See C:/Qt/4.6.2-Symbian3

    or C:/Qt/4.6.2-SymbianL

    Configuration:
    minimal-config

    small-config

    medium-config

    large-config

    full-config

    system-sqlite

    build_all

    debug

    cross_compile
    Qt Configuration:
    release

    debug

    zlib

    png

    s60

    openssl

    ipv6

    script

    xmlpatterns

    phonon

    phonon-backend

    multimedia

    audio-backend

    webkit

    native-gestures

    svg

    minimal-config

    small-config

    medium-config

    large-config

    full-config

    QMAKESPEC...................symbian-abld (commandline)
    Architecture................symbian
    Maketool....................mingw32-make
    Debug symbols...............yes
    Link Time Code Generation...no
    Accessibility support.......no
    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..............no
    OpenVG support..............no
    OpenSSL support.............yes
    QtDBus support..............no
    QtXmlPatterns support.......yes
    Phonon support..............yes
    QtMultimedia support........yes
    WebKit support..............yes
    Declarative support.........no
    QtScript support............yes
    QtScriptTools support.......no
    Graphics System.............raster
    Qt3 compatibility...........no

    Third Party Libraries:
    ZLIB support............qt
    GIF support.............plugin
    TIFF support............plugin
    JPEG support............plugin
    PNG support.............qt
    MNG support.............plugin
    FreeType support........no

    Styles:
    Windows.................yes
    Windows XP..............no
    Windows Vista...........no
    Plastique...............no
    Cleanlooks..............no
    Motif...................no
    CDE.....................no
    Windows CE..............no
    Windows Mobile..........no
    S60.....................yes

    Sql Drivers:
    ODBC....................no
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................yes (system)
    SQLite2.................no
    InterBase...............no

    Sources are in..............C:\Qt\4.6.2-Symbian
    Build is done in............C:\Qt\4.6.2-Symbian
    Install prefix..............
    Headers installed to........
    Libraries installed to......
    Plugins installed to........\resource\qt\plugins
    Binaries installed to.......
    Docs installed to...........
    Data installed to...........
    Translations installed to...
    Examples installed to.......
    Demos installed to..........

    Support for S60.............yes
    Symbian DEF files enabled...yes
    Running syncqt...
    Creating qmake...
    execute: File or path is not found (mingw32-make)
    execute: File or path is not found (mingw32-make)
    Cleaning qmake failed, return code -1

    ---end configure command-----

    ABLD.BAT build winscw udeb
    make -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\EXPORT.make" EXPORT VERBOSE=-s
    make[1]: Entering directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    Nothing to do
    make[1]: Leaving directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\WINSCW.make" MAKEFILE VERBOSE=-s
    make[1]: Entering directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -s -C \Qt\4.6.2-Symbian\examples\network\network-chat -f "MAKEFILE_0XEEDF28CF.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\MAKEFILE_0XEEDF28CF\WINSCW TO_BLDINF=..\..\..\..\..\Qt\4.6.2-Symbian\examples\network\network-chat PLATFORM=WINSCW MAKMAKE
    perl -S makmake.pl -D \Qt\4.6.2-Symbian\examples\network\network-chat\NETWORK-CHAT_0XEEDF28CF WINSCW
    make[1]: Leaving directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\WINSCW.make" LIBRARY VERBOSE=-s
    make[1]: Entering directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -s -C \Qt\4.6.2-Symbian\examples\network\network-chat -f "MAKEFILE_0XEEDF28CF.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\MAKEFILE_0XEEDF28CF\WINSCW TO_BLDINF=..\..\..\..\..\Qt\4.6.2-Symbian\examples\network\network-chat PLATFORM=WINSCW LIB
    make -s -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\NETWORK-CHAT_0XEEDF28CF\WINSCW\NETWORK-CHAT_0XEEDF28CF.WINSCW" LIBRARY
    make[1]: Leaving directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -s -C \Qt\4.6.2-Symbian\examples\network\network-chat -f "MAKEFILE_0XEEDF28CF.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\MAKEFILE_0XEEDF28CF\WINSCW TO_BLDINF=..\..\..\..\..\Qt\4.6.2-Symbian\examples\network\network-chat PLATFORM=WINSCW CFG=UDEB RESOURCE
    make -s -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\NETWORK-CHAT_0XEEDF28CF\WINSCW\NETWORK-CHAT_0XEEDF28CF.WINSCW" RESOURCEUDEB


    make[1]: Leaving directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -s -C \Qt\4.6.2-Symbian\examples\network\network-chat -f "MAKEFILE_0XEEDF28CF.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\MAKEFILE_0XEEDF28CF\WINSCW TO_BLDINF=..\..\..\..\..\Qt\4.6.2-Symbian\examples\network\network-chat PLATFORM=WINSCW CFG=UDEB BLD
    make -s -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\NETWORK-CHAT_0XEEDF28CF\WINSCW\NETWORK-CHAT_0XEEDF28CF.WINSCW" UDEB
    chatdialog.cpp
    chatdialog.cpp:58: undefined identifier 'sendButton'
    make[1]: Leaving directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -r -f "\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\network\network-chat\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'
    make -s -C \Qt\4.6.2-Symbian\examples\network\network-chat -f "MAKEFILE_0XEEDF28CF.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\MAKEFILE_0XEEDF28CF\WINSCW TO_BLDINF=..\..\..\..\..\Qt\4.6.2-Symbian\examples\network\network-chat PLATFORM=WINSCW CFG=UDEB FINAL
    make[1]: Leaving directory `C:/Qt/4.6.2-Symbian/examples/network/network-chat'

    make[2]: *** [\S60\devices\Nokia_N97_SDK_v1.0\EPOC32\BUILD\Qt\4.6.2-Symbian\examples\
    \network\network-chat\NETWORK-CHAT_0XEEDF28CF\WINSCW\udeb\chatdialog.o] Error 1
    make[1]: *** [TARGETNETWORK-CHAT_0XEEDF28CF] Error 2

  7. #7
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: network-chat compile errors

    It seems that my main problem is the make:

    Creating qmake...
    execute: File or path is not found (nmake)
    execute: File or path is not found (nmake)
    Cleaning qmake failed, return code -1

  8. #8
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: network-chat compile errors

    Hi,

    As it says on http://doc.trolltech.com/4.6/install-symbian.html:

    Note: This document describes how to install and configure Qt for the Symbian platform from scratch. If you are using pre-built binaries, follow the instructions given in the Installing Qt on the Symbian platform from a Binary Package document.
    -> You do not need to configure and build Qt for Symbian yourself, unless you want to - otherwise, just follow the instructions in the 'Installing from binary package' -link.

    execute: File or path is not found (mingw32-make)
    execute: File or path is not found (mingw32-make)
    Cleaning qmake failed, return code -1
    If you want to compile Qt build tools with MinGW (-platform win32-g++), you need to have MinGW installed and PATH configured with its /bin folder.

  9. #9
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: network-chat compile errors

    Thanks Treinio. Actually, I did not go to that choice until I had issues building the network-chat as shown in the thread earlier.

    Can I guess from your message that even if you are running QT for symbian, and if QT needs to be compiled, I should have mingw install?

    thx

  10. #10
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: network-chat compile errors

    Hi again,

    Ok - I took a closer look at the network-chat example and seems it doesn't compile for Symbian out of the box.

    First, in chatdialog.cpp there's

    Code:
    #ifdef Q_OS_SYMBIAN
        connect(sendButton, SIGNAL(clicked()), this, SLOT(returnPressed()));
    #endif
    But there's no sendButton defined in the chatdialog.ui - you'll have to add it there, or come up with some other way to trigger the message sending (with contents of lineEdit).

    Illegal use of incomplete struct/union/class 'QTextCodec'
    This error comes from /examples/network/qftp/sym_iap_util.h, which the network-chat also includes. There's a following line in sym_iap_util.h:

    Code:
    //#include <QTextCodec>
    -> remove the comment and see if it helps

  11. #11
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: network-chat compile errors

    Thanks again.

    I will look into your suggestions. But it is kind of strange that QT 4.6.2 for symbian is released without having network-chat working, unless I have mis understood.

    thanks again.

  12. #12
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: network-chat compile errors

    Hi,
    i've just removed conditional compilation for SYMBIAN from sources,
    The compilation was Ok. (via remote compiler on linux workstation)
    Run on symbian device Ok. (5800xp)
    You need to connect to a network (wlan to test it).

Similar Threads

  1. NFC LLCP Chat program doesnt compile
    By iceland in forum Mobile Java General
    Replies: 2
    Last Post: 2013-05-15, 11:07
  2. Network config differences S40 / S60
    By ipxlittle in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-01-15, 22:38
  3. Need help on some compile errors
    By doesitmatter in forum Symbian
    Replies: 3
    Last Post: 2007-11-05, 05:11
  4. ETel GSM errors
    By isymdev in forum Symbian
    Replies: 0
    Last Post: 2006-06-21, 08:01
  5. Setting Network in 3rd SDK
    By jawir212 in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-06-08, 11:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×