Skip navigation.
Home
The QNX Community Portal

View topic - include QGraphicsSvgItem

include QGraphicsSvgItem

Isn't the name clear?

include QGraphicsSvgItem

Postby Noir » Wed Aug 21, 2013 11:23 am

hi @ all!

I have the following problem:

I made a program in Qt4.7 and wanted to crosscompile it on my windows8 machine for QNX bsp for Beagleboard-xM.
Until now it was working fine, but now I tried the add vector graphics and thus addes a QGraphicsSvgItem to my program.
Now i cannot compile it anymore! Everytime I get the error "QGraphicsSvgItem: File or Directory not found".
I looked into my QNX directory and in "\qnx650\target\qnx6\usr\include\qt4\QtSvg" I found these two files:
QGraphicsSvgItem
qgraphicssvgitem.h

So it should be able to include the SvgItem, or not?
what could be my problem?

Pls help!
Noir
Active Member
 
Posts: 31
Joined: Mon Aug 20, 2012 4:59 pm

Re: include QGraphicsSvgItem

Postby maschoen » Wed Aug 21, 2013 2:27 pm

Is it possible that QGraphicsSvgItem is excluded from the QNX Qt4.7 port?
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: include QGraphicsSvgItem

Postby Noir » Wed Aug 21, 2013 4:54 pm

I don´t know :)
how can I check that?

Until now I tried the following:
- I added the missing .h-file to my program. Now it can compile, but stops t the end with the following error:

moc_qgraphissvgitem.cpp:79: error: invalid use of incomplete type 'struct QGraphicsSvgItemPrivate'
qgraphicssvgitem.h:56: error: forward declaration of 'struct QGraphicsSvgItemPrivate'

-> What the .. ?? I searched for this struct but couldn´t find good infos in the internet.. :(

Next I got the Qt4.8.2 lib and added them to my armle-v7/usr/lib -directory
-> Didn´t help me.. Idea was that it could be something with qt4.8.. but doesn´t look like so...
Noir
Active Member
 
Posts: 31
Joined: Mon Aug 20, 2012 4:59 pm

Re: include QGraphicsSvgItem

Postby maschoen » Wed Aug 21, 2013 11:57 pm

Do you have a directory src/svg. I have one for version 4.8.2 which has the following files:

Makefile
pkgconfig
qgraphicssvgitem.cpp
qgraphicssvgitem.h
qsvgfont.cpp
qsvgfont_p.h
qsvggenerator.cpp
qsvggenerator.h
qsvggraphics.cpp
qsvggraphics_p.h
qsvghandler.cpp
qsvghandler_p.h
qsvgnode.cpp
qsvgnode_p.h
qsvgrenderer.cpp
qsvgrenderer.h
qsvgstructure.cpp
qsvgstructure_p.h
qsvgstyle.cpp
qsvgstyle_p.h
qsvgtinydocument.cpp
qsvgtinydocument_p.h
qsvgwidget.cpp
qsvgwidget.h
svg.pro
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: include QGraphicsSvgItem

Postby Noir » Thu Aug 22, 2013 7:49 am

Where exactly should this directory be?
I looked under "D:\QNX650\target\qnx6\usr\scr\" but could only find an directory named "archives"

Should I add such a directory like you said, or do I have to do a little bit more?
Noir
Active Member
 
Posts: 31
Joined: Mon Aug 20, 2012 4:59 pm

Re: include QGraphicsSvgItem

Postby Noir » Thu Aug 22, 2013 12:56 pm

I now found my problem:)
Thanks to maschoen and some other people i got the idea to check the makefile and thus the qmake_qnx.bat file.
There i had to add the module "svg". now it is compiling and running correct.

Thx maschoen!
Noir
Active Member
 
Posts: 31
Joined: Mon Aug 20, 2012 4:59 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 0 guests