POV-Ray : Newsgroups : povray.programming : toFloat.h missing Server Time: 9 Dec 2018 22:09:26 GMT
  toFloat.h missing (Message 1 to 10 of 19)  
Goto Latest 10 Messages Next 9 Messages >>>
From: Benjamin Chambers
Subject: toFloat.h missing
Date: 16 Sep 2015 17:51:23
Message: <55f9ac1b$1@news.povray.org>
So I'm trying to compile the source with VS2015, and the very first 
error I find is that the file "toFloat.h" is missing.

I cannot find this file anywhere in the source; is it meant to be 
auto-generated somehow?


Post a reply to this message

From: Cousin Ricky
Subject: Re: toFloat.h missing
Date: 16 Sep 2015 20:45:00
Message: <web.55f9d3ee13fa3f6a4ed434990@news.povray.org>
Benjamin Chambers <ben### [at] outlookcom> wrote:
> So I'm trying to compile the source with VS2015, and the very first
> error I find is that the file "toFloat.h" is missing.
>
> I cannot find this file anywhere in the source; is it meant to be
> auto-generated somehow?

That file isn't even /referenced/ anywhere in the source.  Could there be a
problem with your VS setup?


Post a reply to this message

From: Benjamin Chambers
Subject: Re: toFloat.h missing
Date: 16 Sep 2015 22:10:49
Message: <55f9e8e9@news.povray.org>
On 9/16/2015 2:41 PM, Cousin Ricky wrote:
> Benjamin Chambers <ben### [at] outlookcom> wrote:
>> So I'm trying to compile the source with VS2015, and the very first
>> error I find is that the file "toFloat.h" is missing.
>>
>> I cannot find this file anywhere in the source; is it meant to be
>> auto-generated somehow?
>
> That file isn't even /referenced/ anywhere in the source.  Could there be a
> problem with your VS setup?
>
>
>
povray\libraries\ilmbase\Half\half.cpp:
   #if defined (OPENEXR_DLL)
   __declspec(dllexport) half::uif _toFloat[1 << 16] =
       #include "toFloat.h"
   __declspec(dllexport) unsigned short _eLut[1 << 9] =
       #include "eLut.h"
   #else
   const half::uif half::_toFloat[1 << 16] =
       #include "toFloat.h"
   const unsigned short half::_eLut[1 << 9] =
       #include "eLut.h"
   #endif

So it looks like I could get around this by using the OpenEXR library, 
correct?


Post a reply to this message

From: Benjamin Chambers
Subject: Re: toFloat.h missing
Date: 16 Sep 2015 22:11:53
Message: <55f9e929@news.povray.org>
On 9/16/2015 4:10 PM, Benjamin Chambers wrote:
> So it looks like I could get around this by using the OpenEXR library,
> correct?

Oh geez, brain fart. Either path references "toFloat.h"


Post a reply to this message

From: clipka
Subject: Re: toFloat.h missing
Date: 18 Sep 2015 16:26:53
Message: <55fc3b4d@news.povray.org>
Am 17.09.2015 um 00:11 schrieb Benjamin Chambers:
> On 9/16/2015 4:10 PM, Benjamin Chambers wrote:
>> So it looks like I could get around this by using the OpenEXR library,
>> correct?
> 
> Oh geez, brain fart. Either path references "toFloat.h"

"toFloat.h" file is part of the "ilmbase" library (just like
"half.cpp"), which in turn is indeed a part of the OpenEXR library.
("ilm" is an acronym for "Industrial Light & Magic", the company that
originally developed the OpenEXR file format and still maintains the
library.)

What's special about "toFloat.h" (and also "eLut.h") is that these two
files are not part of the library's source file package, but are created
as part of the build process (presumably because their contents are
platform-specific).

Make sure that the project conversion from VS2010 to VS2015 has kept the
build dependencies and custom build steps intact; rebuilding the "Half"
project should automatically trigger a rebuild of the "eLut" and
"toFloat" projects first; those projects should in turn cause those
files to be created in the "libraries/ilmbase/Half" directory (unless
the respective file already exists and is up to date), which should be
accompanied by the build log output "Generating <filename>...".


Post a reply to this message

From: Benjamin Chambers
Subject: Re: toFloat.h missing
Date: 18 Sep 2015 18:07:04
Message: <55fc52c8$1@news.povray.org>
On 9/18/2015 10:26 AM, clipka wrote:
> Make sure that the project conversion from VS2010 to VS2015 has kept the
> build dependencies and custom build steps intact; rebuilding the "Half"
> project should automatically trigger a rebuild of the "eLut" and
> "toFloat" projects first; those projects should in turn cause those
> files to be created in the "libraries/ilmbase/Half" directory (unless
> the respective file already exists and is up to date), which should be
> accompanied by the build log output "Generating <filename>...".

Thanks! This seems to be what the problem is. Here is the output from 
building toFloat:
1>------ Rebuild All started: Project: toFloat, Configuration: Release 
x64 ------
1>  toFloat.cpp
1>  openexr_toFloat.vcxproj -> 
C:\Users\benja\Source\Repos\povray\windows\vs10\build\toFloat\x64\Release\toFloat.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

And for eLut:
1>------ Rebuild All started: Project: eLut, Configuration: Release x64 
------
1>  eLut.cpp
1>  openexr_eLut.vcxproj -> 
C:\Users\benja\Source\Repos\povray\windows\vs10\build\eLut\x64\Release\eLut.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

I'll take a look at the VS2010 project files, and see if I can set up 
the VS2015 projects accordingly.


Post a reply to this message

From: scott
Subject: Re: toFloat.h missing
Date: 21 Sep 2015 07:03:31
Message: <55ffabc3$1@news.povray.org>
> I'll take a look at the VS2010 project files, and see if I can set up
> the VS2015 projects accordingly.

I posted some instructions a (long) while back on how to get it to work 
on VS Express, I had the same issues initially so some of those steps I 
posted might help you out.


Post a reply to this message

From: Benjamin Chambers
Subject: Re: toFloat.h missing
Date: 22 Sep 2015 13:49:37
Message: <56015c71$1@news.povray.org>
On 9/21/2015 1:03 AM, scott wrote:
>> I'll take a look at the VS2010 project files, and see if I can set up
>> the VS2015 projects accordingly.
>
> I posted some instructions a (long) while back on how to get it to work
> on VS Express, I had the same issues initially so some of those steps I
> posted might help you out.
>
>

I read through that before I started, and many of the changes you detail 
no longer apply. However, I'm referring to it often as I work.

I forked a new branch today focused on getting it to compile in VS2015. 
That way, I can keep all of my work separate.


Post a reply to this message

From: Benjamin Chambers
Subject: Re: toFloat.h missing
Date: 24 Sep 2015 16:28:58
Message: <560424ca@news.povray.org>
On 9/18/2015 12:07 PM, Benjamin Chambers wrote:
> On 9/18/2015 10:26 AM, clipka wrote:
>> Make sure that the project conversion from VS2010 to VS2015 has kept the
>> build dependencies and custom build steps intact; rebuilding the "Half"
>> project should automatically trigger a rebuild of the "eLut" and
>> "toFloat" projects first; those projects should in turn cause those
>> files to be created in the "libraries/ilmbase/Half" directory (unless
>> the respective file already exists and is up to date), which should be
>> accompanied by the build log output "Generating <filename>...".
>
> Thanks! This seems to be what the problem is. Here is the output from
> building toFloat:
> 1>------ Rebuild All started: Project: toFloat, Configuration: Release
> x64 ------
> 1>  toFloat.cpp
> 1>  openexr_toFloat.vcxproj ->
>
C:\Users\benja\Source\Repos\povray\windows\vs10\build\toFloat\x64\Release\toFloat.exe
>
> ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Now this is interesting. I've been over the XML for the project files, 
and they APPEAR to be set up correctly to generate the header files.

However, the custom build step never runs.

I'll keep poking around in it and see what I can do.


Post a reply to this message

From: clipka
Subject: Re: toFloat.h missing
Date: 24 Sep 2015 19:04:36
Message: <56044944@news.povray.org>
Oh, btw, I totally forgot: There's a third file that is created by the
OpenEXR build process on the fly,
"libraries/openexr/IlmImf/b44ExpLogTable.h", so make sure to take care
of that one as well.


Post a reply to this message

Goto Latest 10 Messages Next 9 Messages >>>

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.