ales-tsurko / kotoist

A VST plugin for live coding and algorithmic composition
https://kotoist.alestsurko.by
GNU General Public License v3.0
45 stars 5 forks source link

Linux compilation fails #3

Open hellocatfood opened 2 years ago

hellocatfood commented 2 years ago

I'm trying to compile this plugin on Ubuntu 22.04. The gui appears to compile fine:

yarn build
yarn run v1.22.19
$ node scripts/build.js
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Compiled successfully.

File sizes after gzip:

  863.81 KB  build/static/css/main.24531017.chunk.css
  49.69 KB   build/static/js/2.63866348.chunk.js
  2.82 KB    build/static/js/main.4b3838b4.chunk.js
  1.62 KB    build/static/js/3.b7113776.chunk.js
  1.16 KB    build/static/js/runtime-main.7505a2aa.js

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

Done in 8.97s.

But when I try and build the plugin it fails at the point of compiling the vst-gui

   Compiling chrono v0.4.22
   Compiling vst-gui v0.2.0 (https://github.com/ales-tsurko/rust-vst-gui.git#0105f6d3)
error[E0308]: mismatched types
  --> /home/hellocatfood/.cargo/git/checkouts/rust-vst-gui-6c216ce8a2ccc232/0105f6d/src/lib.rs:77:97
   |
76 | pub fn new_plugin_gui(
   |        -------------- implicitly returns `()` as its body has no tail or `return` expression
77 |     html_document: String, js_callback: JavascriptCallback, window_size: Option<(i32, i32)>) -> PluginGui
   |                                                                                                 ^^^^^^^^^ expected struct `PluginGui`, found `()`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `vst-gui` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
0x0f0f0f commented 3 months ago

@ales-tsurko up

ales-tsurko commented 3 months ago

Hey! This plugin uses deprecated vst-rs. Also, it would be great to switch to another GUI library, like egui, for better cross-platform compatibility. I've just looked into it, and it requires a couple of days to update everything. Unfortunately, currently I don't have free time for this.