Board index FlightGear Support Compiling

[Solved] CMake error: "PkgConfig::DBUS" is IMPORTED

Building FlightGear from source, and in the need for help?

[Solved] CMake error: "PkgConfig::DBUS" is IMPORTED

Postby mifi » Wed Aug 26, 2020 10:41 am

I have been compiling the 'next' branch for a couple of years, to great satisfaction, but since a couple of days I am getting Cmake errors in flightgear.

This is shown a number times:

Code: Select all
CMake Error at CMakeLists.txt:62 (_add_library):
  _add_library cannot create ALIAS target "DBus" because target
  "PkgConfig::DBUS" is IMPORTED.
Call Stack (most recent call first):
  CMakeModules/FindDBus.cmake:33 (add_library)
  CMakeLists.txt:312 (find_package)


I have no idea what it means.

I have tried a clean build (remove 'build' directory). I have removed the flightgear sources to force them being refreshed from git, but none of that worked.
Simgear is compiling fine, without errors.
I am on linux (Ubuntu 18.04) and am using the latest download_and_compile.sh script and had it update the packages on my system (i.e. I called it without the '-p n' flag).

What am I doing wrong?
Last edited by mifi on Fri Aug 28, 2020 10:44 am, edited 2 times in total.
mifi
 
Posts: 327
Joined: Mon Jul 23, 2007 4:24 pm
Location: NL
Version: git next
OS: Ubuntu 18.04.x Gnome

Re: CMake error: "PkgConfig::DBUS" is IMPORTED

Postby bugman » Wed Aug 26, 2020 3:01 pm

Just have a look at the development mailing list archives. You'll see that this is an issue from 2-3 days ago due to a large CMake clean up James is performing. It'll be fixed soon.

Regards,
Edward
bugman
Moderator
 
Posts: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

Re: CMake error: "PkgConfig::DBUS" is IMPORTED

Postby mifi » Wed Aug 26, 2020 3:21 pm

Perfect.
No problem. Thanks for the reply.

bugman wrote in Wed Aug 26, 2020 3:01 pm:Just have a look at the development mailing list archives. You'll see that this is an issue from 2-3 days ago due to a large CMake clean up James is performing. It'll be fixed soon.

Regards,
Edward
mifi
 
Posts: 327
Joined: Mon Jul 23, 2007 4:24 pm
Location: NL
Version: git next
OS: Ubuntu 18.04.x Gnome


Return to Compiling

Who is online

Users browsing this forum: No registered users and 4 guests