<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Message original --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Sujet: </th>
            <td>Re: [vtkusers] VTK 6 porting</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date&nbsp;: </th>
            <td>Fri, 15 Mar 2013 17:43:49 +0100</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">De&nbsp;: </th>
            <td>Fr&eacute;d&eacute;ric Speisser <a class="moz-txt-link-rfc2396E" href="mailto:speisser@kappaeng.com">&lt;speisser@kappaeng.com&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Pour&nbsp;: </th>
            <td>Cory Quammen <a class="moz-txt-link-rfc2396E" href="mailto:cquammen@cs.unc.edu">&lt;cquammen@cs.unc.edu&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Thank you Cory,<br>
        <br>
        But I don't use Cmake for generating my project...<br>
        I'm under Visual 10, i've already add
        <pre wrap="">VTK_USE_FILE</pre>
        &nbsp; in my preprocessor definitions but it does not change anything
        ... <br>
        <br>
        Do you know what <span style="color: rgb(0, 0, 0); font-family:
          sans-serif; font-size: 13px; font-style: normal; font-variant:
          normal; font-weight: normal; letter-spacing: normal;
          line-height: 19.046875px; orphans: auto; text-align: start;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: auto; word-spacing: 0px; -webkit-text-size-adjust:
          auto; -webkit-text-stroke-width: 0px; background-color:
          rgb(255, 255, 255); display: inline !important; float: none;">"appropriate

          compiler definitions to automatically initialize the object
          factory overrides" </span>should I add in my VS project ?<br>
        <br>
        Thanks.<br>
        <br>
        <br>
        <br>
        Fr&eacute;d&eacute;ric<br>
        <br>
        <br>
        Le 15/03/2013 17:35, Cory Quammen a &eacute;crit&nbsp;:<br>
      </div>
      <blockquote
cite="mid:CANmPiKBr8F1xyxwRmUxhLiRQugU8=n920Muy_Bw17h1j+ofNGg@mail.gmail.com"
        type="cite">
        <pre wrap="">After the line

find_package( VTK ... )

in your project's CMakeLists.txt file, you need to add the line

include( ${VTK_USE_FILE} )

- Cory

On Fri, Mar 15, 2013 at 11:54 AM, Fr&eacute;d&eacute;ric Speisser
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:speisser@kappaeng.com">&lt;speisser@kappaeng.com&gt;</a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hello all,

We want to port our application using Vtk 5.9 to Vtk 6.
Some code working on 5.9 does not work in 6, simple example with following
line :

vtkSmartPointer&lt;vtkActor&gt; actor = vtkSmartPointer&lt;vtkActor&gt;::New();

returns a NULL pointer ...

Seems I must do something described here
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Build_System_Migration">http://www.vtk.org/Wiki/VTK/Build_System_Migration</a> :


"The application code must list vtkRenderingOpenGL in its components to use
OpenGL for rendering and include the VTK_USE_FILE to add compiler
definitions. This ensures that the object factory for the vtkRenderingOpenGL
module will be initialized and uses whenever classes from vtkRenderingCore
are uses in your application code. If you notice the interface classes in
these modules returning NULL pointers it is likely that one of these
implementation modules providing appropriate overrides is missing from the
dependency list."

I'm already linking with vtkRenderingOpenGL-6.0.lib in my sample project but
what should i do with "VTK_USE_FILE" ?

Any hints would be wellcome, thanks a lot !


Fr&eacute;d&eacute;ric

_______________________________________________
Powered by <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>

</pre>
        </blockquote>
        <pre wrap="">

--
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
.

</pre>
      </blockquote>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>