Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I could not find any information on how to compile the compiler itself. Trying to run this on CentOS 7 fails because it is looking for libjpeg.so.8, but CentOS provides libjpeg.so.62.


You need to rebuild QtByteRunner. Cd to platforms/qt/. There is a readme there for full explanation, but in short:

- clone asmjit (https://github.com/area9innovation/asmjit.git) into platforms/common/cpp folder first (eventually we'll move to upstream asmjit, we use our copy of this lib yet);

- make sure you have Qt 5.12.0 (or upper) available in your system;

- review paths in QtByteRunner.pro, they're usually fit our needs, but in some cases may require changes;

- run build.sh, it'll produce binary for your system.

Then you'll be able to run flowcpp tool.


The call chain is:

- you run flowcpp and feed it with .flow file;

- flowcpp see that it is source file and calls compiler

- compiler produces .bytecode file

- flowcpp executes .bytecode file and runs file you called.

You can call compiler directly with flowc or flowc1 commands.


Great, thanks for the explanation!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: