I have finally managed to compile the podofo tools and the library butI was mainly interested in the tools. First, I had to download the latestversion from
https://github.com/podofo/podofo/tree/0.10.x For some reason, one cannot easily find this version... Next, I "patched" file CMakeLists.txt to create the tools (by default it creates a shared library). Therequired changes are shown below: --- podofo-0.10.x/CMakeLists.txt 2023-12-13 12:25:04.000000000 +0200 +++ podofo-0.10.x-NEW/CMakeLists.txt 2024-01-07 12:58:05.438243700 +0200 @@ -43,6 +43,7 @@ # variable here that we require to be set elsewhere, otherwise we'll complain. set(PODOFO_MAIN_CMAKELISTS_READ TRUE) +set(PODOFO_BUILD_LIB_ONLY FALSE) if(PODOFO_BUILD_LIB_ONLY) set(PODOFO_BUILD_TEST FALSE) set(PODOFO_BUILD_EXAMPLES FALSE) @@ -53,11 +54,11 @@ endif() if (NOT DEFINED PODOFO_BUILD_EXAMPLES) - set(PODOFO_BUILD_EXAMPLES TRUE) + set(PODOFO_BUILD_EXAMPLES FALSE) endif() if (NOT DEFINED PODOFO_BUILD_TOOLS) - set(PODOFO_BUILD_TOOLS FALSE) + set(PODOFO_BUILD_TOOLS TRUE) endif() # We assume a standalone build so we set output @@ -72,7 +73,7 @@ message(FATAL_ERROR "PODOFO_BUILD_SHARED shouldn't be defined externally. Set PODOFO_BUILD_STATIC to TRUE if you need a static build") endif() -option(PODOFO_BUILD_STATIC "Build static libraries (.a/.lib)" FALSE) +option(PODOFO_BUILD_STATIC "Build static libraries (.a/.lib)" TRUE) if(PODOFO_BUILD_STATIC) set(PODOFO_BUILD_SHARED FALSE) add_compile_definitions(PODOFO_STATIC) Then I created a folder in which the build process would take place. There I gave thefollowing commands to build the binaries: $ export PKG_CONFIG_PATH=/usr/openssl/3.1/lib/amd64/pkgconfig:/usr/lib/amd64/pkgconfig$ CC=/usr/bin/gcc-13 CXX=/usr/bin/g++-13 cmake ..$ make The binaries can be "installed" in /tmp/temp using the command $ make install DESTDIR=/tmp/temp . From, there one can copy them in any location. Hope this will help others to build podofo easy. Regards,A.S. ----------------------Apostolos Syropoulos Xanthi, Greece On Friday, January 5, 2024 at 09:53:42 PM GMT+2, Goetz T. Fischer <[email protected]> wrote: maybe you have to set a different c++ standard. enable verbose build to see the actual g++ command. On Fri, 5 Jan 2024 19:37:42 +0000 (UTC), Apostolos Syropoulos via openindiana-discuss wrote: > Hello, > > I tried to compile PODOFO with gcc 13 and I get the following error: > > > [ 65%] Building CXX object > test/unit/CMakeFiles/podofo-test.dir/ParserTest.cpp.o > [ 65%] Building CXX object > test/unit/CMakeFiles/podofo-test.dir/TokenizerTest.cpp.o > [ 66%] Building CXX object > test/unit/CMakeFiles/podofo-test.dir/StringTest.cpp.o > In file included from /usr/include/cppunit/TestAssert.h:8, _______________________________________________ openindiana-discuss mailing list [email protected] https://openindiana.org/mailman/listinfo/openindiana-discuss _______________________________________________ openindiana-discuss mailing list [email protected] https://openindiana.org/mailman/listinfo/openindiana-discuss
