![]() |
2010-02-26
, 13:03
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#2
|
![]() |
2010-02-26
, 14:11
|
Posts: 61 |
Thanked: 77 times |
Joined on Dec 2009
@ Lancaster
|
#3
|
![]() |
2010-02-26
, 15:22
|
Posts: 61 |
Thanked: 77 times |
Joined on Dec 2009
@ Lancaster
|
#4
|
![]() |
2010-03-01
, 23:40
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#5
|
I checked your post that was mentioned above and the source code. Nice starting app.
I see you create an image and save it into the phones memory and then use that image to create a QPixmap and display it on the screen. I am not sure if this is the way how I should implement camera example on QT, as I want to display a continues stream of video until the photo is taken. This is why I think I need to use x_overlay.
However, I would also like to draw on top of the video stream like the native camera app on N900 does.
Any other suggestions?
Cheers,
Klen
![]() |
2010-03-01
, 23:56
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#7
|
This is a totally uninformed opinion, but maybe you should look into Phonon. Its the QT OO front end to gstreamer.
![]() |
2010-03-02
, 09:22
|
Posts: 61 |
Thanked: 77 times |
Joined on Dec 2009
@ Lancaster
|
#8
|
![]() |
2010-03-02
, 12:52
|
Posts: 61 |
Thanked: 77 times |
Joined on Dec 2009
@ Lancaster
|
#9
|
seems to be no documentation for phonon, well google just brings up bug reports(Using python)
![]() |
2010-03-02
, 16:43
|
Posts: 61 |
Thanked: 77 times |
Joined on Dec 2009
@ Lancaster
|
#10
|
I am trying to port Maemo Camera Example to QT and run into problems.
PROBLEM 1: SOLVED
I guess I am getting the:
/home/klen/workplace/maemo/DistanceQT/src/cameraN900.cpp:399: undefined reference to `gst_x_overlay_get_type'
/home/klen/workplace/maemo/DistanceQT/src/cameraN900.cpp:399: undefined reference to `gdk_x11_drawable_get_xid'
/home/klen/workplace/maemo/DistanceQT/src/cameraN900.cpp:399: undefined reference to `gst_x_overlay_set_xwindow_id'
because I am missing libraries. Bellow is my QMAKE FILE:
CFLAGS=-O0 -g
CXXFLAGS=-O0 -g
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
QMAKE_CLEAN += distanceqt
#Includes
INCLUDEPATH +=. /usr/include/ \
/usr/include/gtk-2.0/ \
/usr/include/gtk-2.0/gtk/ \
/usr/include/gstreamer-0.10/ \
/usr/include/glib-2.0/ \
/usr/include/glib-2.0/glib/ \
/usr/include/glib-2.0/gio/ \
/usr/include/glib-2.0/gobject/ \
/usr/include/cairo/ \
/usr/include/pango-1.0/ \
/usr/include/atk-1.0/ \
/usr/include/libxml2/ \
/usr/include/dbus-1.0/ \
/usr/lib/gtk-2.0/include \
/usr/lib/gstreamer-0.10 \
/usr/lib \
/usr/lib/glib-2.0/include \
/usr/lib/dbus-1.0/include
LIBS += -L/usr/lib/glib-2.0 -lglib-2.0 \
-L/usr/lib/gstreamer-0.10 -lgstreamer-0.10 \
HEADERS += src/appdata.h src/camerafield.h src/cameraN900.h
SOURCES += src/appdata.cpp src/camerafield.cpp src/main.cpp src/cameraN900.cpp
I googled and found out that I should link in gstinterfaces-0.10 and gtk-2.0. If I add these two libraries in the same way as I did the others:
-L/usr/lib/gtk-2.0 -lgtk+-2.0 \
-L/usr/lib/ -lgstinterfaces
I get an error:
cannot find -lgtk+-2.0
cannot find -lgstinterfaces
What should I do to include these tow libraries in my QMAKE file. Do I need to find a workaround by manually updating the make file?
PROBLEM 2: SOLVED
I have a problem linking the gstreamer pipeline sink to any of QT objects. There was a suggestion by mmurfin87 to check Phonon. I am looking into Phonon now. Any other suggestions?
Thanks,
Klen
Last edited by klen; 2010-03-03 at 11:35. Reason: Better deduction