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

Build Error (cpuid.h: No such file or directory) #153

Open
mikami520 opened this issue Jan 4, 2022 · 9 comments
Open

Build Error (cpuid.h: No such file or directory) #153

mikami520 opened this issue Jan 4, 2022 · 9 comments

Comments

@mikami520
Copy link

Hi, when I install ambf-2.0 on Ubuntu 20.04, it gave an error that the "cpuid.h" is missing. Could you please help me solve it?
22E77EC2-9D63-405A-AA85-5BEBA0157796

@adnanmunawar
Copy link
Member

What is the architecture of your system? Not sure if this is related, but can you try the suggestions from this issue #142.

@mikami520
Copy link
Author

What is the architecture of your system? Not sure if this is related, but can you try the suggestions from this issue #142.

My architecture is ARM64, I use the VM on the M1 Macbook

@adnanmunawar
Copy link
Member

Thanks for the info. I don't have access to an M1 Mac and thus haven't tried to build AMBF on a VM. Did you try the solution to Issue #142 and did it change anything?

If that doesn't work for you, I know of a couple of people who tried running AMBF via Docker on the M1 Mac. You can find the instructions for that here:

https://github.com/collaborative-robotics/docker-ambf

@mikami520
Copy link
Author

Thanks for the info. I don't have access to an M1 Mac and thus haven't tried to build AMBF on a VM. Did you try the solution to Issue #142 and did it change anything?

If that doesn't work for you, I know of a couple of people who tried running AMBF via Docker on the M1 Mac. You can find the instructions for that here:

https://github.com/collaborative-robotics/docker-ambf

I will have a try and let you know the further result, thanks for your help!

@adnanmunawar
Copy link
Member

adnanmunawar commented Jan 5, 2022

Great, could you also try this on your VM. In your local AMBF copy, can you comment out this line: https://github.com/WPI-AIM/ambf/blob/ambf-2.0/external/openal/include/alConfig.h#L74

in the file ambf/external/openal/include/alConfig.h
from

#define HAVE_CPUID_H

to

//#define HAVE_CPUID_H

and see if this allows you to compile.

@adnanmunawar adnanmunawar changed the title No cpuid.h file Build Error (cpuid.h: No such file or directory) Jan 5, 2022
@radiang
Copy link
Collaborator

radiang commented Jan 24, 2022

@adnanmunawar I had the same issue and tested this workaround on my M1 mac mini running parallels VM Ubuntu 20.04 and it works.

@adnanmunawar
Copy link
Member

Thanks, Radian, the new commit should incorporate these changes.

@youpmac
Copy link

youpmac commented Apr 14, 2022

Thanks, Radian, the new commit should incorporate these changes.

@adnanmunawar hi Adnan, this commit did not prevent the error for me. However, commenting out those lines again did work. I guess the commit implementing the if statement does not always work. Just wanted to let you know. I'm using a M1 macbook air running Ubuntu 18.04 on VMWare Fusion.

@adnanmunawar
Copy link
Member

Thanks for reporting this Youp, I shall take a look at it. I might need your help to test it though as I do not have an M1 Mac :)

@adnanmunawar adnanmunawar reopened this Apr 15, 2022
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

4 participants