<div dir="ltr"><div class="gmail_default" style="font-size:small">

<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">You are wasting your time taking this approach. </div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div></div><div class="gmail_default" style="font-size:small">

<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">You have missing dependencies and, since you are not using CMake, you are largely on your own sorting these out.</div>

<br></div><div class="gmail_default" style="font-size:small">VTK is built using CMake and, by using CMake in your own code base, you will ensure that all the dependencies will be automatically found for you.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you don't want to use CMake, then this may  help: VTK/Utilities/Maintenance/WhatModulesVTK.py</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Andrew</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br>---------- Forwarded message ----------<br>From: Zoltan Takacs <<a href="mailto:zozonmr@gmail.com">zozonmr@gmail.com</a>><br>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Cc: <br>Bcc: <br>Date: Sun, 1 Apr 2018 23:16:15 +0100<br>Subject:<div class="gmail_default" style="font-size:small;display:inline">​​</div> [vtkusers] Compiling the scatterplot example without cmake<br>Hi,<br>
<br>
I have general question about how to compile code without using cmake. I have downloaded the scatterplot example because I wanted start from something simple. The cmake type of compilation works and the executable provides the plot. However when I try to compile it without cmake I get a segmentation fault error. This is how I modified the include list:<br>
<br>
#include <vtkVersion.h><br>
#include <vtkSmartPointer.h><br>
#include <vtkChartXY.h><br>
#include <vtkContextScene.h><br>
#include <vtkContextView.h><br>
#include <vtkFloatArray.h><br>
#include <vtkPlotPoints.h><br>
#include <vtkRenderWindow.h><br>
#include <vtkRenderWindowInteractor.h><br>
#include <vtkRenderer.h><br>
#include <vtkTable.h><br>
<br>
I added the following lines:<br>
<br>
#include <vtkAutoInit.h><br>
<br>
VTK_MODULE_INIT(vtkRenderingOp<wbr>enGL);<br>
VTK_MODULE_INIT(vtkRenderingCo<wbr>ntextOpenGL);<br>
VTK_MODULE_INIT(vtkRenderingVo<wbr>lumeOpenGL);<br>
VTK_MODULE_INIT(vtkInteraction<wbr>Style);<br>
<br>
The code compiles like this and the compiler does not complain however when I run it then it quits with segmentation fault. My guess (and only a guess) that this line causes the trouble:<br>
<br>
view->GetInteractor()->Start()<wbr>;<br>
<br>
Why is the seg. fault happening?<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br><br></blockquote></div><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div>