Reputation:
I have managed to understand the structure of chromium browser and now I would like to use an IDE in order to make some changes for a personal project on a Ubuntu Trusty machine ( 14.04 ).
It is already compiled and I just want to use an IDE to make my life easier.
I have tried to add chromium to Qt Creator by using the option open project
but without any luck.
Could you please guide me to have this achieved ? Some steps would be really helpful. More, it would be possible to compile / build chromium from Qt Creator ? ( avoid typting in console ninja -C out/Debug chrome chrome_sandbox
and out/Debug/chrome
every time)
If you guys can suggest me another IDE that you're used to, please, guide me and I will change the title of the post.
//UPDATE 1
I tried to make those configurations for Build / Run as it follows:
Build:
Run
I get the following error:
:-1: error: No rule to make target
all'. Stop.`
//UPDATE 2:
The error from Compile output
section
Upvotes: 5
Views: 2128
Reputation: 401
Just run in src folder:
gn gen out/Default --ide=qtcreator
And open in QtCreator src/out/Default/qtcreator_project/all.creator
Upvotes: 5
Reputation: 10860
You can edit any code project in Qt creator, but you can't use Open project
, when it isn't a Qt project. Instead use Import project -> Import existing project
in the New project
dialog.
When you have an existing project, you can define new build steps in the Projects
tab. Under Build steps
just choose Add Build step -> Custom Process step
.
Here you can fill in your command using the fields Command
, Arguments
and Working Directory
.
In your case, you would for example fill in ninja
, -C out/Debug chrome chrome_sandbox
and %{buildDir}
for the first command.
Similarely, you can click on Run
(on the top of this tab) to change how the your project is executed after successful compilation.
Upvotes: 5