Windows CE - Visual Studio Add-in

  • Hello,

    Sorry if I ask for a FAQ question, but I'm a newbie with Qt development and I've not found anything about this.

    I'm trying to write a helloworld application with qt on windows mobile 6.5. I think I have qt correctly installed on my pc, and visual studio add-in to.

    I've created a new project in Visual Studio 2008 (File --> New.. --> Project... --> "Qt Windows CE application"). It opens a new wizard to select my target platform (because visual studio add-in is installed). I select "Windows Mobile 6 Professional SDK..."

    Now, some files are in the project folder: helloworldqt.cpp, helloworldqt.h, helloworldqt.qrc, helloworldqt.ui, HelloWorldQt.vcproj, HelloWorldQt.vcproj.xxxx.user, HelloWorldQt.vcproj.vspscc, main.cpp, and more.

    I think if VS Add-in is installed, "build" button should works but I get a error. This is the trace:

    1>------ Build started: Project: HelloWorldQt, Configuration: Debug Windows Mobile 6 Professional SDK (ARMV4I) ------
    1>Uic'ing helloworldqt.ui...
    1>Rcc'ing helloworldqt.qrc...
    1>RCC: Warning: No resources in 'd:\Documents\Visual Studio 2008\Projects\HelloWorldQt\HelloWorldQt\helloworldqt.qrc'.
    1>Moc'ing helloworldqt.h...
    1>Generating Code...
    1>Authenticode signing project output...
    1>Project : error PRJ0002 : Error result -1 returned from ''.
    1>Build log was saved at "file://d:\Documents\Visual Studio 2008\Projects\HelloWorldQt\HelloWorldQt\Windows Mobile 6 Professional SDK (ARMV4I)\Debug\BuildLog.htm"
    1>HelloWorldQt - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Any help?

    Thank you,

  • During my early builds using VS add-in, I often encountered problems. What I would attempt is to try and build one of the examples. Open the item through the "Qt" menu bar item and open project, not using file open project. It might ask you to rebuild a vs project file for it. Do so in this case and overwrite the previously existing one.

    Another helpful trick is to right click the solution at the very top of the "solution explorer" window. And then select "change the solution's Qt version". Select your Qt build for windows mobile 6. Even if the window already has your Winmo Qt build selected, this may clear up the issue because the project configurations are reloaded after clicking ok. This fixes issues with my builds sometimes.

    You might also make sure your project directories are set properly for Window Mobile 6 sdk in Options for C++ directories. "Include" directories and "library" directories etc. If the example projects (even the most simple) won't build then your Qt Libraries might not be compiled correctly.

  • In "Qt" menu only there are these options activated: "Launch Designer", "Launch Linguist", "Open Qt project file (.pro)..." and "Qt options".

    Do I need a qt project file to create a new project with vs add-in? I think that I can create a new project this way "File —> New.. —> Project… —> “Qt Windows CE application”"

    If I open a Qt sample it works. But If I create a new application without anymore lines of code, it doesn't works, I get the error "Project : error PRJ0002 : Error result -1 returned from ‘’."

    Best regards,

  • Well good to hear your samples work. To answer your big question.... I have the same issue with creating a new project in visual studio. What I do, is create all my projects using QtCreator then I import them into visual studio and work with them from there.

    Not really a solution to your problem but a suggestion as a work around, use QtCreator. I do all my development in QtCreator then I open my project in visual studio to build and test. Sometimes I even just comment the code I have for rotating the display (wince specific, code so throws an error when building with QtCreator for windows) , and I test and debug a problem on windows; removing the comments from the code when I go to build for device again.

    Sounds like a pain, and it kind of is. But I can only imagine the headache of attempting something like with without VS Add-in. And it is well worth it to be able to use the framework on Wince. Hope this helps.

    EDIT Just wanted to add you wont receive any kind of benefit for using Visual studio to crate your project. It just is trying to set up your build parameters and what not. Any application there is no magic mobile code added by visual studio.

Log in to reply