Hey GDAL Team - I have a server running CentOS 6. I have downloaded the
complete 1.11.2 source and successfully built and installed GDAL.
I am now trying to make my C++ program which uses GDAL and I’m not having any
luck. I get an “unknown reference” error on all my calls to GDAL methods.
(GDALAllRegister, GDALOpen, etc).
On my #include I get an error if I use #include “gdal/gdal_priv.h”; but it
makes it past that point if I use #include “gdal_priv.h” alone.
I am using cmake with this project and here is my CMakeLists.txt below. I have
manually set GDAL_INCLUDE_DIRS to be /usr/local/lib which is where all the
libgdal*.so files are located.
cmake_minimum_required(VERSION 2.8)
project( AerialMask )
find_package( OpenCV )
find_package( GDAL )
include_directories(
${OpenCV_INCLUDE_DIRS}
${GDAL_INCLUDE_DIRS}
)
add_executable( AerialMask AerialMask.cpp )
target_link_libraries( AerialMask ${OpenCV_LIBS} )
Joshua Jackson, PhD
Senior ResearchEngineer
(800) 604-1822 Ext. 5109 <tel:8006041822,5109> (256) 648-5109
<tel:2566485109>
[email protected] <mailto:[email protected]> www.nSide.io
<http://www.nside.io/> 4031 Parkway Dr, Suite B, Florence, AL 35630
<http://www.linkedin.com/company/nside/> <http://twitter.com/nSide__Out>
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev