Csound Csound-dev Csound-tekno Search About

[Csnd] Error building CsoundQt on linux (Ubuntu 12.04 64bit)

Date2013-09-23 05:37
Fromlaurence
Subject[Csnd] Error building CsoundQt on linux (Ubuntu 12.04 64bit)
Hi all!

I'm attempting to build CsoundQt following the instructions here: http://sourceforge.net/p/csound/wiki/Building%20CsoundQt%20for%20Csound6%20on%20Debian-Ubuntu/

Build fails with this error:

In file included from src/csoundengine.h:28:0,
                 from src/csoundengine.cpp:37:
/usr/local/include/csound/csound.hpp:159:16: warning: unused parameter ‘type’ [-Wunused-parameter]
src/csoundengine.cpp: In static member function ‘static void CsoundEngine::inputValueCallback(CSOUND*, const char*, double*)’:
src/csoundengine.cpp:165:50: error: ‘csoundGetStrVarMaxLen’ was not declared in this scope
src/csoundengine.cpp: At global scope:
src/csoundengine.cpp:290:5: warning: unused parameter ‘type’ [-Wunused-parameter]
src/csoundengine.cpp:667:6: warning: unused parameter ‘delay’ [-Wunused-parameter]
src/csoundengine.cpp: In member function ‘int CsoundEngine::runCsound()’:
src/csoundengine.cpp:721:29: error: ‘csoundPreCompile’ was not declared in this scope
src/csoundengine.cpp:760:73: error: ‘csoundSetCallback’ was not declared in this scope
src/csoundengine.cpp: In member function ‘void CsoundEngine::cleanupCsound()’:
src/csoundengine.cpp:845:40: error: ‘csoundRemoveCallback’ was not declared in this scope
src/csoundengine.cpp: In member function ‘void CsoundEngine::setupChannels()’:
src/csoundengine.cpp:872:75: error: ‘csoundSetInputValueCallback’ was not declared in this scope
src/csoundengine.cpp:873:77: error: ‘csoundSetOutputValueCallback’ was not declared in this scope
src/csoundengine.cpp:880:2: error: ‘CsoundChannelListEntry’ was not declared in this scope
src/csoundengine.cpp:880:26: error: ‘channelList’ was not declared in this scope
src/csoundengine.cpp:882:26: error: ‘entry’ was not declared in this scope
make: *** [build/doubles/obj/csoundengine.o] Error 1

I previously built csound6 following the instructions given here: http://sourceforge.net/p/csound/wiki/Build_Debian_Ubuntu/

(Almost to the letter - I just had to "sudo ldconfig" as has elsewhere been stated as necessary on Ubuntu and Debian for csound to successfully find libcsound64.so.6.0 and run. Perhaps the build instructions should be amended to include this?)

Any clue as to what is causing the break in my build?

Regards
Laurence

Date2013-09-23 13:44
FromMichael Gogins
SubjectRe: [Csnd] Error building CsoundQt on linux (Ubuntu 12.04 64bit)
Looks like the compiler is not finding your Csound header files.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Sep 23, 2013 at 12:37 AM, laurence <laurence.capelin@gmail.com> wrote:
Hi all!

I'm attempting to build CsoundQt following the instructions here: http://sourceforge.net/p/csound/wiki/Building%20CsoundQt%20for%20Csound6%20on%20Debian-Ubuntu/

Build fails with this error:

In file included from src/csoundengine.h:28:0,
                 from src/csoundengine.cpp:37:
/usr/local/include/csound/csound.hpp:159:16: warning: unused parameter ‘type’ [-Wunused-parameter]
src/csoundengine.cpp: In static member function ‘static void CsoundEngine::inputValueCallback(CSOUND*, const char*, double*)’:
src/csoundengine.cpp:165:50: error: ‘csoundGetStrVarMaxLen’ was not declared in this scope
src/csoundengine.cpp: At global scope:
src/csoundengine.cpp:290:5: warning: unused parameter ‘type’ [-Wunused-parameter]
src/csoundengine.cpp:667:6: warning: unused parameter ‘delay’ [-Wunused-parameter]
src/csoundengine.cpp: In member function ‘int CsoundEngine::runCsound()’:
src/csoundengine.cpp:721:29: error: ‘csoundPreCompile’ was not declared in this scope
src/csoundengine.cpp:760:73: error: ‘csoundSetCallback’ was not declared in this scope
src/csoundengine.cpp: In member function ‘void CsoundEngine::cleanupCsound()’:
src/csoundengine.cpp:845:40: error: ‘csoundRemoveCallback’ was not declared in this scope
src/csoundengine.cpp: In member function ‘void CsoundEngine::setupChannels()’:
src/csoundengine.cpp:872:75: error: ‘csoundSetInputValueCallback’ was not declared in this scope
src/csoundengine.cpp:873:77: error: ‘csoundSetOutputValueCallback’ was not declared in this scope
src/csoundengine.cpp:880:2: error: ‘CsoundChannelListEntry’ was not declared in this scope
src/csoundengine.cpp:880:26: error: ‘channelList’ was not declared in this scope
src/csoundengine.cpp:882:26: error: ‘entry’ was not declared in this scope
make: *** [build/doubles/obj/csoundengine.o] Error 1

I previously built csound6 following the instructions given here: http://sourceforge.net/p/csound/wiki/Build_Debian_Ubuntu/

(Almost to the letter - I just had to "sudo ldconfig" as has elsewhere been stated as necessary on Ubuntu and Debian for csound to successfully find libcsound64.so.6.0 and run. Perhaps the build instructions should be amended to include this?)

Any clue as to what is causing the break in my build?

Regards
Laurence


Date2013-09-23 14:13
Fromlaurence
SubjectRe: [Csnd] Error building CsoundQt on linux (Ubuntu 12.04 64bit)
Thanks!... I suppose I was not directing qmake to the right place to find the CSOUND_INCLUDE_DIR...
In fact, I'm not sure what DIR(s) I should be directing it to... I'm stumbling around, I suppose. In following the directions for "Building Csound", I don't end up with a directory structure like the example - /home/jh/src/cs6/include/csound  - for a start.

If I direct qmake to (what I imagine is) my csound6 source "include" (csound.h is there, anyway), I get the following error:

src/csoundengine.h:30:28: fatal error: csPerfThread.hpp: No such file or directory
compilation terminated.
make: *** [build/doubles/obj/csoundengine.o] Error 1

And... indeed, csPerfthread is not in that directory... So I'm as puzzled as qmake.

Regards,
Laurence


On 23 September 2013 20:44, Michael Gogins <michael.gogins@gmail.com> wrote:
Looks like the compiler is not finding your Csound header files.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Sep 23, 2013 at 12:37 AM, laurence <laurence.capelin@gmail.com> wrote:
Hi all!

I'm attempting to build CsoundQt following the instructions here: http://sourceforge.net/p/csound/wiki/Building%20CsoundQt%20for%20Csound6%20on%20Debian-Ubuntu/

Build fails with this error:

In file included from src/csoundengine.h:28:0,
                 from src/csoundengine.cpp:37:
/usr/local/include/csound/csound.hpp:159:16: warning: unused parameter ‘type’ [-Wunused-parameter]
src/csoundengine.cpp: In static member function ‘static void CsoundEngine::inputValueCallback(CSOUND*, const char*, double*)’:
src/csoundengine.cpp:165:50: error: ‘csoundGetStrVarMaxLen’ was not declared in this scope
src/csoundengine.cpp: At global scope:
src/csoundengine.cpp:290:5: warning: unused parameter ‘type’ [-Wunused-parameter]
src/csoundengine.cpp:667:6: warning: unused parameter ‘delay’ [-Wunused-parameter]
src/csoundengine.cpp: In member function ‘int CsoundEngine::runCsound()’:
src/csoundengine.cpp:721:29: error: ‘csoundPreCompile’ was not declared in this scope
src/csoundengine.cpp:760:73: error: ‘csoundSetCallback’ was not declared in this scope
src/csoundengine.cpp: In member function ‘void CsoundEngine::cleanupCsound()’:
src/csoundengine.cpp:845:40: error: ‘csoundRemoveCallback’ was not declared in this scope
src/csoundengine.cpp: In member function ‘void CsoundEngine::setupChannels()’:
src/csoundengine.cpp:872:75: error: ‘csoundSetInputValueCallback’ was not declared in this scope
src/csoundengine.cpp:873:77: error: ‘csoundSetOutputValueCallback’ was not declared in this scope
src/csoundengine.cpp:880:2: error: ‘CsoundChannelListEntry’ was not declared in this scope
src/csoundengine.cpp:880:26: error: ‘channelList’ was not declared in this scope
src/csoundengine.cpp:882:26: error: ‘entry’ was not declared in this scope
make: *** [build/doubles/obj/csoundengine.o] Error 1

I previously built csound6 following the instructions given here: http://sourceforge.net/p/csound/wiki/Build_Debian_Ubuntu/

(Almost to the letter - I just had to "sudo ldconfig" as has elsewhere been stated as necessary on Ubuntu and Debian for csound to successfully find libcsound64.so.6.0 and run. Perhaps the build instructions should be amended to include this?)

Any clue as to what is causing the break in my build?

Regards
Laurence



Date2013-09-23 14:29
Fromjoachim heintz
SubjectRe: [Csnd] Error building CsoundQt on linux (Ubuntu 12.04 64bit)
hi laurence -

i run cmake with
-DCMAKE_INSTALL_PREFIX=~/src/cs6

do you have anything like this? if you know the install dir, you should 
probably find the correct dirs to set for qmake.

best -

	joachim


Am 23.09.2013 15:13, schrieb laurence:
> Thanks!... I suppose I was not directing qmake to the right place to
> find the CSOUND_INCLUDE_DIR...
> In fact, I'm not sure what DIR(s) I should be directing it to... I'm
> stumbling around, I suppose. In following the directions for "Building
> Csound", I don't end up with a directory structure like the example -
> /home/jh/src/cs6/include/csound  - for a start.
>
> If I direct qmake to (what I imagine is) my csound6 source "include"
> (csound.h is there, anyway), I get the following error:
>
> src/csoundengine.h:30:28: fatal error: csPerfThread.hpp: No such file or
> directory
> compilation terminated.
> make: *** [build/doubles/obj/csoundengine.o] Error 1
>
> And... indeed, csPerfthread is not in that directory... So I'm as
> puzzled as qmake.
>
> Regards,
> Laurence
>
>
> On 23 September 2013 20:44, Michael Gogins  > wrote:
>
>     Looks like the compiler is not finding your Csound header files.
>
>     Regards,
>     Mike
>
>
>     ===========================
>     Michael Gogins
>     Irreducible Productions
>     http://michaelgogins.tumblr.com
>     Michael dot Gogins at gmail dot com
>
>
>     On Mon, Sep 23, 2013 at 12:37 AM, laurence
>     > wrote:
>
>         Hi all!
>
>         I'm attempting to build CsoundQt following the instructions
>         here:
>         http://sourceforge.net/p/csound/wiki/Building%20CsoundQt%20for%20Csound6%20on%20Debian-Ubuntu/
>
>         Build fails with this error:
>
>         In file included from src/csoundengine.h:28:0,
>                           from src/csoundengine.cpp:37:
>         /usr/local/include/csound/csound.hpp:159:16: warning: unused
>         parameter ‘type’ [-Wunused-parameter]
>         src/csoundengine.cpp: In static member function ‘static void
>         CsoundEngine::inputValueCallback(CSOUND*, const char*, double*)’:
>         src/csoundengine.cpp:165:50: error: ‘csoundGetStrVarMaxLen’ was
>         not declared in this scope
>         src/csoundengine.cpp: At global scope:
>         src/csoundengine.cpp:290:5: warning: unused parameter ‘type’
>         [-Wunused-parameter]
>         src/csoundengine.cpp:667:6: warning: unused parameter ‘delay’
>         [-Wunused-parameter]
>         src/csoundengine.cpp: In member function ‘int
>         CsoundEngine::runCsound()’:
>         src/csoundengine.cpp:721:29: error: ‘csoundPreCompile’ was not
>         declared in this scope
>         src/csoundengine.cpp:760:73: error: ‘csoundSetCallback’ was not
>         declared in this scope
>         src/csoundengine.cpp: In member function ‘void
>         CsoundEngine::cleanupCsound()’:
>         src/csoundengine.cpp:845:40: error: ‘csoundRemoveCallback’ was
>         not declared in this scope
>         src/csoundengine.cpp: In member function ‘void
>         CsoundEngine::setupChannels()’:
>         src/csoundengine.cpp:872:75: error:
>         ‘csoundSetInputValueCallback’ was not declared in this scope
>         src/csoundengine.cpp:873:77: error:
>         ‘csoundSetOutputValueCallback’ was not declared in this scope
>         src/csoundengine.cpp:880:2: error: ‘CsoundChannelListEntry’ was
>         not declared in this scope
>         src/csoundengine.cpp:880:26: error: ‘channelList’ was not
>         declared in this scope
>         src/csoundengine.cpp:882:26: error: ‘entry’ was not declared in
>         this scope
>         make: *** [build/doubles/obj/csoundengine.o] Error 1
>
>         I previously built csound6 following the instructions given
>         here: http://sourceforge.net/p/csound/wiki/Build_Debian_Ubuntu/
>
>         (Almost to the letter - I just had to "sudo ldconfig" as has
>         elsewhere been stated as necessary on Ubuntu and Debian for
>         csound to successfully find libcsound64.so.6.0 and run. Perhaps
>         the build instructions should be amended to include this?)
>
>         Any clue as to what is causing the break in my build?
>
>         Regards
>         Laurence
>
>
>