Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: glib-2.48 gthread-2.0 is required to compile QEMU #40

Closed
alvarocleite opened this issue Feb 26, 2020 · 11 comments
Closed

ERROR: glib-2.48 gthread-2.0 is required to compile QEMU #40

alvarocleite opened this issue Feb 26, 2020 · 11 comments

Comments

@alvarocleite
Copy link

I'm trying to follow your installation tutorial, but it fails when I run

./configure --target-list="aarch64-softmmu,microblazeel-softmmu" --enable-fdt --disable-kvm --disable-xen

The error thrown in the terminal is

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

At this point, I'm having trouble reverting my system to those versions.

@edgarigl
Copy link
Contributor

Hi Alvaro,

You don't need those exact versions but you need to install the -dev packages, e.g apt-get install libglib2.0-dev.

Best regards,
Edgar

@PoplarYang
Copy link

for CentOS

# yum install glib2
# yum install glib2-devel

@penpendandan
Copy link

for CentOS

# yum install glib2
# yum install glib2-devel

however, I have glib2.4,and the error still remain.
I run
yum install glib2
the log in the terminal is
Package glib2-2.40.0-4.x86_64 already installed and latest version

I run
yum install glib2-devel
the log in the terminal is
Package glib2-devel-2.40.0-4.x86_64 already installed and latest version

How can I fix it?

@avisWang
Copy link

you have already installed glib2 and glib2-devel,
sudo ./configure
sudo make
that works for me

@diohabara
Copy link

I am using Ubuntu 20.04. I cannot solve this problem.

Here is my error log.

❯ ./configure --target-list=riscv64-softmmu && make
Using './build' as the directory for build output
ERROR: glib-2.56 gthread-2.0 is required to compile QEMU

I've already installed libglib2.0-dev and cannot find gthread. What should I do?

@Diaz-Manuel
Copy link

Diaz-Manuel commented Sep 12, 2021

I am using Ubuntu 20.04. I cannot solve this problem.

Here is my error log.

❯ ./configure --target-list=riscv64-softmmu && make
Using './build' as the directory for build output
ERROR: glib-2.56 gthread-2.0 is required to compile QEMU

I've already installed libglib2.0-dev and cannot find gthread. What should I do?

After installing the package libglib2.0-dev (by the way, thanks for the name, needed that), together with libpixman-1-dev due to later errors, I was able to run sudo ./configure errorless. Just wouldn't work without sudo.

@samuelcolqueflores
Copy link

I had a totally different experience to say that the error ERROR: glib-2.48 gthread-2.0 is required to compile QEMU is ambiguous.
I did have the package libglib2.0-dev installed, so the error was not related to it.
After inspecting the config.log file (a file in one's build directory), I discovered that some libraries and headers where missing because the compilation failed after adding a library or because of an undefined function. Some libraries were (in my case) namely: libibumad, libibverbs. Thus, I installed libibumad-dev, libibverbs-dev packages in my system (Ubuntu).
The missing libraries or headers in your case may vary so inspect the lasts lines of the config.log file in your build directory to see which libraries/headers you don't have installed.

@wang-jiaolong
Copy link

I am using Ubuntu 20.04. I cannot solve this problem.

Here is my error log.

❯ ./configure --target-list=riscv64-softmmu && make
Using './build' as the directory for build output
ERROR: glib-2.56 gthread-2.0 is required to compile QEMU

I've already installed libglib2.0-dev and cannot find gthread. What should I do?

I have also encountered this problem. Have you solved it?

@saipava
Copy link
Contributor

saipava commented Aug 30, 2022 via email

@wang-jiaolong
Copy link

Hi Jialong, As you are on ubuntu. Did you ever try apt build-dep qemu Regards, Sai Pavan From: Jiaolong @.> Sent: Tuesday, August 30, 2022 2:48 PM To: Xilinx/qemu @.> Cc: Subscribed @.> Subject: Re: [Xilinx/qemu] ERROR: glib-2.48 gthread-2.0 is required to compile QEMU (#40) CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. I am using Ubuntu 20.04. I cannot solve this problem. Here is my error log. ❯ ./configure --target-list=riscv64-softmmu && make Using './build' as the directory for build output ERROR: glib-2.56 gthread-2.0 is required to compile QEMU I've already installed libglib2.0-dev and cannot find gthread. What should I do? I have also encountered this problem. Have you solved it? — Reply to this email directly, view it on GitHub<#40 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD73MGLDP6DL3OZECOTYQ3LV3XGWLANCNFSM4K4BU62Q. You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you for your advice, but after downloading some files, the problem is still unsolved and the same error message remains.

@mrsirfloppa
Copy link

here's my error:
./configure
Using './build' as the directory for build output

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

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

No branches or pull requests