Skip to content

building with libpd support #66

Description

@porres

Seems there are simple fixes/adjustments to be made so Prototype can be compiled with libpd support for VCV 2.0.

@clwe please let us know here when you get to this. I also hope you could help trying to compile this with some Pd externals (like ELSE/Cyclone).

Activity

  1. dizzisound commented on Feb 14, 2023

    @dizzisound

    Hi, just a quick report about my test-build.
    I managed to build VCV-Prototype enabling QuickJS, LuaJit and libPD under Windows 10.
    A summary of my main steps and edits:

    • cloned the VCV-Prototype repo
    • checked out the v2 branch
    • fixed the line 507 in Prototype.cpp:
      std::wstring commandW = string::toWstring(command);

      with this line:
      std::wstring commandW = string::UTF8toUTF16(command);
      this fix was also suggested in this issue:
      QuickJS exclusive build #63
      but no pull-request followed the issue
    • run the following command:
      pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang
    • did the following in the VCV-Prototype Makefile
    1. enabled the LIBPD flag, i.e. LIBPD ?= 1
    2. in the # LibPD section of the Makefile, added the line: FLAGS += -DPDINSTANCE -DPDTHREADS
    3. in the $(libpd): target of the Makefile, changed the referenced commit to point at libpd 0.13.2:
      cd dep/libpd && git checkout e3980d2fe45ef9eaaec1d45e4d68637eaf76a8b1

    I hope I didn't forget anything.
    I dropped the installable plugin on my Google drive:
    https://drive.google.com/drive/folders/1aW9TDz8VCEzb1VRvPtBPfqVH2Y76w09m?usp=sharing

  2. clwe commented on Feb 25, 2023

    @clwe
    Collaborator

    I have been looking briefly into the libpd build yesterday. For Linux all that is needed is a different submodule checkout for libpd as suggested by @dizzisound. Thanks for finding that. The mentioned build flags are there already. I would need to look into windows and Mac builds soon.

  3. SteveRussell33 commented on Feb 25, 2023

    @SteveRussell33
    * fixed the line 507 in `Prototype.cpp`:
    

    std::wstring commandW = string::toWstring(command);

      with this line:
      `std::wstring commandW = string::UTF8toUTF16(command); `
      this fix was also suggested in this issue:
      [QuickJS exclusive build #63](https://github.com/VCVRack/VCV-Prototype/issues/63)
      but no pull-request followed the issue
    

    Fixed here 96d6305

  4. clwe commented on Feb 27, 2023

    @clwe
    Collaborator

    This issue is fixed in v2-tmp branch and can be closed now. Superfluous build flags can be removed again via the pull request #75

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions