We're sorry you're having difficulties building OCIO on Windows.
Unfortunately, I dont have daily access to a Windows machine for
testing, but I know the Foundry is successfully using OCIO on Windows.
I will contact them and see if they can assist us, and possibly
release step by step Windows OCIO build instructions.
Making the installation process simpler (perhaps including binary
installs) is one of my top summer goals, and we'll make sure to
include windows support in this task.
https://github.com/imageworks/OpenColorIO/issues/99
-- Jeremy
Cmake seems to generate usable MSCV 2008 solutions for me when I do
cmake -G "Visual Studio 9 2008 Win64" ..
in the build dir.
There were a few changes I've had to make to successfully compile the OpenColorIO.lib file, here's a quick list
- I had to download patch for windows, this comes with Cygwin so just make sure that's in your PATH environment
- I added an if( NOT WIN32 ) around the CMAKE_CXX_FLAGS as the compiler wasn't happy with most of them
- I had to use _DUSE_BOOST_PTR=ON and then added INCLUDE_DIRECTORIES ( ${Boost_INCLUDE_DIRS} ) to the CMake file ( I assume everyone else has boost in their global search paths on *nix systems? )
- I had to have add_definitions("-DWIN64") as the yaml code uses that vs WIN32 to determine if it needs GCC specific template definitions
- defined an isnan to replace the missing std::isnan
- realpath doesn't exist on Windows so I had to put PathCanonicalize in a define instead and include Shlwapi.lib
- fixed the cmake file as the yaml and tinyxml STATIC_LINK paths are explicitly pointing at *nix library names ( libtinyxml.a instead of tinyxml.lib )
That seems to build fine.
Just to re-iterate though, the issue wasn't with CMake not working.
I can fork OCIO and make these changes and let someone else try it if you want.
cheers
Has any further effort been put into Windows in the master git repo?
Thanks,
Paul
---------- Forwarded message ----------
From: Colin Doncaster <colin.doncas...@gmail.com>
Date: May 23, 12:10 pm
Subject: Pre-built libraries/examples for Windows?
To: OpenColorIO Developers
What problems were you having?
Cmake seems to generate usable MSCV 2008 solutions for me when I do
cmake -G "Visual Studio 9 2008 Win64" ..
in the build dir.
There were a few changes I've had to make to successfully compile the
OpenColorIO.lib file, here's a quick list
- I had to download patch forwindows, this comes with Cygwin so just
make sure that's in your PATH environment
- I added an if( NOT WIN32 ) around the CMAKE_CXX_FLAGS as the
compiler wasn't happy with most of them
- I had to use _DUSE_BOOST_PTR=ON and then added INCLUDE_DIRECTORIES
( ${Boost_INCLUDE_DIRS} ) to the CMake file ( I assume everyone else
has boost in their global search paths on *nix systems? )
- I had to have add_definitions("-DWIN64") as the yaml code uses that
vs WIN32 to determine if it needs GCC specific template definitions
- defined an isnan to replace the missing std::isnan
- realpath doesn't exist onWindowsso I had to put PathCanonicalize in
a define instead and include Shlwapi.lib
- fixed the cmake file as the yaml and tinyxml STATIC_LINK paths are
explicitly pointing at *nix library names ( libtinyxml.a instead of
tinyxml.lib )
That seems to build fine.
Just to re-iterate though, the issue wasn't with CMake not working.
I can fork OCIO and make these changes and let someone else try it if
you want.
cheers
On 2011-05-23, at 5:49 AM, Peter wrote:
> Hi Paul,
> I've also been working on gettting awindowsversion of the OCIO
> libraries here, and I ran into similar problems to you.
> We managed to build the GCC version fine, but onwindowsI resorted to
> just manually setting up a VC2005 project and pulling in whatever
> files were necessary.
> I'm hoping to look in to the cmake problems further this week so that
> we can get a consistent build sytem across all platforms here. I''ll
> post here anything I find out, and if you have any insights in this
> area please feel free to share them with me too ;)
> Regards,
> Peter.
> On May 20, 7:44 pm, Paul Miller <p...@fxtech.com> wrote:
>> Hey folks. I'm starting to look at OCIO for integration into one or more of
>> my applications and am having trouble getting it built onWindows(my
>> primary dev machine). I use Visual Studio 2008. I downloaded from github and
>> tried using cygwin cmake, which doesn't know about VS, so I grabbed the
>> latest native CMake forWindowsand that was missing all sorts of
>> dependencies and creating vcproj files that wouldn't build. I'm likely doing
>> something wrong but I don't have any experience with cmake. Is there
>> step-by-step "how to build this onWindows, n00b" document? (I'm also having
Colin's email you cite below is from May. In August, the Foundry
committed 2 changes should make Windows builds work. (Mari is
currently shipping with OCIO on all platforms, so it at least works in
their build environment).
What specific issues are you seeing?
-- Jeremy
If no one else beats me to it I'll try to put together a fork of the project that should work out of the box on Windows together in the next week or two along with some pre-built binaries - just need to send in our corporate CLA.
cheers
And now that I have a Windows machine available, once we get the
process sorted out I'm happy to post pre-built installers (mac,
windows, linux?) for each dot release.
-- Jeremy
.malcolm
Colin - made any progress on this?
I'm currently stuck in dependency hell and having a lot of the same
problems you mentioned myself. Part of my problem is I hesitate to stick
cygwin on the master path as some of its toolchain has interfered with
some of my other applications in the past - I like keeping my cygwin
environment as separate as possible.
Would LOVE a set of (64 bit) prebuilt libraries/tools if anyone has
them. Though ideally I'll get this build process sorted out eventually
since I'm going to want it built using my RTM version of VS2008.
Off the wall idea... What about using a virtual machine for building?
It's kind a big hammer for what you're trying to do, but it would keep
everything separate so you wouldn't have to worry about cygwin
polluting your toolchain.
Richard
Not a bad idea - I have several "clean" VMs sitting around for testing
anyway. BUT, I figured out a smarter way to do this - I just temporarily
adjusted my PATH to include cygwin and launched VS. What do you know it
works!