Qt 4.7.1 For Caanoo


jbmaster

Still Fresh
Joined
Feb 20, 2009
Messages
19
download url : http://dl.openhandhelds.org/cgi-bin/caanoo.cgi?0,0,0,0,46,644

[CAANOO] QT 4.7.1 ( qml_flicker )

[CAANOO] QT 4.7.1 ( qml_webbrowser )

[CAANOO] QT 4.7.1 ( net_broadcast )
http://www.youtube.com/watch?v=J4ARA75NFpo

[CAANOO] QT 4.7.1 ( ui_control1 )
http://www.youtube.com/watch?v=UcLBCszQAKE

[CAANOO] QT 4.7.1 ( ui_control2 )
http://www.youtube.com/watch?v=B7qrXjHtytI

[CAANOO] QT 4.7.1 ( ui_control3 )
http://www.youtube.com/watch?v=pzpf9BECR1Q

[CAANOO] QT 4.7.1 ( ui_menu1 )
http://www.youtube.com/watch?v=xHlD6zDK2mI

[CAANOO] QT 4.7.1 ( ui_menu2 )
http://www.youtube.com/watch?v=MMdQn9AahRY

[CAANOO] QT 4.7.1 ( ui_menu3 )
http://www.youtube.com/watch?v=f3uaVG3GfFQ

[CAANOO] QT 4.7.1 ( ui_picture_scroll )
http://www.youtube.com/watch?v=pqsZQo1K1ck
 
Last edited by a moderator:
A pity that neither Caanoo key nor virtual keyboard is supported.
Tried webbrowser but due to the resolutions, nothing really can be done. :lol:
 
ruffnutts said:
What is all this QT stuff ?

QT is a (cross platform) language for making graphical user interfaces with. Having the libraries means that any program written with QT has the potential to run on the caanoo.
 
Last edited by a moderator:
[ QT Setup Guide ]

http://www.fungp.com/
--> Home > Developer Center > News > SDK Download Board
-------------------------------------------------------
A. QT development environment ready to install
A1. install GPH SDK
install the [ home/user] folder beneath
The path is important

B. Setup QT Development Environment
B1. go to the [ home/user] folder
Run [ cd ~ ]
B2. Copy the installation files in that folder
Copy the target file [ linux-caanoo-g++ ], [ qt-471-make-arm.sh ]
B3. Download QT 4.7
Run [ wget http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.1.tar.gz ]
B4. Decompression library
Run [ tar -xzvf qt-everywhere-opensource-src-4.7.1.tar.gz ]
B5. Copy linux-canoo-g++
Run [ cp -R linux-canoo-g++ ./qt-everywhere-opensource-src-4.7.1/mkspecs/qws/ ]
B6. Copy qt-471-make-arm.sh
Run [ cp qt-471-make-arm.sh ./qt-everywhere-opensource-src-4.7.1/ ]
B7. Moving
Run [ cd ./qt-everywhere-opensource-src-4.7.1/ ]
B8. Create Automatically makefile
Run [ ./qt-471-make-arm.sh ]
B9. Build QT library
Run [ make ]
It takes at least 1 hour or more
B10. Copy automatically QT library
Run [ make install ]
In the Copy /home/user/GPH_SDK/tools/gcc-4.2.4-glibc-2.7-eabi/sys-root/usr/lib folder
B11. qmake Link
Run [ ln -s /home/user/GPH_SDK/tools/gcc-4.2.4-glibc-2.7-eabi/sys-root/usr/bin/qmake
/home/user/GPH_SDK/tools/gcc-4.2.4-glibc-2.7-eabi/bin/qmake-caanoo ]

C. Building an example
C1. Moving
inside example or demo folder
ex ) Run [ cd /home/user/qt-everywhere-opensource-src-4.7.1/example/painting/basicdrawing/ ]
C2. Create QT project file
Run [ qmake-caanoo -project ]
C3. Create automatically Makefile
Run [ qmake-caanoo ]
C4. Create an executable file
Run [ make ]
C5. Add the executable extension
Run [ mv exe exec.qws ]

D. Running the example
Devices need firmware 1.6.0 or later
D1. Copy the executable terminal
D2. In [ Explorer ], select the executable file
-------------------------------------------------------
 
badmonkeyfinger said:
ruffnutts said:
What is all this QT stuff ?

QT is a (cross platform) language for making graphical user interfaces with. Having the libraries means that any program written with QT has the potential to run on the caanoo.

Ok thanks for the info ;)
 
Last edited by a moderator:
it isn't a new version of this? i love the web browser buit it need a update; site like facebook didn't see in this!
 
I want to setup a build QT envoirement for the caanoo. I can't find "[ linux-caanoo-g++ ], [ qt-471-make-arm.sh ]". I have got the qt471 source and the caanoo sdk. Am I missing something?
 
Now trying this: http://doc.qt.nokia.com/4.7-snapshot/qt-embedded-crosscompiling.html
 
It worked i just had to change /home/rohezal/GPH_SDK/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-g++ to this:

#
# qmake configuration for building with arm-linux-g++
#

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC = arm-gph-linux-gnueabi-gcc
QMAKE_CXX = arm-gph-linux-gnueabi-g++
QMAKE_LINK = arm-gph-linux-gnueabi-g++
QMAKE_LINK_SHLIB = arm-gph-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR = arm-gph-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-gph-linux-gnueabi-objcopy
QMAKE_STRIP = arm-gph-linux-gnueabi-sstrip

load(qt_config)


Then type this with your username:

export PATH=/home/rohezal/GPH_SDK/tools/gcc-4.2.4-glibc-2.7-eabi/bin/:$PATH

You should the path when you echo the variable:

rohezal@alveran:~/GPH_SDK/qt-everywhere-opensource-src-4.7.1/examples/goldmanager$ echo $PATH
/home/rohezal/GPH_SDK/tools/gcc-4.2.4-glibc-2.7-eabi/bin/:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games


Then go into ~/GPH_SDK/qt-everywhere-opensource-src-4.7.1 and type ./configure -embedded arm -xplatform qws/linux-arm-g++

Then type make.

Thats it. I tested it and it worked :). You need the libs placed in sd card root to use qt apps.
 
Nice thanks for sharing this info.
Could you upload the packages (bin+include) on the repo or somewhere else?
There are also the QT4.71 package but it's missing the Include...
 
Its several gigabytes big and I live in a village with slow internet :(. On the other hand building took more than 1 hour. Will it work when I upload it? Btw. I is the linux version of qt.
 
ok but i need the include to try to build ...is possible to package only this and upload somewhere ?
Only the modified include you use to build your project ( i saw your calculator now )..thanks
 
Cope this http://pastebin.com/LPqx5ktk to:

/home/Your_Username/GPH_SDK/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-g++/qmake.conf

Don't forget to set the path right:
export PATH=/home/Your_Username/GPH_SDK/tools/gcc-4.2.4-glibc-2.7-eabi/bin/:$PATH

is this possible for the wiz?

I think yes but I am not sure. I don't have a wiz.
 
Someone knows how to add a caanoo buttons (lets say the home button) to the application? Is it like a keyboard? Like "I press A and in the textfield appears an a". How do I add the keyboard?
 
From the caanoo mplayer source. Would be nice if we can use this, to turn off the screen when the caanoo is looked. power saving mode^^

void turnoff_lcd(void)
{
struct frontend_priv_s *priv = &frontend_priv;

if((priv->tvout_mode & MLC_PRI_ENABLED) && !(priv->tvout_mode & MLC_SEC_ENABLED))
{
unsigned int send[2] = {LCD_POWER_DOWN_ON_CMD, 0};
ioctl(priv->fb_fd, FBIO_LCD_CHANGE_CONTROL, &send);
}
}

void turnon_lcd(void)
{
struct frontend_priv_s *priv = &frontend_priv;

if((priv->tvout_mode & MLC_PRI_ENABLED) && !(priv->tvout_mode & MLC_SEC_ENABLED))
{
unsigned int send[2] = {LCD_POWER_DOWN_OFF_CMD, 0};
ioctl(priv->fb_fd, FBIO_LCD_CHANGE_CONTROL, &send);
}
}

void set_lcd_brightness(unsigned int value)
{
struct frontend_priv_s *priv = &frontend_priv;

if((priv->tvout_mode & MLC_PRI_ENABLED) && !(priv->tvout_mode & MLC_SEC_ENABLED))
{
unsigned int send[2];

send[0] = LCD_LIGHT_SET_CMD;
send[1] = value;
ioctl(frontend_priv.fb_fd, FBIO_LCD_CHANGE_CONTROL, &send);
}
}
 
Anyone knows how to check if the holdon / lock button is pressed? I like the idea to turn of the screen, when the caanoo is locked.
 
Back
Top