<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello again,</div><div><br></div><div>I am now trying to use the PgReader and PgWriter. But I have also two problems.</div><div><br></div><div><br></div><div> The first one is that the headers of PgReader and PgWriter (any of the plugins really) are not installed with pdal, so I am sourcing them from the folder where the project was cloned *for now*</div><div><br></div><div>The second one is configuring the CMakeLists file. The project uses a macro but I can't figure out how to make it work. <br></div><div><br></div><div>Simply importing the file gives me a lot of compilation errors: <br></div><div><br></div><div>such as #include "libpq-fe.h" not found<br></div><div>and if I correct that with the proper <postgres/pq..... > header it gives me some more errors about libxml</div><div><br></div><div>The tests of Pgwriter does indeed work btw. <br></div><div><br>#include <pdal/filters/ChipperFilter.hpp><br>#include <io/BufferReader.hpp><br>#include "~/db/pdal/plugins/pgpointcloud/io/PgCommon.hpp"<br>#include "~/db/pdal/plugins/pgpointcloud/io/PgWriter.hpp"<br><br><br>int main()<br>{<br> using namespace pdal;<br></div><div>}</div><div><br></div><div>This is the Cmake I am using:</div><div><br></div><div>cmake_minimum_required(VERSION 2.8.12)<br>project(WritingTutorial)<br><br>find_package(PDAL 1.0.0 REQUIRED CONFIG)<br><br>link_directories( /usr/local/)<br>set(CMAKE_CXX_FLAGS "-std=c++11")<br>include_directories(<br> ${PDAL_INCLUDE_DIRS}<br> ${PDAL_INCLUDE_DIRS}/pdal<br> /usr/include/jsoncpp)<br><br>add_executable(chipper chipper.cpp)<br>target_link_libraries(chipper <br> ${PDAL_LIBRARIES}<br> )<br><br><br>add_executable(database db.cpp)<br>target_link_libraries(database <br> ${PDAL_LIBRARIES}<br> )<br></div><div><br></div><div><br></div><div>It is obvious that is is not designed to work like this.</div><div>Thank you for your help guys!</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><b>David Serret </b>- R&D Engineer at Eigen Dynamics SL<br><img src="http://www.eigendynamics.com/wp-content/uploads/2017/02/EigenLogo200dpi-1.jpg" width="200" height="88"></div></div>
</div></div></div></div></div></div>