Page 2 of 2

Re: iconv problems

Posted: Wed Aug 12 2020 4:01 am
by ansel
Can you try applying the following diff to CopperSpice and see if it builds for you? With these two changes, both the iconv and cups issues have been cleaned up.

Code: Select all

diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 1520f2502..285c2ff02 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -122,7 +122,6 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "(OpenBSD|FreeBSD|NetBSD|DragonFly)")
    target_link_libraries(CsCore
       PRIVATE
       ${CMAKE_THREAD_LIBS_INIT}
-      iconv
    )
    include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/forkfd)
 
diff --git a/src/plugins/printerdrivers/cups/cupsprinter.cmake b/src/plugins/printerdrivers/cups/cupsprinter.cmake
index e39a2ceee..3fec8f8f2 100644
--- a/src/plugins/printerdrivers/cups/cupsprinter.cmake
+++ b/src/plugins/printerdrivers/cups/cupsprinter.cmake
@@ -18,10 +18,15 @@ if(Cups_FOUND)
        ${CMAKE_SOURCE_DIR}/src/plugins/printerdrivers/cups/qcupsprintersupport.cpp
    )
 
+   target_include_directories(CsPrinterDriverCups
+      PRIVATE
+      ${CUPS_INCLUDE_DIRS}
+   )
+
    target_link_libraries(CsPrinterDriverCups
       CsCore
       CsGui
-      cups
+      ${CUPS_LIBRARIES}
    )
 
    target_compile_definitions(CsPrinterDriverCups

Re: iconv problems

Posted: Thu Aug 20 2020 8:59 pm
by barbara
A solution for this issue was pushed to github. This required changing a CMake build file for FreeBSD systems.

sha 44b38f3

Barbara