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
trying to build on windows #12
Comments
|
After trying to build them by following the purr-data method. I still have errors. I paste here what I have If someone achieve to do this, I would really like to know how to do it or at least having windows 64 bit builds of these wonderfull objects :) Thank you very much everyone |
|
I managed to compile in also, to force So, produces Output from Example of warnings from build: As toolchain is pretty the same as for linux x64 so this might refer to #10 but I don't know if anyone on linux has the same problem |
|
that's a first step (and a nice one :) ) guillaume |
|
Obviously this seg fault has something to do with the main dsp routine, how to interpret this warning I don't know, and I am not sure if this is the culprit. Also, these externals AFAIK were tested with 32 bit builds of Pd, so this might be the issue. That's true? @TheTechnobear |
|
Ive updated the Cmakefie.txt, which hopefully means it will now compile on Windows , as it defines TEST (which was missing for a number of platforms) re: set(PD_CMAKE_PATH "C:/Program Files/Pd") why do you think you need?) I suspect, what happened is you generated the makefiles, incorrectly for a platform, then tried again. (issue #10 had nothing to with this issue, that was simply missing TEST macro) I dont think this is an issue with 64 bit or not... since macOS has been 64 bit for quite a while, interestingly, I don't get the warning that you do... which I do agree is likely the cause of the issue |
|
ok, had a quick look.... so I think the issue is m_pd.h and probably sizes of types on AMD64? if we look at the code so this is correct, in the sense that in points to t_samples (sample buffer) the above is idiomatic of externals Ive seen before... I think what we can do is: a) m_pd.h b) check a current build of external. if its crashing, Im guess that the size of t_int has changed, or rather its not he size of pointers. that is my guess... I dont usually build on windows, so there could be something else going on. |
|
k, another look... ok, in this area m_pd.h hasn't changed
is the the same in 47 (older) and 51 (new) the only assumption here is that an int, which is t_int is large enough to hold a point, which it should be as its a long! I was wrong in last comment about array referencing being problematic, this is not true.... I guess the code above, should probably be written as but as you can see, all we are doing is casting away the warning... note: this is all because PD what to essentially give you the ability to use the w array for what ever you want. anyway, upshot is... unless a long it not big enough to hold a pointer on your platform (which is a big surprise), then I think this might be a red-herring... and woud suspect it a build issue still. |
|
BTW: I should point out, I dont really support this on desktop platforms. really this was created for things like the rPI/Organelle... but I just shared it. the issue is the MI code assumes a 48k sample rate - which is invariably wrong on a desktop. however, I did not want to include this, since it was not required for my purpose, and would potentially have a performance impact on the platforms i am targeting. you could of course do this, by ensuring the up/down sample rate converter has zero impact IF the sample rates was 48k, but it just was not something I was using, and so particularly motivated to implement.. also I know building on things like Windows can be a pain at times ;). |
Yes, I am not an expert in externals but from I know, this is idiomatic.
Of course hardcoding paths is never good, this was just for sole purpose of ilustrating the thing. But also worth noting that win10 builds require some additional linking like here
cmake on mingw defaults to generate Visual Studio project files, most likely you can simply set it with Any way, as you mentioned/warned and I am fully aware of it, this external is not intended for desktop, and to be usable there it requres some more investigation. TBH I am good with vcvrack versions on desktop, but if someone really want it in Pd, your code is an exelent starting point. |

Hello everyone, I'm trying to build these externals on windows, with no success. When I try to generate the solution with visual studio 2017 I get a lot of errors.. I think I'm missing something, someone achieve to build this on windows?
Thank you for your help
Guillaume
The text was updated successfully, but these errors were encountered: