Closed wizardishungry closed 6 years ago
(For anyone who needs to test stuff with 0.6 series Fundamental, 5d676bb compiles fine)
Could I get more context than just one line please?
updated.
Are you able to compile libsamplerate 0.1.9 manually from scrach? If so, what did you have to do differently?
Similar issue on Windows. It fails compiling examples for libsamplerate
, that are platform-specific.
Fails with manual compilation and when building with the Fundamental Makefile
.
audio_out.c:826:2: error: 'sample_count' undeclared (first use in this function); did you mean 'frame_count'?
sample_count = win32_out->bufferlen ;
^~~~~~~~~~~~
frame_count
audio_out.c:826:2: note: each undeclared identifier is reported only once for each function it appears in
I checked, the Windows issue has been fixed in the latest HEAD of the libsamplerate
repository. Unfortunately, the .zip file from the website is older than that and does not have the fix for Windows, which is essentially just declaring a "sample_count" variable.
Just spent about an hour struggling with this on macOS 10.12.6. Got it working by commenting out #include <Carbon.h>
and compiling libsamplerate 0.1.9 manually.
With the latest rack and Fundamental sources everything works as expected, at least on the mac side.
I was able to build libsamplerate by changing it to <Carbon/Carbon.h>. Not sure if it's just an issue with how the frameworks are installed on my mac.
@cschol any hints about installing libsamplerate on win? just tried doing it manually and failed.
In general, you should be able to do the same thing as Fundamental does. Did you check the latest Fundamental source?
@cschol Long story short: Yes, up to date with Fundamental, is just that I thought it could be a good idea to keep adding compiled releases on github repository (Mac compiles just fine, Linux gave some hiccups but seems to work in the end, Win stuck on errors hehe). If anything I may just do the github releases with source code only, to keep a history of changes.
I don't quite understand how Fundamental can build on Windows and other plugins have issues. Unless Andrew's build system for Windows is different.
I ran into the same issue just now. Looks like this issue is similar -> https://github.com/VCVRack/Rack/issues/143 I changed the makefile to just make src and then things seemed to compile fine:
cd dep/libsamplerate-0.1.9/src && $(MAKE)
cd dep/libsamplerate-0.1.9/src && $(MAKE) install
@jeremywen the src idea is what I was looking for! Best solution, thanks.
Where did you change this @jeremywen ? I just ran into the same issue. I commented the Carbon.h compiled but then when making fundamental it complains that it's linked against a different version so I'm guessing I messed up a step
Change these lines https://github.com/VCVRack/Fundamental/blob/master/Makefile#L22-L23
Fixed in 45f6f7e