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

Help needed building blazingmq #48

Closed
ajanicij opened this issue Jul 30, 2023 · 5 comments
Closed

Help needed building blazingmq #48

ajanicij opened this issue Jul 30, 2023 · 5 comments
Assignees
Labels
A-Build Area: Build System help wanted Extra attention is needed

Comments

@ajanicij
Copy link

Hi,

I am new here, trying to build the code on Ubuntu 20.04. I ran into an issue running cmake:

CMake Error at /usr/local/share/cmake/BdeBuildSystem/BdeEmitPkgConfigFile.cmake:17 (message):
You need to supply LIBDIR to bbs_emit_pc_files or set CMAKE_INSTALL_LIBDIR
Call Stack (most recent call first):
etc/cmake/TargetBMQStyleUor.cmake:119 (bbs_emit_pkgconfig_file)
src/groups/mqb/CMakeLists.txt:27 (bmq_emit_pkg_config)

I am not an expert user of CMake, can anybody tell me what I am missing?

@jll63 jll63 added help wanted Extra attention is needed A-Build Area: Build System labels Jul 30, 2023
@jll63
Copy link
Collaborator

jll63 commented Jul 30, 2023

We have instructions for building BlazingMQ in a Ubuntu 22.04 Docker container. There is also a PR with a script to build BMQ that does not rely on Docker. It should be merged to the main branch soon.

We have not yet tried to build specifically on Ubuntu 20.04. If you want to try either procedure with 20.04, we would like to hear how it went! Otherwise, we will probably look into this in the near future.

@jll63 jll63 self-assigned this Jul 30, 2023
@ajanicij
Copy link
Author

I tried running bin/build-ubuntu.sh off the build-ubuntu branch. It went much further than I was able to get, but still not all the way. Here's the message:

...
-- Installing: /home/aleks/Downloads/blazingmq/bin/lib64/opt_dbg_exc_mt/pkgconfig/ntc.pc
-- Installing: /home/aleks/Downloads/blazingmq/bin/lib64/pkgconfig/ntc.pc
-- Installing: /home/aleks/Downloads/blazingmq/bin/lib64/opt_dbg_exc_mt_64/pkgconfig/ntc.pc
-- Installing: /home/aleks/Downloads/blazingmq/bin/lib64/opt_dbg_exc_mt_pic/pkgconfig/ntc.pc
-- Installing: /home/aleks/Downloads/blazingmq/bin/lib64/opt_dbg_exc_mt_64_pic/pkgconfig/ntc.pc
~/Downloads/blazingmq/bin
CMake Error: The source directory "/home/aleks/Downloads/blazingmq/bin" does not appear to contain CMakeLists.txt.

@jll63
Copy link
Collaborator

jll63 commented Aug 3, 2023

Are you running the script from the build directory? If yes, please try again, this time running ./bin/build-ubuntu.sh from the root of the repository.

I tried the script in a Ubuntu 20.04 WSL container. I had to upgrade cmake, but, afterwards, the build succeeded.

@ajanicij
Copy link
Author

ajanicij commented Aug 6, 2023

Yes, that was the problem: I was running the script from the wrong directory.
I also had to upgrade cmake and do
sudo apt install libbenchmark-dev
but after that, the build was successful.

Thanks!

@ajanicij ajanicij closed this as completed Aug 6, 2023
@ajanicij
Copy link
Author

ajanicij commented Aug 6, 2023

Build passing (in Ubuntu 20.04) on forked repo, once the PR is merged ./bin/build-ubuntu.sh will be in the main repo too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build Area: Build System help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants