[Cs-dev] build question/errror
Date | 2014-06-20 12:03 |
From | Oeyvind Brandtsegg |
Subject | [Cs-dev] build question/errror |
Hi, I'm trying to build csound on a new computer, windows7. I use mingw and I have libsndfile, boos, swig, portaudio, flex, bison. I'm unsure of what goes wrong with my build, but it seems mostly done(?). C:\MinGW\bin\gcc.exe -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-f rame-pointer -W -Wall -mtune=core2 -ftree-vectorize -ffast-math -mstackrealign - fvisibility=hidden -Wl,--whole-archive CMakeFiles\csb64enc.dir/objects.a -Wl, --no-whole-archive -o ..\csb64enc.exe -Wl,--out-implib,libcsb64enc.dll.a -Wl,-- major-image-version,0,--minor-image-version,0 ..\libcsound64.dll.a -lkernel32 - luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladva pi32 [ 98%] [ 98%] [ 98%] mingw32-make[2]: Leaving directory 'c:/Source/csound-build' "C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_progress_report C:\Source\ csound-build\CMakeFiles Built target cs Built target csdebugger Built target csladspa [ 98%] Built target csb64enc mingw32-make[1]: Leaving directory 'c:/Source/csound-build' Makefile:149: recipe for target 'all' failed mingw32-make: *** [all] Error 2 -- Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://flyndresang.no/ http://www.partikkelaudio.com/ http://soundcloud.com/brandtsegg http://soundcloud.com/t-emp ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2014-06-20 13:04 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None |
Date | 2014-06-20 15:52 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Attachments | compilelog.txt None None |
Naturally, sorry for not sending it right away. Here's (attached) the output from $ mingw32-make > compilelog.txt 2>&1 Oeyvind 2014-06-20 14:04 GMT+02:00 |
Date | 2014-06-20 16:18 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None |
Date | 2014-06-20 16:51 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
MinGW will come with pthreads but you may need a more recent version. What version of MinGW are you using? I currently am using the MinGW 4.8.2 that comes with the Qt SDK 5.3.0 in the all-in-one download from Qt. This does come with pthreads.
Just before that I was using MinGW-builds MinGW 4.8.1 downloaded from MinGW-builds. In both cases you should also have MSys, not sure whether it comes with the Qt installer. I never tried to build Csound with MSys. Maybe it works maybe not.
Hope this helps, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Jun 20, 2014 at 11:18 AM, <jpff@cs.bath.ac.uk> wrote: The error is that you are missing pthreads |
Date | 2014-06-20 18:31 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Thanks, I understand the error now. I did install mingw and msys via the mingw installation manager (http://www.mingw.org/wiki/Getting_Started), it seems to be version 4.8.1-4. I have installed pthreads, my mingw/include/pthread.h has #define PTW32_VERSION 2,9,1,0 Possibly a version conflict?, or a missing path? John, what did you mean by d.load the pthreads package? 2014-06-20 17:51 GMT+02:00 Michael Gogins |
Date | 2014-06-20 18:35 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
There are two possibilities. MinGW comes in 2 versions, one with Windows threads, one with PThreads (POSIX threads). Which did you install? In either case, if you installed PThreads, they should work, so I think it is a path problem.
Hope this helps, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Jun 20, 2014 at 1:31 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: Thanks, I understand the error now. |
Date | 2014-06-20 23:50 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
I have pthreadGC2.dll in C:/MinGW/bin, it is version 2.9.1.0. C:/MinGW/bin is in my path, and I also tried various combinations of explicit search paths in Custom.cmake. Could there be anything else wrong, that triggers the pthread error? Here's the cmake-gui output in case it gives any clues. C:/Source/csound LIBRARY INSTALL DIR: lib Including Custom.cmake file: C:/Source/csound/Custom.cmake BUILD_BIN_DIR set to C:/Source/csound-build BUILD_LIB_DIR set to C:/Source/csound-build BUILD_PLUGINS_DIR set to C:/Source/csound-build Not using Atomic Builtins - not found USE_LRINT is enabled Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Not using CURL for urls - not found Could NOT find FLTK (missing: FLTK_LIBRARIES FLTK_INCLUDE_DIR FLTK_FLUID_EXECUTABLE) USE_OPEN_MP is disabled CMake Warning (dev) at CMakeLists.txt:810 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMakeLists.txt:816 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMakeLists.txt:822 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. This warning is for project developers. Use -Wno-dev to suppress it. Not building with score parser Not building with new parser debugging Building with multicore USE_GETTEXT is enabled Using GNU Gettext Boost version: 1.55.0 Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR) Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) BUILD_CHUA_OPCODES is enabled LADSPA_H="", so disabling BUILD_DSSI_OPCODES BUILD_DSSI_OPCODES is disabled FLUIDSYNTH_H="", so disabling BUILD_FLUID_OPCODES BUILD_FLUID_OPCODES is disabled JACK_HEADER="", so disabling BUILD_JACK_OPCODES BUILD_JACK_OPCODES is disabled GMM_HEADER="", so disabling BUILD_LINEAR_ALGEBRA_OPCODES BUILD_LINEAR_ALGEBRA_OPCODES is disabled LIBLO_LIBRARY="LIBLO_LIBRARY-NOTFOUND", so disabling BUILD_OSC_OPCODES OSC_HEADER="", so disabling BUILD_OSC_OPCODES BUILD_OSC_OPCODES is disabled PNG_FOUND="FALSE", so disabling BUILD_IMAGE_OPCODES BUILD_IMAGE_OPCODES is disabled BUILD_PYTHON_OPCODES is enabled LUA_H_PATH="LUA_H_PATH-NOTFOUND", so disabling BUILD_LUA_OPCODES BUILD_LUA_OPCODES is disabled 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 BUILD_FAUST_OPCODES is disabled BUILD_VST4CS_OPCODES is disabled STK_FOUND="STK_FOUND-NOTFOUND", so disabling BUILD_STK_OPCODES STK_INCLUDE_DIR="STK_INCLUDE_DIR-NOTFOUND", so disabling BUILD_STK_OPCODES BUILD_STK_OPCODES is disabled ## 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 ALSA_HEADER="", so disabling USE_ALSA ALSA_LIBRARY="ALSA_LIBRARY-NOTFOUND", so disabling USE_ALSA USE_ALSA is disabled Building Windows MME plugin(rtwinmm). PULSEAUDIO_HEADER="", so disabling USE_PULSEAUDIO PULSEAUDIO_LIBRARY="PULSEAUDIO_LIBRARY-NOTFOUND", so disabling USE_PULSEAUDIO PULSESIMPLE_LIBRARY="PULSESIMPLE_LIBRARY-NOTFOUND", so disabling USE_PULSEAUDIO USE_PULSEAUDIO is disabled USE_PORTAUDIO is enabled PORTTIME_INCLUDE_PATH="", so disabling USE_PORTMIDI USE_PORTMIDI is disabled JACK_HEADER="", so disabling USE_JACK JACK_LIBRARY="JACK_LIBRARY-NOTFOUND", so disabling USE_JACK USE_JACK is disabled FLTK_FOUND="FALSE", so disabling USE_FLTK USE_FLTK is disabled FLTK_FOUND="FALSE", so disabling BUILD_VIRTUAL_KEYBOARD BUILD_VIRTUAL_KEYBOARD is disabled Building C++ interface library Found SWIG: C:/Source/swigwin-3.0.2/swig.exe (found suitable version "3.0.2", minimum required is "2.0") Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) (found version "1.7.0.60") C:/Python27/libs/libpython27.a BUILD_PYTHON_INTERFACE is enabled JNI_FOUND="FALSE", so disabling BUILD_JAVA_INTERFACE JAVA_FOUND="FALSE", so disabling BUILD_JAVA_INTERFACE BUILD_JAVA_INTERFACE is disabled LUA_H_PATH="LUA_H_PATH-NOTFOUND", so disabling BUILD_LUA_INTERFACE BUILD_LUA_INTERFACE is disabled Building csLadspa BUILD_CSBEATS is enabled PD_HEADER_PATH="PD_HEADER_PATH-NOTFOUND", so disabling BUILD_PD_CLASS BUILD_PD_CLASS is disabled BUILD_WINSOUND is disabled Boost version: 1.55.0 Found SWIG: C:/Source/swigwin-3.0.2/swig.exe (found version "3.0.2") FLTK_FOUND="FALSE", so disabling BUILD_CSOUND_AC EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC BUILD_CSOUND_AC is disabled EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC_PYTHON_INTERFACE BUILD_CSOUND_AC_PYTHON_INTERFACE is disabled LUA_H_PATH="LUA_H_PATH-NOTFOUND", so disabling BUILD_CSOUND_AC_LUA_INTERFACE EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC_LUA_INTERFACE BUILD_CSOUND_AC_LUA_INTERFACE is disabled Boost version: 1.55.0 BUILD_CSOUNDVST is disabled Not Building csound~ for Max/MSP MAX_SDK_ROOT is not defined CMake Warning (dev) at po/CMakeLists.txt:6 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. Call Stack (most recent call first): po/CMakeLists.txt:22 (compile_po) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at po/CMakeLists.txt:6 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. Call Stack (most recent call first): po/CMakeLists.txt:23 (compile_po) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at po/CMakeLists.txt:6 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. Call Stack (most recent call first): po/CMakeLists.txt:24 (compile_po) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at po/CMakeLists.txt:6 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. Call Stack (most recent call first): po/CMakeLists.txt:25 (compile_po) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at po/CMakeLists.txt:6 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. Call Stack (most recent call first): po/CMakeLists.txt:26 (compile_po) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at po/CMakeLists.txt:6 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. Call Stack (most recent call first): po/CMakeLists.txt:27 (compile_po) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at po/CMakeLists.txt:6 (add_custom_command): Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The SOURCE signatures of add_custom_command are no longer supported. Call Stack (most recent call first): po/CMakeLists.txt:28 (compile_po) This warning is for project developers. Use -Wno-dev to suppress it. CUNIT_LIBRARY="CUNIT_LIBRARY-NOTFOUND", so disabling BUILD_TESTS BUILD_TESTS is disabled Configuring done Generating done 2014-06-20 19:35 GMT+02:00 Michael Gogins |
Date | 2014-06-21 01:11 |
From | Steven Yi |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
Hi Oeyvind, I saw you have Swig 3. Could you try with swig 2? Steven On Jun 20, 2014 3:51 PM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> wrote:
I have pthreadGC2.dll in C:/MinGW/bin, it is version 2.9.1.0. |
Date | 2014-06-21 02:27 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I am using SWIG 3.0.0 without any problems. I have to say, I've never seen this kind of CMake message. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Jun 20, 2014 at 8:11 PM, Steven Yi <stevenyi@gmail.com> wrote:
|
Date | 2014-06-21 05:40 |
From | Steven Yi |
Subject | Re: [Cs-dev] build question/errror |
I took a further look on my laptop (I was using my phone earlier). The message somewhat makes sense as there's no includes in csPerfThread.hpp for those types before they are used. It looks like it was introduced by Andres on May 30th: https://github.com/csound/csound/commit/b03afb51770ffe82c0579c537714e13fcdbe27d3 The recordData_t uses pthread_cond_t and pthread_mutex_t, but there's no inclusion of pthreads.h anywhere in there. Assuming it's pulled in withing the .cpp file, I think it should add an #include |
Date | 2014-06-21 17:38 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Thanks for looking into it. I tried with swig 2, but no change. My cmake is version 3.0.0 2014-06-21 6:40 GMT+02:00 Steven Yi |
Date | 2014-06-21 18:19 |
From | Steven Yi |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
Could you try with Cmake 2? I wonder if something changed in 3 that we need to make adjustments for. I'll with 3 later but probably not until tonight or tomorrow. On Jun 21, 2014 9:38 AM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> wrote:
Thanks for looking into it. |
Date | 2014-06-21 18:56 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I have been using Cmake 2.8.12 myself, it seems. Regards, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sat, Jun 21, 2014 at 1:19 PM, Steven Yi <stevenyi@gmail.com> wrote:
|
Date | 2014-06-21 20:01 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Attachments | compilelog1.txt None None |
.. it seems to change behavior, so perhaps some new clues here? 2014-06-21 19:56 GMT+02:00 Michael Gogins |
Date | 2014-06-21 20:55 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
Right. I used pthreads directly (instead of the csound threading functions) because I needed a conditional variable, which is not available. Maybe adding a header and linker flag solves the issue? However, what could be the reason that I am not experiencing that issue?Cheers, On Fri, Jun 20, 2014 at 11:40 PM, Steven Yi <stevenyi@gmail.com> wrote: I took a further look on my laptop (I was using my phone earlier). |
Date | 2014-06-22 05:53 |
From | Steven Yi |
Subject | Re: [Cs-dev] build question/errror |
It's pretty much the same error unfortunately, complaining about pthread_mutex_t and pthread_cond_t. Could you try just adding #include |
Date | 2014-06-22 12:30 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Attachments | compilelog2.txt None None |
Ok. excerpt of my csPerfThread.hpp: #ifndef CSOUND_CSPERFTHREAD_HPP #define CSOUND_CSPERFTHREAD_HPP #include |
Date | 2014-06-22 13:25 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None |
Date | 2014-06-22 15:09 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Attachments | compilelog2.txt None None |
Your guess at translation is correct, and I guess it must be related to compiling with -j6 as I have nothing else happening simultaneously here. Now, I did a make clean, deleted the cmake cache and generated, this time running make without -j. Different errors once again. Here's the output. Oeyvind 2014-06-22 14:25 GMT+02:00 |
Date | 2014-06-22 20:44 |
From | Steven Yi |
Subject | Re: [Cs-dev] build question/errror |
It looks like just a linking error now. I added the PTHREAD_LIBRARY to the list of libraries to link with, as well as the #include. Could you pull the latest from develop branch and give it a try? On Sun, Jun 22, 2014 at 7:09 AM, Oeyvind Brandtsegg |
Date | 2014-06-22 23:12 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
...aaaalmost. cd /d C:\Source\csound-build\interfaces && C:\Source\swigwin-2.0.12\swig.exe -python -D__BUILDING_LIBCSOUND -DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BARRIER_INIT -DPARCS -DGNU_GETTEXT -DHAVE_SOCKETS -DHAVE_DIRENT_H -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_VALUES_H -inclu deall -verbose -DUSE_DOUBLE -outdir C:/Source/csound-build -c++ -IC:/MinGW/include "-IC:/Program Files (x86)/Mega-Nerd/libsndfile/include" -IC:/Source/csound/./ H -IC:/Source/csound/./include -IC:/Source/csound/./Engine -IC:/Source/csound/. -IC:/Source/csound-build -IC:/Source/csound-build/include -IC:/Source/csound/int erfaces -IC:/Python27/include -o C:/Source/csound-build/interfaces/python_interfacePYTHON_wrap.cxx C:/Source/csound/interfaces/python_interface.i Language subdirectory: python Search paths: .\ C:/MinGW/include\ C:/Program Files (x86)/Mega-Nerd/libsndfile/include\ C:/Source/csound/./H\ C:/Source/csound/./include\ C:/Source/csound/./Engine\ C:/Source/csound/.\ C:/Source/csound-build\ C:/Source/csound-build/include\ C:/Source/csound/interfaces\ C:/Python27/include\ .\swig_lib\python\ C:\Source\swigwin-2.0.12\Lib\python\ .\swig_lib\ C:\Source\swigwin-2.0.12\Lib\ Preprocessing... Starting language-specific parse... Processing types... C++ analysis... Generating wrappers... C:\Source\csound\interfaces\CppSound.hpp(37) : Warning 453: Can't apply (std::vector< double > *INPUT). No typemaps are defined. "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" C:\Source\csound C:\Source\csound\interfaces C:\Source\csound-build C:\Sourc e\csound-build\interfaces C:\Source\csound-build\interfaces\CMakeFiles\_csnd6.dir\DependInfo.cmake --color= Scanning dependencies of target _csnd6 mingw32-make[3]: Leaving directory 'c:/Source/csound-build' mingw32-make -f interfaces\CMakeFiles\_csnd6.dir\build.make interfaces/CMakeFiles/_csnd6.dir/build mingw32-make[3]: Entering directory 'c:/Source/csound-build' "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report C:\Source\csound-build\CMakeFiles [ 89%] Building CXX object interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj cd /d C:\Source\csound-build\interfaces && C:\MinGW\bin\g++.exe -DUSE_LRINT -DWIN32 -D_CSOUND_RELEASE_ -D_csnd6_EXPORTS -ffast-math -mfpmath=sse -msse2 -fomit -frame-pointer -mstackrealign @CMakeFiles/_csnd6.dir/includes_CXX.rsp -Wno-format -o CMakeFiles\_csnd6.dir\python_interfacePYTHON_wrap.cxx.obj -c C:\Source\cs ound-build\interfaces\python_interfacePYTHON_wrap.cxx In file included from c:\mingw\include\io.h:27:0, from C:/Python27/include/pyconfig.h:68, from C:/Python27/include/Python.h:8, from C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:155: C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx: In function 'PyObject* _wrap_CsoundMidiInputBuffer_SendMessage__SWIG_0(PyObject*, PyObject*)' : C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:32761:11: error: 'class CsoundMidiInputBuffer' has no member named 'SendMessageA' (arg1)->SendMessage(arg2); ^ C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx: In function 'PyObject* _wrap_CsoundMidiInputBuffer_SendMessage__SWIG_1(PyObject*, PyObject*)' : C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:32818:11: error: 'class CsoundMidiInputBuffer' has no member named 'SendMessageA' (arg1)->SendMessage(arg2,arg3,arg4,arg5); ^ interfaces\CMakeFiles\_csnd6.dir\build.make:77: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj' failed mingw32-make[3]: *** [interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj] Error 1 mingw32-make[3]: Leaving directory 'c:/Source/csound-build' CMakeFiles\Makefile2:901: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/all' failed mingw32-make[2]: *** [interfaces/CMakeFiles/_csnd6.dir/all] Error 2 mingw32-make[2]: Leaving directory 'c:/Source/csound-build' Makefile:148: recipe for target 'all' failed mingw32-make[1]: *** [all] Error 2 mingw32-make[1]: Leaving directory 'c:/Source/csound-build' 2014-06-22 21:44 GMT+02:00 Steven Yi |
Date | 2014-06-23 12:42 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Attachments | compilelog4.txt None None |
... sending the full build log (attached), in case it is useful. Is this the real error, or is it triggered by something else: C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:32761:11: error: 'class CsoundMidiInputBuffer' has no member named 'SendMessageA' (arg1)->SendMessage(arg2); ^ Also, I seem to have a generous amount of missing-field-initializers, unused-parameter, sign-compare, are these harmless, or do they indicate an error? Here's the cmake output too, if useful: *** *** *** C:/Source/csound LIBRARY INSTALL DIR: lib Including Custom.cmake file: C:/Source/csound/Custom.cmake BUILD_BIN_DIR set to C:/Source/csound-build BUILD_LIB_DIR set to C:/Source/csound-build BUILD_PLUGINS_DIR set to C:/Source/csound-build Not using Atomic Builtins - not found USE_LRINT is enabled Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Not using CURL for urls - not found Could NOT find FLTK (missing: FLTK_LIBRARIES FLTK_INCLUDE_DIR FLTK_FLUID_EXECUTABLE) USE_OPEN_MP is disabled Not building with score parser Not building with new parser debugging Building with multicore USE_GETTEXT is enabled Using GNU Gettext Boost version: 1.55.0 Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR) Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) BUILD_CHUA_OPCODES is enabled LADSPA_H="", so disabling BUILD_DSSI_OPCODES BUILD_DSSI_OPCODES is disabled FLUIDSYNTH_H="", so disabling BUILD_FLUID_OPCODES BUILD_FLUID_OPCODES is disabled JACK_HEADER="", so disabling BUILD_JACK_OPCODES BUILD_JACK_OPCODES is disabled GMM_HEADER="", so disabling BUILD_LINEAR_ALGEBRA_OPCODES BUILD_LINEAR_ALGEBRA_OPCODES is disabled LIBLO_LIBRARY="LIBLO_LIBRARY-NOTFOUND", so disabling BUILD_OSC_OPCODES OSC_HEADER="", so disabling BUILD_OSC_OPCODES BUILD_OSC_OPCODES is disabled PNG_FOUND="FALSE", so disabling BUILD_IMAGE_OPCODES BUILD_IMAGE_OPCODES is disabled BUILD_PYTHON_OPCODES is enabled LUA_H_PATH="LUA_H_PATH-NOTFOUND", so disabling BUILD_LUA_OPCODES BUILD_LUA_OPCODES is disabled 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 BUILD_FAUST_OPCODES is disabled BUILD_VST4CS_OPCODES is disabled STK_FOUND="STK_FOUND-NOTFOUND", so disabling BUILD_STK_OPCODES STK_INCLUDE_DIR="STK_INCLUDE_DIR-NOTFOUND", so disabling BUILD_STK_OPCODES BUILD_STK_OPCODES is disabled ## 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 ALSA_HEADER="", so disabling USE_ALSA ALSA_LIBRARY="ALSA_LIBRARY-NOTFOUND", so disabling USE_ALSA USE_ALSA is disabled Building Windows MME plugin(rtwinmm). PULSEAUDIO_HEADER="", so disabling USE_PULSEAUDIO PULSEAUDIO_LIBRARY="PULSEAUDIO_LIBRARY-NOTFOUND", so disabling USE_PULSEAUDIO PULSESIMPLE_LIBRARY="PULSESIMPLE_LIBRARY-NOTFOUND", so disabling USE_PULSEAUDIO USE_PULSEAUDIO is disabled PORTAUDIO_INCLUDE_PATH="PORTAUDIO_INCLUDE_PATH-NOTFOUND", so disabling USE_PORTAUDIO USE_PORTAUDIO is disabled Not building Portaudio Driver... Portaudio v19 Found: false PORTTIME_INCLUDE_PATH="", so disabling USE_PORTMIDI USE_PORTMIDI is disabled JACK_HEADER="", so disabling USE_JACK JACK_LIBRARY="JACK_LIBRARY-NOTFOUND", so disabling USE_JACK USE_JACK is disabled FLTK_FOUND="FALSE", so disabling USE_FLTK USE_FLTK is disabled FLTK_FOUND="FALSE", so disabling BUILD_VIRTUAL_KEYBOARD BUILD_VIRTUAL_KEYBOARD is disabled Building C++ interface library Found SWIG: C:/Source/swigwin-2.0.12/swig.exe (found suitable version "2.0.12", minimum required is "2.0") Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) (found version "1.7.0.60") C:/Python27/libs/libpython27.a BUILD_PYTHON_INTERFACE is enabled JNI_FOUND="FALSE", so disabling BUILD_JAVA_INTERFACE JAVA_FOUND="FALSE", so disabling BUILD_JAVA_INTERFACE BUILD_JAVA_INTERFACE is disabled LUA_H_PATH="LUA_H_PATH-NOTFOUND", so disabling BUILD_LUA_INTERFACE BUILD_LUA_INTERFACE is disabled Building csLadspa BUILD_CSBEATS is enabled PD_HEADER_PATH="PD_HEADER_PATH-NOTFOUND", so disabling BUILD_PD_CLASS BUILD_PD_CLASS is disabled BUILD_WINSOUND is disabled Boost version: 1.55.0 Found SWIG: C:/Source/swigwin-2.0.12/swig.exe (found version "2.0.12") FLTK_FOUND="FALSE", so disabling BUILD_CSOUND_AC EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC BUILD_CSOUND_AC is disabled EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC_PYTHON_INTERFACE BUILD_CSOUND_AC_PYTHON_INTERFACE is disabled LUA_H_PATH="LUA_H_PATH-NOTFOUND", so disabling BUILD_CSOUND_AC_LUA_INTERFACE EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC_LUA_INTERFACE BUILD_CSOUND_AC_LUA_INTERFACE is disabled Boost version: 1.55.0 BUILD_CSOUNDVST is disabled Not Building csound~ for Max/MSP MAX_SDK_ROOT is not defined CUNIT_LIBRARY="CUNIT_LIBRARY-NOTFOUND", so disabling BUILD_TESTS BUILD_TESTS is disabled Configuring done Generating done 2014-06-23 0:12 GMT+02:00 Oeyvind Brandtsegg |
Date | 2014-06-23 13:15 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None |
Date | 2014-06-23 13:27 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None |
Date | 2014-06-23 13:47 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I would suspect an incorrect Csound header file somewhere. An old version or a different version, perhaps installed and not removed. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jun 23, 2014 at 8:27 AM, <jpff@cs.bath.ac.uk> wrote:
|
Date | 2014-06-23 13:52 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Thanks for the suggestion, but it is unlikely, it's on a new computer and in terms of Csound I've only installed Csound 6.03 and pulled the latest source from git. 2014-06-23 14:47 GMT+02:00 Michael Gogins |
Date | 2014-06-23 18:29 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Got it building by disabling build of python interface and a good bunch of other options. Working my way back up... What is the cxx_interface option for? Is it the mother of interfacing to all other languages, or for one specific language (C++)? 2014-06-23 14:52 GMT+02:00 Oeyvind Brandtsegg |
Date | 2014-06-23 18:36 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] build question/errror |
That is a C++ file generated by SWIG. On 23 Jun 2014, at 18:29, Oeyvind Brandtsegg wrote: > Got it building by disabling build of python interface and a good > bunch of other options. Working my way back up... > What is the cxx_interface option for? Is it the mother of interfacing > to all other languages, or for one specific language (C++)? > > 2014-06-23 14:52 GMT+02:00 Oeyvind Brandtsegg |
Date | 2014-06-23 20:37 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
I meant to ask if it is needed to enable building of other interfaces (ee.g. to Python), and I see now that it is. If I enable BUILD_CXX_INTERFACE my build fails as shown below (same as before). I've tried both with swig 2.0.12 and swig 3.0.2 91%] Building CXX object interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj cd /d C:\Source\csound-build\interfaces && C:\MinGW\bin\g++.exe -DUSE_LRINT -DWIN32 -D_CSOUND_RELEASE_ -D_csnd6_EXPORTS -ffast-math -mfpmath=sse -msse2 -fomit -frame-pointer -mstackrealign @CMakeFiles/_csnd6.dir/includes_CXX.rsp -Wno-format -o CMakeFiles\_csnd6.dir\python_interfacePYTHON_wrap.cxx.obj -c C:\Source\cs ound-build\interfaces\python_interfacePYTHON_wrap.cxx In file included from c:\mingw\include\io.h:27:0, from C:/Python27/include/pyconfig.h:68, from C:/Python27/include/Python.h:8, from C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:155: C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx: In function 'PyObject* _wrap_CsoundMidiInputBuffer_SendMessage__SWIG_0(PyObject*, PyObject*)' : C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:32728:11: error: 'class CsoundMidiInputBuffer' has no member named 'SendMessageA' (arg1)->SendMessage(arg2); ^ C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx: In function 'PyObject* _wrap_CsoundMidiInputBuffer_SendMessage__SWIG_1(PyObject*, PyObject*)' : C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:32785:11: error: 'class CsoundMidiInputBuffer' has no member named 'SendMessageA' (arg1)->SendMessage(arg2,arg3,arg4,arg5); ^ interfaces\CMakeFiles\_csnd6.dir\build.make:77: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj' failed mingw32-make[2]: *** [interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj] Error 1 mingw32-make[2]: Leaving directory 'c:/Source/csound-build' CMakeFiles\Makefile2:901: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/all' failed mingw32-make[1]: *** [interfaces/CMakeFiles/_csnd6.dir/all] Error 2 mingw32-make[1]: Leaving directory 'c:/Source/csound-build' Makefile:148: recipe for target 'all' failed mingw32-make: *** [all] Error 2 2014-06-23 19:36 GMT+02:00 Victor Lazzarini |
Date | 2014-06-23 20:44 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
See this: http://stackoverflow.com/questions/8444515/is-preprocessor-blindly-replace-the-defines If the CsoundMidiInputBuffer class indeed has a SendMessage function, rename it to sendMessage and all should be well. NOTA BENE: Yet another example of how macros put poor people into hell for days at a time.
Regards, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jun 23, 2014 at 3:37 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: I meant to ask if it is needed to enable building of other interfaces |
Date | 2014-06-23 20:46 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] build question/errror |
yes, that's exactly what it is, SWIG's autogenerated interface for Python python_interfacePYTHON_wrap.cxx The trouble seems to be with the wrapping of CsoundMidiInputBuffer class. It could be just a matter of regenerating the file. Try deleting C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx and building again Victor On 23 Jun 2014, at 20:37, Oeyvind Brandtsegg wrote: > I meant to ask if it is needed to enable building of other interfaces > (ee.g. to Python), and I see now that it is. > If I enable BUILD_CXX_INTERFACE my build fails as shown below (same as before). > I've tried both with swig 2.0.12 and swig 3.0.2 > > > > 91%] Building CXX object > interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj > cd /d C:\Source\csound-build\interfaces && C:\MinGW\bin\g++.exe > -DUSE_LRINT -DWIN32 -D_CSOUND_RELEASE_ -D_csnd6_EXPORTS -ffast-math > -mfpmath=sse -msse2 -fomit > -frame-pointer -mstackrealign @CMakeFiles/_csnd6.dir/includes_CXX.rsp > -Wno-format -o > CMakeFiles\_csnd6.dir\python_interfacePYTHON_wrap.cxx.obj -c > C:\Source\cs > ound-build\interfaces\python_interfacePYTHON_wrap.cxx > In file included from c:\mingw\include\io.h:27:0, > from C:/Python27/include/pyconfig.h:68, > from C:/Python27/include/Python.h:8, > from > C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:155: > C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx: In > function 'PyObject* > _wrap_CsoundMidiInputBuffer_SendMessage__SWIG_0(PyObject*, PyObject*)' > : > C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:32728:11: > error: 'class CsoundMidiInputBuffer' has no member named > 'SendMessageA' > (arg1)->SendMessage(arg2); > ^ > C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx: In > function 'PyObject* > _wrap_CsoundMidiInputBuffer_SendMessage__SWIG_1(PyObject*, PyObject*)' > : > C:\Source\csound-build\interfaces\python_interfacePYTHON_wrap.cxx:32785:11: > error: 'class CsoundMidiInputBuffer' has no member named > 'SendMessageA' > (arg1)->SendMessage(arg2,arg3,arg4,arg5); > ^ > interfaces\CMakeFiles\_csnd6.dir\build.make:77: recipe for target > 'interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj' > failed > mingw32-make[2]: *** > [interfaces/CMakeFiles/_csnd6.dir/python_interfacePYTHON_wrap.cxx.obj] > Error 1 > mingw32-make[2]: Leaving directory 'c:/Source/csound-build' > CMakeFiles\Makefile2:901: recipe for target > 'interfaces/CMakeFiles/_csnd6.dir/all' failed > mingw32-make[1]: *** [interfaces/CMakeFiles/_csnd6.dir/all] Error 2 > mingw32-make[1]: Leaving directory 'c:/Source/csound-build' > Makefile:148: recipe for target 'all' failed > mingw32-make: *** [all] Error 2 > > > > > 2014-06-23 19:36 GMT+02:00 Victor Lazzarini |
Date | 2014-06-23 20:54 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None |
Date | 2014-06-23 21:00 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] build question/errror |
yes, this does look like windows.h trouble. But the question is: why does it not affect your build (Mike)? On 23 Jun 2014, at 20:44, Michael Gogins wrote: > See this: http://stackoverflow.com/questions/8444515/is-preprocessor-blindly-replace-the-defines > > If the CsoundMidiInputBuffer class indeed has a SendMessage function, rename it to sendMessage and all should be well. > > NOTA BENE: Yet another example of how macros put poor people into hell for days at a time. > > Regards, > Mike > > > > > ----------------------------------------------------- > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Mon, Jun 23, 2014 at 3:37 PM, Oeyvind Brandtsegg |
Date | 2014-06-23 21:11 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I have no idea, sorry. Next time I rebuild Csound, I will email a sample compiler command for this file. Anyway, perhaps it does affect my build. My most recent build was several days ago although, to be sure, there do not seem to have been many changes in GIT since then.
If we are building with a different set of third-party dependencies, that could introduce this kind of problem. So I will send you my CMake cache in any event. Regards,
Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jun 23, 2014 at 4:00 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: yes, this does look like windows.h trouble. But the question is: why does it not affect your build (Mike)? |
Date | 2014-06-23 21:25 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Attachments | compilelog6.txt None None |
Yes, that would be interesting. In the meantime, I built with -k, and the output is attached. Can I assume that the interfaces are working correctly with this build? Oeyvind 2014-06-23 22:11 GMT+02:00 Michael Gogins |
Date | 2014-06-24 11:33 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
... answering myself after reading the make manual, no obviously the interfaces will not be built... but I got the file csnd6.dll after building, which I thought was the Python interface (no?) Regarding Michael's suggestion of renaming the SendMessage function in CsoundMidiInputBuffer, in which file can I find this class? I am rather eager to get this error fixed now that I'm so close to complete the build. 2014-06-23 22:25 GMT+02:00 Oeyvind Brandtsegg |
Date | 2014-06-24 12:23 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | CMakeCache.txt None None |
csnd6.dll is CppSound, which contains extra C++ interfaces building on csound.hpp. These extras are in turn used by the various SWIG-generated interfaces, by CsoundVST, etc. You can find where symbols are defined using grep (part of MSys) like this:
restore@sorabji /c/Users/mike/csound-csound6-git $ grep SendMessage */*.c* interfaces/cs_glue.cpp:void CsoundMidiInputBuffer::SendMessage(int msg) interfaces/cs_glue.cpp:void CsoundMidiInputBuffer::SendMessage(int status, int channel,
I have attached my CMakeCache.txt. Following are my build commands for the Java wrapper .cxx file (make VERBOSE=1). Hope this helps, Mike
cd /C/Users/mike/csound-csound6-git/interfaces && /c/Program_Files_x86/swigwin-3.0.0/swig.exe -java -package csnd6 -includeall -D__BUILDING_LIBCSOUND -DHAVE_PTH READ_SPIN_LOCK -DHAVE_PTHREAD_BARRIER_INIT -DUSE_OPENMP -DPARCS -DGNU_GETTEXT -DHAVE_SOCKETS -DHAVE_DIRENT_H -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHA
VE_SYS_TIME_H -DHAVE_SYS_TYPES_H -includeall -verbose -DUSE_DOUBLE -outdir C:/Users/mike/csound-csound6-git/interfaces -c++ -ID:/msys/local/opt/libsndfile/inclu de -IC:/Users/mike/csound-csound6-git/./H -IC:/Users/mike/csound-csound6-git/./include -IC:/Users/mike/csound-csound6-git/./Engine -IC:/Users/mike/csound-csound
6-git/. -IC:/Users/mike/csound-csound6-git -IC:/Users/mike/csound-csound6-git/include -IC:/Users/mike/csound-csound6-git/interfaces -IC:/Python27/include "-IC:/ Program Files (x86)/Java/jdk1.7.0_21/include" "-IC:/Program Files (x86)/Java/jdk1.7.0_21/include/win32" "-IC:/Program Files (x86)/Java/jdk1.7.0_21/include" -o C
:/Users/mike/csound-csound6-git/interfaces/java_interfaceJAVA_wrap.cxx C:/Users/mike/csound-csound6-git/interfaces/java_interface.i Language subdirectory: java Search paths: .\
D:/msys/local/opt/libsndfile/include\ C:/Users/mike/csound-csound6-git/./H\ C:/Users/mike/csound-csound6-git/./include\ C:/Users/mike/csound-csound6-git/./Engine\ C:/Users/mike/csound-csound6-git/.\
C:/Users/mike/csound-csound6-git\ C:/Users/mike/csound-csound6-git/include\ C:/Users/mike/csound-csound6-git/interfaces\ C:/Python27/include\ C:/Program Files (x86)/Java/jdk1.7.0_21/include\
C:/Program Files (x86)/Java/jdk1.7.0_21/include/win32\ C:/Program Files (x86)/Java/jdk1.7.0_21/include\ .\swig_lib\java\ c:\Program_Files_x86\swigwin-3.0.0\Lib\java\
.\swig_lib\ c:\Program_Files_x86\swigwin-3.0.0\Lib\ Preprocessing... Starting language-specific parse... Processing types... C++ analysis... Processing nested classes...
Generating wrappers... CppSound.hpp(37) : Warning 453: Can't apply (std::vector< double > *INPUT). No typemaps are defined. CppSound.hpp(53) : Warning 813: Warning for CppSound proxy: Base CsoundFile ignored. Multiple inheritance is not supported in Java.
"/c/Program Files (x86)/CMake 2.8/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /C/Users/mike/csound-csound6-git /C/Users/mike/csound-csound6-git/interfaces /C/Users/mike/csound-csound6-git /C/Users/mike/csound-csound6-git/interfaces /C/Users/mike/csound-csound6-git/interfaces/CMakeFiles/_jcsound6.dir/DependInfo.cma
ke --color= Dependee "C:/Users/mike/csound-csound6-git/interfaces/java_interfaceJAVA_wrap.cxx" is newer than depender "interfaces/CMakeFiles/_jcsound6.dir/java_interfaceJAV A_wrap.cxx.obj".
Dependee "C:/Users/mike/csound-csound6-git/interfaces/java_interfaceJAVA_wrap.h" is newer than depends file "c:/Users/mike/csound-csound6-git/interfaces/CMakeFi les/_jcsound6.dir/depend.internal".
Clearing dependencies in "c:/Users/mike/csound-csound6-git/interfaces/CMakeFiles/_jcsound6.dir/depend.make". Scanning dependencies of target _jcsound6 make[2]: Leaving directory `/c/Users/mike/csound-csound6-git'
make -f interfaces/CMakeFiles/_jcsound6.dir/build.make interfaces/CMakeFiles/_jcsound6.dir/build make[2]: Entering directory `/c/Users/mike/csound-csound6-git' "/c/Program Files (x86)/CMake 2.8/bin/cmake.exe" -E cmake_progress_report /C/Users/mike/csound-csound6-git/CMakeFiles
[ 82%] Building CXX object interfaces/CMakeFiles/_jcsound6.dir/java_interfaceJAVA_wrap.cxx.obj cd /C/Users/mike/csound-csound6-git/interfaces && /D/mingw32-4.8.1/bin/g++.exe -DHAVE__SPRINTF_L -DHAVE__STRTOD_L -DUSE_LRINT -DWIN32 -D_CSOUND_RELEASE_ -D_jc
sound6_EXPORTS -ggdb -O2 -std=gnu++11 -fopenmp -march=nocona -mstackrealign -DNDEBUG -I/usr/local/include -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -mstackrealign -fopenmp @CMakeFiles/_jcsound6.dir/includes_CXX.rsp -Wno-format -o CMakeFiles/_jcsound6.dir/java_interfaceJAVA_wrap.cxx.obj -c /C/Users/mike/c
sound-csound6-git/interfaces/java_interfaceJAVA_wrap.cxx Linking CXX shared module ../_jcsound6.dll cd /C/Users/mike/csound-csound6-git/interfaces && "/c/Program Files (x86)/CMake 2.8/bin/cmake.exe" -E remove -f CMakeFiles/_jcsound6.dir/objects.a
cd /C/Users/mike/csound-csound6-git/interfaces && /D/mingw32-4.8.1/bin/ar.exe cr CMakeFiles/_jcsound6.dir/objects.a @CMakeFiles/_jcsound6.dir/objects1.rsp cd /C/Users/mike/csound-csound6-git/interfaces && /D/mingw32-4.8.1/bin/g++.exe -Wl,--add-stdcall-alias -fopenmp -shared -o ../_jcsound6.dll -Wl,--major-imag
e-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles/_jcsound6.dir/objects.a -Wl,--no-whole-archive "/C/Program Files (x86)/Java/jdk1.7.0_21/lib/j awt.lib" "/C/Program Files (x86)/Java/jdk1.7.0_21/lib/jvm.lib" ../libcsound64.dll.a /D/msys/local/opt/libsndfile/bin/libsndfile-1.dll ../libcsnd6.dll.a ../libcs
ound64.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 Building JAVA package csnd6.jar cd /C/Users/mike/csound-csound6-git/interfaces && cmake -E make_directory ./csnd6
cd /C/Users/mike/csound-csound6-git/interfaces && "/C/Program Files (x86)/Java/jdk1.7.0_21/bin/javac.exe" *.java -source 1.6 -target 1.6 -d . warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning cd /C/Users/mike/csound-csound6-git/interfaces && "/C/Program Files (x86)/Java/jdk1.7.0_21/bin/jar.exe" cf ../csnd6.jar csnd6 ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Jun 24, 2014 at 6:33 AM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: ... answering myself after reading the make manual, no obviously the |
Date | 2014-06-24 17:02 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Renaming all occurences of SendMessage to sendMessage in both cs_glue.cpp and cs_glue.hpp allowed compilation without errors here. Thanks for all help ! Mike, is it necessary to explicitly include all those subdirs of the csound source directory? (e.g. C:/Users/mike/csound-csound6- git/./include\) Now, it would be nice if I could modify the install script (mingw32-make install) to copy all files needed by csound in one operation.. Oeyvind 2014-06-24 13:23 GMT+02:00 Michael Gogins |
Date | 2014-06-24 18:34 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I do not use or maintain the mingw32-make install script. Since I do maintain the Windows installer, I build that and use it. But it would only work for you if you kept all the parts in the same directories as I do, or edited the installer script. I will say that I have tried to make it possible for people to edit the installer script (not to be confused with the mingw32-make install script). Or, you can look at my installer script to see what you would need to copy and where it should go, it is all there. If I were you I would just run Csound out of the build directory. This is what I do on Linux. It doesn't work for me on Windows because of some FLAC dll loading problem but this can probably be overcome by putting that DLL into the Csound build directory.
Hope this helps, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Jun 24, 2014 at 12:02 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: Renaming all occurences of SendMessage to sendMessage in both |
Date | 2014-06-24 18:48 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Thanks for the tips, still, it would be nice to be able to edit the mingw installer script. Do forgive my ignorance, but I do not know where it is. ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2014-06-24 18:59 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
csound / installer / windows / csound6.iss Best, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Jun 24, 2014 at 1:48 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: Thanks for the tips, |
Date | 2014-06-24 19:00 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
P.S. if you fix up the mingw32-make install script, let me know. I could use it myself! Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Jun 24, 2014 at 1:59 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2014-06-24 19:04 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
That is the one I'm asking about where to find..., I find the cmake_install.cmake, but I'm not aware of how it is generated. I know what I would edit in the script if I could only get help finding out where it is generated from. 2014-06-24 20:00 GMT+02:00 Michael Gogins |
Date | 2014-06-24 19:16 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I have no idea! Try looking in the various CMake directories. The makefile, also, should point to it. Best, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Jun 24, 2014 at 2:04 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: That is the one I'm asking about where to find..., |
Date | 2014-06-24 19:22 |
From | Steven Yi |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I had emailed the list about doing this a while back. The make files are generated from the CMakeFiles.txt files. The install command tells the generator to put an artifact in a given directory. We would need to modify the scripts so that for windows only, to install lib dependencies into the bin folder. I've just returned from a trip and am moving apartments on Friday. I'd take a look but won't have free time until after this weekend. On Jun 24, 2014 2:04 PM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> wrote:
That is the one I'm asking about where to find..., |
Date | 2014-06-25 00:07 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Ah, ok, I see, the CMakeLists.txt in all the different subdirs. I've looked around now, and I find it hard to decode exactly where each file is collected into the appropriate list. What I've noticed is that most things are installed correctly, but these are missing: csnd6.dll should go into /bin csnd6.py should go into/bin csound64.dll should go into /bin libsndfile-1.dll should go into /bin And also the plugins are installed into /lib/csound/plugins64-6.0 whereas I think they should rather go into /plugins64 All paths above is relativve to the Csound install dir There might be more files missing, as I currently did not build with fltk, fluidsynth, p5, wiimote, osc, and perhaps a few others. I'll be traveling from Saturday and will be unable to do anything serious from then until mid July, but still will try to follow email and participate as much as I can. best Oeyvind 2014-06-24 20:22 GMT+02:00 Steven Yi |
Date | 2014-06-25 00:19 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
Could you send me one of your odd cabbage patches? Best, On Jun 24, 2014 7:07 PM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> wrote:
Ah, ok, I see, the CMakeLists.txt in all the different subdirs. |
Date | 2014-06-25 00:34 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
It can happen with very simple Cabbage plugins too, so it's not specific to what Csound features I use. It is more likely related to combination of Csound with other tools, and/or the combination of Csound and Cabbage. One particularly nasty combination is MaxForLive devices and Cabbage VSTs under Ableton Live. The situation under Reaper is better, no apparent problems, unless I want to combine Cabbage with some things running in traditional Csound. Still, I do need to understand what causes these problems and solve them in a way that I can make instruments for other musicians (that are a bit less tech-savvy) Oeyvind 2014-06-25 1:19 GMT+02:00 Michael Gogins |
Date | 2014-06-25 01:00 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
I have already determined that there is some sort of DLL problem with Reaper, which is built with some of the same libraries that Csound uses, but evidently a different code generation model, or perhaps statically linked with some library that Csound loads dynamically. I did not pursue the investigation because I myself do not use Reaper, I only needed to test CsoundVST and I can use VSTHost for that. Please send me one of your odd patches and I will test it in VSTHost and perhaps pursue the Reaper question further. Best, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Jun 24, 2014 at 7:34 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: It can happen with very simple Cabbage plugins too, so it's not |
Date | 2014-06-25 08:48 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Hi Mike, There is nothing special with any of the patches I use with Cabbage. I've attached a simple bandpass effect, but as I said, there is nothing special with it. This instrument does not crash any more often than any other instrument. Also, the problem at my end is not so evident with Reaper, but with Live and MaxForLive. My guess is that it has to do with load/init order somehow. 2014-06-25 2:00 GMT+02:00 Michael Gogins |
Date | 2014-06-25 10:21 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
Well, I don't have live or Max for live, so I don't know how much I can do. But I had to change init order in Csound vst for some hosts not to crash years ago. Best, On Jun 25, 2014 3:48 AM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> wrote:
Hi Mike, |
Date | 2014-06-25 10:55 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Yes, and there was also init order issues with the csound~ Max object earlier. It seems there are a number of things that can go wrong at load time... 2014-06-25 11:21 GMT+02:00 Michael Gogins |
Date | 2014-06-25 10:59 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build question/errror |
Btw. I saw that a recent Reaper update (4.62) has some fixes that may relate more or less to the problems you described. ( avoid msvcrt.dll dependency in win32 builds , and fixed some VST plugins crashing on exit) 2014-06-25 11:55 GMT+02:00 Oeyvind Brandtsegg |
Date | 2014-06-25 12:46 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build question/errror |
Attachments | None None |
Thanks for the information, I will certainly try the latest Reaper. Best, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Jun 25, 2014 at 5:59 AM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: Btw. I saw that a recent Reaper update (4.62) has some fixes that may |