QT creator

1,045 views
Skip to first unread message

mxq...@gmail.com

unread,
Apr 23, 2015, 9:02:59 AM4/23/15
to bazel-...@googlegroups.com
Hi,

Is anyone using QT Creator together with Bazel?
In general for C++ projects, what IDE are you currently using with Bazel?

Thanks

Damien Martin-guillerez

unread,
Apr 23, 2015, 10:41:48 AM4/23/15
to mxq...@gmail.com, bazel-...@googlegroups.com
Hello,

We are using Eclipse and InttelliJ for Java. I personally use emacs for non-java stuff.


--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To post to this group, send email to bazel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/50d8409a-7c95-4f3c-8c60-5457e88eaeed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Han-Wen Nienhuys

unread,
Apr 23, 2015, 1:36:06 PM4/23/15
to mxq...@gmail.com, bazel-...@googlegroups.com
I don't know of anyone using Bazel for QT.

I usually use Emacs for C++, but I know people that use Eclipse.
> --
> You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
> To post to this group, send email to bazel-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/50d8409a-7c95-4f3c-8c60-5457e88eaeed%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Han-Wen Nienhuys
Google Munich
han...@google.com

Austin Schuh

unread,
Apr 27, 2015, 6:46:21 PM4/27/15
to Han-Wen Nienhuys, mxq...@gmail.com, bazel-...@googlegroups.com
I've got a QT binary building.

I don't know what the original QT build file looked like, but I've got bazel rules to build it.

You will need a new_local_repository to let you add a cc_library rule to include /usr/include/qt4 and /usr/include/qt4/QtCore, ... .  This will also let you specify the linkopts to link in the libraries.

From there, you'll need a genrule to generate the UI header files.  (Call /usr/bin/uic-qt4 and create a cc_library from it)

You'll also need a qt4_cc_library rule which runs moc-qt4 over all the header files and adds the resulting cc files to the cc_library.

Austin

e...@peloton-tech.com

unread,
Jun 16, 2016, 12:52:38 PM6/16/16
to bazel-discuss, han...@google.com, mxq...@gmail.com
bbreslauer has posted a QT5 bazel rule to github. It is available at:

https://github.com/bbreslauer/qt-bazel-example/tree/master/tools/build_rules

HTH,

Eric G

eric.co...@tri.global

unread,
Apr 27, 2017, 12:11:03 PM4/27/17
to bazel-discuss, han...@google.com, mxq...@gmail.com, e...@peloton-tech.com
I am actually interested in just using QtCreator as an IDE, and not too tied to using the Qt library.

I've been using CLion (IntelliJ-based?) with the Bazel plugin, and it's got decent features, but still seems blocking on the GUI thread quite or generally slow down frequently, which is quite burdensome. I don't remember having too many of these issues with QtCreator + CMake.

Has anyone tried out using QtCreator purely as an IDE with Bazel as the build system?
http://doc.qt.io/qtcreator/creator-project-other.html

dim...@gmail.com

unread,
Jun 21, 2017, 6:45:10 AM6/21/17
to bazel-discuss, mxq...@gmail.com
+1

I also would like to use QtCreator (just like IDE, *not* to build GUI application) to build tensorflow applications.

If anyone has workarounds, please share.

Marcel Hlopko

unread,
Jun 21, 2017, 6:49:55 AM6/21/17
to dim...@gmail.com, bazel-discuss, mxq...@gmail.com
Hmm so I use intellijIdea, and I don't see any of the slowdowns you mention, I actually find it quite great. Can you elaborate? Maybe it's a bug, I'd try reporting it (https://github.com/bazelbuild/intellij). 

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
-- 
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | Germany | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle | Registergericht und -nummer: Hamburg, HRB 86891

dim...@gmail.com

unread,
Jun 25, 2017, 11:53:22 AM6/25/17
to bazel-discuss, mxq...@gmail.com

Just in case. If anyone wanted to use QtCreator and Bazel to work with tensorflow, here is my workaround - https://stackoverflow.com/questions/44673800/bazel-qtcreator

reds...@gmail.com

unread,
Oct 25, 2017, 4:17:24 AM10/25/17
to bazel-discuss
I'm currently using QtCreator with a bazel project (based on repo+git), but it involves some manual fidgeting.

Mainly, I imported the project with "Import existing project". I did not touch the file filters. Then I have a script that uses repo and git utilities to update the .files file, which I run regularly. I also regularly re-add the bazel-genfiles. I've also added BUILD, *.bzl and WORKSPACE files to the qt internal python MIME type so I get python syntax highlighting. As for the build/run targets, I add them manually each time I need one.

Quite some work, but absolutely none of the Java based IDEs has ever worked for me on the big C++ projects I've been working on, with slow-downs, crashes, out-of-memory problems and all that.

Reply all
Reply to author
Forward
0 new messages