×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    2

    Qt SDK Beta Examples qatomic_x86_64.h errors

    I downloaded and installed Nokia_Qt_SDK_Win_v1_0_beta_en_offline.exe.

    I have tried to build several of the examples including Traffic Info, Ellastic Nodes, and Colliding Mice. The desktop versions build and run without problems. However, when I attempt to build the Symbian Device Target, various compile errors appear. The errors are with the qatomic_x86_64.h. Below is the compiler output. How can this problem be resolved?

    Thanks

    make[1]: Entering directory `C:/Qt/2010.01/qt/examples/xmlpatterns/trafficinfo'
    make -s -C \Qt\2010.01\qt\examples\xmlpatterns\trafficinfo -f "MAKEFILE_0XA000D7C7.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\MAKEFILE_0XA000D7C7\GCCE TO_BLDINF=..\..\..\..\..\..\Qt\2010.01\qt\examples\xmlpatterns\trafficinfo PLATFORM=GCCE CFG=UREL BLD
    make -s -r -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\Qt\2010.01\qt\examples\xmlpatterns\trafficinfo\TRAFFICINFO_0XA000D7C7\GCCE\TRAFFICINFO_0XA000D7C7.GCCE" UREL
    main.cpp
    In file included from /Qt/2010.01/qt/include/QtCore/qatomic_x86_64.h:1,
    from /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_windows.h:52,
    from /Qt/2010.01/qt/include/QtCore/qatomic_windows.h:1,
    from /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_arch.h:80,
    from /Qt/2010.01/qt/include/QtCore/qatomic_arch.h:1,
    from /Qt/2010.01/qt/include/QtCore/../../src/corelib/thread/qbasicatomic.h:227,
    from /Qt/2010.01/qt/include/QtCore/qbasicatomic.h:1,
    from /Qt/2010.01/qt/include/QtCore/../../src/corelib/thread/qatomic.h:46,
    from /Qt/2010.01/qt/include/QtCore/qatomic.h:1,
    from /Qt/2010.01/qt/include/QtCore/../../src/corelib/tools/qlist.h:46,
    from /Qt/2010.01/qt/include/QtCore/qlist.h:1,
    from /Qt/2010.01/qt/include/QtCore/QList:1,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/stationquery.h:45,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/mainwindow.h:45,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/main.cpp:42:
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member function 'bool QBasicAtomicInt::ref()':
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:217: error: invalid conversion from 'volatile long int*' to 'volatile int*'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:217: error: initializing argument 1 of 'int q_atomic_increment(volatile int*)'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member function 'bool QBasicAtomicInt::deref()':
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:222: error: invalid conversion from 'volatile long int*' to 'volatile int*'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:222: error: initializing argument 1 of 'int q_atomic_decrement(volatile int*)'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member function 'bool QBasicAtomicInt::testAndSetOrdered(int, int)':
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:227: error: invalid conversion from 'volatile long int*' to 'volatile int*'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:227: error: initializing argument 1 of 'int q_atomic_test_and_set_int(volatile int*, int, int)'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member function 'int QBasicAtomicInt::fetchAndStoreOrdered(int)':
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:232: error: invalid conversion from 'volatile long int*' to 'volatile int*'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:232: error: initializing argument 1 of 'int q_atomic_set_int(volatile int*, int)'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member function 'int QBasicAtomicInt::fetchAndAddOrdered(int)':
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:237: error: invalid conversion from 'volatile long int*' to 'volatile int*'
    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:237: error: initializing argument 1 of 'int q_atomic_fetch_and_add_int(volatile int*, int)'
    In file included from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_construct.h:42,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_pair.h:34,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_algobase.h:51,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_stream_iterator.h:43,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/iterator:47,
    from /Qt/2010.01/qt/include/QtCore/../../src/corelib/tools/qlist.h:50,
    from /Qt/2010.01/qt/include/QtCore/qlist.h:1,
    from /Qt/2010.01/qt/include/QtCore/QList:1,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/stationquery.h:45,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/mainwindow.h:45,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/main.cpp:42:
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_new.h: At global scope:
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_new.h:146: warning: 'void operator delete(void*)' redeclared without dllimport attribute after being referenced with dll linkage
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_new.h:148: warning: 'void operator delete [](void*)' redeclared without dllimport attribute: previous dllimport ignored
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_new.h:150: warning: 'void* operator new(unsigned int, const std::nothrow_t&)' redeclared without dllimport attribute: previous dllimport ignored
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_new.h:152: warning: 'void* operator new [](unsigned int, const std::nothrow_t&)' redeclared without dllimport attribute: previous dllimport ignored
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_new.h:154: warning: 'void operator delete(void*, const std::nothrow_t&)' redeclared without dllimport attribute: previous dllimport ignored
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_new.h:156: warning: 'void operator delete [](void*, const std::nothrow_t&)' redeclared without dllimport attribute: previous dllimport ignored
    In file included from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_num_get.h:308,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_istream.c:33,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_istream.h:335,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_stream_iterator.h:57,
    from /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/iterator:47,
    from /Qt/2010.01/qt/include/QtCore/../../src/corelib/tools/qlist.h:50,
    from /Qt/2010.01/qt/include/QtCore/qlist.h:1,
    from /Qt/2010.01/qt/include/QtCore/QList:1,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/stationquery.h:45,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/mainwindow.h:45,
    from /Qt/2010.01/qt/examples/xmlpatterns/trafficinfo/main.cpp:42:
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_num_get.c: In function 'bool std::__get_integer(_InputIter&, _InputIter&, int, _Integer&, int, bool, char, const std::string&, const std::__true_type&)':
    /NokiaQtSDK/Symbian/SDK/epoc32/include/stdapis/stlport/stl/_num_get.c:236: warning: suggest explicit braces to avoid ambiguous 'else'
    make[1]: Leaving directory `C:/Qt/2010.01/qt/examples/xmlpatterns/trafficinfo'
    make -r -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\Qt\2010.01\qt\examples\xmlpatterns\trafficinfo\GCCE.make" FINAL CFG=UREL VERBOSE=-s
    make[2]: *** [\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\Qt\2010.01\qt\examples\xmlpatterns\trafficinfo\TRAFFICINFO_0XA000D7C7\GCCE\urel\main.o] Error 1
    make[1]: *** [TARGETTRAFFICINFO_0XA000D7C7] Error 2
    make[1]: Entering directory `C:/Qt/2010.01/qt/examples/xmlpatterns/trafficinfo'
    make -s -C \Qt\2010.01\qt\examples\xmlpatterns\trafficinfo -f "MAKEFILE_0XA000D7C7.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\MAKEFILE_0XA000D7C7\GCCE TO_BLDINF=..\..\..\..\..\..\Qt\2010.01\qt\examples\xmlpatterns\trafficinfo PLATFORM=GCCE CFG=UREL FINAL
    make[1]: Leaving directory `C:/Qt/2010.01/qt/examples/xmlpatterns/trafficinfo'
    C:\NokiaQtSDK\Symbian\SDK\epoc32\tools\make.exe: Leaving directory `C:/Qt/2010.01/qt/examples/xmlpatterns/trafficinfo'
    Exited with code 0.
    Starting: C:/NokiaQtSDK/Symbian/SDK/epoc32/tools/make.exe sis
    make -s -f Makefile ok_sis
    Error : Cannot find file : /NokiaQtSDK/Symbian/SDK/epoc32/release/gcce/urel/trafficinfo.exe

    (29) : error: file I/O fault.
    file I/O fault, cannot open trafficinfo_unsigned.sis.

    SIS creation failed!
    Exited with code 0.

    /Qt/2010.01/qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:: In member function 'bool QBasicAtomicInt::ref()':

  2. #2
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    286

    Re: Qt SDK Beta Examples qatomic_x86_64.h errors

    Since the SDK is supposed to be easy install, everything works environment I don't really know what went wrong there.
    But the issue is:

    You are running in wrong configure. you need to have the -xplatform there or qmake thinks you are building for -platform which in this case for you is windows. Running explicit mkspec also works if I don't care to run the whole configure.

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    Re: Qt SDK Beta Examples qatomic_x86_64.h errors

    I'm also finding the same issues with building any of the Qt demos using the N97 SDK. And sorry, I don't understand the proposed solution.

    I followed QTStudios' Alessandro Portale giving instructions on how to setup and develop apps for Symbian using Qt in this youtube video http://www.youtube.com/watch?v=Rb43g...watch_response

    In that video he describes how you create a new Build Configuration in the Project settings as well as a new Run configuration that is based on the SDK(s) you have installed. This is exactly what I did and all works fine for a basic app that I create, but none of the demos build/compile using the same Build Configuration. (Nokia_N97_SDK_v1.0 (Qt 4.6.2) Debug)

    I assumed creating that new Build Configuration would add any required compiler options?

    Using:
    Qt SDK 4.6.2 (Qt Creator 1.3.1)
    Qt libraries 4.6.2 for Symbian
    Nokia N97 SDK v1.0

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    2

    Re: Qt SDK Beta Examples qatomic_x86_64.h errors

    I removed every prior version of QT and symbian related software from my computer and registry. Then I was able to build a few examples.

  5. #5
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    286

    Re: Qt SDK Beta Examples qatomic_x86_64.h errors

    Removing helped to get rid of qmake from path which was windows installation of Qt.

    @cypression your issue isn't what is asked here. If you can create a application and run it already works.
    Did you use Qt command prompt when building the demos? check your path variable to see it contains Qt/bin from the correct directory.

  6. #6
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    Re: Qt SDK Beta Examples qatomic_x86_64.h errors

    Hello,

    I'm meeting exactly the same problem.

    I met many different problems previously, I managed to solve them by uninstalling and reinstalling but can't solve this one.
    Which softwares did you remove ? and what did you clean in the registry ?

Similar Threads

  1. Build Qt with S60 5.0 Public SDK
    By cavendishqi in forum [Archived] Qt General ( Qt技术)
    Replies: 1
    Last Post: 2009-05-27, 08:02
  2. 6610 support for PC Connectivity SDK 3.0 Beta
    By nathenliew in forum PC Suite API and PC Connectivity SDK
    Replies: 10
    Last Post: 2008-10-16, 06:29
  3. Sip 3rd Edition beta sdk
    By eob123 in forum Symbian
    Replies: 1
    Last Post: 2005-12-02, 16:52
  4. createImage on Nokia Series 40 MIDP Concept SDK Beta 0.3
    By GerardMason in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-09-30, 10:00

Posting Permissions

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