Hi Harry

Yes, this is a confusing bit.  In fact if you just run the qmake
command again, it works, because the first run creates the build
directory -- but not until after the lines that failed.  So an even
easier fix is to move those lines to the bottom of the .pro file.



On Oct 27, 7:28 am, "Harry van der Wolf" <[EMAIL PROTECTED]> wrote:
> Hi Tom,
>
> w.r.t. the error when I run the "qmake pvQt.pro":
>
> build/pvQtVersion.h: No such file or directory
>
> It does that when I have a "fresh" pvQt-0.2.34-src directory and when I run
> it for the first time. The first time the directory does not contain a build
> directory. Therefore the script can't copy the pvQtVersion.h into this build
> directory. I made a quick patch for the pvQT.pro file, but only for the non
> windows side of it (does it work on windows?).
> You can find the diff attached.
>
> Harry
>
> 2008/10/26 Harry van der Wolf <[EMAIL PROTECTED]>
>
> > Hi Tom,
>
> > > It does not fail on the pvQtVersion.h. It does this in the second build
> >> when
> >> > I "clean" my target before building. It also removes the pvQtVersion.h.
> >> This
> >> > is my fault.
>
> >> pvQtVersion.h is not removed by "clean" on my Windows and ubuntu
> >> system.
>
> > Sorry I was not specific enough. I said "when I "clean" my ..". If I do it
> > via the Xcode IDE it remains where it is. Most of the times when things are
> > not working as expected I just remove the entire build directory (rm -rf
> > build).
>
> >> > If I compile in Xcode on Leopard 10.5 with "default universal"  settings
> >> it
> >> > compiles fine.
>
> >> > On the other hand: when compiling in Xcode (on Leopard 10.5) with
> >> deployment
> >> > target 10.4 (Tiger) it does say:
> >> > /Users/Shared/development/pvqt/src/pvQtView.cpp:609: error: invalid
> >> > conversion from 'int*' to 'GLint*'
> >> > /Users/Shared/development/pvqt/src/pvQtView.cpp:609: error:
> >> initializing
> >> > argument 4 of 'void glGetTexLevelParameteriv(GLenum, GLint, GLenum,
> >> GLint*)'
>
> >> I guess GLint is not identical to int on your OpenGL -- please add
> >> casts and try again.
>
> >  It has to do with the OpenGl version it has to be compiled against: on
> > Tiger (10.4.x) it is 1.4.x. On Leopard (10.5.x) it is 1.5.x. When I compile
> > the default way, e.g. OpenGl 1.5 on Leopard, it works. When I cross-compile
> > downward compatible, e.g. for OSX 10.4 (and up) on 10.5 I do get the error.
> > I attached the gl.h from Tiger and Leopard to the mail. On Tiger Glint is a
> > long, on Leopard it is an int.
>
> > I connected my USB drive with Tiger to my macbook and rebooted and tried to
> > build it. The error on Tiger is exactly the same as on Leopard when
> > compiling for Tiger and up (which is obvious but better safe than sorry).
>
> > You mention "please add casts and try again." I googled a bit but I'm still
> > lost.
> > So: Tell me how master, and your obedient servant will try ;-)
>
> > (Another option might be to test for the MacOSX version.
> > on Tiger "uname -sr" gives "Darwin 8.11.1"
> > on Leopard it gives "Darwin 9.5.0")
>
> > Harry
>
>
>
>  pvQt.pro.diff
> < 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to