I forgot to reply here. That patch works.<div><br></div><div>Thanks,</div><div>Paul<br><br><div class="gmail_quote">On 22 February 2012 19:55, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ah! I think I know the problem. It might work fine if you use Visual<br>
Studio IDE and not nmake. Can you try the attached patch please?<br>
<span class="HOEnZb"><font color="#888888"><br>
Utkarsh<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Feb 22, 2012 at 12:54 PM, Edwards, Paul<br>
<<a href="mailto:Paul.Edwards3@rolls-royce.com">Paul.Edwards3@rolls-royce.com</a>> wrote:<br>
> I just modified ExecuteProtoC.cmake to print the variable ${OutDir}:<br>
><br>
> message(STATUS "OUTDIR = " ${OutDir})<br>
> execute_process(<br>
> COMMAND "D:/scratch/RollsRoyceParaView/${OutDir}/protoc" "--cpp_out=dllexport_decl=VTK_PROTOBUF_EXPORT:D:/scratch/RollsRoyceParaView/ParaViewCore/ServerImplementation" --proto_path "D:/scratch/RollsRoyceParaViewSource/ParaViewCore/ServerImplementation/Resources" "D:/scratch/RollsRoyceParaViewSource/ParaViewCore/ServerImplementation/Resources/vtkPVMessage.proto"<br>
> WORKING_DIRECTORY "D:/scratch/RollsRoyceParaView/ParaViewCore/ServerImplementation"<br>
> )<br>
><br>
><br>
> And, it gives this:<br>
><br>
> -- OUTDIR = .<br>
><br>
> When running on the commandline (with the correct path) it generates the files.<br>
><br>
> Regards,<br>
> Paul<br>
><br>
><br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Utkarsh Ayachit [mailto:<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>]<br>
> Sent: 22 February 2012 17:39<br>
> To: Edwards, Paul<br>
> Cc: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
> Subject: Re: [Paraview] Problem compiling master on windows<br>
><br>
> Paul,<br>
><br>
> vtkPVMessage should have been generated by protobuf. It must have<br>
> failed to run or something. Try this, touch<br>
> ParaViewCore/ServerImplementation/Resources/vtkPVMessage.proto and<br>
> build. You should see something like:<br>
><br>
>> Generating vtkPVMessage.pb.h, <a href="http://vtkPVMessage.pb.cc" target="_blank">vtkPVMessage.pb.cc</a><br>
> [ 84%] Built target protobuf_code_generation<br>
><br>
> Check the errors if any.<br>
><br>
> Utkarsh<br>
><br>
><br>
> On Wed, Feb 22, 2012 at 11:57 AM, Edwards, Paul<br>
> <<a href="mailto:Paul.Edwards3@rolls-royce.com">Paul.Edwards3@rolls-royce.com</a>> wrote:<br>
>> Doesn't anyone else get this problem?<br>
>><br>
>><br>
>><br>
>> I noticed the build shows:<br>
>><br>
>><br>
>><br>
>> Scanning dependencies of target protobuf_code_generation<br>
>><br>
>> [ 77%] Generating vtkPVMessage.pb.h, <a href="http://vtkPVMessage.pb.cc" target="_blank">vtkPVMessage.pb.cc</a><br>
>><br>
>> [ 77%] Built target protobuf_code_generation<br>
>><br>
>> [ 77%] generating modules<br>
>><br>
>><br>
>><br>
>> But, I cannot find the vtkPVMessage.pb.h file that was supposedly generated.<br>
>><br>
>><br>
>><br>
>> I'm not sure how to proceed here. Any help would be appreciated.<br>
>><br>
>><br>
>> Thanks,<br>
>> Paul<br>
>><br>
>><br>
>><br>
>> From: Edwards, Paul<br>
>> Sent: 22 February 2012 10:05<br>
>> To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
>> Subject: Problem compiling master on windows<br>
>><br>
>><br>
>><br>
>> I get the following error when building on win64 vista with Microsoft c++:<br>
>><br>
>><br>
>><br>
>> [ 83%] Building CXX object<br>
>> ParaViewCore/ServerImplementation/CMakeFiles/vtkPVServerImplementation.dir/vtkPVSessionBase.c<br>
>><br>
>> xx.obj<br>
>><br>
>> vtkPVSessionBase.cxx<br>
>><br>
>> d:\scratch\paraviewsource\paraviewcore\serverimplementation\vtkSMMessage.h(30)<br>
>> : fatal error C1083: Cannot ope<br>
>><br>
>> n include file: 'vtkPVMessage.pb.h': No such file or directory<br>
>><br>
>> NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe' :<br>
>> return code '0x2'<br>
>><br>
>> Stop.<br>
>><br>
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio<br>
>> 9.0\VC\BIN\amd64\nmake.exe"' : return code '<br>
>><br>
>> 0x2'<br>
>><br>
>> Stop.<br>
>><br>
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio<br>
>> 9.0\VC\BIN\amd64\nmake.exe"' : return code '<br>
>><br>
>> 0x2'<br>
>><br>
>> Stop.<br>
>><br>
>><br>
>><br>
>> Does anyone else get this? Or, can anyone suggest a fix?<br>
>><br>
>><br>
>><br>
>> Thanks in advance,<br>
>><br>
>> Paul<br>
>><br>
>> The data contained in, or attached to, this e-mail, may contain confidential<br>
>> information. If you have received it in error you should notify the sender<br>
>> immediately by reply e-mail, delete the message from your system and contact<br>
>> <a href="tel:%2B44%20%280%29%201332%20242424" value="+441332242424">+44 (0) 1332 242424</a> (the Rolls-Royce IT Security Director) if you need<br>
>> assistance. Please do not copy it for any purpose, or disclose its contents<br>
>> to any other person.<br>
>><br>
>> An e-mail response to this address may be subject to interception or<br>
>> monitoring for operational reasons or for lawful business practices.<br>
>><br>
>> (c) 2012 Rolls-Royce plc<br>
>><br>
>> Registered office: 65 Buckingham Gate, London SW1E 6AT Company number:<br>
>> 1003142. Registered in England.<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the ParaView Wiki at:<br>
>> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>><br>
><br>
> The data contained in, or attached to, this e-mail, may contain confidential information. If you have received it in error you should notify the sender immediately by reply e-mail, delete the message from your system and contact <a href="tel:%2B44%20%280%29%201332%20242424" value="+441332242424">+44 (0) 1332 242424</a> (the Rolls-Royce IT Security Director) if you need assistance. Please do not copy it for any purpose, or disclose its contents to any other person.<br>
><br>
> An e-mail response to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.<br>
><br>
> (c) 2012 Rolls-Royce plc<br>
><br>
> Registered office: 65 Buckingham Gate, London SW1E 6AT Company number: 1003142. Registered in England.<br>
><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>