Results 1 to 5 of 5

Thread: Cant cross compile onto Windows CE 5

  1. #1
    Join Date
    Oct 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Unhappy Cant cross compile onto Windows CE 5

    I've spent the last month and a half working on a QT project using the windows SDK, it's all working fine on my windows desktop, but now I want to cross-compile it onto Windows CE 5 (arm compiling on VS2008) I'm hitting some issues.

    Following the instructions from http://doc.qt.nokia.com/4.5/qtce.html and http://www.qtcentre.org/wiki/index.p..._on_Windows_CE, I created a shadow build. After setting the "setcepaths" and running "qmake" and "nmake", I've hit the error;

    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
    VC\ce\bin\x86_arm\cl.EXE"' : return code '0x2'

    From a google search, the most obvious problem is the makefile not pointing to everything correctly, but it looks ok to me. Is there anything else this could be?

    If anyone else needs any more detail, let me know.

    Thanks in advance! This project has made me want to pull my hair out in a hundred different ways, but I cannot stand the fact that it has stopped working this fucking close to being finished, so any help is deeply appreciated!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cant cross compile onto Windows CE 5

    That's probably not the first error you are getting but rather the last one. Please post the first error.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Cant cross compile onto Windows CE 5

    Whoops, your right. Nicely spotted.

    I'm getting some openGL related errors

    .\glwidget.cpp(329) : error C2057: expected constant expression
    .\glwidget.cpp(329) : error C2466: cannot allocate an array of constant size 0
    .\glwidget.cpp(329) : error C2133: 'afVertices' : unknown size
    .\glwidget.cpp(330) : error C2057: expected constant expression
    .\glwidget.cpp(330) : error C2466: cannot allocate an array of constant size 0
    .\glwidget.cpp(330) : error C2133: 'afColors' : unknown size
    .\glwidget.cpp(376) : error C2057: expected constant expression
    .\glwidget.cpp(376) : error C2466: cannot allocate an array of constant size 0
    .\glwidget.cpp(376) : error C2133: 'afVertices' : unknown size
    .\glwidget.cpp(420) : error C2065: 'M_PI' : undeclared identifier
    .\glwidget.cpp(427) : error C3861: 'glOrtho': identifier not found
    .\glwidget.cpp(535) : error C2065: 'GL_COLOR' : undeclared identifier

    If it helps anyone, this probject is heavily based on the Hello GL ES example. The includes and library references defined here are all included and double checked, so I'm not sure where to go from here.

    Thanks so far, thats at least one thing so far I didn't spot!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cant cross compile onto Windows CE 5

    What's the content of the first offending line?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Oct 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Cant cross compile onto Windows CE 5

    In context, its a standard C array (not a vector) with a variable in the initialisation. Something strictly forbidden by some forms of C, but for some reason, worked fine in the QT IDE.

    Thats something I should be able to sort out myself though. Thanks for pointing me in the right direction though, it serves me right for not looking at all the compile errors.

Similar Threads

  1. Can't cross compile with dbus
    By nrabara in forum Installation and Deployment
    Replies: 3
    Last Post: 19th March 2012, 13:28
  2. Cross-Compile to QT/X11 ARM
    By shiranraviv in forum Installation and Deployment
    Replies: 6
    Last Post: 18th December 2009, 12:22
  3. cross compile Qt Embeded with Open GL ES
    By efan in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 23rd September 2009, 13:23
  4. QT X11 cross compile failed on Fedora 4 for arm
    By Jessica026 in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd April 2007, 16:53
  5. Qtopia cross-compile for arm
    By Bitz in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 12th June 2006, 13:11

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.