2011-07-27

Slitaz - qt480β / g++ / wayland


g++: unrecognized option '-0s'

20110730

http://hg.slitaz.org/tazwok/rev/b1584d8f70a7

tazwok changeset 535:b1584d8f70a7

tazwok.conf: Fixed typo.
author Christopher Rogers
date Tue May 24 21:08:47 2011 +0000 (2 months ago ago)
parents 753ea2c0fe0f
children 89e392194b30
files examples/tazwok.conf
line diff
     1.1 --- a/examples/tazwok.conf Mon May 23 20:47:03 2011 +0000
     1.2 +++ b/examples/tazwok.conf Tue May 24 21:08:47 2011 +0000
     1.3 @@ -46,7 +46,7 @@ 
     1.4  # with same hardware and newest of the same family :
     1.5  #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
     1.6  #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
     1.7 -CFLAGS="-march=$ARCH -0s -pipe -fomit-frame-pointer"
     1.8 +CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
     1.9  CXXFLAGS="$CFLAGS"
    1.10  
    1.11  # Default tool prefix.
 
 
1.
root@slitaz:/home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/config.tests/qpa/wayland# make
g++ -c -march=i486 -0s -pipe -fomit-frame-pointer -O2 -Wall -W  -I/usr/share/qt/mkspecs/linux-g++ -I. -o wayland.o wayland.cpp
g++: unrecognized option '-0s'
g++ -Wl,-O1 -Wl,-rpath,/usr/lib -o wayland wayland.o    

2.
root@slitaz:/home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/config.tests/qpa/wayland# cat Makefile | head -40
#############################################################################
# Makefile for building: wayland
# Generated by qmake (2.01a) (Qt 4.8.0) on: ?? 7? 28 09:55:03 2011
# Project:  wayland.pro
# Template: app
# Command: /home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/bin/qmake -o Makefile wayland.pro
#############################################################################

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       =
CFLAGS        = -march=i486 -0s -pipe -fomit-frame-pointer -O2 -Wall -W $(DEFINES)
CXXFLAGS      = -march=i486 -0s -pipe -fomit-frame-pointer -O2 -Wall -W $(DEFINES)
INCPATH       = -I/usr/share/qt/mkspecs/linux-g++ -I.
LINK          = g++
LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/lib
LIBS          = $(SUBLIBS)  
AR            = ar cqs
RANLIB        =
QMAKE         = /home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/bin/qmake
TAR           = tar -cf
COMPRESS      = gzip -9f
COPY          = cp -f
SED           = sed
COPY_FILE     = $(COPY)
COPY_DIR      = $(COPY) -r
STRIP         = strip
INSTALL_FILE  = install -m 644 -p
INSTALL_DIR   = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p

####### Output directory


3.
root@slitaz:/home/slitaz/cooking/wok/qt4/qt4-4.8.0-beta1/config.tests/qpa/wayland# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-pc-linux-gnu/4.5.2/lto-wrapper
Target: i486-pc-linux-gnu
Configured with: /home/slitaz/cooking/wok/gcc/gcc-4.5.2/configure --enable-nls --enable-languages=c,c++,objc,fortran --enable-shared --with-system-zlib --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit --enable-lto --disable-bootstrap libexecdir=/usr/lib --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu
Thread model: posix
gcc version 4.5.2 (GCC)

4.
root@slitaz:~# head -50 /etc/slitaz/tazwok.conf | tail
# Cook compatible packages partially optimized for your own hardware :
#CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
# Where ARCH=your arch
#
# Cook packages fully optimized for your hardware - Warning, compatible only
# with same hardware and newest of the same family :
#CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
#CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
CFLAGS="-march=$ARCH -0s -pipe -fomit-frame-pointer"
CXXFLAGS="$CFLAGS"
root@slitaz:~#
.

2011-07-09

Slitaz -- Qt phonon

1.

Phonon multimedia framework


http://doc.qt.nokia.com/4.7/phonon-overview.html

Introduction

Qt uses the Phonon multimedia framework to provide functionality for playback of the most common multimedia formats. The media can be read from files or streamed over a network, using a QURL to a file.

[..]

Linux

The Qt backend on Linux uses GStreamer (minimum version is 0.10), which must be installed on the system. At a minimum, you need the GStreamer library and base plugins, which provides support for .ogg files. The package names may vary between Linux distributions; on Mandriva, they have the following names:
PackageDescription
libgstreamer0.10_0.10
The GStreamer base library.
libgstreamer0.10_0.10-devel
Contains files for developing applications with GStreamer.
libgstreamer-plugins-base0.10
Contains the basic plugins for audio and video playback, and will enable support for ogg files.
libgstreamer-plugins-base0.10-devel
Makes it possible to develop applications using the base plugins.



























2.
tux@slitaz:~$ tazpkg info gstreamer

Tazpkg information
================================================================================
Package    : gstreamer
Version    : 0.10.34
Category   : multimedia
Short desc : GStreamer Multimedia Framework
Maintainer : jozee@slitaz.org
Depends    : libxml2 glib
Build deps : intltool pkg-config bison flex glib-dev libxml2-dev python
python-dev m4 libgio-dev gobject-introspection-dev
Web site   : http://gstreamer.freedesktop.org/
================================================================================

tux@slitaz:~$

3.
tux@slitaz:~$ uname -a
Linux slitaz 2.6.37-slitaz #5 SMP Wed Jun 15 00:06:36 UTC 2011 i686 GNU/Linux
tux@slitaz:~$ tazpkg list | grep gst
gst-plugins-base        0.10.34           multimedia
gst-plugins-base-dev    0.10.34           development
gst-plugins-good        0.10.29           multimedia
gstreamer               0.10.34           multimedia
gstreamer-dev           0.10.34           development
tux@slitaz:~

2011-07-07

Slitaz -- QML RestaurantApp -2




restaurant.xml

<?xml version="1.0" encoding="UTF-8" ?>

<restaurant>

<info>

<name>Diner</name>

<logo>content/logo.png</logo>

<address>

<street>1567 Broadway</street>

<city>New York</city>

<country>United States</country>

<coordinates>

<latitude>40.75930175423635</latitude>

<longitude>-73.98525953292847</longitude>

</coordinates>

</address>

<map>

<minZoomLevel>12</minZoomLevel>

<maxZoomLevel>17</maxZoomLevel>

</map>

<telephone>+2129189999</telephone>

<url>http://www.diner.com/</url>

<description>It takes guts to open a restaurant in Times Square that lacks a theme or strives to be classier than a carnival. Granted, Diner offers an audacious voyeur's paradise in its soaring staircase that rises alongside a suspended abstract sculpture of a fork. Mayson Bacon Jr. has succeeded finding a perfect balance between class and bacon. And to repeat what I'm saying: It takes guts to open a restaurant in Times Square that lacks a theme or strives to be classier than a carnival. Granted, Diner offers an audacious voyeur's paradise in its soaring staircase that rises alongside a suspended abstract sculpture of a fork. I'm on a horse.</description>

</info>

<menu>

<category id="category1" name="Soups" icon="content/soups_icon.png">

<dish name="The King of Prawns" icon="">Deep-fried king prawns and Sweet Chili sauce.</dish>

<dish name="Super Hot Jalapeno Pops" icon="">Deep-fried jalapenos filled with cheese. Served with garlic mayonnaise and out SuperHot Chilisauce.</dish>

<dish name="Muchos Nachos" icon="">Tortillaa chips, melted cheddar cheese, salsa sauce, jalapeno slices, sour cream & guacamole.</dish>

<dish name="Just Fries" icon="">Salted fries with bbq sauce.</dish>

<dish name="Blue Cheese 'n Fries" icon="">Seasoned Criss Cuts with blue cheese sauce.</dish>

<dish name="Sweet Fries" icon="">Sweet potato fries with our special mustard sauce.</dish>

</category>

<category id="category2" name="Vegetarian" icon="content/vegetarian_icon.png">

<dish name="THE Ceasar Salad" icon="">A mixed green salad with Caesar dressing, Parmesan cheese, croutons and arugula with a choice of chicken breast, marinated shrimps, bacon or chevre.</dish>

<dish name="All Vegs" icon="">A mixed green salad with cherry tomato, cucumber, fresh pineapple, orange, marinated red onion, watermelon, arugula & deep-fried spring rolls. Served with ranch dressing, toasted bread and Sweet Chili sauce.</dish>

<dish name="Fruity Fish Salad" icon="">A mixed green salad with salmon fillet, cherry tomato, cucumber, fresh pineapple, orange, marinated red onion, watermelon, lime & arugula. Oil & herb dressing and toasted bread.</dish>

</category>

<category id="category3" name="Sea Food" icon="content/sea_food_icon.png">

<dish name="Fish of the day" icon="">Whatever fish comes up, served with seasonal vegetables and Tartar sauce.</dish>

<dish name="Tons of Tuna" icon="">A huge steak of fresh tuna, baked sweet potato and lime mayo.</dish>

</category>

<category id="category4" name="Steaks" icon="content/steaks_icon.png">

<dish name="Giant BBQ Steak" icon="">A 250g sirloin steak, fries, seasonal veggies and BBQ mayo.</dish>

<dish name="Surf 'n Turf" icon="">A 180g sirloin steak, deep-fried king prawns, bell pepper, asparagus, red onion, whiskey- and Bearnaise sauce, Criss Cuts and garnished with arugula.</dish>

<dish name="Silence of the Lambs" icon="">Lamb Loin Chops with minty mushed peas, country fries and creamy mustard sauce.</dish>

<dish name="Latino Chick" icon="">Chicken breast with Latino sauce and salad of cherry tomatos, cucumber, marinated red onion & arugula. Fresh pineapple, garlic mayonnaise and Criss Cuts.</dish>

</category>

<category id="category5" name="Desserts" icon="content/desserts_icon.png">

<dish name="Master Muffin" icon="">Chocolate muffin with white-chock chips, served with vanilla whipped cream.</dish>

<dish name="The Big Apple" icon="">Apple pie with pecan nuts and raisins, served with vanilla ice cream and chocolate sauce.</dish>

<dish name="Shake it, shake it" icon="">A giant milk shake with a choice of banana-chocolate, chocolate, strawberry-vanilla or mint-chocolate. Made with real fruits and choc.</dish>

<dish name="Super Cheesecake" icon="">A home made cheesecake served with heaps of whipped cream and Goji-berry & strawberry sauces.</dish>

</category>

<category id="category5" name="Drinks" icon="content/drinks_icon.png">

<dish name="Master Muffin" icon="">Chocolate muffin with white-chock chips, served with vanilla whipped cream.</dish>

<dish name="The Big Apple" icon="">Apple pie with pecan nuts and raisins, served with vanilla ice cream and chocolate sauce.</dish>

<dish name="Shake it, shake it" icon="">A giant milk shake with a choice of banana-chocolate, chocolate, strawberry-vanilla or mint-chocolate. Made with real fruits and choc.</dish>

<dish name="Super Cheesecake" icon="">A home made cheesecake served with heaps of whipped cream and Goji-berry & strawberry sauces.</dish>

</category>

</menu>

</restaurant>

Slitaz -- QML RestaurantApp





QML RestaurantApp

The Restaurant example application demonstrates how QML can be used to build a simple, impressive catalog-type application based on local XML data. It is straightforward to convert the application to use internet resources instead of local XML-resources. The application is designed in such a way that it is easy to replace the content and visual style for different restaurants.

Slitaz -- qtcreator-lrelease



1.
root@slitaz:/tmp/qt-creator-qt-creator/share/qtcreator/translations# diff translations.pro-orig translations.pro
--- translations.pro-orig
+++ translations.pro
@@ -1,6 +1,6 @@
 include(../../../qtcreator.pri)

-LANGUAGES = cs de fr hu ja pl ru sl zh_CN
+LANGUAGES = cs de fr hu ja pl ru sl zh_CN zh_TW

 # var, prepend, append
 defineReplace(prependAll) {

2.
為項目translations執行構建步驟 ...
正在啟動 "/usr/bin/qmake" /tmp/qt-creator-qt-creator/share/qtcreator/translations/translations.pro -r -spec linux-g++
進程"/usr/bin/qmake"正常退出。
正在啟動 "/usr/bin/make" -w
make: Entering directory `/tmp/qt-creator-qt-creator/share/qtcreator/translations-build-desktop'
/usr/bin/lrelease ../translations/qtcreator_cs.ts -qm share/qtcreator/translations/qtcreator_cs.qm
Updating 'share/qtcreator/translations/qtcreator_cs.qm'...
    Generated 4067 translation(s) (4067 finished and 0 unfinished)
/usr/bin/lrelease ../translations/qtcreator_de.ts -qm share/qtcreator/translations/qtcreator_de.qm
Updating 'share/qtcreator/translations/qtcreator_de.qm'...
    Generated 5979 translation(s) (5979 finished and 0 unfinished)
/usr/bin/lrelease ../translations/qtcreator_fr.ts -qm share/qtcreator/translations/qtcreator_fr.qm
Updating 'share/qtcreator/translations/qtcreator_fr.qm'...
    Generated 5438 translation(s) (5438 finished and 0 unfinished)
/usr/bin/lrelease ../translations/qtcreator_hu.ts -qm share/qtcreator/translations/qtcreator_hu.qm
Updating 'share/qtcreator/translations/qtcreator_hu.qm'...
    Generated 2846 translation(s) (2846 finished and 0 unfinished)
/usr/bin/lrelease ../translations/qtcreator_ja.ts -qm share/qtcreator/translations/qtcreator_ja.qm
Updating 'share/qtcreator/translations/qtcreator_ja.qm'...
    Generated 5346 translation(s) (5345 finished and 1 unfinished)
    Ignored 95 untranslated source text(s)
/usr/bin/lrelease ../translations/qtcreator_pl.ts -qm share/qtcreator/translations/qtcreator_pl.qm
Updating 'share/qtcreator/translations/qtcreator_pl.qm'...
    Generated 5477 translation(s) (5449 finished and 28 unfinished)
    Ignored 463 untranslated source text(s)
/usr/bin/lrelease ../translations/qtcreator_ru.ts -qm share/qtcreator/translations/qtcreator_ru.qm
Updating 'share/qtcreator/translations/qtcreator_ru.qm'...
    Generated 5439 translation(s) (5439 finished and 0 unfinished)
/usr/bin/lrelease ../translations/qtcreator_sl.ts -qm share/qtcreator/translations/qtcreator_sl.qm
Updating 'share/qtcreator/translations/qtcreator_sl.qm'...
    Generated 4057 translation(s) (4057 finished and 0 unfinished)
    Ignored 9 untranslated source text(s)
/usr/bin/lrelease ../translations/qtcreator_zh_CN.ts -qm share/qtcreator/translations/qtcreator_zh_CN.qm
Updating 'share/qtcreator/translations/qtcreator_zh_CN.qm'...
    Generated 5439 translation(s) (5439 finished and 0 unfinished)
/usr/bin/lrelease ../translations/qtcreator_zh_TW.ts -qm share/qtcreator/translations/qtcreator_zh_TW.qm
Updating 'share/qtcreator/translations/qtcreator_zh_TW.qm'...
    Generated 5439 translation(s) (5439 finished and 0 unfinished)
make: Leaving directory `/tmp/qt-creator-qt-creator/share/qtcreator/translations-build-desktop'
進程"/usr/bin/make"正常退出。

3.
root@slitaz:~# ls -lh /tmp/qt-creator-qt-creator/share/qtcreator/translations-build-desktop/shar
e/qtcreator/translations/
total 6708
-rw-r--r--    1 root     root      548.9K Jul  7 15:11 qtcreator_cs.qm
-rw-r--r--    1 root     root      906.1K Jul  7 15:11 qtcreator_de.qm
-rw-r--r--    1 root     root      837.4K Jul  7 15:11 qtcreator_fr.qm
-rw-r--r--    1 root     root      396.1K Jul  7 15:11 qtcreator_hu.qm
-rw-r--r--    1 root     root      623.9K Jul  7 15:11 qtcreator_ja.qm
-rw-r--r--    1 root     root      787.3K Jul  7 15:11 qtcreator_pl.qm
-rw-r--r--    1 root     root      789.5K Jul  7 15:11 qtcreator_ru.qm
-rw-r--r--    1 root     root      539.8K Jul  7 15:11 qtcreator_sl.qm
-rw-r--r--    1 root     root      591.2K Jul  7 15:11 qtcreator_zh_CN.qm
-rw-r--r--    1 root     root      591.2K Jul  7 15:11 qtcreator_zh_TW.qm
root@slitaz:~#
.

2011-07-04

Slitaz -- kids





slitaz-kids.iso   2011-Jun-26 12:06:23   65.0M

file:///usr/share/doc/slitaz/kids.en.html

http://hg.slitaz.org/flavors/raw-file/7894ae01d959/kids/rootfs/usr/share/doc/slitaz/kids.en.html

SliTaz Kids


SliTaz for kids :-)

Welcome to the SliTaz Kids flavor. This version of SliTaz provide a an easy to use an intuitive desktop for kids older than 5 years. This is the first version, any feedback and wisheses can be done on the SliTaz Forum
It let the child play educational games, listen to music, write text documents and view or create images. The desktop use Openbox window manager, wbar for the icons bar and Nitrogen to set background images. The child can also manage is files with PCmanFM, wich is a standard and simple file manager.

Applications

  • Games: Childsplay
  • Math: Tuxmath
  • Music: Alsaplayer
  • Write: Xournal
  • Paint: MtPaint
  • Images: GQview
As on a standard SliTaz system you can install some more applications with the packages manager Tazpkg. Allowed applications for the child are on the icons bar and can also be in the Openbox menu, this let the admin choose wich applications are avalaible or not.

Desktop

The desktop introduce to a standard desktop (floating windows, tasks bar) with some large and accessible icons but no menu and no files on the desktop). Any mouse click wil popup a small menu with shortcuts to applications, an item to start a slideshow with all images in ~/Images, an admin menu as well as a logout and shutdow item.
If you want a task bar with a clock and notifycation support, you can start tint2 from command line to try it and add it to Openbox start script to get it run on each session.

Music

The defaut icons bar have an icon to play music with alsaplayer, when opened the child must click on the play button to start. The playlist is simply all the sound files found in ~/Music, so you just have to drop songs in this folder to add some songs for childs.

Childsplay alphabet in your language

Childsplay can use voices from Gcompris for the alphabet. We may have support for out-out-the-box for some languages in future version. For now you must install the appropriate Gcompris voices package and create a symlink, exemple for French localisation:
# tazpkg -i gcompris-voices-fr
# ln -s /usr/share/gcompris/boards/voices/fr/alphabet \
 /usr/share/sp_alphabetsounds/fr