Csound Csound-dev Csound-tekno Search About

[Csnd] building csound on linux/debian - missing io.h and winsock.h

Date2019-08-06 13:13
FromAtte <00000576b2aa4c8e-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] building csound on linux/debian - missing io.h and winsock.h
I succesfully build csound from git on my laptop. However the build fails on my nearly identical desktop. Any clues as to what I'm doing wrong would be greatly appreciated! It seems to be missing io.h, winsock.h and a bit further down hdf5.h. Odd, seems like they are windows-related or?

Here's the first part of cs6make/CMakeFiles/CMakeError.log






Determining if the include file io.h exists failed with the following output:
Change Dir: /home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_f005a/fast"
/usr/bin/make -f CMakeFiles/cmTC_f005a.dir/build.make CMakeFiles/cmTC_f005a.dir/build
make[1]: Entering directory '/mnt/data/atte/medium/software/csound/cs6make/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f005a.dir/CheckIncludeFile.c.o
/usr/bin/cc   -I/home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp/pthread.h  -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DBETA -fvisibility=hidden -std=
gnu99 -DHAVE_ATOMIC_BUILTIN    -o CMakeFiles/cmTC_f005a.dir/CheckIncludeFile.c.o   -c /home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:16: fatal error: io.h: No such file or directory
 #include 
                ^
compilation terminated.
CMakeFiles/cmTC_f005a.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_f005a.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_f005a.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/mnt/data/atte/medium/software/csound/cs6make/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_f005a/fast' failed
make: *** [cmTC_f005a/fast] Error 2


Determining if the include file winsock.h exists failed with the following output:
Change Dir: /home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_1e529/fast"
/usr/bin/make -f CMakeFiles/cmTC_1e529.dir/build.make CMakeFiles/cmTC_1e529.dir/build
make[1]: Entering directory '/mnt/data/atte/medium/software/csound/cs6make/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1e529.dir/CheckIncludeFile.c.o
/usr/bin/cc   -I/home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp/pthread.h  -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DBETA -fvisibility=hidden -std=
gnu99 -DHAVE_ATOMIC_BUILTIN    -o CMakeFiles/cmTC_1e529.dir/CheckIncludeFile.c.o   -c /home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/atte/software/csound/cs6make/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:21: fatal error: winsock.h: No such file or directory
 #include 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-08-06 19:23
Fromjohn
SubjectRe: [Csnd] building csound on linux/debian - missing io.h and winsock.h
On Tue, 6 Aug 2019, Atte wrote:

> I succesfully build csound from git on my laptop. However the build fails on my nearly identical desktop. Any clues as to what I'm doing wrong would be greatly appreciated! It seems to be missing io.h, winsock.h and a bit further down hdf5.h. Odd, seems like they are windows-related or?
>

that dd noyt tell me much!

Do you have a Custom.make file?   if so what does it say?

Have you deleted te CMakeCache.txt fike and tried again?

what is the output from CMake?

I have csound runing on Debian10 and there is a snapshot

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-08-06 19:31
FromAtte <00000576b2aa4c8e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] building csound on linux/debian - missing io.h and winsock.h
On Tue, 6 Aug 2019 19:23:41 +0100
john  wrote:

> Do you have a Custom.make file?   if so what does it say?

No Custom.make...

atte@skagen:~/software/csound$ find | grep Custom.make
atte@skagen:~/software/csound$ 

> Have you deleted te CMakeCache.txt fike and tried again?

I tried removing the entire cs6make folder, I just tried removing the CMakeCache.txt, no change...

> what is the output from CMake?

atte@skagen:~/software/csound/cs6make$ cmake ../git
-- /home/atte/software/csound/git
-- Not using Custom.cmake file.
-- LIBRARY INSTALL DIR: lib
-- Building with 64-bit floats
-- BUILD_BIN_DIR set to /home/atte/software/csound/cs6make.
-- BUILD_LIB_DIR set to /home/atte/software/csound/cs6make.
-- BUILD_PLUGINS_DIR set to /home/atte/software/csound/cs6make.
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR) 
-- FAUST_INCLUDE_DIR (missing:  FAUST_LIBRARY) 
-- Could NOT find MUSICXML (missing:  MUSICXML_LIBRARY MUSICXML_INCLUDE_DIR) 
-- Could NOT find PORTSMF (missing:  PORTSMF_INCLUDE_DIR) 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.13", minimum required is "2.7") 
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10") 
-- Could NOT find VSTSDK2X (missing:  VSTSDK2X_INCLUDE_DIR) 
-- Using atomic builtins.
-- USE_LRINT is enabled.
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR) 
-- Not using CURL for urls - not found.
-- GIT: /usr/bin/git
-- HASH: cc99a5b425fccde006f1f34c2e7e2a63d26a0917
-- Not building with new parser debugging.
-- Building with multicore support.
-- USE_GETTEXT is enabled.
-- Using GNU gettext.
-- Setting textdomain to /usr/local/share/locale.
-- Building on Linux.
--   ADDING LIBRT LIBRARY: /usr/lib/x86_64-linux-gnu/librt.so.
-- ## Building Opcodes ##
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.13") 
-- BUILD_CHUA_OPCODES is enabled.
-- BUILD_DSSI_OPCODES is enabled.
-- BUILD_FLUID_OPCODES is enabled.
-- BUILD_JACK_OPCODES is enabled.
-- BUILD_OSC_OPCODES is enabled.
-- BUILD_IMAGE_OPCODES is enabled.
-- BUILD_PYTHON_OPCODES is enabled.
-- WIIUSE_H="", so disabling BUILD_WIIMOTE_OPCODES
-- WIIUSE_LIB="WIIUSE_LIB-NOTFOUND", so disabling BUILD_WIIMOTE_OPCODES
-- BUILD_WIIMOTE_OPCODES is disabled.
-- P5GLOVE_H="", so disabling BUILD_P5GLOVE_OPCODES
-- BUILD_P5GLOVE_OPCODES is disabled.
-- FAUST_FOUND="FALSE", so disabling BUILD_FAUST_OPCODES
-- BUILD_FAUST_OPCODES is disabled.
-- BUILD_ABLETON_LINK_OPCODES is disabled.
-- BUILD_STK_OPCODES is enabled.
-- Building STK opcodes.
-- Could NOT find HDF5 (missing:  HDF5_LIBRARIES HDF5_INCLUDE_DIRS) 
-- HDF5_FOUND="FALSE", so disabling BUILD_HDF5_OPCODES
-- BUILD_HDF5_OPCODES is disabled.
CMake Error at Opcodes/CMakeLists.txt:397 (add_subdirectory):
  add_subdirectory given source "websockets" which is not an existing
  directory.


-- 
-- ## REALTIME AUDIO AND MIDI ##
-- APPLE="", so disabling USE_COREMIDI
-- COREMIDI_INCLUDE_PATH="COREMIDI_INCLUDE_PATH-NOTFOUND", so disabling USE_COREMIDI
-- COREMIDI_LIBRARY="COREMIDI_LIBRARY-NOTFOUND", so disabling USE_COREMIDI
-- COREFOUNDATION_LIBRARY="COREFOUNDATION_LIBRARY-NOTFOUND", so disabling USE_COREMIDI
-- USE_COREMIDI is disabled.
-- APPLE="", so disabling USE_AUDIOUNIT
-- COREAUDIO_INCLUDE_PATH="COREAUDIO_INCLUDE_PATH-NOTFOUND", so disabling USE_AUDIOUNIT
-- COREAUDIO_LIBRARY="COREAUDIO_LIBRARY-NOTFOUND", so disabling USE_AUDIOUNIT
-- AUDIOUNIT_INCLUDE_PATH="AUDIOUNIT_INCLUDE_PATH-NOTFOUND", so disabling USE_AUDIOUNIT
-- AUDIOUNIT_LIBRARY="AUDIOUNIT_LIBRARY-NOTFOUND", so disabling USE_AUDIOUNIT
-- COREFOUNDATION_LIBRARY="COREFOUNDATION_LIBRARY-NOTFOUND", so disabling USE_AUDIOUNIT
-- USE_AUDIOUNIT is disabled.
-- USE_ALSA is enabled.
-- USE_PULSEAUDIO is enabled.
-- USE_PORTAUDIO is enabled.
-- Building rtpa module.
-- USE_PORTMIDI is enabled.
-- USE_JACK is enabled.
-- USE_FLTK is enabled.
-- BUILD_VIRTUAL_KEYBOARD is enabled.
-- 
-- Building C++ interface library.
-- Found SWIG: /usr/bin/swig3.0 (found suitable version "3.0.10", minimum required is "2.0") 
-- PYTHON_LIBRARY: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- BUILD_PYTHON_INTERFACE is enabled.
-- BUILD_JAVA_INTERFACE is enabled.
-- BUILD_LUA_INTERFACE is enabled.
-- SWIG_USE_FILE: /usr/share/cmake-3.7/Modules/UseSWIG.cmake
-- JNI INCLUDE set to /usr/lib/jvm/java-8-openjdk-amd64/include;/usr/lib/jvm/java-8-openjdk-amd64/include/linux;/usr/lib/jvm/java-8-openjdk-amd64/include.
-- BUILD_CSBEATS is enabled.
-- BUILD_WINSOUND is disabled.
-- Not building belacsound program.
-- CUNIT_LIBRARY="CUNIT_LIBRARY-NOTFOUND", so disabling BUILD_TESTS
-- BUILD_STATIC_LIBRARY="OFF", so disabling BUILD_TESTS
-- BUILD_TESTS is disabled.
-- Configuring incomplete, errors occurred!
See also "/home/atte/software/csound/cs6make/CMakeFiles/CMakeOutput.log".
See also "/home/atte/software/csound/cs6make/CMakeFiles/CMakeError.log".

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here