[Cs-dev] build error
Date | 2015-04-08 09:21 |
From | Oeyvind Brandtsegg |
Subject | [Cs-dev] build error |
I haven't been building in a while, so there might be something that I forgot to do. Still, I wanted to ask for help on this error. Is there likely something I have not set up correctly, or is it an actual error? C:\Source\csound-build>mingw32-make "C:\Program Files (x86)\CMake_3\bin\cmake.exe" -HC:\Source\csound -BC:\Source\csound-build --check-build-system CMakeFiles\Makefile.cmake 0 "C:\Program Files (x86)\CMake_3\bin\cmake.exe" -E cmake_progress_start C:\Source\csound-build\CMakeFiles C:\Source\csound-build\CMakeFiles\progress.ma rks mingw32-make -f CMakeFiles\Makefile2 all mingw32-make[1]: Entering directory 'C:/Source/csound-build' mingw32-make -f CMakeFiles\csound64.dir\build.make CMakeFiles/csound64.dir/depend mingw32-make[2]: Entering directory 'C:/Source/csound-build' "C:\Program Files (x86)\CMake_3\bin\cmake.exe" -E cmake_progress_report C:\Source\csound-build\CMakeFiles 4 [ 1%] Generating csound_orcparse.c "C:\Program Files (x86)\GnuWin32\bin\bison.exe" -pcsound_orc -d --report=itemset -o C:/Source/csound-build/csound_orcparse.c C:/Source/csound/Engine/c sound_orc.y C:/Source/csound/Engine/csound_orc.y: konflikter: 4 skift/reduksjon, 18 reduksjon/reduksjon C:\Program Files (x86)\GnuWin32\bin\bison.exe: m4: No such file or directory CMakeFiles\csound64.dir\build.make:61: recipe for target 'csound_orcparse.c' failed mingw32-make[2]: *** [csound_orcparse.c] Error 1 mingw32-make[2]: Leaving directory 'C:/Source/csound-build' CMakeFiles\Makefile2:93: recipe for target 'CMakeFiles/csound64.dir/all' failed mingw32-make[1]: *** [CMakeFiles/csound64.dir/all] Error 2 mingw32-make[1]: Leaving directory 'C:/Source/csound-build' Makefile:149: recipe for target 'all' failed mingw32-make: *** [all] Error 2 C:\Source\csound-build> I'm on windows, running cmake-gui from the start menu, configure and generate without error. Then I run mingw32-make on the command line (the windows cmd.exe terminal). best Oeyvind -- 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 ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2015-04-08 09:47 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] build error |
Looks like you don't have bison Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 8 Apr 2015, at 09:21, Oeyvind Brandtsegg |
Date | 2015-04-08 09:54 |
From | jpff |
Subject | Re: [Cs-dev] build error |
Your bison is missing te m4 macro system ==John ff ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2015-04-08 10:11 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build error |
I had to set the path to bison.exe manually in cmake-gui, is there perhaps an include or similar that I need to set somewhere? 2015-04-08 10:54 GMT+02:00 jpff |
Date | 2015-04-08 10:22 |
From | Rory Walsh |
Subject | Re: [Cs-dev] build error |
Hi Oeyvind, in my setup I use the bison that ships with MSYS. And as MSYS is in my system path so I don't have to add anything special to my cmake settings. In fact, it might be a conflict between the two versions that is causing you ire. On 8 April 2015 at 10:11, Oeyvind Brandtsegg |
Date | 2015-04-08 13:31 |
From | Michael Gogins |
Subject | Re: [Cs-dev] build error |
Attachments | None None |
Rory is correct. There may be other parts of the GNU system that you also need, I did this so long ago I can't remember. MinGW-builds site has MSYS in "external binaries," you could try that. If that doesn't have what you need try the MinGW main site. I do recall that I installed MSYS binutils and MSYS DTK. I don't know if you will need to do that though. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Apr 8, 2015 at 5:22 AM, Rory Walsh <rorywalsh@ear.ie> wrote: Hi Oeyvind, in my setup I use the bison that ships with MSYS. And as |
Date | 2015-04-08 13:43 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] build error |
Ok, thanks, I know I had this working the last time I built Csound myself (some time last summer). I think I'll try installing the toolchain again from scratch. 2015-04-08 14:31 GMT+02:00 Michael Gogins |
Date | 2015-04-08 13:51 |
From | Rory Walsh |
Subject | Re: [Cs-dev] build error |
I put these together the last time I installed from scratch, you might find them useful: Windows MinGW32 ---------------------------- A basic working knowledge of the Windows command prompt is assumed. If for any reason CMake does not find a given library, even though your have specified the correct path using CMake GUI you can save the Custom.cmake.ex file in the Csound home directory as as Custom.cmake and add the paths directly. ### Steps (Vanilla build) 1. Download and install MSYS (http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe) 2. Download and install MinGW (http://sourceforge.net/projects/mingwbuilds). -When installing choose architecture i686, or x32. 3. Download and install Git(http://git-scm.com/download/win) 4. Download and install libsndfile (32bit) (http://www.mega-nerd.com/libsndfile/) 5. Download and install cmake (http://www.cmake.org/download/) Open the Windows command prompt and cd to a folder you wish to create your Csound repository in. Then run: `git clone https://github.com/csound/csound.git` `cd csound` `mkdir build` `cd build` The run cmake-gui from the command line: `cmake-gui` Beside "Where the source code is:" in cmake-gui browse for the Csound source directory. Underneath it at the "Where to build the binaries" select the newly created build directory. Now type sndfile into the search field and you should see a few cmake entries concerned with libsndfile. Browse for the correct include folder and library file; libsndfile-1.dll. Search for pthread and add the libwinpthread-1.dll that's contained in the mingw bin directory. Otherwise, you can link to a version of pthread you have installed somewhere on your PC. With this done hit configure. At this point you may be greeted with a cmake-gui dialogue asking which generator to use. Select the "MinGW Makefiles" generator. If the configuration command fails you may need to set the CMAKE_C_COMPILER and CMAKE_CXX_COMPILER entries. Simply click the add entry button and add two new FILEPATH entries, CMAKE_C_COMPILER should point towards your installed gcc.exe, and CMAKE_CXX_COMPILER should point towards g++.exe. These files are found in your MinGW/bin directory. Go back to the command prompt and from your build directory run: `mingw32-make` If everything went Ok, you will now have binaries for most vanilla build of Csound possible. Keep reading if you wish to extend this basic build. Note: you may need to pass the actual pthread file name to CMakeLists.txt if you wish to biuld statically to pthread. For example(ca. line 420): if(NOT PTHREAD_LIBRARY AND WIN32) find_library(PTHREAD_LIBRARY libwinpthread-1.dll) endif() ### Steps (adding realtime audio and MIDI) 1. Download portaudio (http://portaudio.com/). 2. Open MSYS shell and cd to portaudio directory. Then run 3. './configure' 4. 'make' If you wish to build with support for ASIO run the following command, replacing the path to your ASIO SDK with your own. './configure --with-host_os=mingw --with-winapi=asio [--with-asiodir=/usr/local/asiosdk2]' 'make' If make has any problems, you can try adding the following directories to your ASIOSDK folders: ASIOSDK2.3\host\pc\.libs C:\SDKs\ASIOSDK2.3\host\.libs ASIOSDK2.3\common\.libs 5. Download and portmidi (http://portmedia.sourceforge.net.), Open command prompt and cd to portmidi directory 6. `mkdir build` 7. `cd build` 8. `cmake ../ -G "Mingw Makefiles"` 9. `mingw32-make` 9. Open up cmake once more and make sure the Csound cmake configuration is open. Then search for entries with portaudio and portmidi in them. Browse for the correct include directories for each, and select the libportaudio-2.dll, and libportmidi.dll libraries. Make a copy of libportaudio-2.dll and place it into the Csound build directory. You may also need to create a new entry called 'PORTTIME_INCLUDE_PATH' and pass it the path to porttime which resides in portmidi directory. CMake will disable the building of the rtpa.dll is it can't find libportaudio-2.dll in the build dir. Now run configure and generate. 10. Open the command prompt and cd to the Csound build directory. Then run `mingw32-make` Download and install cmake Run cmake from the csound dir and configure Csound to build using MinGW Makefiles. For this minimal you'll need to disable quite a few features. Run generate. cd to csound build directory and run mingw32-make ### Steps (adding support for OSC, FLTK and CHUA opcodes) 1. Download liblo (http://liblo.sourceforge.net/) 2. Open MSYS, cd to the liblo directory and: `./configure -enable-static -disable-shared` `make` 3. Download FLTK (http://www.fltk.org/software.php) 4. Open MSYS and cd to the fltk folder. Then run `./configure --enable-threads --enable-gl --enable-shared --enable-localjpeg --enable-localzlib –enable-localpng` `make` 5. Download boost 6. Add path to boost in CMakeLists.txt, i.e., list(APPEND CMAKE_SYSTEM_INCLUDE_PATH "C:/Users/rory/Documents/sourcecode/boost_1_56_0") 7. Open cmake-gui once again and make sure the Csound cmake configuration is open. Then search for entries with OSC. You should enable building of the OSC opcodes and provide a path to the liblo include directory. Then search for fltk and provide paths and links to the appropriate libraries. Finally, serach for CHUA and enable the building of the CHUA opcodes. Then run configure and generate. 8. Go back to command prompt, cd to Csound build directory and run: `mingw32-make` mingw64 you my need to install java sdk to build portmidi now if you have trouble building the fltk opcodes because FL/Fl.H is not found, try moving hte FL folder in the fltk directory to C:\mingw64\x86_64-w64-mingw32\include ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-deve |