News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Need Help to Fix Unusual build error from an imported visual studio solution

Started by mikeplusplus, March 29, 2011, 12:18:19 AM

Previous topic - Next topic

mikeplusplus

So the whole story is: I'm trying to build the Image Engine's cortex plugin for Maya 2011 x64, but I wasn't able to do it with vc++ 2008 express (I get a cl.exe error because I guess cl.exe isn't made to build for 64-bit workstations). Which is why I'm trying codeblocks. It doesn't give me a "error spawing cl.exe" issue, but it now says this:

BoolParameterHandler.obj
c1xx : fatal error C1083: Cannot open source file: '9.0\VC\include  /c ..\cortex-vfx-read-only\src\IECoreMaya\BoolParameterHandler.cpp /FoDebug\cortex-vfx-read-only\src\IECoreMaya\BoolParameterHandler.obj': No such file or directory
Studio
c1xx : fatal error C1083: Cannot open source file: 'Studio': No such file or directory
Visual
c1xx : fatal error C1083: Cannot open source file: 'Visual': No such file or directory
Microsoft
c1xx : fatal error C1083: Cannot open source file: '(x86)\Microsoft': No such file or directory
Files
c1xx : fatal error C1083: Cannot open source file: 'Files': No such file or directory
Program
c1xx : fatal error C1083: Cannot open source file: '9.0\VC\include /IC:\Program': Invalid argument
Studio
c1xx : fatal error C1083: Cannot open source file: 'Studio': No such file or directory
Visual
c1xx : fatal error C1083: Cannot open source file: 'Visual': No such file or directory
Microsoft
c1xx : fatal error C1083: Cannot open source file: '(x86)\Microsoft': No such file or directory
Files
c1xx : fatal error C1083: Cannot open source file: 'Files': No such file or directory
Program
c1xx : fatal error C1083: Cannot open source file: 'SDKs\Windows\v7.1\Include /IC:\Program': Invalid argument
Microsoft
c1xx : fatal error C1083: Cannot open source file: 'Files\Microsoft': No such file or directory
Generating Code...
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings


oBFusCATed

Have you read this: http://download.autodesk.com/us/maya/2011help/index.html?url=./files/Setting_up_your_build_env_Windows_env_32bit_and_64bit.htm,topicNumber=d0e677766 ?
Also you need to read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F
And this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

In short you need a 64bit vc++ 9.1 compiler a.k.a. the compiler in visual studio 2008 sp1. Using anything else won't work.
Probably the compiler in visual studio express 2008 sp1 is the same, I don't know.
I think, I'm using C::B + the compiler in vs express 2005 to build for Maya 2009 32bit.

p.s. search the wiki howto setup C::B and VStudio's compiler, if you want to build with C::B
p.p.s. next time please use code tags to post pastes
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

mikeplusplus

Thanks, but native vc++ express 2008 doesn't have x64 support at all, and my attempts to force it to have resulted in it being broken permanently, it seems. VC++ express 2010 seems to work though, but code::blocks doesn't use that compiler as yet?