Package: libfltk1.4-dev
Version: 1.4.3-1+b1
Severity: normal

Dear Maintainer,

thanks for bringing FLTK1.4 to Debian.

I'm currently trying to update the 'giada' package, which requires fltk1.4
unfortunately, i've hit a wall :-/


the problem can be easily reproduced with following the example given in
/usr/share/doc/libfltk1.4-dev/README.CMake.txt.gz, which boils down to:

```
mkdir fltk-test
cd fltk-test
cat >CMakeLists.txt <<EOF
cmake_minimum_required(VERSION 3.15)

project(hello)

# optional (see below):
set(FLTK_DIR "/path/to/fltk"      
    CACHE FILEPATH "FLTK installation or build directory")
    
find_package(FLTK 1.4 CONFIG REQUIRED)
    
add_executable       (hello WIN32 MACOSX_BUNDLE hello.cxx)
target_link_libraries(hello PRIVATE fltk::fltk)
EOF
touch hello.cxx
```

the CMakeLists.txt can be simplified from the one in the README to just:
```cmake
cmake_minimum_required(VERSION 3.15)
project(hello)
find_package(FLTK 1.4 CONFIG REQUIRED)
add_executable (hello hello.cxx)
target_link_libraries(hello PRIVATE fltk::fltk)
```

in theory, you should then be able to run `cmake .` to generate the
buildsystem.

Unfortunately, I'm greeted with the following error:

```
$ cmake .
CMake Error at /usr/share/fltk/FLTK-Targets-none.cmake:192 (add_library):
  add_library cannot create imported target "fltk::fluid" because another
  target with the same name already exists.
Call Stack (most recent call first):
  /usr/share/fltk/FLTK-Targets.cmake:166 (include)
  /usr/share/fltk/FLTKConfig.cmake:39 (include)
  CMakeLists.txt:3 (find_package)


CMake Error at /usr/share/fltk/FLTK-Targets-none.cmake:222 (add_library):
  add_library cannot create imported target "fltk::options" because another
  target with the same name already exists.
Call Stack (most recent call first):
  /usr/share/fltk/FLTK-Targets.cmake:166 (include)
  /usr/share/fltk/FLTKConfig.cmake:39 (include)
  CMakeLists.txt:3 (find_package)


CMake Error at /usr/share/fltk/FLTK-Targets.cmake:181 (message):
  The imported target "fltk::fluid-shared" references the file

     "/usr/bin/fluid-shared"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/share/fltk/FLTK-Targets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/share/fltk/FLTKConfig.cmake:39 (include)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
$
```


Since I don't know much about CMake, I desparately need your help :-/

cheers and thanks in advance.
gfmards
IOhannes


-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libfltk1.4-dev depends on:
ii  dpkg-dev           1.22.21
ii  libcairo2-dev      1.18.4-1+b1
ii  libfltk-cairo1.4   1.4.3-1+b1
ii  libfltk-forms1.4   1.4.3-1+b1
ii  libfltk-gl1.4      1.4.3-1+b1
ii  libfltk-images1.4  1.4.3-1+b1
ii  libfltk1.4         1.4.3-1+b1
ii  libx11-dev         2:1.8.12-1

Versions of packages libfltk1.4-dev recommends:
ii  fluid                          1.4.3-1+b1
ii  libgl-dev                      1.7.0-1+b2
ii  libglu1-mesa-dev [libglu-dev]  9.0.2-1.1+b3

Versions of packages libfltk1.4-dev suggests:
ii  fltk1.4-doc                        1.4.3-1
ii  libjpeg-dev                        1:2.1.5-4
ii  libjpeg62-turbo-dev [libjpeg-dev]  1:2.1.5-4
ii  libpng-dev                         1.6.50-1
ii  libxext-dev                        2:1.3.4-1+b3
ii  libxft-dev                         2.3.6-1+b4
ii  libxinerama-dev                    2:1.1.4-3+b4
ii  zlib1g-dev [libz-dev]              1:1.3.dfsg+really1.3.1-1+b1

-- no debconf information

Reply via email to