Active Topics

 


Reply
Thread Tools
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#1
Edit: Issue appears now resolved with a sdk update.

Original post:
After enjoying some Qt Quick presentations at the MeeGo conf Ive created my own example which runs well in the Qt Simulator. Unfortunately I am not able to build the same project targeting Maemo. I have two build issues, a "QtDeclarative/QDeclarativeView: No such file or directory" error and an "expected class name before '{' token" in the qmlapplicationviewer header file.

#ifndef QMLAPPLICATIONVIEWER_H
#define QMLAPPLICATIONVIEWER_H

#include <QtDeclarative/QDeclarativeView>

class QmlApplicationViewer : public QDeclarativeView
{
public:
enum Orientation {
LockPortrait,
LockLandscape,
Auto
};

QmlApplicationViewer(QWidget *parent = 0);
virtual ~QmlApplicationViewer();

void setMainQmlFile(const QString &file);
void addImportPath(const QString &path);
void setOrientation(Orientation orientation);
void show();

private:
class QmlApplicationViewerPrivate *m_d;
};

#endif // QMLAPPLICATIONVIEWER_H
I have the latest Qt version, and I started by creating a Qt Quick Application. Is there something else I need to do to get this to build for Maemo?

Thanks.
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2010-11-19 at 09:31.
 

The Following User Says Thank You to kojacker For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#2
Have you got
Code:
QT += declarative
in your pro file?
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#3
Originally Posted by uvatbc View Post
Have you got
Code:
QT += declarative
in your pro file?
I've added that at the top of the .pro file but it doesn't make a difference if i keep it in or delete it, i still get the same two errors on building with the Maemo target
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#4
Keep the QT+= declarative statement. It is required for qmake to set up makefile correctly.

I'm not sure as yet whats going on, so I'm going to fire some arrows into the dark:
1. I assume you're using Nokia SDK. Start the updater in qtcreator.
2. Just for fun do #include <QDeclarativeView> instead of the qualified include.
3. Rebuild all. qmake may not have run after making changes to your pro file, which means your Makefile may not be updated.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#5
Thanks uvatbc, some of those arrows in the dark might be what I need

Actually at the moment I am half way through reinstalling the SDK again. I tried updater on my previous installed version and I got some kind of online repository error.. so Ive uninstalled it and getting a fresh install from the Qt site. Fingers crossed that'll sort it out.
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#6
I reinstalled and notice that the Qt version in the Build configuration for maemo is 'Qt for Fremantle 1.2 Devices' - I can't locate a 1.3 version on my machine, it doesn't seem to have been installed with the new SDK. Also the update from the start menu isnt in this version. So im thinking, should there be a "Qt for Fremantle 1.3 Devices" somewhere and where can I install it from? (Windows).
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#7
I reinstalled the SDK a third time from a different link and it seems to get past further, but i now get a different error instead - this time related to packaging

:: error: Packaging Error: Command 'dh_make -s -n -p testapp_qtquick_0.0.1' failed.Exit code: 1
Nothing has changed in the code files. Anyways Ive spent 5 hours on this so far, and it's 3.16am.. better get some sleep before work tomorrow.. I'm guessing this is a setup issue
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#8
The fact that it has reached packaging means that the compilation should be successful. Time to run and debug before looking at package issues.

Edit: OTOH, perhaps its time to sleep and contemplate these issues after some rest.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
Posts: 180 | Thanked: 76 times | Joined on May 2010
#9
Maybe you should try it without packing.

Select Projects (on the left in Qt Creator) -> Maemo Build steps -> Create package -> Skip packing step -> Try to run the application
 

The Following User Says Thank You to Diph For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#10
Originally Posted by kojacker View Post
I reinstalled the SDK a third time from a different link and it seems to get past further, but i now get a different error instead - this time related to packaging
packaging error? --> don't use underscores in package
names :-)

nicolai
 

The Following User Says Thank You to nicolai For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:51.