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

Installation Issues #238

Closed
didahalpha opened this issue Apr 22, 2022 · 2 comments
Closed

Installation Issues #238

didahalpha opened this issue Apr 22, 2022 · 2 comments
Assignees
Labels
cmake CMake related issue help wanted Extra attention is needed
Milestone

Comments

@didahalpha
Copy link

Hello,
Some of us aren't as savy on how everything is to be installed, so I am running into an issue trying to get this installed, so I can eventually get Volk installed, where I will then install GnuRadio, on RHEL 7.
As for this one, can you please provide the instructions on how to compile this code?

I tried, within the build directory that I created in the unzipped folder of this download:

cmake3 ..
And got this:
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/gnuradio-maint-3.8/cpu_features-main/build/googletest-download
[ 11%] Performing update step for 'googletest'
Current branch main is up to date.
[ 22%] No configure step for 'googletest'
[ 33%] No build step for 'googletest'
[ 44%] No install step for 'googletest'
[ 55%] No test step for 'googletest'
[ 66%] Completed 'googletest'
[100%] Built target googletest
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/gnuradio-maint-3.8/cpu_features-main/build

Could you please tell me what I'm missing? :-)
Thanks a bunch,

Brad

@gchatelet
Copy link
Collaborator

@Mizux to update README.md with installation instructions.

@Mizux
Copy link
Collaborator

Mizux commented Apr 27, 2022

On my way to fix the doc !

Otherwise you can look at our docker based CI to figure the needed cmds...
here you call cmake3 ... which only run the "configure" step (cmake is a GENERATOR build system), you also need the "build" step and the "install" step.

Basically

RUN cmake -S. -Bbuild
RUN cmake --build build --target all -v
RUN cmake --build build --target install -v

note:on linux with the default generator (Makefile) will install everything in /usr/local BUT you can also use DESTDIR to avoid to pollute your host machine by using this cli instead.
cmake3 --build build --target install -v -- DESTDIR=install

then to consume it in a CMake project you can take a look at https://github.com/google/cpu_features/tree/main/cmake/ci/sample

@Mizux Mizux added help wanted Extra attention is needed cmake CMake related issue labels Apr 27, 2022
@Mizux Mizux added this to the v0.8.0 milestone Apr 27, 2022
Mizux added a commit that referenced this issue Apr 27, 2022
Mizux added a commit that referenced this issue Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake CMake related issue help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants