Results 1 to 20 of 26

Thread: Create N900 app in Qt under Windows 7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: Create N900 app in Qt under Windows 7

    Quote Originally Posted by wysota View Post
    What's in line 30 of the offending file?
    oops sorry! I pasted the wrong error... I fixed that one. It was a miss-typing error in .pro

    this is the correct error:

    Running build steps for project VNCHooks...
    Starting: "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" clean -w
    make: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    /bin/make -f Makefile.Debug clean
    make[1]: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    rm -f debug/SharedData.o debug/VNCHooks.o
    rm -f *~ core *.core
    make[1]: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    /bin/make -f Makefile.Release clean
    make[1]: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    rm -f release/SharedData.o release/VNCHooks.o
    rm -f *~ core *.core
    make[1]: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    make: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    The process "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" exited normally.
    Configuration unchanged, skipping qmake step.
    Starting: "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" -w
    make: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    /bin/make -f Makefile.Debug
    make[1]: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    g++ -c -pipe -mwindows -g -Wall -W -D_REENTRANT -fPIC -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -Ic:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/default -I. -Ic:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include -Idebug -o debug/SharedData.o ../nsserver/win32/src/VNCHooks/SharedData.cpp
    cc1plus.exe: error: unrecognized command line option "-mwindows"

    make[1]: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    make: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks'
    make[1]: *** [debug/SharedData.o] Error 1
    make: *** [debug] Error 2
    The process "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" exited with code %2.
    Error while building project VNCHooks (target: Maemo)
    When executing build step 'Make'

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

    Default Re: Create N900 app in Qt under Windows 7

    cc1plus.exe: error: unrecognized command line option "-mwindows"
    Where did this come from? I mean the -mwindows option. It's not put there by Qt.
    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
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: Create N900 app in Qt under Windows 7

    Quote Originally Posted by wysota View Post
    Where did this come from? I mean the -mwindows option. It's not put there by Qt.
    I don't know... I know that If I compile it without the check in shadow build and specifying the folder E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\VNCHooks\maemo it returns that error.

    If I check shadow build on that folder the error is:

    Running build steps for project VNCHooks...
    Starting: "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" clean -w
    make: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    /bin/make -f Makefile.Debug clean
    make[1]: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    rm -f debug/SharedData.o debug/VNCHooks.o
    rm -f *~ core *.core
    make[1]: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    /bin/make -f Makefile.Release clean
    make[1]: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    rm -f release/SharedData.o release/VNCHooks.o
    rm -f *~ core *.core
    make[1]: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    make: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    The process "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" exited normally.
    Configuration unchanged, skipping qmake step.
    Starting: "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" -w
    make: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    /bin/make -f Makefile.Debug
    make[1]: Entering directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    make[1]: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    make: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/VNCHooks/maemo'
    make[1]: *** No rule to make target `../nsserver/win32/src/VNCHooks/SharedData.cpp', needed by `debug/SharedData.o'. Stop.
    make: *** [debug] Error 2
    The process "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" exited with code %2.
    Error while building project VNCHooks (target: Maemo)
    When executing build step 'Make'

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

    Default Re: Create N900 app in Qt under Windows 7

    You must be using a wrong toolchain. -mwindows may be put in the Makefile when the compilation takes place for Cygwin or for Windows and not for armel. You can see that in your second try a file within "win32" folder is referenced which also shouldn't be happening. Make sure all paths are set correctly. In doubt perform the compilation from the command 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
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: Create N900 app in Qt under Windows 7

    I found the -mwindows where it is comming from...

    this is my .pro file:

    QT -= core \
    gui
    CONFIG += debug_and_release
    TRANSLATIONS += vnchooks.ts
    TARGET = VNCHooks
    DEFINES -= UNICODE
    TEMPLATE = lib
    SOURCES += ../nsserver/win32/src/VNCHooks/SharedData.cpp \
    ../nsserver/win32/src/VNCHooks/VNCHooks.cpp
    HEADERS += ../nsserver/win32/src/VNCHooks/SharedData.h \
    ../nsserver/win32/src/VNCHooks/VNCHooks.h
    QMAKE_CFLAGS += -mwindows
    QMAKE_CXXFLAGS += -mwindows
    LIBS += -lgdi32 \
    -Wl,-subsystem,windows
    ReleaseLLDESTDIR = ../nsserver/release \
    ../uni_net-classroom/release \
    ../uni_net-student/release \
    ../uni_net-student-mobile-maemo/release \
    ../uni_net-student-mobile-maemo/simulator/release \
    ../uni_net-student-mobile-maemo/maemo
    DebugLLDESTDIR = ../nsserver/debug \
    ../uni_net-classroom/debug \
    ../uni_net-student/debug \
    ../uni_net-student-mobile-maemo/debug \
    ../uni_net-student-mobile-maemo/simulator/debug \
    ../uni_net-student-mobile-maemo/maemo

    should I take out the .../win32 path?

    Just to clear you out nsserver is another plugin..

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

    Default Re: Create N900 app in Qt under Windows 7

    You should take out everything. The whole file doesn't make any sense. Including assignments to DLLDESTDIR. You can see the compilation of the VNCHooks subproject takes place and there are obvious references to Windows stuff there.
    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.


  7. The following user says thank you to wysota for this useful post:

    rickrvo (18th January 2011)

  8. #7
    Join Date
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: Create N900 app in Qt under Windows 7

    but the project was running on Qt simulator... I don't get it. where can I get examples of .pro files for the n900? (I never programmed for the n900) this is my first time and already I have to port the windows app to the mobile... :\

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

    Default Re: Create N900 app in Qt under Windows 7

    Quote Originally Posted by rickrvo View Post
    but the project was running on Qt simulator... I don't get it.
    The simulator uses your desktop platform and not the mobile platfom.

    where can I get examples of .pro files for the n900? (I never programmed for the n900) this is my first time and already I have to port the windows app to the mobile... :\
    N900 doesn't use Windows GDI so I'd start by getting rid of that.
    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.


  10. The following user says thank you to wysota for this useful post:

    rickrvo (19th January 2011)

  11. #9
    Join Date
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: Create N900 app in Qt under Windows 7

    I disposed of that plugin as it wasn't very important for the version for the n900.

    Now I'm having another problem which is the same on every other plugin that I'm trying to compile

    which is:

    ...
    Package Name : libjpeg
    Version : 0.0.1
    License : gpl
    Using dpatch : no
    Type of Package : Single
    Hit <enter> to confirm:
    Done. Please edit the files in the debian/ subdirectory now. libjpeg
    uses a configure script, so you probably don't have to edit the Makefiles.
    Package Creation: Running command 'dh_installdirs'.
    Packaging Error: Could not copy 'E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\libjpeg\libjpeg' to 'E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\libjpeg\debian\libjpeg\\usr\local\bin\libj peg'.
    Error while building project libjpeg (target: Maemo)
    When executing build step ''
    This is the output on the libjpeg plugin... on the attendees plugin the output is:

    ...
    ar cqs libattendees.a debug/call_data.o
    make[1]: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/plugins/attendees'
    make: Leaving directory `/e/Projecto/uni_net-1.4.1-Mobile/uni_net-project/plugins/attendees'
    The process "C:/nokiaqtsdk/maemo/4.6.2/bin/make.exe" exited normally.
    Creating package file ...
    Package Creation: Running command 'dh_installdirs'.
    Packaging Error: Could not copy 'E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\plugins\attendees\attendees' to 'E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\plugins\attendees\debian\attendees\\usr\lo cal\bin\attendees'.
    Error while building project attendees (target: Maemo)
    When executing build step ''
    I don't know why it keeps trying to copy 'E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\libjpeg\libjpeg and E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\plugins\attendees\attendees when the folder is only 1 libjpeg and not libjpeg\libjpeg... also targeting E:\Projecto\uni_net-1.4.1-Mobile\uni_net-project\plugins\attendees\debian\attendees\\usr\lo cal\bin\attendees with 2 \\ instead of 1.

    it's happening on every plugin... the .pro of these 2 are:

    attendees
    TARGET = attendees
    TEMPLATE = lib
    CONFIG += staticlib \
    debug_and_release
    TRANSLATIONS += attendees.ts
    SOURCES += src/call_data.cpp
    HEADERS += include/call_data.h
    INCLUDEPATH += include
    libjpeg
    QT -= core \
    gui
    CONFIG += qt debug_and_release
    DEFINES -= UNICODE
    TARGET = libjpeg
    TEMPLATE = lib
    DEFINES -= UNICODE
    SOURCES += jutils.c \
    jquant2.c \
    jquant1.c \
    jmemnobs.c \
    jmemmgr.c \
    jidctred.c \
    jidctint.c \
    jidctfst.c \
    jidctflt.c \
    jfdctint.c \
    jfdctfst.c \
    jfdctflt.c \
    jerror.c \
    jdtrans.c \
    jdsample.c \
    jdpostct.c \
    jdphuff.c \
    jdmerge.c \
    jdmaster.c \
    jdmarker.c \
    jdmainct.c \
    jdinput.c \
    jdhuff.c \
    jddctmgr.c \
    jdcolor.c \
    jdcoefct.c \
    jdatasrc.c \
    jdatadst.c \
    jdapistd.c \
    jdapimin.c \
    jctrans.c \
    jcsample.c \
    jcprepct.c \
    jcphuff.c \
    jcparam.c \
    jcomapi.c \
    jcmaster.c \
    jcmarker.c \
    jcmainct.c \
    jcinit.c \
    jchuff.c \
    jcdctmgr.c \
    jccolor.c \
    jccoefct.c \
    jcapistd.c \
    jcapimin.c
    HEADERS += jversion.h \
    jpeglib.h \
    jpegint.h \
    jmorecfg.h \
    jmemsys.h \
    jinclude.h \
    jerror.h \
    jdhuff.h \
    jdct.h \
    jconfig.h \
    jchuff.h
    win32:{QMAKE_CFLAGS += -mwindows
    QMAKE_CXXFLAGS += -mwindows
    LIBS += -Wl,-subsystem,windows
    }
    ReleaseLLDESTDIR = ../nsserver/release ../uni_net-classroom/release ../uni_net-student/release ../uni_net-student-mobile-maemo/debug ../uni_net-student-mobile-maemo/simulator/debug
    DebugLLDESTDIR = ../nsserver/debug ../uni_net-classroom/debug ../uni_net-student/debug ../uni_net-student-mobile-maemo/release ../uni_net-student-mobile-maemo/simulator/release
    both are without shadow builds.

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

    Default Re: Create N900 app in Qt under Windows 7

    I told you that your DLLDESTDIR values don't make sense. Do you even know what this variable is for?
    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.


  13. #11
    Join Date
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: Create N900 app in Qt under Windows 7

    I know that it is to create dll and linux uses .so files... but that's not the problem that is originating the error. I erased those lines and the "could not copy" error persists.

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

    Default Re: Create N900 app in Qt under Windows 7

    If you have to use some framework it is a good idea to understand what it does before you start using it. What is failing is a build step for creating a package for maemo which will fail on Windows regardless of what settings you have in your .pro file. First because you are using Windows so you can't run Debian packaging scripts and second because the .pro file has nothing to do with creating the package. It is done by Creator. Disable the packaging step in Creator and you'll probably be fine.

    And DLLDESTDIR is not used to create dll files. It points to a directory where the library should be created if the goal of the project is to create a library. If you point it to several directories, where should the library be created? In each of them?
    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.


  15. The following user says thank you to wysota for this useful post:

    rickrvo (19th January 2011)

Similar Threads

  1. Best way to create Windows Explorer type UI
    By scarleton in forum Newbie
    Replies: 8
    Last Post: 22nd August 2010, 19:30
  2. Create a windows application with sqlite
    By nittalope in forum Installation and Deployment
    Replies: 9
    Last Post: 6th August 2009, 18:52
  3. how to create multiple windows in QT
    By durgarao in forum Qt Tools
    Replies: 1
    Last Post: 9th January 2009, 14:47
  4. can't create qmake when installing at windows XP with win32-g++
    By owen_263 in forum Installation and Deployment
    Replies: 4
    Last Post: 31st March 2008, 07:39
  5. How to create MDI windows using Qt4 designer?
    By miaoliang in forum Qt Tools
    Replies: 3
    Last Post: 19th October 2006, 08:50

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
  •  
Qt is a trademark of The Qt Company.