Saturday, July 5th 2008, 2:19pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, September 29th 2007, 10:30am

Error: Scribble Application

I'm using Qtopia SDK on Fedora 7. I'm new to Qtopia, and hence i'd appreciate help on this:

I've tried to execute the common scribble application available as an example in Qt Manuals. The following files are used:

sources: scribblearea.cpp, mainwindow.cpp, main.cpp
headers: scribblearea.h, mainwindow.h

then i also have this project file with name "scribble.pro" who has the required above definitions. I'm not using an interface (under comments)

The environment variables are properly set using bashrc file

I then do tmake -o Makefile scribble.pro and then make.

The following error occurs after "make"

make
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG
-I/opt/Qtopia/include -I/opt/Qtopia/include -o main.o main.cpp
mainwindow.h:40: error: ISO C++ forbids declaration of ‘QMenu’ with no type
mainwindow.h:40: error: expected ‘;’ before ‘*’ token
mainwindow.h:41: error: ISO C++ forbids declaration of ‘QMenu’ with no type
mainwindow.h:41: error: expected ‘;’ before ‘*’ token
mainwindow.h:42: error: ISO C++ forbids declaration of ‘QMenu’ with no type
mainwindow.h:42: error: expected ‘;’ before ‘*’ token
mainwindow.h:43: error: ISO C++ forbids declaration of ‘QMenu’ with no type
mainwindow.h:43: error: expected ‘;’ before ‘*’ token
make: *** [main.o] Error 1

It seems that Qmenu header file is missing in my library. I tried to search for it but it is not available. Is there any solution?

Can anybody please help me with exact steps needed to execute the above scribble application on Qtopia SDK.

Thanks a lot,

Sri
  • Go to the top of the page

Rate this thread