Re: Compiling OpenShadingLanguage under Windows
Wormszer <worm...@...>
Thanks Oleg,
toggle quoted message
Show quoted text
I am using flex 2.5.35 and bison 2.3 in cygwin 1.7. I am pretty sure that my flex version is newer even though the version number is earlier. But im not sure about bison. I have the GNUwin32 versions as well and tried those before. Most of the issues I had were in the flexer.h. Hmm, I had a issue with that version of bison or flex i don't remember which that it wouldn't work with spaces in the file path when it called m4 internally. Also I had to make sure my environment variables were defined using slashes and not backslashes otherwise CMake gave some errors. Did you have an nparams() error in olsquerry? I am getting a linking error saying it can't find it. Even though its looks like it should be able to find it. I will have to look closer at it and see why. Other linker errors I had after defining R_OK were a boost library being linked twice and a missing tbb.lib. The library errors i think come from cmake rather than vs2008. I didn't see a obvious reference to the tbb.lib in the project settings I wonder if there is a #pragma somewhere asking for it. The error I am getting on olscomp for hash_map is 1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xhash(648) : while compiling class template member function 'std::list<_Ty,_Ax>::_Const_iterator<_Secure_validation> stdext::_Hash<_Traits>::lower_bound(const ustring &) const' 1> with 1> [ 1> _Ty=std::pair<const ustring,OSL::pvt::Symbol *>, 1> _Ax=std::allocator<std::pair<const ustring,OSL::pvt::Symbol *>>, 1> _Secure_validation=true, 1> _Traits=stdext::_Hmap_traits<ustring,OSL::pvt::Symbol *,ustringHash,std::allocator<std::pair<const ustring,OSL::pvt::Symbol *>>,false> 1> ] 1> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\hash_map(88) : see reference to class template instantiation 'stdext::_Hash<_Traits>' being compiled 1> with 1> [ 1> _Traits=stdext::_Hmap_traits<ustring,OSL::pvt::Symbol *,ustringHash,std::allocator<std::pair<const ustring,OSL::pvt::Symbol *>>,false> 1> ] 1> d:\projects\graphics\oslproject\osl\src\liboslcomp\symtab.h(258) : see reference to class template instantiation 'stdext::hash_map<_Kty,_Ty,_Tr>' being compiled 1> with 1> [ 1> _Kty=ustring, 1> _Ty=OSL::pvt::Symbol *, 1> _Tr=ustringHash 1> ] 1>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xhash(654) : error C3849: function-style call on an expression of type 'const ustringHash' would lose const and/or volatile qualifiers for all 2 available operator overloads I was hoping SP1 might of corrected something in the stdext::hash_map but it didn't seem to help. I haven't dug in really deep yet to track down exactly whats going on yet. I will probably try and do that later tonight. I am running Windows 7 x64 and using the project files generated from CMake 2.8.0. Jeremy On Sun, Jan 17, 2010 at 5:39 PM, Oleg <ode...@...> wrote: Hi Jeremy, |
|