I haven’t looked at those custom generator examples, but...

I have never seen this kind of errors, but I’ll try some guessing. Somehow  
this is not finding QGraphicsView from anywhere. Either that, or your class 
uses that class in way 
the generator doesn’t support. I’d doubt latter, though.

Please give full log for start; there is .preprocessed.tmp in dir you are 
running generator that should contain all class names, including those inside 
Qt, given you have set 
your project correctly. 

Generator output, when you don’t know what may be causing it, may be quite 
confusing; often it’s easier just compile and look the real error and fix that.

On Wednesday 23 February 2011 22:59:12 Helge Fredriksen wrote:
> Hi!
> 
> I guess this just means that the generator is not being fed with the correct
> input in some way. It probably
> isn't able to find the definitions of these classes during parsing. Could
> you try to include the typesystem
> for these packages/classes manually in the typesystem file of the test
> project? Any ideas, Samu? You're
> the generator expert!
> 
> Helge
> 
> On Wed, Feb 23, 2011 at 8:09 PM, Poalo Pacussi <temph...@googlemail.com>wrote:
> 
> > I finally got the hello world example running, yeaha!
> >
> > But in order to do so I had to tweak the generated java classes by hand,
> > compile them by hand, and integrade them into the produced .jar.
> >
> > The problem:
> > [generator] WARNING(MetaJavaBuilder) :: unknown baseclass for 'TestView':
> > 'QGraphicsView'
> > [generator] WARNING(MetaJavaBuilder) :: unknown baseclass for 'TestSuper':
> > 'QGraphicsObject'
> >
> > The QtGui library is injected and the typesystem is loaded. I really do not
> > know why the generator does not find those classes ... They are correctly
> > located in the $QTDIR/include/QtGui folder and all pathes are set.
> >
> > As I mentioned above, if I replace the respective extends in the .java
> > files and compile them by hand using javac ... everything works fine.
> >
> > I looked up several generator documentations but couldn't find any clue on
> > how to solve this issue. The only thing was an old mailing list discussion
> > from helge (
> > http://lists.trolltech.com/qt-jambi-interest/2007-01/thread00024-0.html).
> >
> > Best regards.
> > On Tue, Feb 22, 2011 at 7:04 PM, Poalo Pacussi 
> > <temph...@googlemail.com>wrote:
> >
> >> Hi,
> >>
> >> I'll keep on trying.
> >>
> >> Thank your guys very much for the answers so far.
> >>
> >> Best regards.
> >>
> >>   On Tue, Feb 22, 2011 at 6:12 PM, Helge Fredriksen <
> >> helgeingv...@gmail.com> wrote:
> >>
> >>>
> >>>> But this .pri file is nowhere to be found in my checkout?!
> >>>>
> >>>
> >>> The pri file should have been generated.
> >>>
> >>> Anyway, this technology takes some effort to get control of since there
> >>> are so many stages. That's why I made this
> >>> very simple hello world example in the first place, to nail down the
> >>> essential steps without an overwhelming amount
> >>> of functionality in addition.
> >>>
> >>> After having tamed this initial example, you will need to learn how to
> >>> map the classes using the typesystem.
> >>> Usually not that difficult, but you might run into some obstacles, some
> >>> C++ method signature types are not
> >>> that good supported by the generator, and it's not ALWAYS so that it
> >>> tells you in a very clear manner. You
> >>> might have to use a bit intuition for it. I've used this approach in 2-3
> >>> projects, so I've started to know most
> >>> of the quirks, but you will have to calculate some factor there before
> >>> you are up-to-speed.
> >>>
> >>> Helge
> >>>
> >>
> >>
> >
> > _______________________________________________
> > Qt-jambi-interest mailing list
> > Qt-jambi-interest@qt.nokia.com
> > http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest
> >
> >
-- 
Terveisin,
Samu Voutilainen
http://smar.fi
_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest

Reply via email to