FLTK logo

Re: [fltk/fltk] CMake: Use imported targets for PkgConfig packages (PR #954)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] CMake: Use imported targets for PkgConfig packages (PR #954) Albrecht Schlosser 07:22 Apr 12  
 

Patch looks good but my first tests show that it doesn't work if WAYLAND is configured to be used on my Linux host. Works well w/o Wayland though. I'll try to find out what's going on in about an hour from now.
FYI:

With Wayland:

-- Configuration Summary for FLTK 1.4.0 generated by CMake 3.25.1 --
[...]
-- 
-- Build configuration      Debug

-- Image Libraries          JPEG = System: /usr/lib/x86_64-linux-gnu/libjpeg.so
--                          PNG  = System: /usr/lib/x86_64-linux-gnu/libpng.so
--                          ZLIB = System: /usr/lib/x86_64-linux-gnu/libz.so

-- Use Wayland              Yes (can also run as X11 client)
-- Use system libdecor      No
-- All drawing uses Cairo   Yes
-- Use Pango                Yes
-- Fl_Cairo_Window support  No
-- Use std::                No

-- End of Configuration Summary --

-- Configuring done
CMake Error at src/CMakeLists.txt:773 (target_link_libraries):
  Target "fltk" links to:

    PkgConfig::DBUS

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.
...

Reconfiguring w/o Wayland:

$ cmake -D FLTK_BACKEND_WAYLAND:BOOL=OFF .

-- Configuration Summary for FLTK 1.4.0 generated by CMake 3.25.1 --
[...]
-- 
-- Build configuration      Debug

-- Image Libraries          JPEG = System: /usr/lib/x86_64-linux-gnu/libjpeg.so
--                          PNG  = System: /usr/lib/x86_64-linux-gnu/libpng.so
--                          ZLIB = System: /usr/lib/x86_64-linux-gnu/libz.so

-- Use Wayland              No (X11 is used)
-- All drawing uses Cairo   Yes
-- Use Pango                Yes
-- Fl_Cairo_Window support  No
-- Use std::                No

-- End of Configuration Summary --

-- Configuring done
-- Generating done

... works.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/pull/954/c2051859278@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.