Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6891047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:21:35+00:00 2026-05-27T06:21:35+00:00

I am new to Qt, cross compiling and porting so please bear with me.

  • 0

I am new to Qt, cross compiling and porting so please bear with me.

My goal is to use the Qwt library on Playbook OS for a Qt based application. I found a nice tutorial on Qt for Blackberry Playbook and I managed to get a simple Qt “Hello World” application running on my tablet.

My next step was to build the Qwt library and make use of it in my application. I spent some time reading about qmake and I built the library along with an application with no problems but when I run the application it crashes as soon I launch it.

Here are the steps that I took in building both the library and my app:

  1. Downloaded the source for Qwt and used the qmake that comes with the RIM’s Qt port. For reference: when installing the Qt port it will create a “stage” directory and the qmake is located here: ~/stage/nto/armle-v7/usr/lib/qt4/bin/qmake. First I’ve got an error about the designer plugin, but after turning the designer switch off, it compiled with no errors or warnings.
  2. I have built one of the samples that come with Qwt. I only added on line in the code (based on tutorial instructions): QCoreApplication::addLibraryPath("app/native/lib");. This is needed to tell the application where at run time are the shared libraries located on the device. No problems here either. My .pro file looked as follows:

include( $${PWD}/../examples.pri )

TARGET  = curvdemo1    
DESTDIR = . 

QMAKE_LFLAGS += '-Wl,-rpath,\'./app/native/lib\''
LIBS += -lbbsupport

SOURCES = \    
    curvdemo1.cpp    

package.target = $${TARGET}.bar
package.depends = $$TARGET
package.commands = blackberry-nativepackager \
    -devMode \
    -package $${TARGET}.bar -arg -platform -arg blackberry \
    blackberry-tablet.xml $$TARGET \
    -e icon.png res/icon.png \
    -e splashscreen.png res/splashscreen.png \
    -e $$[QT_INSTALL_LIBS]/libQtCore.so.4 lib/libQtCore.so.4 \
    -e $$[QT_INSTALL_LIBS]/libQtGui.so.4 lib/libQtGui.so.4 \
    -e $$[QT_INSTALL_LIBS]/libQtOpenGL.so.4 lib/libQtOpenGL.so.4 \
    -e $$[QT_INSTALL_LIBS]/libQtNetwork.so.4 lib/libQtNetwork.so.4 \
    -e $$[QT_INSTALL_LIBS]/libbbsupport.so.4 lib/libbbsupport.so.4 \
    -e $$[QT_INSTALL_PLUGINS]/platforms/libblackberry.so lib/platforms/libblackberry.so
    -e /home/builder/Qwt/qwt-6.0.1/lib/libqwt.so.6 lib/libqwt.so.6 \
    -e /home/builder/Qwt/qwt-6.0.1/lib/libqwtmathml.so.6 lib/libqwtmathml.so.6 

QMAKE_EXTRA_TARGETS += package

I packaged the app and deployed it, however when running the application crashes as soon as the splashscreen disappears.

The steps listed above are referring to my attempt of using the Qwt as a shared library. I did try building it as a static library by removing QwtDll as per library instructions, but the final result is the same. I can tell that the binary makes use of static libs based on its size.

With my little knowledge I can assume that the Qwt library was not properly built and cannot be loaded properly by my test app. If so how to properly port this library to Playbook OS? If not what else am I missing along these steps?

BTW I can’t use Momentics to debug for the time being (for other reasons).

Thank you in advance for your contribution to my learning experience.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:21:36+00:00Added an answer on May 27, 2026 at 6:21 am

    [SOLVED]

    As I mentioned in my question I am new in both Qt and cross compiling, but I’ve figured what the problem was and now the graph is up and running on the Playbook.

    What was causing the problem was the .pro file. I was using the examples that come with the library and the project files for them are set up to link correctly so my project was fine when built, but at runtime it couldn’t find specific libs that the chart relied on.

    I’ve removed the include( $${PWD}/../examples.pri ) line from the file and when I ran make I got a number of warning similar to this:

    warning: libQtSvg.so.4, needed by /home/builder/Qwt/qwt-6.0.1/lib/libqwt.so, not found (try using -rpath or -rpath-link)

    and errors similar to this:

    libqwt.so: undefined reference to QSvgGenerator::~QSvgGenerator()

    That lead to conclusion that my initial project file as managing this for me but confused a novice. I was missing shared libraries on the Playbook.

    My final project file that fixed the problem looks as following:

    QMAKE_LFLAGS += '-Wl,-rpath,\'./app/native/lib\''
    
    LIBS += -lQtSvg -lQtXml
    LIBS += -lbbsupport
    LIBS += -L/home/builder/Qwt/qwt-6.0.1/lib -lqwt -lqwtmathml
    
    INCLUDEPATH += /home/builder/Qwt/qwt-6.0.1/src    
    CONFIG += qwt    
    QWT_CONFIG     += QwtSvg
    QWT_CONFIG     += QwtMathML
    
    SOURCES += main.cpp  
    
    package.target = $${TARGET}.bar
    package.depends = $$TARGET
    package.commands = blackberry-nativepackager \
        -devMode \
        -package $${TARGET}.bar -arg -platform -arg blackberry \
        blackberry-tablet.xml $$TARGET \
        -e icon.png res/icon.png \
        -e splashscreen.png res/splashscreen.png \
        -e $$[QT_INSTALL_LIBS]/libQtCore.so.4 lib/libQtCore.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtGui.so.4 lib/libQtGui.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtOpenGL.so.4 lib/libQtOpenGL.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtNetwork.so.4 lib/libQtNetwork.so.4 \
        -e $$[QT_INSTALL_LIBS]/libbbsupport.so.4 lib/libbbsupport.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtSvg.so.4 lib/libQtSvg.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtXml.so.4 lib/libQtXml.so.4 \
        -e /home/builder/Qwt/qwt-6.0.1/lib/libqwt.so.6 lib/libqwt.so.6 \
        -e /home/builder/Qwt/qwt-6.0.1/lib/libqwtmathml.so.6 lib/libqwtmathml.so.6 \
        -e $$[QT_INSTALL_PLUGINS]/platforms/libblackberry.so lib/platforms/libblackberry.so
    
    QMAKE_EXTRA_TARGETS += package
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a new document-based cross-platform chemistry application (Win, Mac, Unix), which saves files
I've testing some new CLR 4.0 behavior in method inlining (cross-assembly inlining) and found
I'm cross-compiling an application, but linking blows up with an error that it cannot
I'm new to Blackberry. I use phonegap to create cross platform applications. I'm trying
What would you use for a brand new cross platform GUI app, CPython or
I am new to cross compiling and willing to get started with cross compiling
I'm new to CakePHP and am wondering how to protect my forms from Cross
I am new to .Net platform. I did a search and found that there
I am fairly new to Python programming, and completely new to cross-platform GUI building
I'm pretty new to C++ and am writing a cross-platform (desktop/mobile) 2D game engine...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.