rsb wrote:I'm trying to build the latest version on Linux but I'm not sure what to link our
main application against. In the previous version, We used the following lines
in our CMakeLists.txt file.
TARGET_LINK_LIBRARIES( wx_prj "-lwxcode_gtk2u_pdfdoc-3.0" )
I changed the above line to -lwxcode_gtk2u_pdfdoc-3.1 but I get a link error when
building our main application.
/usr/bin/ld: cannot find -lwxcode_gtk2u_pdfdoc-3.1
Not sure what I'm doing wrong or what I should be linking against.
The readme.md file doesn't help.
Since I don't use CMake myself, I don't know much about it. The lines quoted from your CMakeLists.txt file indicate that you are building your own application and that your application requires to link against the wxPdfDocument library.
However, you don't tell if and how you built the wxPdfDocument library. Assuming you used autoreconf, configure, and make to build it, you have to take into account that the build system was changed in the latest development version of wxPdfDocument. On Linux the resulting library is now located in the directory from which you invoked configure and make. That is, most probably you just have to change the link library location:
where "build-xxx" is the name of the directory from which you invoked configure and make to build wxPdfDocument.