[Qt-jambi-interest] Problems building the generator examples

2011-02-21 Thread Poalo Pacussi
Hi guys, I'm trying to build the qt jambi generator examples in order to dig myself into the whole topic. I've got the qt-win-opensource-4.7.1-vs2008 version and the latest clone of the git repository. I'm talking about the hello_world_generator example. Overall there seem to be several paths wr

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-21 Thread Helge Fredriksen
Hello! Hello Paolo! Wow, I'm quite sure you're the first guys EVER trying to compile that generator example! At least that I heard of... Congratulations! I'm the author of the HelloWorld stuff, and as you can see it's not a simple task setting it up. Since the build system has gone through some r

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-21 Thread Samu Voutilainen
If you need something specific about build system changes, just ask me... These MSVC errors are often quite fun, for this reason I prefer MinGW for compilation on Windows. On Tuesday 22 February 2011 00:05:54 Helge Fredriksen wrote: > Hello! > > Hello Paolo! > > Wow, I'm quite sure you're the

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-21 Thread Poalo Pacussi
Hi, The reason I used msvc is that I actually tried MinGW first but just didn't get qtjambi building successfully. And yeah, a .jar was build as well: test-win32-msvc2008-4.7.1.jar. To me everything seems fine despite the fact that the java wont compile It's just strange to me that QApplication

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Helge Fredriksen
One thing I must ask: You did compile QtJambi from scratch? Actually you could do with a precompiled Qt, but to work with the generator you need to compile the QtJambi from source. Heck, if QApplication cannot be found, you are missing qtjambi.jar etc. in your classpath when trying to launch the e

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Poalo Pacussi
Hi, I compiled QtJambi from sources out of the qtjambi-community git repository. Just for Qt I used the precompiled version. And ok you were right :) I missed the qtjambi.jar ... but now there is still the problem that javac cannot fint the org.jambi.test sources (see below for the errors). Coul

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Samu Voutilainen
The generator handles correctly only most of Qt, it isn’t feature complete for CPP, so you may expect some problems. Creating tickets for these problems really helps getting them solved, though. Is your Qt version MSVC version or MinGW version? Is your local MSVC version same with MSVC version

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Poalo Pacussi
Qt: qt-win-opensource-4.7.1-vs2008 MVSC: Microsoft Visual C++ 2008 Express Edition with SP1 - ENU I didn't compile the Qt version, as I read several times that the precompiled libraries will do. I just configured it using -platform win32-msvc2008. There are no other versions of qt or msvc as I us

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Samu Voutilainen
Atleast on qtjambi space PRI files are mostly generated by generator. What for this file would be? Maybe Helge knows how this works with user libraries? On Tuesday 22 February 2011 15:06:18 Poalo Pacussi wrote: > Oh, > > I just realized that the make error is my mistake. > > I replaced the th

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Poalo Pacussi
Oh, I just realized that the make error is my mistake. I replaced the the .pri file extension of the following line (test.pro file) with .dll. include(../bin/org_qtjambi_test.pri) Sure the generator is not able to parse it! But this .pri file is nowhere to be found in my checkout?! On Tue, Feb

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Helge Fredriksen
> > > 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 essen

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-22 Thread Poalo Pacussi
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 wrote: > >> But this .pri file is nowhere to be found in my checkout?! >> > > The pri file should have been generated. > > Anyway, this technology takes so

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-23 Thread Poalo Pacussi
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' [g

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-23 Thread Helge Fredriksen
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

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-23 Thread Samu Voutilainen
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. Pl

Re: [Qt-jambi-interest] Problems building the generator examples

2011-02-24 Thread Poalo Pacussi
Hi, as far as I understand it right these generator examples were once working. I just adapted the pathes, in the global.h or the typesystem I did not change a thing. The global.h : #include <../../src/TestItem.h> #include <../../src/TestSuper.h> #include <../../src/TestView.h> #include #include