Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qtopia-interest Archive, May 2007
[no subject]


Message 1 in thread

Hi:
 
I use suse linux 10.0 for i586 ,with gcc 4.1.2 to compile qtopia core 4.3 beta with opengl model. 
I configure with -embedded x86 and -opengl but meet the problem as below: 
 
g++ -c -pipe -g -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_OPENGL_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_FREETYPE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-x86-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include/QtGui -I../../include/QtGui -I../../include -I../../include/QtOpenGL -I.moc/release-shared-emb-x86 -I.uic/release-shared-emb-x86 -o .obj/release-shared-emb-x86/qgl.o qgl.cpp

qgl_p.h:321: error: expected initializer before ‘*’ token
gmake[1]: *** [.obj/release-shared-emb-x86/qgl.o] Error 1
gmake[1]: Leaving directory `/opt/qtopiacore4.3/qtopia-core-opensource-src-4.3.0rc1/src/opengl'
gmake: *** [sub-opengl-make_default-ordered] Error 2

I am not sure whether the gcc is suitable.


-------------------------------------------------------------------
职场先机一网打尽,简历平台创造寻职奇迹( http://d1.sina.com.cn/sina/limeng3/mail_zhuiyu/2007/mail_zhuiyu_20070518.html )

===================================================================
注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html

Message 2 in thread

On Sunday 20 May 2007 13:33:11 ip4347@xxxxxxxx wrote:
> Hi:
>  
> I use suse linux 10.0 for i586 ,with gcc 4.1.2 to compile qtopia core 4.3
> beta with opengl model. I configure with -embedded x86 and -opengl but meet
> the problem as below:  
> g++ -c -pipe -g -fno-exceptions -O2 -fvisibility=hidden
> -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED
> -DQT_BUILD_OPENGL_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
> -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_FREETYPE -DQT_NO_DEBUG -DQT_GUI_LIB
> -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> -I../../mkspecs/qws/linux-x86-g++ -I. -I../../include/QtCore
> -I../../include/QtCore -I../../include/QtGui -I../../include/QtGui
> -I../../include -I../../include/QtOpenGL -I.moc/release-shared-emb-x86
> -I.uic/release-shared-emb-x86 -o .obj/release-shared-emb-x86/qgl.o qgl.cpp
>
> qgl_p.h:321: error: expected initializer before â*â token
> gmake[1]: *** [.obj/release-shared-emb-x86/qgl.o] Error 1
> gmake[1]: Leaving directory
> `/opt/qtopiacore4.3/qtopia-core-opensource-src-4.3.0rc1/src/opengl' gmake:
> *** [sub-opengl-make_default-ordered] Error 2
>
> I am not sure whether the gcc is suitable.

Hi,
gcc-4.1.2 should be just fine.
It looks like a missing forward declaration in the header file.
Try inserting

class QOpenGLPaintEngine;

some place before line 321 in qgl_p.h

Hope this helps,
--
 [ signature omitted ]