Git Product home page Git Product logo

compilerexplorer's Introduction

CompilerExplorer

Build Status


QtCreator plugin based on https://github.com/mattgodbolt/compiler-explorer (https://gcc.godbolt.org/)

License: MIT


Build instruction

Download QtCreator sources from http://download.qt.io. It Should be exactly as your QtCreator version(Help->About QtCreator)
Copy qt_deps.pri.template file to qt_deps.pri and edit it


Instruction

Install NodeJS
Clone and make compiler-explorer (https://github.com/mattgodbolt/compiler-explorer)
Build plugin with Qt your QtCreator based on (Help->About QtCreator)
Install library in your QtCreator plugins directory
Turn on in plugins list


Instruction for Windows

If you use Linux or macOs there will be no problem for you to start local compiler-explorer server with local compilers.
But if you use MSYS2 with MinGW64 on Windows OS you might have one.
Go to c-preload/Makefile
Change this line $(CC) -std=c99 -shared -O1 -fPIC $^ -o $@ $(LDL)
To something like this $(GCC) --std=c++1z -shared -O3 -fPIC $^ -o $@ $(LDL)"
Then go to c-preload/preload.c
Edit line resolved = realpath(path, resolvedBuf);
Just make resolved = NULL;
Add yor configuration file (c++.local.properties)
compiler-explorer/compiler-explorer#468

compilers=gcc  
compiler.gcc.exe=/msys64/mingw64/bin/gcc.exe  
compiler.gcc.name=GCC  

If you run "make" it'll probably failed.
Because "make" command starts nodeJS server with supervisor module.
IDK why but this module doesn't work well on Windows OS.
So just run

/your/NodeJs/Location/node ./app.js  

compilerexplorer's People

Contributors

dobokirisame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

compilerexplorer's Issues

Add icon

Add icon to "Run" button
Get icon from resources of other plugins

Ptr to smart ptr

Change pointers to unique and shared pointers where it can be done

Get Compilers List

Get available compilers from server.
Add this data to combobox in pane with description
GET /api/compiler

Local gcc win64

Using msys2 with MinGW64 gcc 7.1.0
it adds /FA idk what it is.
gcc.exe: error: /FAsc: No such file or directory
gcc.exe: error: /c: No such file or directory
gcc.exe: error: /FaC:\msys64\tmp\compiler-explorer-compiler117713-6068-g2uigq.8lor2uik9\output.s: Invalid argument
gcc.exe: error: /FoC:\msys64\tmp\compiler-explorer-compiler117713-6068-g2uigq.8lor2uik9\output.s.obj: Invalid argument
Compiler exited with result code 1

Separate local server

It can be situation when user allready has started server. So he doesn't want to start another one.
With current implementation user cannot listen to local server without starting it.
There must be 2 preferencies.
First "Start local server" with nodejs and compiler-explorer location.
And second "listen to local server with Qt environment...".

Build dir and stdout

After update mingw64, all libraries and aps build directory changed to %LocalAppData%\QtProject\QtCreator\plugins%QtVersion%
need to change it.

And i've got no output to console after starting qtcreator.

Filters

Should add filters setup in pane. And test it

Rework OutputPane

Right now it's just textViewer.
Need to make table with good model.
After that you can make highlights as main site does .

Local Compilers

There is error messages, while starting node.js server with compiler explorer.

Unable to get version for compiler '/usr/bin/g++' - Error: spawn /usr/bin/g++ ENOENT
etc.
Need to fix this. Because explorer has no local compilers to work with.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.