liu liming(deleted)
|
Bulid error : OpenKode,OpenVG
|
liu liming(deleted)
06/08/2009 9:14 AM
post31070
|
Bulid error : OpenKode,OpenVG
Hi,everybody
I am writing an application with OpenKode and OpenVG.And my enviorment is :QNX6.4.0 + Aviage HMI Suite 2.0
I list my lib in "C:\QNX640\target\qnx6\x86\usr\lib" and get the result
----------------------------------------------------------------------------
2009/03/26 03:12 0 libEGL.so
2009/03/26 03:12 62,126 libEGL.so.1
2009/03/26 03:12 0 libgf.so
2009/03/26 03:12 92,505 libgf.so.1
2009/03/26 03:12 0 libgf.so
2009/03/26 03:12 151,633 libGLESv1_CM.so.1
2009/03/26 03:12 0 libGLES_CM.so
2009/03/26 03:12 166,032 libGLES_CM.so.1
2009/03/26 03:12 0 libKD.so
2009/03/26 03:12 29,789 libKD.so.1
2009/03/26 03:12 0 libWFD.so
2009/03/26 03:12 39,649 libWFD.so.1
2009/06/05 17:21 383,262 libOpenVG-G12.so.1
2009/06/05 17:21 27,036 libOpenVG.so.1
2009/06/05 17:21 38,742 libutil.a
----------------------------------------------------------------------------
The strage thing is that size of libEGL.so, libgf.so, libgf.so,libKD.so,libWFD.so is zero.
I fill the other option of linker option with
"-lgf -lEGL -lasound -lkd -lOpenVG -lOpenVG-G12".
But when bulid, I got many errores.I think it will be the problem of link option.How can I do for it?
Thanks very much.
-------------------------------------------------------
Severity and Description Path Resource Location Creation Time Id
'image' undeclared (first use in this function) my_application my_event_process.c line 311 1244465516977 3152
'image' undeclared (first use in this function) my_application my_event_process.c line 411 1244465516993 3160
'VGImage' undeclared (first use in this function) my_application my_event_process.c line 308 1244465516977 3150
'VGImage' undeclared (first use in this function) my_application my_event_process.c line 373 1244465516977 3158
C:/QNX640/target/qnx6/usr/include/errno.h expected ';' before 'extern' my_application line 40 1244465516977 3149
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ';' before 'asm' my_application line 749 1244465516977 3139
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ';' before 'typedef' my_application line 59 1244465516946 3072
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 649 1244465516977 3122
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 661 1244465516977 3125
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 700 1244465516977 3133
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 702 1244465516977 3134
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 709 1244465516977 3135
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 718 1244465516977 3136
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 722 1244465516977 3137
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 729 1244465516977 3138
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dstPath' my_application line 593 1244465516946 3098
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dstPath' my_application line 594 1244465516946 3099
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dstPath' my_application line 598 1244465516946 3100
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dstPath' my_application line 601 1244465516946 3101
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dstPath' my_application line 602 1244465516946 3102
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected...
View Full Message
|
|
|
Gaétan Noël
|
RE: Bulid error : OpenKode,OpenVG
|
Gaétan Noël
06/08/2009 9:42 AM
post31076
|
RE: Bulid error : OpenKode,OpenVG
Hi Liu,
Normally, your files with size zero should be links to the versioned .so files (e.g. libEGL.so linked to libEGL.so.1).
Since you are running your build environment under Windows, just make a straight copy of the .so.1 files to .so,
replacing the zero length files (and don't remove the .so.1). Furthermore, you'll need to also do this for libOpenVG.so
.1 (i.e. copy libOpenVG.so.1 to libOpenVG.so).
As a second comment, when using OpenVG, your application should link against libOpenVG, and not against libOpenVG-G12
(this one would be used by the driver itself).
As for the problems your getting when compiling, please try the attached header files for OpenVG. I believe the files
you have are for a 6.4.1 environment. So basically, you should simply put the attached files in your c:/QNX640/target/
qnx6/usr/include/VG/ directory on your build machine. Please let me know how that goes.
Regards,
Gaétan
-----Original Message-----
From: liu liming [mailto:community-noreply@qnx.com]
Sent: June 8, 2009 9:14 AM
To: cwm-graphics
Subject: Bulid error : OpenKode,OpenVG
Hi,everybody
I am writing an application with OpenKode and OpenVG.And my enviorment is :QNX6.4.0 + Aviage HMI Suite 2.0
I list my lib in "C:\QNX640\target\qnx6\x86\usr\lib" and get the result
----------------------------------------------------------------------------
2009/03/26 03:12 0 libEGL.so
2009/03/26 03:12 62,126 libEGL.so.1
2009/03/26 03:12 0 libgf.so
2009/03/26 03:12 92,505 libgf.so.1
2009/03/26 03:12 0 libgf.so
2009/03/26 03:12 151,633 libGLESv1_CM.so.1
2009/03/26 03:12 0 libGLES_CM.so
2009/03/26 03:12 166,032 libGLES_CM.so.1
2009/03/26 03:12 0 libKD.so
2009/03/26 03:12 29,789 libKD.so.1
2009/03/26 03:12 0 libWFD.so
2009/03/26 03:12 39,649 libWFD.so.1
2009/06/05 17:21 383,262 libOpenVG-G12.so.1
2009/06/05 17:21 27,036 libOpenVG.so.1
2009/06/05 17:21 38,742 libutil.a
----------------------------------------------------------------------------
The strage thing is that size of libEGL.so, libgf.so, libgf.so,libKD.so,libWFD.so is zero.
I fill the other option of linker option with "-lgf -lEGL -lasound -lkd -lOpenVG -lOpenVG-G12".
But when bulid, I got many errores.I think it will be the problem of link option.How can I do for it?
Thanks very much.
-------------------------------------------------------
Severity and Description Path Resource Location Creation Time Id
'image' undeclared (first use in this function) my_application my_event_process.c line 311 1244465516977 3152
'image' undeclared (first use in this function) my_application my_event_process.c line 411 1244465516993 3160
'VGImage' undeclared (first use in this function) my_application my_event_process.c line 308 1244465516977 3150
'VGImage' undeclared (first use in this function) my_application my_event_process.c line 373 1244465516977 3158
C:/QNX640/target/qnx6/usr/include/errno.h expected ';' before 'extern' my_application line 40 1244465516977 3149
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ';' before 'asm' my_application line 749 1244465516977 3139
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ';' before 'typedef' my_application line 59 1244465516946 3072
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 649 1244465516977 3122
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 661 1244465516977 3125
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line 700 1244465516977 3133
C:/QNX640/target/qnx6/usr/include/VG/openvg.h expected ')' before 'dst' my_application line...
View Full Message
|
|
|
liu liming(deleted)
|
Re: RE: Bulid error : OpenKode,OpenVG
|
liu liming(deleted)
06/08/2009 9:56 PM
post31173
|
Re: RE: Bulid error : OpenKode,OpenVG
Hi Gaétan,
Thanks your answer and I followed your advice.
1.I changed the filename
libEGL.so.1 ->libEGL.so
libgf.so.1 ->libgf.so
libGLESv1_CM.so.1 ->libGLESv1_CM.so
libGLES_CM.so.1 ->libGLES_CM.so
libKD.so.1 -> libKD.so
libWFD.so.1 ->libWFD.so
libOpenVG.so.1 ->libOpenVG.so
libOpenVG-G12.so.1 -> libOpenVG-G12.so
2.I checked my include file of
"C:\QNX640\target\qnx6\usr\include\VG", and get the result.I think it will be ok.
------------------------------------------------------------------
2009/06/05 17:18 34,982 openvg.h
2009/06/05 17:18 9,892 ovg11_api_backend.h
2009/06/05 17:18 2,481 ovg_backend.h
2009/06/05 17:18 1,658 ovg_driver_backend.h
2009/06/05 17:50 10,083 vgext.h
2009/06/05 17:18 3,188 vgplatform.h
2009/06/05 17:18 5,812 vgu.h
------------------------------------------------------------------
3.And I set the other option of linker tab to:
"-lgf -lEGL -lasound -lkd -lOpenVG -lOpenVG-G12"
But the error message is same.
Then I change the other option of linker tab to:
"-lgf -lEGL -lasound -lkd -lOpenVG"
and got the same error message.
Best Regards
Liu Liming
|
|
|
Gaétan Noël
|
RE: RE: Bulid error : OpenKode,OpenVG
|
Gaétan Noël
06/10/2009 8:55 AM
post31327
|
RE: RE: Bulid error : OpenKode,OpenVG
Hi Liu,
Here are a few more comments / clarifications:
1- a) libOpenVG-G12.so.1 doesn't need a .so link (but libOpenVG.so.1 does)
b) You should also keep the .so.1 files around, so in the end you should have two copies of the same files, one .so.1
and one .so
2- a) Have you tried using the header files I had attached to my previous post? The problem with the files you had was
at the end of the files, where there's a call to __SRCVERSION (and in some files an #include of <sys/srcversion.h>, and
6.4 doesn't have these defined. It is safe to remove these lines.
b) I suppose you have taken vgext.h from Khronos (as we don't provide this file...)? Our OpenVG implementation
doesn't support the KHR extensions, so you should not be including this file from your application.
3- VGImage is defined in openvg.h, so if your application includes openvg.h (as it appears to be doing) and it still
causes compilation problems even with the __SRCVERSION references removed (as in the files I had previously attached),
then chances are there's a problem in your code before the #include statement. The openvg.h file comes directly from
Khronos. If after steps one and two above you are still having compilation problems, please attach the new build output
(as it will be different than what you had previously attached).
Regards,
Gaétan
-----Original Message-----
From: liu liming [mailto:community-noreply@qnx.com]
Sent: June 8, 2009 9:57 PM
To: cwm-graphics
Subject: Re: RE: Bulid error : OpenKode,OpenVG
Hi Gaétan,
Thanks your answer and I followed your advice.
1.I changed the filename
libEGL.so.1 ->libEGL.so
libgf.so.1 ->libgf.so
libGLESv1_CM.so.1 ->libGLESv1_CM.so
libGLES_CM.so.1 ->libGLES_CM.so
libKD.so.1 -> libKD.so
libWFD.so.1 ->libWFD.so
libOpenVG.so.1 ->libOpenVG.so
libOpenVG-G12.so.1 -> libOpenVG-G12.so
2.I checked my include file of
"C:\QNX640\target\qnx6\usr\include\VG", and get the result.I think it will be ok.
------------------------------------------------------------------
2009/06/05 17:18 34,982 openvg.h
2009/06/05 17:18 9,892 ovg11_api_backend.h
2009/06/05 17:18 2,481 ovg_backend.h
2009/06/05 17:18 1,658 ovg_driver_backend.h
2009/06/05 17:50 10,083 vgext.h
2009/06/05 17:18 3,188 vgplatform.h
2009/06/05 17:18 5,812 vgu.h
------------------------------------------------------------------
3.And I set the other option of linker tab to:
"-lgf -lEGL -lasound -lkd -lOpenVG -lOpenVG-G12"
But the error message is same.
Then I change the other option of linker tab to:
"-lgf -lEGL -lasound -lkd -lOpenVG"
and got the same error message.
Best Regards
Liu Liming
_______________________________________________
CWM/OpenKODE
http://community.qnx.com/sf/go/post31173
|
|
|
liu liming(deleted)
|
Re: RE: RE: Bulid error : OpenKode,OpenVG
|
liu liming(deleted)
06/11/2009 7:50 AM
post31463
|
Re: RE: RE: Bulid error : OpenKode,OpenVG
Hi,Gaétan
Thanks for your answer and I had finished this question.
1.When I use your header file in qnx6.4.0, complied failed beacause there is no sys/srcversion.h in qnx6.4.0
2.So I update my os to Qnx6.4.1, then everything becames ok.
Thanks very much for your answer.And best regard.
Liu Liming
> Hi Liu,
> Here are a few more comments / clarifications:
>
> 1- a) libOpenVG-G12.so.1 doesn't need a .so link (but libOpenVG.so.1 does)
> b) You should also keep the .so.1 files around, so in the end you should
> have two copies of the same files, one .so.1 and one .so
>
> 2- a) Have you tried using the header files I had attached to my previous
> post? The problem with the files you had was at the end of the files, where
> there's a call to __SRCVERSION (and in some files an #include of <sys/srcversion.h>, and 6.4
> doesn't have these defined. It is safe to remove these lines.
> b) I suppose you have taken vgext.h from Khronos (as we don't provide this
> file...)? Our OpenVG implementation doesn't support the KHR extensions, so
> you should not be including this file from your application.
>
> 3- VGImage is defined in openvg.h, so if your application includes openvg.h (
> as it appears to be doing) and it still causes compilation problems even with
> the __SRCVERSION references removed (as in the files I had previously attached
> ), then chances are there's a problem in your code before the #include
> statement. The openvg.h file comes directly from Khronos. If after steps one
> and two above you are still having compilation problems, please attach the
> new build output (as it will be different than what you had previously
> attached).
>
> Regards,
> Gaétan
>
> -----Original Message-----
> From: liu liming [mailto:community-noreply@qnx.com]
> Sent: June 8, 2009 9:57 PM
> To: cwm-graphics
> Subject: Re: RE: Bulid error : OpenKode,OpenVG
>
> Hi Gaétan,
> Thanks your answer and I followed your advice.
>
> 1.I changed the filename
> libEGL.so.1 ->libEGL.so
> libgf.so.1 ->libgf.so
> libGLESv1_CM.so.1 ->libGLESv1_CM.so
> libGLES_CM.so.1 ->libGLES_CM.so
> libKD.so.1 -> libKD.so
> libWFD.so.1 ->libWFD.so
> libOpenVG.so.1 ->libOpenVG.so
> libOpenVG-G12.so.1 -> libOpenVG-G12.so
>
> 2.I checked my include file of
> "C:\QNX640\target\qnx6\usr\include\VG", and get the result.I think it will be
> ok.
> ------------------------------------------------------------------
> 2009/06/05 17:18 34,982 openvg.h
> 2009/06/05 17:18 9,892 ovg11_api_backend.h
> 2009/06/05 17:18 2,481 ovg_backend.h
> 2009/06/05 17:18 1,658 ovg_driver_backend.h
> 2009/06/05 17:50 10,083 vgext.h
> 2009/06/05 17:18 3,188 vgplatform.h
> 2009/06/05 17:18 5,812 vgu.h
> ------------------------------------------------------------------
>
> 3.And I set the other option of linker tab to:
> "-lgf -lEGL -lasound -lkd -lOpenVG -lOpenVG-G12"
> But the error message is same.
>
> Then I change the other option of linker tab to:
> "-lgf -lEGL -lasound -lkd -lOpenVG"
> and got the same error message.
>
> Best Regards
>
> Liu Liming
>
>
> _______________________________________________
> CWM/OpenKODE
> http://community.qnx.com/sf/go/post31173
|
|
|
Dennis Kellly
|
Re: RE: RE: Bulid error : OpenKode,OpenVG
|
Dennis Kellly
06/15/2009 12:13 PM
post31760
|
Re: RE: RE: Bulid error : OpenKode,OpenVG
Regarding the compile error, check for a line like
__SRCVERSION( "$URL: http://svn.ott.qnx.com/product/trunk/...
at the end of include .h files. If it is there, comment it and rebuild.
|
|
|
|