Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Adding extra classes when building for cross-compilation
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Adding extra classes when building for cross-compilation

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maxg0
    wrote on last edited by
    #1

    I followed the procedure in "Qt 4.7.1 for QNX systems" to achieve cross-compilation. This is the content of the readme.txt file you find when you download the "qt_qnx_2011-02-24b" from Foundry27 qnx portal. Part of this procedure explains how to build for your application so that it can be deployed on your target (see below).

    The procedure works fine and I am able to build and deploy my QT application on a qnx target. There is a problem though. I have a hirerachy like this

    SimControl (dir)

    which contains

    nto-x86-o (dir)
    SimControl.pro
    SimControl.pro.user
    main.cpp
    Makefile
    widget.cpp
    widget.h
    widget.ui

    the nto-x86-o dir contains

    GNUmakefile
    main.o
    Makefile
    ui_widget.h

    Now I want to add an extra class, MyNeedle.ccp MyNeedle.h , at "SimControl" directory level.
    However the makefile system suggested by the procedure does not seem to take this extra class into account and I get an error when I build my application if I include a MyNeedle instance in main.cpp (the application gets built just by running make at SimControl level).

    As I am not an expert on makefiles and struggle to understand in details what the procudre "Build targets for make" is actually doing I have no idea how to allow the make system to consider this extra class that I want to add to my project (MyNeedle has to be defined this way as I want to override QWidget::paintEvent to draw my own Needle).

    Does anyone have any idea how I solve this problem?

    Many Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxg0
      wrote on last edited by
      #2

      Problem fixed by adding new class ".h", ".cpp" file in the project file "SimControl.pro"..

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved