status of windows port

165 views
Skip to first unread message

Michael O'Brien

unread,
Oct 6, 2011, 12:41:28 PM10/6/11
to field...@googlegroups.com
Hola~

What's the latest status on trying to get Field3d to build on Windows?
The last thread I can find is that it just doesn't work due to
template issues.

Is that right? Anyone tried with VS 2010?

MO

--
Michael O'Brien
mkob...@gmail.com

Steven Caron

unread,
Oct 7, 2011, 7:40:41 PM10/7/11
to field...@googlegroups.com
hey michael

i have opened issues for building field3d on windows...

https://github.com/imageworks/Field3D/issues?sort=created&direction=desc&state=open

i am busy with other projects but am looking to get these resolved as soon as i possibly can. any help with be greatly appreciated.

s

Magnus Wrenninge

unread,
Oct 10, 2011, 2:58:53 PM10/10/11
to field...@googlegroups.com
We're not actively working on the windows issues here at Imageworks at
the moment. But we're of course happy to incorporate whatever changes
need to be made to make the code more platform independent.

Magnus

> --
> You received this message because you are subscribed to the Google Groups
> "Field3D dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/field3d-dev/-/S0cpTtPXvAcJ.
> To post to this group, send email to field...@googlegroups.com.
> To unsubscribe from this group, send email to
> field3d-dev...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/field3d-dev?hl=en.
>

Michael O'Brien

unread,
Oct 10, 2011, 5:43:41 PM10/10/11
to field...@googlegroups.com
Hola~

Okay. I'll start to poke on it. Does anyone have a strong opinion
about which version of MSVC to use?

MO

--
Michael O'Brien
mkob...@gmail.com

Message has been deleted

Steven Caron

unread,
Oct 11, 2011, 5:16:27 PM10/11/11
to field...@googlegroups.com
i would prefer version 2008

Anders Egleus

unread,
Feb 29, 2012, 2:53:07 AM2/29/12
to field...@googlegroups.com
Just bumping this to see if anyone has looked at this since October... I can see that Steven's issues at github are untouched, but maybe someone has worked on it in secrecy... :)

Afaik field3d is supported in Houdini, for windows too I assume (I might be wrong about this, not a Houdini user), so if this is the case it means a windows port is at least possible.

I would have loved to take a crack at this, but I'm afraid my skills aren't at par with the required level of software engineering.

Magnus Wrenninge

unread,
Mar 3, 2012, 3:05:10 PM3/3/12
to field...@googlegroups.com
As for Imageworks - we still don't have plans to do the Windows port on our end. But we will of course be happy to merge whatever changes are required back to the master branch.

Field3D in Houdini is implemented as a plugin, so I'm not sure if they have it working on Windows or not...


Magnus

--
You received this message because you are subscribed to the Google Groups "Field3D dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/field3d-dev/-/t5Z790w8vGwJ.

Halfdan

unread,
Apr 23, 2012, 5:54:04 PM4/23/12
to Field3D dev
On Mar 3, 4:05 pm, Magnus Wrenninge <magnus.wrenni...@gmail.com>
wrote:
> As for Imageworks - we still don't have plans to do the Windows port on our
> end. But we will of course be happy to merge whatever changes are required
> back to the master branch.
>
> Field3D in Houdini is implemented as a plugin, so I'm not sure if they have
> it working on Windows or not...

Up until now it has only been shipped as working on Linux.

However, I just finished porting Field3D to Windows, warts and all.
There are a number of code changes, mainly due to strange behaviors
with the MSVC 2008 compiler (also present in 2010), and use of POSIX-
only features (unistd.h and fnmatch). It successfully passes the unit
tests and the f3dinfo command works as advertised.

I can send you a .patch file against v1.3.2. However, I only updated
the the cmake build files and not the scons ones. It may be tweaked
towards our own tools repo, but I'll included it nevertheless. Maybe
someone else can take a crack at updating scons.

Did you want me to attach it to one of the bugs, or just send it to
you directly?

- 1/2

Magnus Wrenninge

unread,
Apr 23, 2012, 6:28:36 PM4/23/12
to field...@googlegroups.com
That's great! Thanks for doing that. If you can do a pull request that's easiest for us.

Also (and I apologize for the hassle), we need to get a signed CLA before we can officially merge it into the main branch. You can find a PDF at http://opensource.imageworks.com/cla/, which you can just sign electronically and email to opens...@imageworks.com.

Magnus

--
You received this message because you are subscribed to the Google Groups "Field3D dev" group.

Halfdan

unread,
Apr 24, 2012, 10:55:25 AM4/24/12
to Field3D dev
> That's great! Thanks for doing that. If you can do a pull request that's
> easiest for us.
>
> Also (and I apologize for the hassle), we need to get a signed CLA before
> we can officially merge it into the main branch. You can find a PDF athttp://opensource.imageworks.com/cla/, which you can just sign
> electronically and email to opensou...@imageworks.com.

Done and done.

Let me know if you need any more information.

- 1/2

Steven Caron

unread,
Apr 24, 2012, 12:25:17 PM4/24/12
to field...@googlegroups.com
yes! halfdan for the win!

more beer for you!

s

Magnus Wrenninge

unread,
Apr 24, 2012, 1:31:00 PM4/24/12
to field...@googlegroups.com
We all owe Halfdan a beer! (And I'm hoping we can repeat the SIGGRAPH "Beers of a feather" this year again)

I'll go ahead and pull this later today. For the CMake changes - do we have a volunteer or two who could test it out in their build environments before we move the master branch?


Magnus

--
You received this message because you are subscribed to the Google Groups "Field3D dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/field3d-dev/-/cA8IQa2fPgMJ.

Steven Caron

unread,
Apr 24, 2012, 1:33:57 PM4/24/12
to field...@googlegroups.com
i will definitely try this weekend.

s

Larry Gritz

unread,
Apr 24, 2012, 1:49:08 PM4/24/12
to field...@googlegroups.com
On Apr 24, 2012, at 10:31 AM, Magnus Wrenninge wrote:

> (And I'm hoping we can repeat the SIGGRAPH "Beers of a feather" this year again)



Oh yes, for sure! Several of last year's sponsors have already mentioned that they wish to participate again.


--
Larry Gritz
l...@larrygritz.com


Nicholas Yue

unread,
Apr 24, 2012, 2:14:10 PM4/24/12
to field...@googlegroups.com
> I'll go ahead and pull this later today. For the CMake changes - do we have
> a volunteer or two who could test it out in their build environments before
> we move the master branch?

I'll do a cmake build on Windows.

I'll keep and eye on the repo-pull

Regards
--
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

Magnus Wrenninge

unread,
Apr 24, 2012, 5:35:35 PM4/24/12
to field...@googlegroups.com
Wow, you did more than just a few Win32 fixes... Thanks for the improvements to the iterators, etc.! I'll probably go ahead and make those run on all platforms, unless that's a bad idea... ?


 - 1/2

Halfdan

unread,
Apr 24, 2012, 5:47:36 PM4/24/12
to field...@googlegroups.com
I think doing an all-platform merge of the iterator changes is probably a good thing. The fact that the end() iterators deref to a NULL now makes for far easier debugging of out-of-bounds issues.

The code has been tested on all platforms that Houdini 12.0 ships on, so should be fairly safe to use.

Anders Egleus

unread,
Apr 25, 2012, 1:49:33 AM4/25/12
to field...@googlegroups.com
This is awesome! Congratulations and thanks so much for this Halfdan, been waiting a long time. I will try it out as soon as I get the time (not until a few weeks though unfortunately, but I can't wait).

Nicholas Yue

unread,
Apr 28, 2012, 1:42:08 AM4/28/12
to field...@googlegroups.com
On 24 April 2012 23:47, Halfdan <hal...@gmail.com> wrote:
> I think doing an all-platform merge of the iterator changes is probably a
> good thing. The fact that the end() iterators deref to a NULL now makes for
> far easier debugging of out-of-bounds issues.
>
> The code has been tested on all platforms that Houdini 12.0 ships on, so
> should be fairly safe to use.

Hi Halfdan,

Thanks for the port.

I am now able to build Field3D on Windows via CMake out of the box.

After building it with Visual Studio 2010 on Windows 7 x64, I ran
the unit tests.

The unit tests show some failures.

I have attached the output log from the unit test run.

Are you able to advise on what cause those unit test failures ?
unitTest.log

Halfdan Ingvarsson

unread,
Apr 28, 2012, 8:58:52 AM4/28/12
to field...@googlegroups.com


On Saturday, April 28, 2012 1:42:08 AM UTC-4, Nicholas Yue wrote:
  The unit tests show some failures.

  I have attached the output log from the unit test run.

  Are you able to advise on what cause those unit test failures ?


This most likely means that the folder pointed to by the env var TMP doesn't exist, isn't writable, or that TMP isn't defined. Windows should define both TMP and TEMP, by default, although it's possible to unset them.

Have a look at the function getTempFile() in ./test/unit_tests/UnitTest.cpp. Try replacing the env var with a path that is known to be writable to you and see if that succeeds.

I should probably replace this with a call to the Win32 function GetTempPath(), which would be more reliable.

Nicholas Yue

unread,
Apr 28, 2012, 11:04:22 AM4/28/12
to field...@googlegroups.com
On 28/04/2012 2:58 PM, Halfdan Ingvarsson wrote:


On Saturday, April 28, 2012 1:42:08 AM UTC-4, Nicholas Yue wrote:
  The unit tests show some failures.

  I have attached the output log from the unit test run.

  Are you able to advise on what cause those unit test failures ?


This most likely means that the folder pointed to by the env var TMP doesn't exist, isn't writable, or that TMP isn't defined. Windows should define both TMP and TEMP, by default, although it's possible to unset them.
Hi,

    I have both TEMP and TMP defined.

    I checked the unittest code, it uses environment variable TMP.

    I checked my user account,  %TMP% location is writable by me.

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

Halfdan Ingvarsson

unread,
Apr 30, 2012, 10:24:35 AM4/30/12
to field...@googlegroups.com
On Saturday, April 28, 2012 11:04:22 AM UTC-4, Nicholas Yue wrote:
Hi,

    I have both TEMP and TMP defined.

    I checked the unittest code, it uses environment variable TMP.

    I checked my user account,  %TMP% location is writable by me.


I would then try printing out the filename coming out of getTempFile() to see if it makes sense.

The reason for those errors is that Field3D can't write out .f3d files, and subsequently read them back. I added some defensive coding in there to try to battle invalid filename characters coming out of type_info::name() in MSVC (e.g. 'float' as a template param comes back as '<float>', the <> characters being wholly unsuitable for filenames under Windows), so the filenames should only consist of alphanumerics and underscore.

andrew aspden

unread,
Aug 6, 2012, 5:01:12 PM8/6/12
to field...@googlegroups.com
I had a lot of trouble getting it to build on win7x64 with visual studio 2010. I was curious what the Cmake options are supposed to look like for trying to output a field3d.lib file. Should HDF5_C_LIBRARY point to a dll or a lib? and which one? I got a lot of unresolved symbols for the testing projects. Also, is there any documentation or examples on how to use Field3D? Thanks

Magnus Wrenninge

unread,
Aug 14, 2012, 11:11:41 AM8/14/12
to field...@googlegroups.com
Hi Andrew,

As for CMake, I have to defer to those on the list who use that build system - I'm using the SCons side personally...

You can find documentation for Field3D at http://sites.google.com/site/field3d/


Magnus

--
You received this message because you are subscribed to the Google Groups "Field3D dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/field3d-dev/-/feqKZgznbNAJ.
Reply all
Reply to author
Forward
0 new messages