Results 1 to 3 of 3

Thread: make error when compile qtopia 4.2.4

  1. #1

    Default make error when compile qtopia 4.2.4

    hi,all:
    when I compile qtopia 4.2.4,there is some errors,following are an abbreated look at error information:

    --------------------------------------------------------------------------------------------------------
    1.src/libraries/qtopia/qhardwaremanager.h:49: parse error before `;' token
    2.qhardwaremanager.cpp:143: static member function `QStringList QHardwareManager:roviders() const' +declared with type qualifiers
    3.qhardwaremanager.cpp:143: redefinition of `static QStringList QHardwareManager:roviders()'
    4.qhardwaremanager.cpp:143: no `static QStringList QHardwareManager:roviders()' member function +declared in class `QHardwareManager'
    5.qhardwaremanager.cpp:143: no `static QStringList QHardwareManager:roviders()' member function +declared in class `QHardwareManager'
    --------------------------------------------------------------------------------------------------------



    you can see all the errors is come from QHardwareManager class .so I look over the QHardwareManager.h,there is following code:
    ------------------------------------------------------------------------
    //file:QHardwareManager.h

    QStringList providers() const;

    template <typename T> static QStringList providers()
    {
    QAbstractIpcInterfaceGroupManager man("/Hardware/Accessories");
    return man.supports<T>();
    }
    ----------------------------------------------------------------------------

    well,you can see the function providers() is declare twice.I think this is a obvious error.so how to modify these error?

    following is some other information:
    environment: Redhat 9.0
    gcc version:
    package: qtopia-opensource-src-4.2.4.tar.gz
    compile command: echo yes | ../qtopia/configure && make && make install

  2. #2

    Default Re: make error when compile qtopia 4.2.4

    Hi,

    I think the Qtopia article on http://www.linuxdevices.com/articles/AT7319394180.html
    may be helpful in this discussion.

    This popular white paper is written by some engineering folks from our organization Mindfire Solutions (http://www.mindfiresolutions.com).

    I hope you find it useful!

    Cheers,
    Byapti

  3. #3
    Join Date
    Dec 2006
    Posts
    123
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: make error when compile qtopia 4.2.4

    Hi,

    i tried compiling qtopia-opensource-4.3.0 for host(X86) running red hat 9 and ended up in the same error as yours. Has that problem solved ? if yes means then can you mail me how did you do that ?

    With regards,

    saravanan.

Similar Threads

  1. Qtopia core 4.2.2 cross compile make error
    By smiyai18 in forum Installation and Deployment
    Replies: 2
    Last Post: 28th August 2007, 17:04
  2. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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.