At this milestone I decided to upgrade/update everything. So I loaded wxWidgets 3.2.1 from github and build/install:
Code: Select all
mkdir build_gtk
cd build_gtk
../configure
make
su <type root password>
make install
ldconfig
I loaded wxPdfDoc from github and used the same commands in that directory to build. That builds and installs.
I'm using VSCode with cmake for my project. Here is the pertinent cmake code:
Code: Select all
find_package( wxWidgets COMPONENTS core base xml pdfdoc REQUIRED )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${build_Directory} )
include( "${wxWidgets_USE_FILE}" )
include_directories( ${StampTool_Source_Directory}
${AlbumGen_GuiFiles_Source_Directory}
${AlbumGen_UtilsFiles_Source_Directory}
${AlbumGen_ODTFiles_Source_Directory}
${AlbumGen_DesignFiles_Source_Directory}
${AlbumGen_CatalogFiles_Source_Directory} ${WXWIN} )
add_subdirectory (utils)
add_subdirectory (gui)
add_subdirectory (catalog)
add_subdirectory (design)
add_subdirectory (odt)
add_executable ( StampTool
StampToolApp.cpp
Defs.cpp
)
target_link_libraries (StampTool LINK_PUBLIC
GuiFiles
DesignFiles
CatalogFiles
ODTFiles
Utils
${wxWidgets_LIBRARIES}
)
It compiles so the include paths are ok but barfs on finding the pdf lib.
Code: Select all
...
[build] [ 96%] Linking CXX shared library libGuiFiles.so
[build] [ 96%] Built target GuiFiles
[build] make[2]: *** No rule to make target '/usr/local/lib/libwx_gtk3u_pdfdoc-3.2.a', needed by 'StampTool'. Stop.
[build] make[2]: *** Waiting for unfinished jobs....
The local libs I build are shared but i believe the .a is i believe a static lib. Also there is a /usr/local/lib/libwxcode_gtk3u_pdfdoc-3.2.a as well as a couple of others.
I feel like I'm close but can't quite figure out what I need to do.
How do I tell cmake what the right lib is?
Thanks,
Eddie