<div dir="ltr"><div>Hi all,</div><div><br></div><div>Just a note this appears to have  been fixed as of (at least) 8.1.1 and I'm no longer encountering this issues.</div><div>Thanks very much for resolving this.</div><div><br></div><div>Cheers</div><div>Chris<br></div><div class="gmail_extra"><br clear="all"><div><div class="m_-5253419470698006255gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(102,102,102)"></span><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 30 January 2018 at 16:59, Chris Marsh <span dir="ltr"><<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>That is great to hear!</div><div>Cheers</div><span class="m_-5253419470698006255HOEnZb"><font color="#888888"><div>Chris</div></font></span><div><div class="m_-5253419470698006255h5"><div class="gmail_extra"><div><div class="m_-5253419470698006255m_5065296882902570213gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 30 January 2018 at 16:35, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Chris,<div>Thanks for investigating this.</div><div>Indeed, looking the the so file, there are some symbols that we are not mangling, which cause the problems you've seen.</div><div>I believe this was caused by updating of the version of the library we are including without updating the list of symbols we are mangling. </div><div>We'll fix this shortly,</div><div><br></div><div>Dan</div><div><br></div></div><div class="m_-5253419470698006255m_5065296882902570213HOEnZb"><div class="m_-5253419470698006255m_5065296882902570213h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 30, 2018 at 4:26 PM, Chris Marsh <span dir="ltr"><<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I have some updates on this. I recently discovered the LD_DEBUG=bindings  linker tool, so I can see what is happening.</div><div><br></div><div>There appear to be many cases where either the proj4 library I built or my executable bind to symbols in libvtkproj.</div><div><br></div><div>A few examples shown here. 'After patch elf' is when I use patchelf with --replace-needed to remove libvtkproj.so</div><div><br></div><div>As built</div><div><div> 21340:<span style="white-space:pre-wrap">  </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_prime_meridians'</div><div>     21340:<span style="white-space:pre-wrap">   </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_list'</div><div>     21340:<span style="white-space:pre-wrap">      </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/bin<wbr>/Release/CHM [0]: normal symbol `stdout' [GLIBC_2.2.5]</div><div>     21340:<span style="white-space:pre-wrap">  </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_ellps'</div><div>     21340:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_datums'</div></div><div><br></div><div>After patch elf</div><div><br></div><div><div>21259:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_prime_meridians'</div><div>     21259:<span style="white-space:pre-wrap">        </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_list'</div><div>     21259:<span style="white-space:pre-wrap">   </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/bin<wbr>/Release/CHM [0]: normal symbol `stdout' [GLIBC_2.2.5]</div><div>     21259:<span style="white-space:pre-wrap">  </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_ellps'</div><div>     21259:<span style="white-space:pre-wrap">  </span>binding file /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_datums'</div></div><div><br></div><div><br></div><div>Another example:</div><div><br></div><div>As built</div><div><div> 21340:<span style="white-space:pre-wrap">       </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/bin<wbr>/Release/CHM [0]: normal symbol `stderr' [GLIBC_2.2.5]</div><div>     21340:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_units'</div><div>     21340:<span style="white-space:pre-wrap">        </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aea'</div><div>     21340:<span style="white-space:pre-wrap">      </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aea'</div><div>     21340:<span style="white-space:pre-wrap">        </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aeqd'</div><div>     21340:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aeqd'</div><div>     21340:<span style="white-space:pre-wrap">       </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_airy'</div><div>     21340:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_airy'</div><div>     21340:<span style="white-space:pre-wrap">       </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aitoff'</div><div>     21340:<span style="white-space:pre-wrap">   </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aitoff'</div><div>     21340:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_alsk'</div><div>     21340:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_alsk'</div><div>     21340:<span style="white-space:pre-wrap">       </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_apian'</div><div>     21340:<span style="white-space:pre-wrap">    </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_apian'</div><div>     21340:<span style="white-space:pre-wrap">      </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_august'</div></div><div><br></div><div><br></div><div>after patchelf</div><div><br></div><div><div> 21259:<span style="white-space:pre-wrap">  </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_units'</div><div>     21259:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aea'</div><div>     21259:<span style="white-space:pre-wrap">      </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_aea'</div><div>     21259:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aeqd'</div><div>     21259:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_aeqd'</div><div>     21259:<span style="white-space:pre-wrap">    </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_airy'</div><div>     21259:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_airy'</div><div>     21259:<span style="white-space:pre-wrap">    </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aitoff'</div><div>     21259:<span style="white-space:pre-wrap">   </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_aitoff'</div><div>     21259:<span style="white-space:pre-wrap">  </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_alsk'</div><div>     21259:<span style="white-space:pre-wrap">     </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_alsk'</div><div>     21259:<span style="white-space:pre-wrap">    </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_apian'</div><div>     21259:<span style="white-space:pre-wrap">    </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_apian'</div><div>     21259:<span style="white-space:pre-wrap">   </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_august'</div><div>     21259:<span style="white-space:pre-wrap">   </span>binding file /home/cbm038/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib<wbr>/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_august'</div></div><div><br></div><div><br></div><div>Building VTK with system proj4 does correctly 'solve' the problem.  </div><div><br></div><div>Can provide more details if required.</div><div><br></div><div>Cheers</div><span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189HOEnZb"><font color="#888888"><div>Chris</div></font></span><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189h5"><div><br></div><div class="gmail_extra"><div class="gmail_quote">On 16 January 2018 at 13:17, Chris Marsh <span dir="ltr"><<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br>Thanks for the detailed thoughts. </div><span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:12.8px">Is the message you are getting from proj saying that the string you pass is not valid?</div></blockquote></span><div>Correct. However, I've verified with both the GDAL and proj4 mailing lists that the string is correct. The string is actually output from proj4 itself, so I have substantial confidence in it.</div><span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:12.8px"> Maybe somebody overrides that memory?</div><div style="font-size:12.8px">Try run your program though valgrind and/or comment out chunks of code trying to see who causes your error.</div></blockquote></span><div>Valgrind and the Intel memory tools show no memory corruption. </div><div><br></div><div><span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">Is VTK in the call stack for the errors you described? If not, I think it is not involved in the errors.</span></blockquote></span><div>GDAL, as I understand, dynamically opens the .so at runtime, so it's tough to figure out exactly what it is doing. Looking at the backtrace in gdb shows that it appears to be calling into the system proj4 before it segfaults.</div></div><div><br></div><div>If I use patchelf to strip the vtkproj4 reference, it is then fine.  If use patchelf to strip the system proj4 leaving the vtkproj4, I get the same error and segfault. </div><div><br></div><div>I *suspect* GDAL is doing the wrong thing here and loading the wrong library for some calls. This is all to say, I don't think it's a VTK problem per se, but is for whatever reason, conflicting on this system.</div><div><br></div><div>Further weirdness is that on the machines this works 100%, I don't see any reference to libvtkproj4.</div><div><br></div><div>I'll follow up after I rebuild everything again with the VTK system proj4.</div><div><br></div><div>Thanks very much,</div><div><br>Cheers</div><div>Chris</div><div> </div><div class="gmail_extra"><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">University of Saskatchewan</span><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-h5">
<br><div class="gmail_quote">On 15 January 2018 at 10:03, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Chris,</div>Is VTK in the call stack for the errors you described? If not, I think it is not involved in the errors.<div><br></div><div>vtkproj should not interfere with proj, but you can make VTK use the system proj with the method described earlier.</div><div><br></div><div>Is the message you are getting from proj saying that the string you pass is not valid? Maybe somebody overrides that memory?</div><div>Try run your program though valgrind and/or comment out chunks of code trying to see who causes your error.</div><div>Hope this helps,</div><div>Dan</div><div><br></div><div><br></div></div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937HOEnZb"><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 3:32 PM, Chris Marsh <span dir="ltr"><<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dan,<div><br></div><div>I'm trying to figure out the issue I detail here:<br></div><div><a href="http://osgeo-org.1560.x6.nabble.com/Failed-to-initialize-PROJ-4-with-quot-quot-td5338323.html" target="_blank">http://osgeo-org.1560.x6.nabbl<wbr>e.com/Failed-to-initialize-PRO<wbr>J-4-with-quot-quot-td5338323.h<wbr>tml</a><br></div><div><a href="http://osgeo-org.1560.x6.nabble.com/gdal-dev-ERROR-6-Failed-to-initialize-PROJ-4-with-quot-quot-td5338107.html" target="_blank">http://osgeo-org.1560.x6.nabbl<wbr>e.com/gdal-dev-ERROR-6-Failed-<wbr>to-initialize-PROJ-4-with-quot<wbr>-quot-td5338107.html</a><br></div><div><br></div><div>Effectively the error is that GDAL seems to call the incorrect library/something happens, and the projection fails.</div><div><br></div><div><div style="font-size:12.8px">In an effort to resolve this I was looking at my binary via LDD and found</div><div style="font-size:12.8px"><div>$ ldd ~/build-release/bin/Release/CH<wbr>M | grep proj4</div><div>        libvtkproj4-8.0.so.1 => /home/cmarsh/build-release/lib<wbr>/VTK/lib/libvtkproj4-8.0.so.1 (0x00002b517aa36000)</div><div>        libproj.so.0 => /home/cmarsh/build-release/lib<wbr>/proj4/lib/libproj.so.0 (0x00002b51944d2000)</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">If I use patchelf (<a href="https://github.com/NixOS/patchelf" target="_blank">https://github.com/NixOS/patc<wbr>helf</a>) to strip libvtkproj4-8.0.so.1 from my binary, my code runs without the error.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I don't quite understand why I don't have this problem on other machines though. Looking at other machines I compile on (using a custom VTK build) I don't see any reference to the VTK libproj4 via ldd.</div><div style="font-size:12.8px"><br></div></div><div>Thus I attributed the error to vtkproj4 inclusion. However if you mangle names, then I agree I don't understand why this is happening. </div><div><br></div><div>Cheers</div><span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563HOEnZb"><font color="#888888"><div>Chris</div></font></span><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563h5"><div class="gmail_extra"><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 12 January 2018 at 09:35, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Chris,<div><br></div><div>1. Going back to the beginning of the thread, I don't understand why vtklibproj conflicts with another proj, given that we mangle all names. Can you send us the errors.</div><div><br></div><div>2. If you do want to build with the system proj4</div><div><br></div><div><div>Can you send up the output of:</div><div><div>cat CMakeCache.txt | grep LIBPROJ</div></div><div><br></div><div>This is what I have:</div><div><div>LIBPROJ4_INCLUDE_DIR:PATH=/usr<wbr>/include</div><div>LIBPROJ4_LIBRARIES:FILEPATH=/u<wbr>sr/lib/x86_64-linux-gnu/libpro<wbr>j.so.12</div><div>LIBPROJ_BINDIR:PATH=bin</div><div>LIBPROJ_DATADIR:PATH=share/pro<wbr>j</div><div>LIBPROJ_DOCDIR:PATH=doc/proj</div><div>LIBPROJ_INCLUDEDIR:PATH=includ<wbr>e</div><div>LIBPROJ_LIBDIR:PATH=lib</div><div>LIBPROJ_M_LIB:FILEPATH=/usr/li<wbr>b/x86_64-linux-gnu/libm.so</div><div>LIBPROJ_USE_THREAD:BOOL=ON</div><div>//Use system-installed LIBPROJ4</div><div>VTK_USE_SYSTEM_LIBPROJ4:BOOL=O<wbr>N</div><div>//ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR</div><div>LIBPROJ4_INCLUDE_DIR-ADVANCED:<wbr>INTERNAL=1</div><div>//ADVANCED property for variable: LIBPROJ4_LIBRARIES</div><div>LIBPROJ4_LIBRARIES-ADVANCED:IN<wbr>TERNAL=1</div><div>//MODIFIED property for variable: LIBPROJ4_LIBRARIES</div><div>LIBPROJ4_LIBRARIES-MODIFIED:IN<wbr>TERNAL=ON</div><div>//ADVANCED property for variable: LIBPROJ_BINDIR</div><div>LIBPROJ_BINDIR-ADVANCED:INTERN<wbr>AL=1</div><div>//ADVANCED property for variable: LIBPROJ_DATADIR</div><div>LIBPROJ_DATADIR-ADVANCED:INTER<wbr>NAL=1</div><div>//ADVANCED property for variable: LIBPROJ_DOCDIR</div><div>LIBPROJ_DOCDIR-ADVANCED:INTERN<wbr>AL=1</div><div>//ADVANCED property for variable: LIBPROJ_INCLUDEDIR</div><div>LIBPROJ_INCLUDEDIR-ADVANCED:IN<wbr>TERNAL=1</div><div>//ADVANCED property for variable: LIBPROJ_LIBDIR</div><div>LIBPROJ_LIBDIR-ADVANCED:INTERN<wbr>AL=1</div><div>//ADVANCED property for variable: LIBPROJ_M_LIB</div><div>LIBPROJ_M_LIB-ADVANCED:INTERNA<wbr>L=1</div><div>//ADVANCED property for variable: LIBPROJ_USE_THREAD</div><div>LIBPROJ_USE_THREAD-ADVANCED:IN<wbr>TERNAL=1</div><div>//ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4</div><div>VTK_USE_SYSTEM_LIBPROJ4-ADVANC<wbr>ED:INTERNAL=1</div><div>//MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4</div><div>VTK_USE_SYSTEM_LIBPROJ4-MODIFI<wbr>ED:INTERNAL=ON</div></div><div><br></div><div><br></div><div>Make sure </div><div>LIBPROJ4_INCLUDE_DIR<br></div><div>LIBPROJ4_LIBRARIES<br></div><div>VTK_USE_SYSTEM_LIBPROJ4<br></div><div>have the correct values.</div><div><br></div><div>All those are cmake variables, you change them using ccmake or cmake-gui.</div><div>After that you call:</div><div><br></div><div>cmake .</div><div>make</div><div><br></div><div><br></div></div></div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152HOEnZb"><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a><wbr>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dan Lipsa made last changes perhaps he may have some suggestions. <span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152m_-7586546888782119829HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152m_-7586546888782119829HOEnZb"><font color="#888888">- aashish<br><br></font></span><div class="gmail_quote"><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152m_-7586546888782119829h5"><div dir="ltr">On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh <<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152m_-7586546888782119829h5"><div dir="ltr">Looks like something is setting <div><div>PROJ4_INCLUDE_DIR </div><div>PROJ4_LIBRARY </div></div><div>to the system's proj4. I use a custom findproj4 that only looks where I tell it. <br></div><div><br></div><div>then I see that </div><div>LIB_FILES:INTERNAL<br></div><div>contains vtkproj4</div><div>LIB_FILES just holds all my 3rd party libraries I need to link against.</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152m_-7586546888782119829m_713488070064000649m_-4335495123984649302gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(102,102,102)">Chris Marsh</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">PhD Candidate</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)"></span><a href="http://chrismarsh.ca/" style="color:rgb(102,102,102)" target="_blank">chrismarsh.ca</a><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)"><a href="https://maps.google.com/?q=121+Research+Drive+University+of+Saskatchewan&entry=gmail&source=g" target="_blank">121 Research Drive</a></span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)"><a href="https://maps.google.com/?q=121+Research+Drive+University+of+Saskatchewan&entry=gmail&source=g" target="_blank">University of Saskatchewan</a></span><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra">
<br><div class="gmail_quote">On 11 January 2018 at 13:29, Ben Boeckel <span dir="ltr"><<a href="mailto:ben.boeckel@kitware.com" target="_blank">ben.boeckel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote:<br>
> Thanks for the details. This doesn't seem to be working for me though. I've<br>
> tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line as well<br>
> as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however neither<br>
> works. I still see the vtklibproj4 in the output of ldd.<br>
<br>
</span>CMake should be getting the flag. If you do:<br>
<br>
    grep -i proj4 CMakeCache.txt<br>
<br>
do any variables stand out as potentially being set to use the internal<br>
one?<br>
<span class="m_-5253419470698006255m_5065296882902570213m_-3719824430986783189m_-6997406840425450253gmail-m_-1514469393805082937m_-7366095942170044563m_-8117956129048986152m_-7586546888782119829m_713488070064000649m_-4335495123984649302HOEnZb"><font color="#888888"><br>
--Ben<br>
</font></span></blockquote></div><br></div></div></div><span>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtkusers</a><br>
</span></blockquote></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>