rcomian / jsfx-vcv Goto Github PK
View Code? Open in Web Editor NEWRun JSFX scripts as modules inside VCV Rack
License: GNU General Public License v3.0
Run JSFX scripts as modules inside VCV Rack
License: GNU General Public License v3.0
Fedora 23 Linux
Rack 0.6.2b (from source)
GCC 5.3.1
Greetings ! I love the idea for this module, but alas, my build attempt fails here:
make dep
...
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp: In member function ‘void JsusFxPathLibrary_Basic::addSearchPath(const string&)’:
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:351:12: error: ‘const string {aka const class std::__cxx11::basic_string}’ has no member named ‘back’
if ( path.back() == '/' || path.back() == '\' )
^
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:351:34: error: ‘const string {aka const class std::__cxx11::basic_string}’ has no member named ‘back’
if ( path.back() == '/' || path.back() == '\' )
^
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp: In static member function ‘static bool JsusFxPathLibrary_Basic::fileExists(const string&)’:
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:358:27: error: no matching function for call to ‘std::basic_ifstream::basic_ifstream(const string&)’
std::ifstream is(filename);
^
In file included from /home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:47:0:
/usr/include/c++/5.3.1/fstream:495:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/5.3.1/fstream:495:7: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const char*’
In file included from /home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:47:0:
/usr/include/c++/5.3.1/fstream:481:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/5.3.1/fstream:481:7: note: candidate expects 0 arguments, 1 provided
In file included from /home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:47:0:
/usr/include/c++/5.3.1/fstream:455:11: note: candidate: std::basic_ifstream::basic_ifstream(const std::basic_ifstream&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/5.3.1/fstream:455:11: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const std::basic_ifstream&’
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp: In member function ‘virtual bool JsusFxPathLibrary_Basic::resolveImportPath(const string&, const string&, std::__cxx11::string&)’:
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:372:35: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for ( std::string & searchPath : searchPaths ) {
^
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp: In member function ‘virtual std::istream* JsusFxPathLibrary_Basic::open(const string&)’:
/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:391:48: error: no matching function for call to ‘std::basic_ifstream::basic_ifstream(const string&)’
std::ifstream stream = new std::ifstream(path);
^
In file included from /home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:47:0:
/usr/include/c++/5.3.1/fstream:495:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/5.3.1/fstream:495:7: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const char*’
In file included from /home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:47:0:
/usr/include/c++/5.3.1/fstream:481:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/5.3.1/fstream:481:7: note: candidate expects 0 arguments, 1 provided
In file included from /home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b/src/jsusfx.cpp:47:0:
/usr/include/c++/5.3.1/fstream:455:11: note: candidate: std::basic_ifstream::basic_ifstream(const std::basic_ifstream&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/5.3.1/fstream:455:11: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const std::basic_ifstream&’
CMakeFiles/jsusfx.dir/build.make:66: recipe for target 'CMakeFiles/jsusfx.dir/jsusfx.cpp.o' failed
make[3]: *** [CMakeFiles/jsusfx.dir/jsusfx.cpp.o] Error 1
make[3]: Leaving directory '/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jsusfx.dir/all' failed
make[2]: *** [CMakeFiles/jsusfx.dir/all] Error 2
make[2]: Leaving directory '/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b'
Makefile:83: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/dlphilp/src/Rack-062/plugins/jsfx-vcv/dep/jsusfx-0.4.0b1b'
Makefile:30: recipe for target 'lib/jsusfx.a' failed
make: *** [lib/jsusfx.a] Error 2
It seems that it wants -std=cxx11 somewhere but I'm not sure where that will go in a cmake system. Any suggestions are vastly appreciated. :)
g++ -Wsuggest-override -std=c++11 -DSLUG=jsfx -fPIC -I../../include -I../../dep/include -DVERSION=0.6.0 -MMD -MP -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/JSFXModule.cpp.o src/JSFXModule.cpp
src/JSFXModule.cpp: In member function 'virtual void JSFXModule::onSampleRateChange()':
src/JSFXModule.cpp:30:3: error: 'uint' was not declared in this scope
uint sliderid = 0;
^~~~
src/JSFXModule.cpp:30:3: note: suggested alternative: 'u_int'
uint sliderid = 0;
^~~~
u_int
src/JSFXModule.cpp:37:29: error: 'sliderid' was not declared in this scope
_jsusfx->moveSlider(sliderid, slider.max);
^~~~~~~~
src/JSFXModule.cpp:37:29: note: suggested alternative: 'slider'
_jsusfx->moveSlider(sliderid, slider.max);
^~~~~~~~
slider
src/JSFXModule.cpp:39:29: error: 'sliderid' was not declared in this scope
_jsusfx->moveSlider(sliderid, slider.min);
^~~~~~~~
src/JSFXModule.cpp:39:29: note: suggested alternative: 'slider'
_jsusfx->moveSlider(sliderid, slider.min);
^~~~~~~~
slider
src/JSFXModule.cpp:41:27: error: 'sliderid' was not declared in this scope
_jsusfx->moveSlider(sliderid, current);
^~~~~~~~
src/JSFXModule.cpp:41:27: note: suggested alternative: 'slider'
_jsusfx->moveSlider(sliderid, current);
^~~~~~~~
slider
src/JSFXModule.cpp:43:5: error: 'sliderid' was not declared in this scope
sliderid += 1;
^~~~~~~~
src/JSFXModule.cpp:43:5: note: suggested alternative: 'slider'
sliderid += 1;
^~~~~~~~
slider
src/JSFXModule.cpp: In member function 'virtual void JSFXModule::step()':
src/JSFXModule.cpp:78:5: error: 'uint' was not declared in this scope
uint sliderid = 0;
^~~~
src/JSFXModule.cpp:78:5: note: suggested alternative: 'u_int'
uint sliderid = 0;
^~~~
u_int
src/JSFXModule.cpp:79:9: error: expected ';' before 'paramid'
uint paramid = 0;
^~~~~~~~
;
src/JSFXModule.cpp:82:34: error: 'paramid' was not declared in this scope
auto paramvalue = params[paramid].value * slider.inc;
^~~~~~~
src/JSFXModule.cpp:82:34: note: suggested alternative: 'params'
auto paramvalue = params[paramid].value * slider.inc;
^~~~~~~
params
src/JSFXModule.cpp:94:29: error: 'sliderid' was not declared in this scope
_jsusfx->moveSlider(sliderid, paramvalue);
^~~~~~~~
src/JSFXModule.cpp:94:29: note: suggested alternative: 'slider'
_jsusfx->moveSlider(sliderid, paramvalue);
^~~~~~~~
slider
src/JSFXModule.cpp:97:7: error: 'sliderid' was not declared in this scope
sliderid += 1;
^~~~~~~~
src/JSFXModule.cpp:97:7: note: suggested alternative: 'slider'
sliderid += 1;
^~~~~~~~
slider
make: *** [../../compile.mk:65: build/src/JSFXModule.cpp.o] Error 1
Building with Rack SDK 0.6.2 Win 10
jsusfx-0.4.0b1b is added in dep/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.