[Bug 1519964] [NEW] cmake module for FLTK broken
Israel Dahl
1519964 at bugs.launchpad.net
Wed Nov 25 21:04:37 UTC 2015
Public bug reported:
Ubuntu Xenial (a.k.a. development release)
cmake 3.3.2is3.2.2-0ubuntu2
I expect the FLTK module in cmake to:
a) not require fluid when I specifically set(FLTK_SKIP_FLUID True)
This is not the case. I get an error saying cmake cannot find fluid. So I add it to the BuildDepends (control file).
It still cannot find it (why is it looking anyway??)
so I
IF(NOT EXISTS ${FLTK_FLUID_EXECUTABLE})
# Try to detect full path anyway
EXECUTE_PROCESS(COMMAND which fluid OUTPUT_VARIABLE FLTK_FLUID_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE)
IF(NOT EXISTS ${FLTK_FLUID_EXECUTABLE})
MESSAGE(FATAL_ERROR "Please install the fluid binary which is part of FLTK.")
ENDIF()
ENDIF()
Great... now it cannot find "${FLTK_INCLUDE_DIR}"
I hack that.
Now I get this:
Could NOT find FLTK (missing: FLTK_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.2/Modules/FindFLTK.cmake:318 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:11 (FIND_PACKAGE)
Does this module work for anything at all?
This s rather frustrating :(
I have tried using
FIND_PACKAGE(FLTK REQUIRED)
and
FIND_PACKAGE(FLTK REQUIRED NO_MODULE) ## this worked in 12.04 and 14.04 just fine.. found everything with some hacking
Please fix this....
The issue seems to be that
/usr/lib/fltk/FLTKConfig.cmake
does not look like this
#
# FLTKConfig.cmake - FLTK CMake configuration file for external projects.
#
# This file is configured by FLTK and used by the UseFLTK.cmake module
# to load FLTK's settings for an external project.
set(FLTK_FOUND TRUE)
set(FLTK_VERSION 1.3.0)
set(FLTK_FLUID_EXECUTABLE "/usr/bin/fluid")
set(FLTK_USE_FILE "/usr/lib/fltk/UseFLTK.cmake")
set(FLTK_DIR "/usr/lib/fltk")
set(FLTK_BIN_DIR "/usr/bin")
set(FLTK_LIB_DIR "/usr/lib/x86_64-linux-gnu")
set(FLTK_INCLUDE_DIR "/usr/include")
set(FLTK_DATA_DIR "/usr/share/fltk")
set(FLTK_DOC_DIR "/usr/share/doc/fltk1.3-doc")
set(FLTK_SHARED_LIBS_FOUND ON)
set(FLTK_CAIRO_FOUND TRUE)
set(FLTK_GL_FOUND TRUE)
set(FLTK_THREADS_FOUND TRUE)
set(FLTK_PTHREADS_FOUND TRUE)
set(FLTK_BUILTIN_JPEG_FOUND FALSE)
set(FLTK_BUILTIN_ZLIB_FOUND FALSE)
set(FLTK_BUILTIN_PNG_FOUND FALSE)
set(FLTK_XINERAMA_FOUND TRUE)
set(FLTK_XFT_FOUND TRUE)
set(FLTK_XDBE_FOUND TRUE)
include("/usr/lib/fltk/FLTKLibraries.cmake")
Here is an example of the problems in other programs (and where I got the above file)
https://github.com/LMMS/lmms/issues/2260
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: cmake 3.3.2is3.2.2-0ubuntu2
ProcVersionSignature: Ubuntu 4.2.0-19.23-lowlatency 4.2.6
Uname: Linux 4.2.0-19-lowlatency x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.19.2-0ubuntu6
Architecture: amd64
CurrentDesktop: ToriOS
Date: Wed Nov 25 14:50:57 2015
InstallationDate: Installed on 2014-11-07 (383 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64+mac (20140722.2)
SourcePackage: cmake
UpgradeStatus: Upgraded to xenial on 2015-11-18 (7 days ago)
** Affects: cmake (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug xenial
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to cmake in Ubuntu.
https://bugs.launchpad.net/bugs/1519964
Title:
cmake module for FLTK broken
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1519964/+subscriptions
More information about the kubuntu-bugs
mailing list