PDA

View Full Version : how to install



shihao
1st March 2010, 03:21
Dear all,

Hello, I am QT Newbie.

I have download the following link in order to install the QT on CentOS 5.4 as embedded linux.

http://qt.nokia.com/downloads/embedded-linux-cpp


I have install it according to following link:
http://doc.qt.nokia.com/4.6/qt-embedded-install.html

Anyway I have encounter problem when I try to install Virtual Framebuffer
http://doc.qt.nokia.com/4.6/qvfb.html

The instruction direct me
cd path/to/QtEmbedded
./configure -qvfb
make

But where is 'path/to'?

path/to/Qt/tools/qvfb
make
./qvfb

I have access to /usr/src/QT/qt-everywhere-opensource-src-4.6.1/tools/qvfb
try to 'make', it return me
qvfbshmem.cpp:65:2: error: #error qvfb must be compiled with the Qt for X11 package
make: *** [.obj/release-shared-emb-x86/qvfbshmem.o] Error 1

When I try to ./qvfb.cpp, it return me
./qvfb.cpp: line 1: /bin: is a directory
./qvfb.cpp: line 2: ~: command not found
./qvfb.cpp: line 3: syntax error near unexpected token `('
./qvfb.cpp: line 3: `** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).'

What should I do in order to install the Virtual Framebuffer?

Thanks and regards
Shi hao

schnitzel
2nd March 2010, 17:09
But where is 'path/to'?
this just means that you have to run the 'configure' script from /<this path depends on where you installed it>/Qt/tools folder.
I'm not that familiar with the embedded versions, but try to find where the 'configure' script is located.

Also according to documentation, you need to add 'embedded' to the configure command.

shihao
8th March 2010, 16:10
hi schnitzel,

Thanks for the reply. I have been doing this about 3 weeks, anyone who know please help. Really appreciate.

Now, I try to compile c++ program, but seems that every program that I have compile it return me error message:
./hello.cpp: line 3: syntax error near unexpected token `('
./hello.cpp: line 3: `int main(int argc, char *argv[])'

what's going on?

I am using CentOS GNOME 5.4 as my OS, I dunno whether qt for embedded linux is the correct package or not?

Dear schnitzel,

Maybe you can direct me in the package that you familiar? Maybe X11 or something, at leaset I can do something works.

Thanks and regards
Shi Hao

schnitzel
16th March 2010, 18:20
Shi Hao,
If you just want something that works on CentOS, then you should install Qt for linux/X11.
good luck