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

Generate Framework compilation database from CLI #5

Open
jim-bcom opened this issue Dec 16, 2022 · 2 comments
Open

Generate Framework compilation database from CLI #5

jim-bcom opened this issue Dec 16, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jim-bcom
Copy link

jim-bcom commented Dec 16, 2022

PROBLEM
Currently, to generate the files for this project, we need to generate the Framework compilation database from QtCreator by enabling qmake system() and clicking on Build->Generate Compilation Database for "SolARFramework".
In order to be able to automate the process of bulding this project, e.g. by our CI, we need a way to be able to do this via CLI.

SUGGESTED SOLUTION
I've been trying to use bear that aimed at doing creating this file from a Makefile-based project.

cd SolARFramework
mkdir build
cd build
qmake ../SolARFramework.pro -spec linux-g++
bear make

Unfortunately, when passed to the xpcf_grpc_gen tool, the resulting project seems to be missing a lot of files.
We may need to either check bear has been used properly (did I miss some options?) or find another bear-like tool, or update xpcf_grpc_gen in order to be able to parse the file generated by bear as well, if it is verified that it is well-formed.
Attached to this issue, the two compile_commands.json, one generated by QtCreator, the other one generated by bear.

compile_commands-qtcreator.json.txt
compile_commands-bear.json.txt

@jim-bcom jim-bcom added the enhancement New feature or request label Dec 16, 2022
@jim-bcom
Copy link
Author

Another tool seemed promising, I tried it quicly on Framework makefile, but it seems to infinitely loop.
https://github.com/nickdiego/compiledb

@stefled
Copy link

stefled commented Jul 22, 2024

Hello,

I have already test Compiledb and the resulting project also seems to be missing a lot of files.
I have noticed there is no update on this tool then I don't think it's a solution unfortunately

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

No branches or pull requests

3 participants