Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libmng not found on FreeBSD 11 #7

Open
interkosmos opened this issue Apr 27, 2018 · 2 comments
Open

libmng not found on FreeBSD 11 #7

interkosmos opened this issue Apr 27, 2018 · 2 comments

Comments

@interkosmos
Copy link

Running CMake on FreeBSD 11 leads to:

-- Checking for one of the modules 'libmng'
CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:641 (message):
  None of the required 'libmng' found
@interkosmos
Copy link
Author

In kdelibs/CMakeLists.txt change line 85 – 87 from:

if(SYSTEM_LIBMNG)
    pkg_search_module(MNG libmng REQUIRED)
endif()

to:

if(SYSTEM_LIBMNG)
pkg_search_module(MNG libmng)
if(NOT MNG_FOUND)
    find_library(MNG_LIBRARIES NAMES mng PATHS /usr/lib /usr/lib64 ${CMAKE_INSTALL_PREFIX} ${LIBMNG_LIBRARY_DIR})
    find_path(MNG_INCLUDEDIR NAMES libmng.h PATHS /usr/include ${CMAKE_INSTALL_FULL_INCLUDEDIR} ${LIBMNG_INCLUDE_DIR})
    add_definitions(-DQT_NO_IMAGEIO_MNG)
    if(NOT MNG_LIBRARIES)
    message(STATUS "Unable to find MNG development files on your system. MNG support will be disabled")
    add_definitions(-DQT_NO_IMAGEIO_MNG)
    set(MNG_LIBRARIES "")
    endif()
endif()
endif()

@heliocastro
Copy link
Owner

I stated a branch freebsd on qt2 and kdelibs. I think i fixed this one on Qt, but need double check.
I adapted your patch in a different way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants