Csound Csound-dev Csound-tekno Search About

[Csnd] Building Csound with debug symbols

Date2018-12-19 16:43
FromPeter Burgess
Subject[Csnd] Building Csound with debug symbols
How do I build csound with debug symbols? Can I simply add set(CMAKE_BUILD_TYPE Debug) in the root CMakeLists.txt? Or can I call cmake with --debug or something?
Pete
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

Date2018-12-19 16:48
FromPeter Burgess
SubjectRe: [Csnd] Building Csound with debug symbols
Ah, I think I found it actually, cmake -DCMAKE_BUILD_TYPE=Debug I'm guessing

On Wed, 19 Dec 2018, 16:43 Peter Burgess <pete.soundtechnician@gmail.com wrote:
How do I build csound with debug symbols? Can I simply add set(CMAKE_BUILD_TYPE Debug) in the root CMakeLists.txt? Or can I call cmake with --debug or something?
Pete
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

Date2018-12-19 17:18
FromRory Walsh
SubjectRe: [Csnd] Building Csound with debug symbols
That's the one afaik

On Wed, 19 Dec 2018 at 16:48, Peter Burgess <pete.soundtechnician@gmail.com> wrote:
Ah, I think I found it actually, cmake -DCMAKE_BUILD_TYPE=Debug I'm guessing

On Wed, 19 Dec 2018, 16:43 Peter Burgess <pete.soundtechnician@gmail.com wrote:
How do I build csound with debug symbols? Can I simply add set(CMAKE_BUILD_TYPE Debug) in the root CMakeLists.txt? Or can I call cmake with --debug or something?
Pete
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
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

Date2018-12-19 17:37
FromPeter Burgess
SubjectRe: [Csnd] Building Csound with debug symbols
Cheers Rory! Seems to have worked

On Wed, 19 Dec 2018, 17:18 Rory Walsh <rorywalsh@ear.ie wrote:
That's the one afaik

On Wed, 19 Dec 2018 at 16:48, Peter Burgess <pete.soundtechnician@gmail.com> wrote:
Ah, I think I found it actually, cmake -DCMAKE_BUILD_TYPE=Debug I'm guessing

On Wed, 19 Dec 2018, 16:43 Peter Burgess <pete.soundtechnician@gmail.com wrote:
How do I build csound with debug symbols? Can I simply add set(CMAKE_BUILD_TYPE Debug) in the root CMakeLists.txt? Or can I call cmake with --debug or something?
Pete
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
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
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

Date2018-12-19 17:54
FromPeter Burgess
SubjectRe: [Csnd] Building Csound with debug symbols
I don't have much experience in this area... I've built with debug, I'm definitely referencing the correct libraries in the QMake project file, and I have checked the library symbols as such:

$ readelf -Ws libcsound64.so | grep csoundGetInputName
   494: 0000000000045075    18 FUNC    GLOBAL DEFAULT   12 csoundGetInputName
  5117: 0000000000045075    18 FUNC    GLOBAL DEFAULT   12 csoundGetInputName
$ readelf -Ws libcsnd6.so | grep csoundGetInputName
   230: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND csoundGetInputName
  1339: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND csoundGetInputName

But I get this error when I try to run:

symbol lookup error: undefined symbol: csoundGetInputName


Any idea what I might have missed here? Googling isn't getting me anywhere so far....


On Wed, Dec 19, 2018 at 5:37 PM Peter Burgess <pete.soundtechnician@gmail.com> wrote:
Cheers Rory! Seems to have worked

On Wed, 19 Dec 2018, 17:18 Rory Walsh <rorywalsh@ear.ie wrote:
That's the one afaik

On Wed, 19 Dec 2018 at 16:48, Peter Burgess <pete.soundtechnician@gmail.com> wrote:
Ah, I think I found it actually, cmake -DCMAKE_BUILD_TYPE=Debug I'm guessing

On Wed, 19 Dec 2018, 16:43 Peter Burgess <pete.soundtechnician@gmail.com wrote:
How do I build csound with debug symbols? Can I simply add set(CMAKE_BUILD_TYPE Debug) in the root CMakeLists.txt? Or can I call cmake with --debug or something?
Pete
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
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


--
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