Re: [Csnd-dev] Error trying to build Csound7 for Daisy

Iain Duncan <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CAN9NcLxtw-iJRSbgSU3hYwfSGRPw0ZxwE4a13rFmy46Hhe1wfw@mail.gmail.com>
Thanks Scott, that did it! I've got libcsound.a building now. Will have to
pick up the next steps in a day or two.

Much appreciated!
iain

On Mon, Nov 18, 2024 at 7:25 PM Scott Sitar <[email protected]> wrote:

> I had that issue as well, since I kind of hand-crafted my dev
> environment.  It turns out there's a cmake variable you can set to point it
> at whatever bison path you like, so in your cmake invocation, you can do:
>
> cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want
> <stuff> <stuff>
>
> That will set all the variables in the generated makefile properly, so
> just running make afterwards should work.
>
> Scott
>
> On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <[email protected]>
> wrote:
>
>> Thanks Scott. Yes, I am running ancient Bison. I've installed a new one
>> use brew (I'm on MacOS), but it tells me the following:
>>
>>
>>   bison is keg-only, which means it was not symlinked into /opt/homebrew,
>>   because macOS already provides this software and installing another
>> version in
>>   parallel can cause all kinds of trouble.
>>
>>   If you need to have bison first in your PATH, run:
>>     echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
>>
>>   For compilers to find bison you may need to set:
>>     export LDFLAGS="-L/opt/homebrew/opt/bison/lib"
>>
>> I don't really know cmake, wondering if anyone can tell me the
>> incantations to get cmake's generated make to use my newer Bison?
>>
>> thanks!
>> iain
>>
>> On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> What version of bison are you running?  (bison --version)
>>>
>>> On MacOS, the one that ships with XCode by default is quite old, and it
>>> gave me errors when I tried to use it as well.  I manually installed the
>>> latest (at the time) version, 3.8.2, and that worked much better.
>>>
>>> Best,
>>> Scott
>>>
>>> On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <[email protected]>
>>> wrote:
>>>
>>>> Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm
>>>> trying to build the libcsound for Daisy and running into errors.
>>>>
>>>> What I have done:
>>>> - clone the develop branch of csound
>>>> - followed instructions in the Daisy examples README
>>>>
>>>> the cmake command runs fine. Then when I run "make", I get the errors
>>>> pasted below. This looks like a code error, is there perhaps a tag or
>>>> branch I need to checkout? (or something else I am doing wrong?)
>>>>
>>>> thanks!
>>>> iain
>>>>
>>>>
>>>> iainduncan@macmini build % make
>>>> /opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound
>>>> -B/Users/iainduncan/Documents/csound/build --check-build-system
>>>> CMakeFiles/Makefile.cmake 0
>>>> /opt/homebrew/bin/cmake -E cmake_progress_start
>>>> /Users/iainduncan/Documents/csound/build/CMakeFiles
>>>> /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
>>>> /Applications/Xcode.app/Contents/Developer/usr/bin/make  -f
>>>> CMakeFiles/Makefile2 all
>>>> /Applications/Xcode.app/Contents/Developer/usr/bin/make  -f
>>>> CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
>>>> [  0%] Generating csound_prslex.c
>>>> /usr/bin/flex -B -t -d
>>>> /Users/iainduncan/Documents/csound/Engine/csound_prs.lex >
>>>> /Users/iainduncan/Documents/csound/build/csound_prslex.c
>>>> [  0%] Generating csound_orclex.c
>>>> /usr/bin/flex -B -t
>>>> /Users/iainduncan/Documents/csound/Engine/csound_orc.lex >
>>>> /Users/iainduncan/Documents/csound/build/csound_orclex.c
>>>> [  0%] Generating csound_orcparse.c, csound_orcparse.h
>>>> /usr/bin/bison -pcsound_orc -d --report=itemset -o
>>>> /Users/iainduncan/Documents/csound/build/csound_orcparse.c
>>>> /Users/iainduncan/Documents/csound/Engine/csound_orc.y
>>>> /Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax
>>>> error, unexpected identifier, expecting string
>>>> make[2]: *** [csound_orcparse.c] Error 1
>>>> make[1]: *** [CMakeFiles/csound.dir/all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.