digego / extempore

A cyber-physical programming environment
1.41k stars 127 forks source link

Compile error on Windows: cannot include 'unistd.h' #362

Closed bradrn closed 5 years ago

bradrn commented 5 years ago

When I try compiling on Windows, I get the following error:

>cmake --build . --target ALL_BUILD --config Release
⟨…lots and lots of output…⟩

"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\aot_external.vcxproj" (default target) (5) ->
"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\external_shlibs_graphics.vcxproj" (default target) (14) ->
"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj" (default target) (15) ->
(CustomBuild target) ->
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

Based on the error message, this seems to occur when attempting to compile Assimp.

OS information: using Windows 10. Compilation was attempted using both the Visual Studio Developer Command Prompt and MinGW/MSYS2, resulting in the same output each time.

digego commented 5 years ago

Sorry, you're having trouble. Everything is building fine for me on win10. You should definitely not use MinGW. What happens if you build the solution using Visual Studio?

clone extempore (i.e. clean start) mkdir cmake-build cd cmake-build cmake ../ -A x64 double click on cmake-build/Extempore.sln in explorer change Debug to Release Build menu -> Build Solution

On Sun, Jul 21, 2019 at 6:25 PM bradrn notifications@github.com wrote:

When I try compiling on Windows, I get the following error:

cmake --build . --target ALL_BUILD --config Release

⟨…lots and lots of output…⟩

"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\ALL_BUILD.vcxproj" (default target) (1) ->

"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\aot_external.vcxproj" (default target) (5) ->

"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\external_shlibs_graphics.vcxproj" (default target) (14) ->

"C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj" (default target) (15) ->

(CustomBuild target) ->

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Extempore\extempore-source\cmake-build\assimp.vcxproj]

Based on the error message, this seems to occur when attempting to compile Assimp.

OS information: using Windows 10. Compilation was attempted using both the Visual Studio Developer Command Prompt and MinGW/MSYS2, resulting in the same output each time.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKLWPBT5FLXCLYIKAUDQAQMQ3A5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAPFRJA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKMRFV5N2APVLYV6XN3QAQMQ3ANCNFSM4IFRND3A .

bradrn commented 5 years ago

Thanks for responding @digego!

You should definitely not use MinGW. What happens if you build the solution using Visual Studio?

I did originally build it using the Visual Studio Developer Prompt. It was only when that didn’t work that I tried using MinGW in the hope that it would provide unistd.h. I didn’t use the Visual Studio IDE though; I’ll try that now with your instructions.

bradrn commented 5 years ago

The compilation has halted here:

25>-- AOT-compiling libs/external/stb_image.xtm
25>
25>------------- Extempore --------------
25>Andrew Sorensen (c) 2010-2019
25>andrew@moso.com.au, @digego
25>
25>ARCH           : x86_64-pc-windows-msvc-elf
25>LLVM           : 3.8.0 MCJIT
25>Output Device  : Primary Sound Driver
25>Input Device   :
25>SampleRate     : 44100
25>Channels Out   : 2
25>Channels In    : 0
25>Frames         : 1024
25>Latency        : 0.12 sec
25>
25>Primary on Thread 0
25>---------------------------------------
25>
25>Starting utility process
25>Trying to connect to 'localhost' on port 17098
25>New Client Connection
25>Successfully connected to remote process
25>
25>Starting primary process
25>Trying to connect to 'localhost' on port 17099
25>New Client Connection
25>Successfully connected to remote process
25>A subdirectory or file C:\Users\bradn\Documents\Music\Extempore\extempore\libs\aot-cache already exists.
25>
25>Evaluating expression: (impc:aot:compile-xtm-file "libs/external/stb_image.xtm")
25>
25>Started compiling: "libs/external/stb_image.xtm"
25>
25>Loading xtmbase library... done in 1.228812 seconds
25>sys:load notification base already loaded
25>CUSTOMBUILD : error : could not find libstb_image dynamic library

The compilation process is still running, but it’s been frozen at this point for about 5 minutes now. For now I’m letting it run, but I’m not sure what’s happening.

EDIT: It seems to have moved on now to libs/external/glfw3.xtm. So it looks like there wasn’t really any error. (At least, if there was, it wasn’t important enough to stop compilation.)

bradrn commented 5 years ago

I’m fairly sure that something funny is going on with the compilation, since it’s 2 hours later but the compilation is only about 50% completed. The same thing keeps happening as the above: it AOT-compiles another file, stops at the line 25>CUSTOMBUILD : error : could not find <library_name> dynamic library, then waits for about 10 minutes before going on to the next file. I have no idea what’s happening, but I don’t think it’s normal.

bradrn commented 5 years ago

Well, it appears I spoke too soon. The compilation is now done and extempore seems to be working. Thanks @digego for your help! I’ve been stuck using the old 2016 build, and the new version already seems like an improvement!

However, I won’t close this issue just yet, as there are still problems to be resolved:

  1. Why did the documented instructions in the README fail?
  2. Why does the Visual Studio IDE compilation take such a long time, and report those weird library errors, but still results in a working executable?
digego commented 5 years ago

What did the 'final' line of the build say?

How many 'succeeded' and how many 'failed' ?

On Tue, Jul 23, 2019 at 1:54 PM bradrn notifications@github.com wrote:

Well, it appears I spoke too soon. The compilation is now done and extempore seems to be working. Thanks @digego https://github.com/digego for your help! I’ve been stuck using the old 2016 build, and the new version already seems like an improvement!

However, I won’t close this issue just yet, as there are still problems to be resolved:

  1. Why did the documented instructions in the README https://github.com/digego/extempore/tree/8b8d281717fe2ceec6cd6d81686ae5fbc794b8d7#build-from-source fail?
  2. Why does the Visual Studio IDE compilation take such a long time, and report those weird library errors, but still results in a working executable?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKJ46GKW4I5VOVW4TG3QAZ6GPA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2R264A#issuecomment-514043760, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKK57CX3RZC7VZ2OMU3QAZ6GPANCNFSM4IFRND3A .

digego commented 5 years ago

Sounds to me like you might still have some sub solutions (like stb_image) failing for some reason.

On Tue, Jul 23, 2019 at 1:59 PM Andrew Sorensen digegoo@gmail.com wrote:

What did the 'final' line of the build say?

How many 'succeeded' and how many 'failed' ?

On Tue, Jul 23, 2019 at 1:54 PM bradrn notifications@github.com wrote:

Well, it appears I spoke too soon. The compilation is now done and extempore seems to be working. Thanks @digego https://github.com/digego for your help! I’ve been stuck using the old 2016 build, and the new version already seems like an improvement!

However, I won’t close this issue just yet, as there are still problems to be resolved:

  1. Why did the documented instructions in the README https://github.com/digego/extempore/tree/8b8d281717fe2ceec6cd6d81686ae5fbc794b8d7#build-from-source fail?
  2. Why does the Visual Studio IDE compilation take such a long time, and report those weird library errors, but still results in a working executable?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKJ46GKW4I5VOVW4TG3QAZ6GPA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2R264A#issuecomment-514043760, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKK57CX3RZC7VZ2OMU3QAZ6GPANCNFSM4IFRND3A .

digego commented 5 years ago

you should see this:

========== Build: 18 succeeded, 0 failed, 0 up-to-date, 10 skipped

On Tue, Jul 23, 2019 at 2:01 PM Andrew Sorensen digegoo@gmail.com wrote:

Sounds to me like you might still have some sub solutions (like stb_image) failing for some reason.

On Tue, Jul 23, 2019 at 1:59 PM Andrew Sorensen digegoo@gmail.com wrote:

What did the 'final' line of the build say?

How many 'succeeded' and how many 'failed' ?

On Tue, Jul 23, 2019 at 1:54 PM bradrn notifications@github.com wrote:

Well, it appears I spoke too soon. The compilation is now done and extempore seems to be working. Thanks @digego https://github.com/digego for your help! I’ve been stuck using the old 2016 build, and the new version already seems like an improvement!

However, I won’t close this issue just yet, as there are still problems to be resolved:

  1. Why did the documented instructions in the README https://github.com/digego/extempore/tree/8b8d281717fe2ceec6cd6d81686ae5fbc794b8d7#build-from-source fail?
  2. Why does the Visual Studio IDE compilation take such a long time, and report those weird library errors, but still results in a working executable?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKJ46GKW4I5VOVW4TG3QAZ6GPA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2R264A#issuecomment-514043760, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKK57CX3RZC7VZ2OMU3QAZ6GPANCNFSM4IFRND3A .

bradrn commented 5 years ago

(Sorry for only replying now, I didn’t see your messages)

What did the 'final' line of the build say?

How many 'succeeded' and how many 'failed' ?

It says:

========== Build: 15 succeeded, 3 failed, 0 up-to-date, 10 skipped ==========

So it looks like some projects did fail. It looks like the failed ones were assimp.vcxproj, ALL_BUILD.vcxproj, aot_external.vcxproj (in the order in which the FAILED messages appear). Weirdly, it still created an extempore.exe executable, which seems to be working fine.

digego commented 5 years ago

The extempore.exe doesn't use those projects, but some of extempore's xtlang libs do. You'll only run into problems when you try to use those libraries at runtime. For example, if assimp isn't building you will not be able to load 3dmodels.

I suspect that cmake is building the solution incorrectly - although I'm not sure why - perhaps it's getting confused with other versions of those libraries installed locally on your system or some such. All I can say is that it should work ok. It's building fine for me (and others), so I suspect there is something odd with your particular installation.

Tomorrow, I will build you a custom package to install. You won't be able to fish (build your own from source) but you will at least have a working install.

bradrn commented 5 years ago

The extempore.exe doesn't use those projects, but some of extempore's xtlang libs do. You'll only run into problems when you try to use those libraries at runtime. For example, if assimp isn't building you will not be able to load 3dmodels.

That’s the conclusion I came to as well, but I wasn’t sure if it was correct.

I suspect that cmake is building the solution incorrectly … perhaps it's getting confused with other versions of those libraries installed locally on your system or some such.

It’s possible. I don’t think that particular issue is the problem though — as far as I’m aware, I don’t even have these libraries installed!

Tomorrow, I will build you a custom package to install.

Thanks @digego! But I don’t think it’s necessary — I’m only really interested in the audio capabilities of Extempore, and my own build is working fine for those. I’m not particularly interested in e.g. graphics, so the bits which didn’t build don’t really affect me.

(What I would like is a new release — the last one is from 2016 — but presumably there’s a reason why another release hasn’t been created yet.)

digego commented 5 years ago

hopefully new release coming soonish

just as a final thought, what happens if you run the solution again - don't clear anything or try to reset anything - just run the final step again "Build menu -> Build Solution"

On Tue, Jul 23, 2019 at 4:18 PM bradrn notifications@github.com wrote:

The extempore.exe doesn't use those projects, but some of extempore's xtlang libs do. You'll only run into problems when you try to use those libraries at runtime. For example, if assimp isn't building you will not be able to load 3dmodels.

That’s the conclusion I came to as well, but I wasn’t sure if it was correct.

I suspect that cmake is building the solution incorrectly … perhaps it's getting confused with other versions of those libraries installed locally on your system or some such.

It’s possible. I don’t think that particular issue is the problem though — as far as I’m aware, I don’t even have these libraries installed!

Tomorrow, I will build you a custom package to install.

Thanks @digego https://github.com/digego! But I don’t think it’s necessary — I’m only really interested in the audio capabilities of Extempore, and my own build is working fine for those. I’m not particularly interested in e.g. graphics, so the bits which didn’t build don’t really affect me.

(What I would like is a new release — the last one is from 2016 — but presumably there’s a reason why another release hasn’t been created yet.)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKMMWAXEJZX2JD4QIZTQA2PCXA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SBLJA#issuecomment-514069924, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKLKF55HSPSO5CREMMTQA2PCXANCNFSM4IFRND3A .

digego commented 5 years ago

incidentally you might like to look at the new example/sharedsystem/... - completely undocumented at the moment but stuff on the way

On Tue, Jul 23, 2019 at 5:09 PM Andrew Sorensen digegoo@gmail.com wrote:

hopefully new release coming soonish

just as a final thought, what happens if you run the solution again - don't clear anything or try to reset anything - just run the final step again "Build menu -> Build Solution"

On Tue, Jul 23, 2019 at 4:18 PM bradrn notifications@github.com wrote:

The extempore.exe doesn't use those projects, but some of extempore's xtlang libs do. You'll only run into problems when you try to use those libraries at runtime. For example, if assimp isn't building you will not be able to load 3dmodels.

That’s the conclusion I came to as well, but I wasn’t sure if it was correct.

I suspect that cmake is building the solution incorrectly … perhaps it's getting confused with other versions of those libraries installed locally on your system or some such.

It’s possible. I don’t think that particular issue is the problem though — as far as I’m aware, I don’t even have these libraries installed!

Tomorrow, I will build you a custom package to install.

Thanks @digego https://github.com/digego! But I don’t think it’s necessary — I’m only really interested in the audio capabilities of Extempore, and my own build is working fine for those. I’m not particularly interested in e.g. graphics, so the bits which didn’t build don’t really affect me.

(What I would like is a new release — the last one is from 2016 — but presumably there’s a reason why another release hasn’t been created yet.)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKMMWAXEJZX2JD4QIZTQA2PCXA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SBLJA#issuecomment-514069924, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKLKF55HSPSO5CREMMTQA2PCXANCNFSM4IFRND3A .

bradrn commented 5 years ago

hopefully new release coming soonish

Thanks!

just as a final thought, what happens if you run the solution again

It’s still running, but it looks like exactly the same thing is happening — at the moment it’s stuck on libs/external/glfw3.xtm.

incidentally you might like to look at the new example/sharedsystem/...

Looks very interesting! As you said, it’s undocumented, but I presume this is similar to TidalCycles?

digego commented 5 years ago

hmmm. can you try one more thing for me - from a completely clean install again (sorry :) this time from the command line. you'll need to make sure you have cmake version 3.12+ installed the important bit is --parallel 1

clone extempore (i.e. clean start) mkdir cmake-build cd cmake-build cmake ../ -A x64 cmake --build . --config Release --parallel 1

On Tue, Jul 23, 2019 at 5:44 PM bradrn notifications@github.com wrote:

hopefully new release coming soonish

Thanks!

just as a final thought, what happens if you run the solution again

It’s still running, but it looks like exactly the same thing is happening — at the moment it’s stuck on libs/external/glfw3.xtm.

incidentally you might like to look at the new example/sharedsystem/...

Looks very interesting! As you said, it’s undocumented, but I presume this is similar to TidalCycles https://tidalcycles.org/?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKNJTEPH3OYAGECCBPLQA2ZEPA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SHEMQ#issuecomment-514093618, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKMTVJLBEN2PMNTJIKLQA2ZEPANCNFSM4IFRND3A .

digego commented 5 years ago

the pattern stuff is, well patterns - so in that sense yes I guess it's similar to tidal cycles :) but probably the more interesting thing is an agreed default multi-core audio+midi setup for everyone including the new "analogue" synth with midi-cc, presets etc.. there is a lot that's new in there.

On Tue, Jul 23, 2019 at 5:44 PM bradrn notifications@github.com wrote:

hopefully new release coming soonish

Thanks!

just as a final thought, what happens if you run the solution again

It’s still running, but it looks like exactly the same thing is happening — at the moment it’s stuck on libs/external/glfw3.xtm.

incidentally you might like to look at the new example/sharedsystem/...

Looks very interesting! As you said, it’s undocumented, but I presume this is similar to TidalCycles https://tidalcycles.org/?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKNJTEPH3OYAGECCBPLQA2ZEPA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SHEMQ#issuecomment-514093618, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKMTVJLBEN2PMNTJIKLQA2ZEPANCNFSM4IFRND3A .

bradrn commented 5 years ago

you'll need to make sure you have cmake version 3.12+ installed

Is this alright?

>cmake --version
cmake version 3.12.18081601-MSVC_2

cmake --build . --config Release --parallel 1

I’m running it now. At the moment it’s still compiling LLVM, but hopefully it will speed up a bit on the actual compilation of Extempore.

the pattern stuff is, well patterns - so in that sense yes I guess it's similar to tidal cycles :)

That will be good — in my mind patterns are really the only thing Extempore lacks. Temporal recursion is an amazingly powerful tool, but sometimes I just want to repeat an ostinato. 😄

but probably the more interesting thing is an agreed default multi-core audio+midi setup for everyone including the new "analogue" synth with midi-cc, presets etc..

I don’t know what ‘multi-core audio+midi’ refers to — I’ve never used MIDI, so I’m lacking that context. But I agree that the analogue synth is amazing — it was one of the first things I discovered when I tried out the new version of Extempore earlier, and it was incredible to try out some of the different sounds. (Especially since at the moment I’m teaching myself about how synthesizers work!) I don’t understand what ‘presets’ are though — I saw some recent commits about ‘wavetables’ though, is that related?

digego commented 5 years ago

presets just makes it super easy to save and load configurations of the analogue synth. wavetables are cool though, you'll love them :) Seeing as you're on windows - just checking that have set your machines power plan to High/Ultimate Performance?

On Tue, Jul 23, 2019 at 6:45 PM bradrn notifications@github.com wrote:

you'll need to make sure you have cmake version 3.12+ installed

Is this alright?

cmake --version

cmake version 3.12.18081601-MSVC_2

cmake --build . --config Release --parallel 1

I’m running it now. At the moment it’s still compiling LLVM, but hopefully it will speed up a bit on the actual compilation of Extempore.

the pattern stuff is, well patterns - so in that sense yes I guess it's similar to tidal cycles :)

That will be good — in my mind patterns are really the only thing Extempore lacks. Temporal recursion is an amazingly powerful tool, but sometimes I just want to repeat an ostinato. 😄

but probably the more interesting thing is an agreed default multi-core audio+midi setup for everyone including the new "analogue" synth with midi-cc, presets etc..

I don’t know what ‘multi-core audio+midi’ refers to — I’ve never used MIDI, so I’m lacking that context. But I agree that the analogue synth is amazing — it was one of the first things I discovered when I tried out the new version of Extempore earlier, and it was incredible to try out some of the different sounds. (Especially since at the moment I’m teaching myself about how synthesizers work!) I don’t understand what ‘presets’ are though — I saw some recent commits about ‘wavetables’ though, is that related?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKNDA7LGMA6SCETEZYLQA3ALDA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SMLWQ#issuecomment-514115034, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKL4D63V4TV6IL3LZSTQA3ALDANCNFSM4IFRND3A .

bradrn commented 5 years ago

presets just makes it super easy to save and load configurations of the analogue synth.

That seems useful — it’s certainly quite laborious to define them from scratch.

wavetables are cool though, you'll love them :)

I’m sure 😄. I presume they’re related to wavetable synthesis? (Which I don’t understand yet, but maybe if I play around with them enough…) Are there any examples?

Seeing as you're on windows - just checking that have set your machines power plan to High/Ultimate Performance?

I don’t see why it would matter, but I can’t find the setting anyway.


Anyway, the compilation has finished with a bunch of errors:

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\aot_external.vcxproj" (default target) (5) ->
"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\external_shlibs_graphics.vcxproj" (default target) (14) ->
"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp.vcxproj" (default target) (15) ->
(CustomBuild target) ->
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\
extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ex
tempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\
extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\e
xtempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem
pore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem
pore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem
pore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore
\extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore
\extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempo
re\extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ext
empore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\
extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ex
tempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\
extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\e
xtempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem
pore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem
pore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem
pore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore
\extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore
\extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempo
re\extempore\cmake-build\assimp.vcxproj]
  c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu
ild\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ext
empore\cmake-build\assimp.vcxproj]

    639 Warning(s)
    22 Error(s)

These are the same errors I reported at the beginning of this issue; they occur when compiling Assimp. So we’ve confirmed that these errors come up when compiling on the command-line, but disappear when using Visual Studio. I wonder why?

digego commented 5 years ago

It's going to be something specific to your setup, but I've got no idea what.

keep digging for the power settings - believe me, it makes a big difference.

On Tue, Jul 23, 2019 at 6:59 PM bradrn notifications@github.com wrote:

presets just makes it super easy to save and load configurations of the analogue synth.

That seems useful — it’s certainly quite laborious to define them from scratch.

wavetables are cool though, you'll love them :)

I’m sure 😄. I presume they’re related to wavetable synthesis? (Which I don’t understand yet, but maybe if I play around with them enough…) Are there any examples?

Seeing as you're on windows - just checking that have set your machines power plan to High/Ultimate Performance?

I don’t see why it would matter, but I can’t find the setting anyway.

Anyway, the compilation has finished with a bunch of errors:

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\ALL_BUILD.vcxproj" (default target) (1) ->

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\aot_external.vcxproj" (default target) (5) ->

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\external_shlibs_graphics.vcxproj" (default target) (14) ->

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp.vcxproj" (default target) (15) ->

(CustomBuild target) ->

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ex

tempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\e

xtempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempo

re\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ext

empore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ex

tempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\e

xtempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempo

re\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ext

empore\cmake-build\assimp.vcxproj]

639 Warning(s)

22 Error(s)

These are the same errors I reported at the beginning of this issue; they occur when compiling Assimp. So we’ve confirmed that these errors come up when compiling on the command-line, but disappear when using Visual Studio. I wonder why?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKPMB6OZHRN6JN4G44TQA3CATA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SNUUI#issuecomment-514120273, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKKBDEU6FJWWVUJ57BLQA3CATANCNFSM4IFRND3A .

digego commented 5 years ago

can you look in extempore/cmake-build/assimp/src/assimp-build/CMakeCache.txt and search for Z_HAVE_UNISTD_H:INTERNAL=?

it should be "Z_HAVE_UNISTD_H:INTERNAL=" but I suspect yours is "Z_HAVE_UNISTD_H:INTERNAL=1" ?

On Tue, Jul 23, 2019 at 7:55 PM Andrew Sorensen digegoo@gmail.com wrote:

It's going to be something specific to your setup, but I've got no idea what.

keep digging for the power settings - believe me, it makes a big difference.

On Tue, Jul 23, 2019 at 6:59 PM bradrn notifications@github.com wrote:

presets just makes it super easy to save and load configurations of the analogue synth.

That seems useful — it’s certainly quite laborious to define them from scratch.

wavetables are cool though, you'll love them :)

I’m sure 😄. I presume they’re related to wavetable synthesis? (Which I don’t understand yet, but maybe if I play around with them enough…) Are there any examples?

Seeing as you're on windows - just checking that have set your machines power plan to High/Ultimate Performance?

I don’t see why it would matter, but I can’t find the setting anyway.

Anyway, the compilation has finished with a bunch of errors:

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\ALL_BUILD.vcxproj" (default target) (1) ->

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\aot_external.vcxproj" (default target) (5) ->

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\external_shlibs_graphics.vcxproj" (default target) (14) ->

"C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp.vcxproj" (default target) (15) ->

(CustomBuild target) ->

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ex

tempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\e

xtempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempo

re\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ext

empore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssbinLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ex

tempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\AssxmlExporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\

extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\BlenderLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\e

xtempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\IFCLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\FBXParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XGLLoader.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\extem

pore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPZipArchive.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore

\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\Q3BSPFileImporter.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempo

re\extempore\cmake-build\assimp.vcxproj]

c:\emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-bu

ild\assimp\src\assimp\code\XFileParser.cpp) [C:\Users\bradn\Documents\Music\Extempore\extempore\cmake-build\assimp\src\assimp-build\code\assimp.vcxproj] [C:\Users\bradn\Documents\Music\Extempore\ext

empore\cmake-build\assimp.vcxproj]

639 Warning(s)

22 Error(s)

These are the same errors I reported at the beginning of this issue; they occur when compiling Assimp. So we’ve confirmed that these errors come up when compiling on the command-line, but disappear when using Visual Studio. I wonder why?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKPMB6OZHRN6JN4G44TQA3CATA5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SNUUI#issuecomment-514120273, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKKBDEU6FJWWVUJ57BLQA3CATANCNFSM4IFRND3A .

bradrn commented 5 years ago

can you look in extempore/cmake-build/assimp/src/assimp-build/CMakeCache.txt and search for Z_HAVE_UNISTD_H:INTERNAL=?

Couldn’t find it. The closest I got were these matches (rg is ripgrep):

> rg --no-ignore -i z_have_unistd
src\assimp\contrib\zlib\CMakeLists.txt
67:check_include_file(unistd.h Z_HAVE_UNISTD_H)

src\assimp\contrib\zlib\zconf.h.cmakein
11:#cmakedefine Z_HAVE_UNISTD_H
414:#  define Z_HAVE_UNISTD_H
449:#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
450:#  define Z_HAVE_UNISTD_H
453:#  if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)

src\assimp\contrib\zlib\zconf.h.included
11:/* #undef Z_HAVE_UNISTD_H */
414:#  define Z_HAVE_UNISTD_H
449:#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
450:#  define Z_HAVE_UNISTD_H
453:#  if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)

keep digging for the power settings - believe me, it makes a big difference.

I’ll keep looking!

digego commented 5 years ago

just to be clear on the power setting thing - it obviously isn't going to make any difference to these build problems, but it will make a substantial difference when doing real-time audio.

On Wed, Jul 24, 2019 at 10:09 AM bradrn notifications@github.com wrote:

can you look in extempore/cmake-build/assimp/src/assimp-build/CMakeCache.txt and search for Z_HAVE_UNISTD_H:INTERNAL=?

Couldn’t find it. The closest I got were these matches (rg is ripgrep):

rg --no-ignore -i z_have_unistd

src\assimp\contrib\zlib\CMakeLists.txt

67:check_include_file(unistd.h Z_HAVE_UNISTD_H)

src\assimp\contrib\zlib\zconf.h.cmakein

11:#cmakedefine Z_HAVE_UNISTD_H

414:# define Z_HAVE_UNISTD_H

449:#if defined(WATCOMC) && !defined(Z_HAVE_UNISTD_H)

450:# define Z_HAVE_UNISTD_H

453:# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)

src\assimp\contrib\zlib\zconf.h.included

11:/ #undef Z_HAVE_UNISTD_H /

414:# define Z_HAVE_UNISTD_H

449:#if defined(WATCOMC) && !defined(Z_HAVE_UNISTD_H)

450:# define Z_HAVE_UNISTD_H

453:# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)

keep digging for the power settings - believe me, it makes a big difference.

I’ll keep looking!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digego/extempore/issues/362?email_source=notifications&email_token=AAEHPKJE7BS3NUPAQGJDIBLQA6MT5A5CNFSM4IFRND3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2UY2MA#issuecomment-514428208, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHPKNFHO5REP3HMN7XXWDQA6MT5ANCNFSM4IFRND3A .

bradrn commented 5 years ago

So @digego — given the search results I specified above, do you have any idea what could be causing this error? I should have mentioned that before I created this issue, the first thing I did was look up what unistd.h was, and it turns out it’s Unix-specific — so I think your speculation about something going wrong with CMake could be valid.

On the other hand, I was just looking at the error message, and I realised it refers to includes in my Emacs installation! So I’ll take Emacs off my PATH and try compiling again,

bradrn commented 5 years ago

So I’ll take Emacs off my PATH and try compiling again,

The compilation has finished with the same errors. Weirdly, they still referenced the Emacs include files.

On the other hand, I just found something very interesting in my C:\emacs\include\zconf.h — which happens to be the same header file referenced in the error messages! It contains the following lines:

#if 1    /* was set to #if 1 by ./configure */
#  define Z_HAVE_UNISTD_H
#endif

/* ...stuff... */

#ifndef Z_SOLO
#  if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
#    include <unistd.h>         /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
#    ifdef VMS
#      include <unixio.h>       /* for off_t */
#    endif
#    ifndef z_off_t
#      define z_off_t off_t
#    endif
#  endif
#endif

So it looks like CMake is compiling Assimp, somehow finding Emacs’s zconf.h, and using it — even though it is incorrectly set up to try and load unistd.h! I’ve removed those lines from zconf.h and tried compiling again — it’s running now.

bradrn commented 5 years ago

That did seem to be the problem — Extempore has now compiled successfully!

Sorry for wasting such a long time on a simple problem — as I mentioned above, it turned out that the only problem was that an Emacs file wasn’t configured correctly, and CMake was somehow using that file as part of its compilation. Thanks for the help @digego!

bradrn commented 5 years ago

(Oh, and as for the power plan thing, it turns out that by default the Ultimate plan is not available on battery-powered laptops because of the amount of power it consumes. I think for now I’ll leave the plan as it is — for my purposes, it’s working fine already.)

bradrn commented 5 years ago

By the way, I was just playing around with the sharedsystem examples you mentioned earlier, and they are amazing! With this sort of functionality, Extempore looks better than any other livecoding system I’ve seen before! (And that includes SuperCollider, ChucK, Tidal and all the other major ones.)

One thing which I think is worth documenting though is the setup in audiosetup.xtm. As a novice at Extempore who still wants to use all this functionality, I think it’s worth writing a tutorial which goes through audiosetup.xtm function by function and explains what each bit does. It’s probably obvious to you as the person who wrote the code, but there’s plenty of stuff there which I have no idea about: e.g. the definition of the DSP functions (why are they so complicated?), how the MIDI setup works, how the looper functionality is set up. But if you want to discuss this proposal further it’s probably better to do it in a separate issue.