-
Notifications
You must be signed in to change notification settings - Fork 4
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
Does not load in VCV Rack 0.6.0 #3
Comments
Hey Dave, I have the single voice running on 0.6 and will do the other one in the next days now that 0.6 is out :) |
There's a new 0.6.0 release with linux and OSX binaries. Let me know if issues you may have |
Hi, I tried to compile from source on Windows but it gives errors: here's the result below if it may be useful. Hope is fine to post it here, I'm newbie on github :-) Greetings $ make |
I believe I commented the offending code in the last v0.6 branch. Did you get the code from the v0.6 branch? Looks like the same error I was getting with linux. |
I did "git clone" from the master page here |
You need to do "git checkout v0.6" |
I'm not a programmer so I may got it wrong, however i cloned the Erratic, I entered in its directory and typed the command you said there and I got this results, hope it helps. MINGW64 ~/rack/plugins/erratic You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD is now at b705740... Commented code breaking compiling on linux. |
Sorry it's "git checkout v0.6". |
ok did, and right after I did again make dist but no, many warnings and still error, I will leave here below what it said but I have to go now so don't worry, just I hope it may be of use for you otherwise as said don't worry. $ git checkout v0.6 (then I typed this) $ make dist |
Ok maybe I will need to setup a windows box to make sure it compiles on
it... I quickly commented some code but seems like it was expected to be
there :) not all compilers are alike...
…On Wed, Apr 4, 2018, 23:57 DCSIProductions, ***@***.***> wrote:
ok did, and right after I did again make dist but no, many warnings and
still error, I will leave here below what it said but I have to go now so
don't worry, just I hope it may be of use for you otherwise as said don't
worry.
Talk later. cheers
$ git checkout v0.6
Previous HEAD position was b705740
<b705740>...
Commented code breaking compiling on linux .
Branch 'v0.6' set up to track remote branch 'v0.6' from 'origin'.
Switched to a new branch 'v0.6'
*(then I typed this)*
$ make dist
g++ -Wsuggest-override -std=c++11 -DSLUG=Erratic -fPIC -I../../include
-I../.. /dep/include -DVERSION=0.6.0 -MMD -MP -g -O3 -march=nocona
-ffast-math -fno-fini te-math-only -Wall -Wextra -Wno-unused-parameter
-DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/MPEToCV.cpp.o src/MPEToCV.cpp
src/MPEToCV.cpp: In constructor 'MPEToCVWidget::MPEToCVWidget(MPEToCV*)':
src/MPEToCV.cpp:261:70: warning: 'TPort* rack::createOutput(rack::Vec,
rack::Mod ule*, int) [with TPort = rack::PJ3410Port]' is deprecated
[-Wdeprecated-declarat ions]
addOutput(createOutput(Vec(15 * 6, yPos - 5), module, i));
^
In file included from src/Erratic.hpp:1:0,
from src/MPEToCV.hpp:1,
from src/MPEToCV.cpp:1:
../../include/rack.hpp:72:19: note: declared here
DEPRECATED TPort
*createOutput(Vec pos, Module module, int outputId) { ^~~~~~~~~~~~ In file
included from src/MPEToCV.cpp:1:0: src/MPEToCV.hpp: In member function
'virtual void MPEMidiWidget::step()': src/MPEToCV.hpp:333:17: warning:
iteration 2 invokes undefined behavior [-Waggre ssive-loop-optimizations]
vSeparators[x]->box.pos.x = box.size.x / 4 * x; ~~~~~~~~~~~~~^
src/MPEToCV.hpp:332:21: note: within this loop for (int x = 1; x < 4; x++)
{ ^ src/MPEToCV.hpp: In member function 'void
MPEMidiWidget::initialize(MPEToCV)': src/MPEToCV.hpp:309:17: warning:
iteration 2 invokes undefined behavior [-Waggre ssive-loop-optimizations]
vSeparators[x]->box.size.y = midiChannelChoice->box.size.y; ~~~~~~~~~~~~~^
src/MPEToCV.hpp:308:21: note: within this loop for (int x = 1; x < 4; x++)
{ ^ g++ -Wsuggest-override -std=c++11 -DSLUG=Erratic -fPIC -I../../include
-I../.. /dep/include -DVERSION=0.6.0 -MMD -MP -g -O3 -march=nocona
-ffast-math -fno-fini te-math-only -Wall -Wextra -Wno-unused-parameter
-DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/QuadMPEToCV.cpp.o
src/QuadMPEToCV.cpp src/QuadMPEToCV.cpp: In constructor
'QuadMPEToCVWidget::QuadMPEToCVWidget(QuadMP EToCV*)':
src/QuadMPEToCV.cpp:50:76: warning: 'TPort* rack::createOutput(rack::Vec,
rack:: Module*, int) [with TPort = rack::PJ3410Port]' is deprecated
[-Wdeprecated-decla rations]
addOutput(createOutput(Vec(2 * (40), yPos - 5), module, i * 4));
^
In file included from src/Erratic.hpp:1:0,
from src/QuadMPEToCV.hpp:2,
from src/QuadMPEToCV.cpp:1:
../../include/rack.hpp:72:19: note: declared here
DEPRECATED TPort
*createOutput(Vec pos, Module module, int outputId) { ^~~~~~~~~~~~
src/QuadMPEToCV.cpp:51:80: warning: 'TPort rack::createOutput(rack::Vec,
rack:: Module*, int) [with TPort = rack::PJ3410Port]' is deprecated
[-Wdeprecated-decla rations]
addOutput(createOutput(Vec(3 * (40), yPos - 5), module, i * 4 + ));
^
In file included from src/Erratic.hpp:1:0,
from src/QuadMPEToCV.hpp:2,
from src/QuadMPEToCV.cpp:1:
../../include/rack.hpp:72:19: note: declared here
DEPRECATED TPort
*createOutput(Vec pos, Module module, int outputId) { ^~~~~~~~~~~~
src/QuadMPEToCV.cpp:52:80: warning: 'TPort rack::createOutput(rack::Vec,
rack:: Module*, int) [with TPort = rack::PJ3410Port]' is deprecated
[-Wdeprecated-decla rations]
addOutput(createOutput(Vec(4 * (40), yPos - 5), module, i * 4 + ));
^
In file included from src/Erratic.hpp:1:0,
from src/QuadMPEToCV.hpp:2,
from src/QuadMPEToCV.cpp:1:
../../include/rack.hpp:72:19: note: declared here
DEPRECATED TPort
*createOutput(Vec pos, Module module, int outputId) { ^~~~~~~~~~~~
src/QuadMPEToCV.cpp:53:80: warning: 'TPort rack::createOutput(rack::Vec,
rack:: Module*, int) [with TPort = rack::PJ3410Port]' is deprecated
[-Wdeprecated-decla rations]
addOutput(createOutput(Vec(5 * (40), yPos - 5), module, i * 4 + ));
^
In file included from src/Erratic.hpp:1:0,
from src/QuadMPEToCV.hpp:2,
from src/QuadMPEToCV.cpp:1:
../../include/rack.hpp:72:19: note: declared here
DEPRECATED TPort
*createOutput(Vec pos, Module module, int outputId) { ^~~~~~~~~~~~
src/QuadMPEToCV.cpp:57:72: warning: 'TPort rack::createOutput(rack::Vec,
rack:: Module*, int) [with TPort = rack::PJ3410Port]' is deprecated
[-Wdeprecated-decla rations]
addOutput(createOutput(Vec(2 * (40), yPos - 5), module, 20));
^
In file included from src/Erratic.hpp:1:0,
from src/QuadMPEToCV.hpp:2,
from src/QuadMPEToCV.cpp:1:
../../include/rack.hpp:72:19: note: declared here
DEPRECATED TPort *createOutput(Vec pos, Module
*module, int outputId) { ^~~~~~~~~~~~ src/QuadMPEToCV.cpp:20:8: warning:
unused variable 'labelHeight' [-Wunused-varia ble] float labelHeight = 15;
^~~~~~~~~~~ In file included from src/QuadMPEToCV.cpp:1:0:
src/QuadMPEToCV.hpp: In member function 'virtual void
QuadMPEMidiWidget::step()' : src/QuadMPEToCV.hpp:800:17: warning: iteration
2 invokes undefined behavior [-Wa ggressive-loop-optimizations]
vSeparators[x]->box.pos.x = box.size.x / 4 * x; ~~~~~~~~~~~~~^
src/QuadMPEToCV.hpp:799:21: note: within this loop for (int x = 1; x < 4;
x++) { ^ src/QuadMPEToCV.hpp: In member function 'void
QuadMPEMidiWidget::initialize(Quad MPEToCV*)':
src/QuadMPEToCV.hpp:776:17: warning: iteration 2 invokes undefined
behavior [-Wa ggressive-loop-optimizations]
vSeparators[x]->box.size.y = midiChannelChoice->box.size.y;
~~~~~~~~~~~~~^
src/QuadMPEToCV.hpp:775:21: note: within this loop
for (int x = 1; x < 4; x++) {
^
g++ -Wsuggest-override -std=c++11 -DSLUG=Erratic -fPIC -I../../include
-I../.. /dep/include -DVERSION=0.6.0 -MMD -MP -g -O3 -march=nocona
-ffast-math -fno-fini te-math-only -Wall -Wextra -Wno-unused-parameter
-DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/MPEBaseWidget.cpp.o
src/MPEBaseWidget.cpp
g++ -Wsuggest-override -std=c++11 -DSLUG=Erratic -fPIC -I../../include
-I../.. /dep/include -DVERSION=0.6.0 -MMD -MP -g -O3 -march=nocona
-ffast-math -fno-fini te-math-only -Wall -Wextra -Wno-unused-parameter
-DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/Erratic.cpp.o src/Erratic.cpp
g++ -o plugin.dll build/src/MPEToCV.cpp.o build/src/QuadMPEToCV.cpp.o
build/src/ MPEBaseWidget.cpp.o build/src/Erratic.cpp.o -L"../../dep/lib"
-lrtmidi -shared -L../.. -lRack
build/src/MPEToCV.cpp.o: In function MPEToCV::processMessage(rack::MidiMessage)
': C:\msys64\home\Utente\rack\plugins\erratic/src/MPEToCV.cpp:123:
undefined refere nce toMPEToCV::pressNote(int)'
C:\msys64\home\Utente\rack\plugins\erratic/src/MPEToCV.cpp:118: undefined
refere nce to MPEToCV::releaseNote(int)'
C:\msys64\home\Utente\rack\plugins\erratic/src/MPEToCV.cpp:169: undefined
refere nce toMPEToCV::releaseNote(int)'
C:\msys64\home\Utente\rack\plugins\erratic/src/MPEToCV.cpp:118: undefined
refere nce to MPEToCV::releaseNote(int)'
C:\msys64\home\Utente\rack\plugins\erratic/src/MPEToCV.cpp:123: undefined
refere nce toMPEToCV::pressNote(int)'
C:\msys64\home\Utente\rack\plugins\erratic/src/MPEToCV.cpp:169: undefined
refere nce to `MPEToCV::releaseNote(int)'
collect2.exe: error: ld returned 1 exit status
make: *** [../../compile.mk:52: plugin.dll] Error 1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAvetj4k_BSFOtPPhQ6cdV-uwX88G0QYks5tlZY4gaJpZM4TC69p>
.
|
@bafonso Hi, I pushed in this forked repo the version that worked for my Windows environment: In short, this is what I committed in the forked repo:
I don't know if you had some more issues in your Mac/Linux build, before committing the commented code, or if it's just the case that I forked a in-progress commit. |
Hey @dizzisound , I incorporated most of the edits. I think the slug match... and version is 0.6.1 now with some changes I made. Surprisingly I never got erros with those loops(!)... I made a new 0.6.1 release replacing the old one. |
Hi, ok I now compiled for windows using this link as source: $ make dist Strip and copy plugin binarycp plugin.dll dist/ErraticInstruments/ Copy distributablescp -R LICENSE.txt res dist/ErraticInstruments/ Create ZIP packagecd dist && zip -5 -r ErraticInstruments-0.6.1-win.zip ErraticInstruments |
ok after putting the plugins in the folder: Quad MPE to CV loads, while MPE to CV crashes the rack... |
Yes, the loop thing is funny, I could compile but the plugin crashed on load, some backtrace pointed the iteration, so I simply tried out a fix, staying with the hardcoding for simplicity and performance. I am really glad you finalized your work, it's a really nice plugin and looks like an extension to the Core stuff to me. Best! |
@DCSIProductions It looks like the last archive is missing the last-last fix to the iteration code through vSeparators in MPEToCV.cpp |
Mmmh, sorry, the file to mention was MPEToCV.hpp. I am losing my header after 6 p.m. :-D |
Ok, I think I realized what was the mistake. I've made the changes and made a new 0.6.1 tag with these changes, can you please tell me if it still causes mistake? line 332 is now:
and 308 is now:
|
ok have git cloned from master and still an error, here's the whole stuff. Utente@Probook-Pc MINGW64 ~/rack/plugins Utente@Probook-Pc MINGW64 ~/rack/plugins Utente@Probook-Pc MINGW64 ~/rack/plugins/erratic Utente@Probook-Pc MINGW64 ~/rack/plugins/erratic |
sorry don't know why is making a line over certain lines here.. |
ok wait, if I git clone from the same pages of the 0.6 version it gives all the posted errors compiling, while if I download the zip itself and work on that, it builds fine, so now I succeeded building from this https://github.com/bafonso/Erratic/archive/v0.6.zip |
(see last post) |
@DCSIProduction Mmmh I'm not at my PC but it seems you forgot the |
usually I follow
each time following these 4 steps I compile vcvrack plugins just fine... |
I mean I never used git checkout, so who trained me forgot to tell me to do that :-) from now on I'll do. Thanks |
Ok, I will need to double check if the sources are not the same used to
compile. Yes u should do git clone --branch=v0.6 to get the right source
code.
…On Thu, Apr 5, 2018 at 16:00 DCSIProductions ***@***.***> wrote:
usually I follow
1. git clone (the stuff)
2. cd (into the new directory)
1. git submodule update --init --recursive
1. make dist
each time following these 4 steps I compile vcvrack plugins just fine...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAvetmOASgmMdtjDh-OiKfd55jDCgLAeks5tlnfpgaJpZM4TC69p>
.
|
So the modules are working fine for you on windows, no crashes? If so I
will add this binary.
…On Thu, Apr 5, 2018 at 16:07 Bruno Afonso ***@***.***> wrote:
Ok, I will need to double check if the sources are not the same used to
compile. Yes u should do git clone --branch=v0.6 to get the right source
code.
On Thu, Apr 5, 2018 at 16:00 DCSIProductions ***@***.***>
wrote:
> usually I follow
>
> 1. git clone (the stuff)
> 2. cd (into the new directory)
>
>
> 1. git submodule update --init --recursive
>
>
> 1. make dist
>
> each time following these 4 steps I compile vcvrack plugins just fine...
>
> —
> You are receiving this because you were mentioned.
>
>
> Reply to this email directly, view it on GitHub
> <#3 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AAvetmOASgmMdtjDh-OiKfd55jDCgLAeks5tlnfpgaJpZM4TC69p>
> .
>
|
wait I'm doing it again using also checkout, I'm back in few minutes :) |
ok all fine, here's the file you can take (I erased the one above)
|
Yes that's the regular and correct procedure, if the master branch is set as default and updated with the last commits/fixes. Inversely, if the new code, or the fixing code, is developed on a separate branch, it happens that this separate branch is "ahead" with regards to the code committed on the "official", master branch, until the updates are ported from the dev branch to the master branch. |
Sorry for the slow reply. I was able to successfully load OS X binaries at https://github.com/bafonso/Erratic/releases/download/0.6.1/ErraticInstruments-0.6.1-mac.zip in Rack 0.6. I was also able to build from source as of v0.6.1, so as far as I am concerned, all is happy. Thanks!!! |
(I tried building it myself for 0.6.0 but ran into a lot of "src/MidiIO.hpp:175:2: error: reference to 'MidiIO' is ambiguous" errors.)
Is this something you have bandwidth for in the near future, or should I downgrade VCV Rack and all other plugins for now? (Linnstrument is my primary use case, so no pressure :-) )
The text was updated successfully, but these errors were encountered: