Closed SteveRussell33 closed 4 years ago
Happens to me too. Any suggestions to build fswatch with mingw64?
This is what I'm using. I have none I'm afraid - I get similar when doing a build using LuaJIT
g++ -o plugin.dll build/src/Prototype.cpp.o build/src/LuaJitEngine.cpp.o dep/lib/libluajit-5.1.a -shared -L../.. -lRack g++.exe: error: dep/lib/libluajit-5.1.a: No such file or directory make: *** [../../compile.mk:52: plugin.dll] Error 1
Quick look at the build instructions: https://github.com/emcrisostomo/fswatch/blob/master/README.windows mentions the need for the Windows SDK. I don't have Visual Studio installed atm so I'm unsure whch SDK is required. The text mentions a Cygwin enviroment - MSYS2 has the toolchain required.
Fixed thanks to https://github.com/emcrisostomo/fswatch/issues/214 in 5473e6d. It'd be nice for that patch to be updated for 1.14.0 and merged upstream.
Note that the build is currently broken due to QuickJS's Makefile, but the fswatch build should work.
Just switched to efsw because it is giving me far fewer issues than fswatch.
cd fswatch && make
make[1]: Entering directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch'
make all-recursive
make[2]: Entering directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch'
Making all in libfswatch
make[3]: Entering directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch/libfswatch'
Making all in src/libfswatch
make[4]: Entering directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch/libfswatch/src/libfswatch'
CXX c/cevent.lo
CXX c/libfswatch.lo
CXX c/libfswatch_log.lo
CXX c++/libfswatch_exception.lo
CXX c++/event.lo
CXX c++/filter.lo
CXX c++/monitor.lo
CXX c++/monitor_factory.lo
CXX c++/poll_monitor.lo
c++/poll_monitor.cpp: In member function 'void fsw::poll_monitor::scan(const string&, fsw::poll_monitor::poll_monitor_scan_callback)':
c++/poll_monitor.cpp:130:28: error: 'S_ISLNK' was not declared in this scope; did you mean 'S_ISBLK'?
130 | if (follow_symlinks && S_ISLNK(fd_stat.st_mode))
| ^~~~~~~
| S_ISBLK
make[4]: *** [Makefile:712: c++/poll_monitor.lo] Error 1
make[4]: Leaving directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch/libfswatch/src/libfswatch'
make[3]: *** [Makefile:419: all-recursive] Error 1
make[3]: Leaving directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch/libfswatch'
make[2]: *** [Makefile:601: all-recursive] Error 1
make[2]: Leaving directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch'
make[1]: *** [Makefile:461: all] Error 2
make[1]: Leaving directory '/c/_Projects/VCVRack/V1/Rack/plugins/VCV-Prototype_JS/fswatch'
make: *** [Makefile:29: dep/lib/libfswatch.a] Error 2
Would you guys (@SteveRussell33 @AndrewBelt ) try to build the latest master
? I haven't got a Windows at hand, and I have merged ongoing work on a feature branch that adds a realpath
implementation for Windows.
Thanks!
checking for realpath... no configure: error: The realpath function cannot be found. make: *** [Makefile:23: dep/lib/libfswatch.a] Error 1