Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

"./configure --target-list=riscv64-softmmu" gives "ERROR: pkg-config binary 'pkg-config' not found" #17

Open
sanderjo opened this issue Nov 26, 2019 · 0 comments

Comments

@sanderjo
Copy link
Contributor

root@6f42517b2121:/riscv64-linux/riscv-gnu-toolchain/qemu# ./configure --target-list=riscv64-softmmu

ERROR: pkg-config binary 'pkg-config' not found

So ... try:

root@6f42517b2121:/riscv64-linux/riscv-gnu-toolchain/qemu# apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libglib2.0-0 libglib2.0-data shared-mime-info xdg-user-dirs
The following NEW packages will be installed:
  libglib2.0-0 libglib2.0-data pkg-config shared-mime-info xdg-user-dirs
0 upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 1693 kB of archives.
After this operation, 7246 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-0 amd64 2.56.4-0ubuntu0.18.04.4 [1169 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-data all 2.56.4-0ubuntu0.18.04.4 [4496 B]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 shared-mime-info amd64 1.9-2 [426 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 xdg-user-dirs amd64 0.17-1ubuntu1 [48.0 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 pkg-config amd64 0.29.1-0ubuntu2 [45.0 kB]
Fetched 1693 kB in 0s (5001 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libglib2.0-0:amd64.
(Reading database ... 17720 files and directories currently installed.)
Preparing to unpack .../libglib2.0-0_2.56.4-0ubuntu0.18.04.4_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.4) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../libglib2.0-data_2.56.4-0ubuntu0.18.04.4_all.deb ...
Unpacking libglib2.0-data (2.56.4-0ubuntu0.18.04.4) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../shared-mime-info_1.9-2_amd64.deb ...
Unpacking shared-mime-info (1.9-2) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../xdg-user-dirs_0.17-1ubuntu1_amd64.deb ...
Unpacking xdg-user-dirs (0.17-1ubuntu1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../pkg-config_0.29.1-0ubuntu2_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu2) ...
Setting up libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.4) ...
No schema files found: doing nothing.
Setting up pkg-config (0.29.1-0ubuntu2) ...
Setting up libglib2.0-data (2.56.4-0ubuntu0.18.04.4) ...
Setting up shared-mime-info (1.9-2) ...
Setting up xdg-user-dirs (0.17-1ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

No:

root@6f42517b2121:/riscv64-linux/riscv-gnu-toolchain/qemu# ./configure --target-list=riscv64-softmmu

ERROR: glib-2.40 gthread-2.0 is required to compile QEMU

root@6f42517b2121:/riscv64-linux/riscv-gnu-toolchain/qemu#

Solution:
apt-get install libglib2.0-dev
Then

root@6f42517b2121:/riscv64-linux/riscv-gnu-toolchain/qemu# ./configure --target-list=riscv64-softmmu

ERROR: pixman >= 0.21.8 not present.
       Please install the pixman devel package.

solution:
apt-get install libpixman-1-dev

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

No branches or pull requests

1 participant