iconv problems

Discuss issues related to installing or building
ansel
Posts: 152
Joined: Fri Apr 10 2015 8:23 am

Re: iconv problems

Post 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
Ansel Sermersheim
CopperSpice Cofounder
barbara
Posts: 446
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: iconv problems

Post by barbara »

A solution for this issue was pushed to github. This required changing a CMake build file for FreeBSD systems.

sha 44b38f3

Barbara
Post Reply