Re: Pre-built libraries/examples for Windows?


Colin Doncaster <colin.d...@...>
 

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 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

On 2011-05-23, at 5:49 AM, Peter wrote:

Hi Paul,

I've also been working on gettting a windows version of the OCIO
libraries here, and I ran into similar problems to you.

We managed to build the GCC version fine, but on windows I 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....@...> 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 on Windows (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 for Windows and 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 on Windows, n00b" document? (I'm also having
trouble finding a native rst viewer).

I'll probably end up just compiling the code directly in anyway, but I want
to get built tools to play around with how it's "supposed to work" before I
dive in.

Thanks!

Join ocio-dev@lists.aswf.io to automatically receive all group messages.