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

Add Qt support #13

Open
4 tasks
dobokirisame opened this issue Jul 22, 2017 · 3 comments
Open
4 tasks

Add Qt support #13

dobokirisame opened this issue Jul 22, 2017 · 3 comments
Assignees

Comments

@dobokirisame
Copy link
Owner

dobokirisame commented Jul 22, 2017

https://blog.qt.io/blog/2017/06/22/using-compiler-explorer-qt/

  • Add Qt includes like in article
  • Find a way to get list of availabel Qt toolchains
  • Add Qt includes from toolchains
  • Create additional selector for Qt toolchain
@jcelerier
Copy link

jcelerier commented Dec 7, 2017

hi, I just did a commit here : jcelerier@5653f37#diff-66f29047dffe593f0e23274d7ad2b6eeR182 that adds support for fetching automatically the correct include paths & defines that the Qt code model use (at least on linux with gcc :p). Maybe it can be useful for you ? (I can do a pull request but for now I have a few things that I don't really have time to clean up (I hardcoded the compilers because it wouldn't detect them correctly))

@dobokirisame
Copy link
Owner Author

Hello, @jcelerier. I've a look at your commit. Code for supporting -I and -D flags is very usefull, thank you. I'll add it to project asap. If you want you can make merge request and i'll accept it. But i can't accept the part where you return only local compilers. I did not hardcode this because i have 2 PC. First with linux on board and i build latest gcc and clang myself and place them in non-standart location. Second pc with win7 and MSYS2. It contains gcc and clang but in very specific place(somewhere in /c/Msys2/mingw64/usr/local/bin) That's why i created this task. I want to take compiler location form Qt toolchain.

@jcelerier
Copy link

But i can't accept the part where you return only local compilers

yep that's why I didn't do a PR ! but I couldn't get it to work with the compiler detection, maybe because the paths of my compiler have "/" in them (eg /usr/bin/g++) and they should be encoded in html chars ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants