Compiling Radiance for Windows

Very nice, Nathaniel!

···

On 8/1/17, 11:16 AM, "Nathaniel Jones" <[email protected]> wrote:

I posted step-by-step how-to on compiling libtiff for Window from the
Radiance source. You can find it on the DAYSIM GitHub page:
https://github.com/MITSustainableDesignLab/Daysim
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.c
om%2FMITSustainableDesignLab%2FDaysim&data=02%7C01%7Crobert.guglielmetti%4
0nrel.gov%7Ccb628100bc2d4494e68e08d4d901f1e5%7Ca0f29d7e28cd4f5484427885aee
7c080%7C0%7C0%7C636372049767438655&sdata=CKQjcganALY3Xsz8WKmAJRfQ%2FmfgPHg
RyMRH%2FxK1ef8%3D&reserved=0>.
Scroll down to the section "Compile DAYSIM" in the notes.

It is a little annoying, but you only have to do it once.

Nathaniel

On Tue, Aug 1, 2017 at 9:42 AM, Guglielmetti, Robert ><[email protected]> wrote:

Oh I see, this is one of the old posts. Sounds like you got it sorted
then, Victor. As far as the libtiff, that library has been a giant pain
for a long time (for me); I eventually made my own 64-bit tifflib for
Windows. Perhaps I could share that someplace, I dunno.

On 8/1/17, 10:30 AM, "Victor LRG" <[email protected]> wrote:

I've been using Robert's recipe for a while with no issues. I get many
warnings when compiling, but not critical ones any more. Most warnings
have to do with potential loss of accuracy when converting numbers. I'm
now using a more recent version
of MSVC with no problems either. I think I was recently having issues
with the TIFF library, but I'm not compiling pieces with those
dependences any more. I'm currently using Radiance 5 more like a library,
so I haven't tested the latest releases.

Cheers,

Victor LRG

On 29 July 2017 at 16:48, Gregory J. Ward >><[email protected]> wrote:

Hi Victor,

I suppose it depends on which compiler and set of libraries you are using
whether you need to include erf.c or not in your
src/common/CMakeLists.txt file or not. I don't know which compiler NREL
is currently using -- I thought it was MFC, but I've no
idea which version.

I don't think this would cause the error you are getting from xform,
which is suspicious. Perhaps you could send me your file in a private
message, and I could check if there is anything funny in there.

Cheers,
-Greg

P.S. Be sure to sign up to the radiance-dev mailing list via the
interface at <https://www.radiance-online.org/community/mailing-lists
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rad
iance-online.org%2Fcommunity%2Fmailing-lists&data=02%7C01%7Crobert.guglie
lmetti%40nrel.gov%7Ccb628100bc2d4494e68e08d4d901f1e5%7Ca0f29d7e28cd4f5484
427885aee7c080%7C0%7C0%7C636372049767438655&sdata=irl18KYyD8K456XbcBCYex6
%2FvzuYJZ2qa0oLdzwvI%2Fk%3D&reserved=0>

<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rad
i
ance-online.org
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fance-onl
ine.org&data=02%7C01%7Crobert.guglielmetti%40nrel.gov%7Ccb628100bc2d4494e
68e08d4d901f1e5%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C636372049767
438655&sdata=Il35HCQ0E6a6EsPze0m0aqEB8yC%2Fem2%2F2NAAicqEtmY%3D&reserved=
0>%2Fcommunity%2Fmailing-lists&data=02%7C01%7Crobert.guglielm
etti%40nrel.gov
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F40nrel.g
ov&data=02%7C01%7Crobert.guglielmetti%40nrel.gov%7Ccb628100bc2d4494e68e08
d4d901f1e5%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C63637204976743865
5&sdata=E2UDNxAJE2mEL4%2BT5HG1gBbKK2%2F6uAjLYnozKhJf%2Fv8%3D&reserved=0>%
7C067b9535986943eecaaa08d4d8fab509%7Ca0f29d7e28cd4f5484427
885aee7c080%7C0%7C0%7C636372018680224835&sdata=PiZZshFl%2BkQYlgHNTyUHQBKq
S
HizArlBHSnddxhbI6k%3D&reserved=0>>
so you can post and receive responses.

From:
Victor LRG <[email protected]>
Date:
December 22, 2016 3:17:02 AM PST

Dear all,

I amtrying to compile Radiance 5R0 for Windows using Cmake 3.7.1 x86 and
MVSC 2015 v14 with libtiff 3.8.2 and qt-x86-2.0.4. The compilation
finished with no errors (although some 1700 warnings), but when I am
trying a simple test I get the following error
with ovonv: fatal - (!xform objects/cage_sphere2.rad): bad arguments for
polygon "311s1m134f". This object has the following description, which
seems right to me:

cage_sphere polygon 311s1m134f
0
0
9 -0.833925170898 0.506038208008 0.096073600769
  -0.819481933594 0.473128112793 0.0903565139771
  -0.853187255859 0.492587890625 0.0980178833008

In VS I can see the following warnings regarding oconv and xform:

C4273 'erf': inconsistent dll linkage
C4273 'erfc': inconsistent dll linkage

They both refer to rtmath.h file, which I guess they should refer to
erf.c as well? Actually, this warning also appears for most projects.
I've compiled and used the same package in linux before with no problem.

Any ideas?

Thanks

Victor Lopez-Rioboo Gil

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.radi
ance-online.org%2Fmailman%2Flistinfo%2Fradiance-dev&data=02%7C01%7Crobert.
guglielmetti%40nrel.gov%7Ccb628100bc2d4494e68e08d4d901f1e5%7Ca0f29d7e28cd4
f5484427885aee7c080%7C0%7C0%7C636372049767438655&sdata=iyYnyM9Z%2BaZ9yVmhJ
seII1OXvMcKoEowWxKz0kKR0s4%3D&reserved=0>

Thanks Nathaniel, that's very useful, I'll give it a try next time I do a
full compilation.

Victor

···

On 1 August 2017 at 18:16, Nathaniel Jones <[email protected]> wrote:

I posted step-by-step how-to on compiling libtiff for Window from the
Radiance source. You can find it on the DAYSIM GitHub page:
https://github.com/MITSustainableDesignLab/Daysim. Scroll down to the
section "Compile DAYSIM" in the notes.

It is a little annoying, but you only have to do it once.

Nathaniel

On Tue, Aug 1, 2017 at 9:42 AM, Guglielmetti, Robert < > [email protected]> wrote:

Oh I see, this is one of the old posts. Sounds like you got it sorted
then, Victor. As far as the libtiff, that library has been a giant pain
for a long time (for me); I eventually made my own 64-bit tifflib for
Windows. Perhaps I could share that someplace, I dunno.

On 8/1/17, 10:30 AM, "Victor LRG" <[email protected]> wrote:

>I've been using Robert's recipe for a while with no issues. I get many
>warnings when compiling, but not critical ones any more. Most warnings
>have to do with potential loss of accuracy when converting numbers. I'm
>now using a more recent version
> of MSVC with no problems either. I think I was recently having issues
>with the TIFF library, but I'm not compiling pieces with those
>dependences any more. I'm currently using Radiance 5 more like a library,
>so I haven't tested the latest releases.
>
>
>Cheers,
>
>
>Victor LRG
>
>
>On 29 July 2017 at 16:48, Gregory J. Ward >> ><[email protected]> wrote:
>
>Hi Victor,
>
>
>I suppose it depends on which compiler and set of libraries you are using
>whether you need to include erf.c or not in your
>src/common/CMakeLists.txt file or not. I don't know which compiler NREL
>is currently using -- I thought it was MFC, but I've no
> idea which version.
>
>
>I don't think this would cause the error you are getting from xform,
>which is suspicious. Perhaps you could send me your file in a private
>message, and I could check if there is anything funny in there.
>
>
>Cheers,
>-Greg
>
>
>P.S. Be sure to sign up to the radiance-dev mailing list via the
>interface at <https://www.radiance-online.org/community/mailing-lists
><https://na01.safelinks.protection.outlook.com/?url=https%
3A%2F%2Fwww.radi
>ance-online.org%2Fcommunity%2Fmailing-lists&data=02%7C01%7C
robert.guglielm
>etti%40nrel.gov%7C067b9535986943eecaaa08d4d8fab509%
7Ca0f29d7e28cd4f5484427
>885aee7c080%7C0%7C0%7C636372018680224835&sdata=PiZZshFl%
2BkQYlgHNTyUHQBKqS
>HizArlBHSnddxhbI6k%3D&reserved=0>>
> so you can post and receive responses.
>
>
>From:
>Victor LRG <[email protected]>
>Date:
>December 22, 2016 3:17:02 AM PST
>
>
>
>
>
>Dear all,
>
>
>I amtrying to compile Radiance 5R0 for Windows using Cmake 3.7.1 x86 and
>MVSC 2015 v14 with libtiff 3.8.2 and qt-x86-2.0.4. The compilation
>finished with no errors (although some 1700 warnings), but when I am
>trying a simple test I get the following error
> with ovonv: fatal - (!xform objects/cage_sphere2.rad): bad arguments for
>polygon "311s1m134f". This object has the following description, which
>seems right to me:
>
>
>cage_sphere polygon 311s1m134f
>0
>0
>9 -0.833925170898 0.506038208008 0.096073600769
> -0.819481933594 0.473128112793 0.0903565139771
> -0.853187255859 0.492587890625 0.0980178833008
>
>
>
>In VS I can see the following warnings regarding oconv and xform:
>
>
>C4273 'erf': inconsistent dll linkage
>C4273 'erfc': inconsistent dll linkage
>
>
>
>They both refer to rtmath.h file, which I guess they should refer to
>erf.c as well? Actually, this warning also appears for most projects.
>I've compiled and used the same package in linux before with no problem.
>
>
>Any ideas?
>
>
>Thanks
>
>
>Victor Lopez-Rioboo Gil
>
>
>
>
>
>
>
>
>
>
>

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev