electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Errors during build
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Blind Irishman



Joined: Sep 01, 2006
Posts: 1
Location: United States, MI

PostPosted: Fri Sep 01, 2006 10:32 pm    Post subject: Errors during build Reply with quote  Mark this post and the followings unread

Hello! I heard about ChucK a long while back and now I'm interested in trying it out!

However, I'm getting errors when I build it:

Code:
$ make linux-alsa
make -f makefile.alsa
make[1]: Entering directory `/home/blind/chuck-1.2.0.6/src'
bison -dv -b chuck chuck.y
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck.tab.c
flex -ochuck.yy.c chuck.lex
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck.yy.c
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_absyn.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_parse.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_errmsg.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_frame.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_symbol.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_table.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_utils.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_vm.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_instr.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_scan.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_type.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_emit.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_compile.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_dl.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_oo.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_lang.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_ugen.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_main.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_otf.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_stats.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_bbq.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_shell.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_console.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck_globals.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ digiio_rtaudio.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ hidio_sdl.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ midiio_rtmidi.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ rtaudio.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ rtmidi.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ ugen_osc.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ ugen_filter.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ ugen_stk.cpp
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ ugen_xxx.cpp
ugen_xxx.cpp:43:21: error: sndfile.h: No such file or directory
ugen_xxx.cpp:1516: error: ISO C++ forbids declaration of 'SNDFILE' with no type
ugen_xxx.cpp:1516: error: expected ';' before '*' token
ugen_xxx.cpp: In constructor 'sndbuf_data::sndbuf_data()':
ugen_xxx.cpp:1548: error: 'fd' was not declared in this scope
ugen_xxx.cpp: In function 'long unsigned int sndbuf_read(sndbuf_data*, long unsigned int, long unsigned int)':
ugen_xxx.cpp:1574: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1586: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1586: error: 'sf_seek' was not declared in this scope
ugen_xxx.cpp:1590: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1590: error: 'sf_readf_float' was not declared in this scope
ugen_xxx.cpp:1600: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1600: error: 'sf_close' was not declared in this scope
ugen_xxx.cpp:1601: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp: In function 'void sndbuf_setpos(sndbuf_data*, double)':
ugen_xxx.cpp:1648: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp: In function 'float sndbuf_sampleAt(sndbuf_data*, long int)':
ugen_xxx.cpp:1668: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp: In function 'void sndbuf_ctrl_read(Chuck_Object*, void*, Chuck_DL_Return*)':
ugen_xxx.cpp:1843: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1845: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1845: error: 'sf_close' was not declared in this scope
ugen_xxx.cpp:1846: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1974: error: 'SF_INFO' was not declared in this scope
ugen_xxx.cpp:1974: error: expected `;' before 'info'
ugen_xxx.cpp:1975: error: 'info' was not declared in this scope
ugen_xxx.cpp:1980: error: 'SF_FORMAT_RAW' was not declared in this scope
ugen_xxx.cpp:1980: error: 'SF_FORMAT_PCM_16' was not declared in this scope
ugen_xxx.cpp:1980: error: 'SF_ENDIAN_CPU' was not declared in this scope
ugen_xxx.cpp:1986: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1986: error: 'SFM_READ' was not declared in this scope
ugen_xxx.cpp:1986: error: 'sf_open' was not declared in this scope
ugen_xxx.cpp:1987: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1987: error: 'sf_error' was not declared in this scope
ugen_xxx.cpp:1991: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1991: error: 'sf_strerror' was not declared in this scope
ugen_xxx.cpp:1992: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1992: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:1992: error: 'sf_close' was not declared in this scope
ugen_xxx.cpp:2016: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:2016: error: 'sf_seek' was not declared in this scope
ugen_xxx.cpp:2029: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:2029: error: 'sf_close' was not declared in this scope
ugen_xxx.cpp:2029: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp:2033: error: 'struct sndbuf_data' has no member named 'fd'
ugen_xxx.cpp: In function 'void sndbuf_cget_valueAt(Chuck_Object*, void*, Chuck_DL_Return*)':
ugen_xxx.cpp:2220: error: 'struct sndbuf_data' has no member named 'fd'
make[1]: *** [ugen_xxx.o] Error 1
make[1]: Leaving directory `/home/blind/chuck-1.2.0.6/src'
make: [linux-alsa] Error 2 (ignored)
$


Anyone have an idea of whats worng and think they can help?
Back to top
View user's profile Send private message
ge



Joined: Aug 13, 2006
Posts: 105
Location: Palo Alto, CA

PostPosted: Fri Sep 01, 2006 10:59 pm    Post subject: Re: Errors during build Reply with quote  Mark this post and the followings unread

Blind Irishman wrote:
Hello! I heard about ChucK a long while back and now I'm interested in trying it out!

Welcome!

Quote:
ugen_xxx.cpp:43:21: error: sndfile.h: No such file or directory

Looks like you need to install libsndfile library.

You can probably grab as a package for your system, or install it.

http://www.mega-nerd.com/libsndfile/

Hope this helps.
Back to top
View user's profile Send private message Visit poster's website
majutsu



Joined: Jun 18, 2006
Posts: 151
Location: New York
Audio files: 1

PostPosted: Sun Sep 03, 2006 9:48 am    Post subject: Reply with quote  Mark this post and the followings unread

i don't know what linux distro you are using, but if it's debian (/ubuntu/kubuntu/demudi/etc) the deb pack on chuck thread has word for word apt-get instructions to build, including dependencies. you can cut and paste them in the terminal. that should do it.
_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
Gasten



Joined: Oct 16, 2006
Posts: 7
Location: Sweden

PostPosted: Mon Oct 16, 2006 6:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Hello. I got the very same problem (and feedback) too. I'm on Ubuntu (debian) and I try to make with alsa. I've tried to aptitude both libsndfile0 and libsndfile1 from the arcives, and I've tried to build the newest version manually (I think I did it correctly...). Still doesn't work. You talked about a file with specific debian-instructions? Can you link to it? Or can someone else se the problem?
Back to top
View user's profile Send private message
spencer



Joined: Aug 16, 2006
Posts: 53
Location: northern california

PostPosted: Mon Oct 16, 2006 8:17 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi Gasten and Blind Irishman,
make sure you have the package libsndfile1-dev in addition to libsndfile. libsndfile1 just includes the library, where libsndfile1-dev includes the library and header files that chuck needs to build against libsndfile.

I think majutsu was referring to this thread, which I think contains pretty much everything you need to know about building chuck on linux:
http://electro-music.com/forum/topic-13115.html

spencer
Back to top
View user's profile Send private message
majutsu



Joined: Jun 18, 2006
Posts: 151
Location: New York
Audio files: 1

PostPosted: Mon Oct 16, 2006 4:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

yes, thank you spencer this is the thread to which i referred. chuck works fabulously on ubuntu. i'm using dapper, edgy eft is coming out in weeks. i'm using chuck, pd, om, soundtracker mostly. very cool distro. i'm learning python now to explore it best. if you are still having problems please let me know. i can almost guarantee a perfect build of chuck on dapper i would think.
_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
Gasten



Joined: Oct 16, 2006
Posts: 7
Location: Sweden

PostPosted: Tue Oct 17, 2006 10:31 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, both chuck alsa and oss works perfectly. I'll try to compile one for Jack too, but that's a lower priority. Now it's time for miniAudicle Smile

"i'm learning python now to explore it best."

Good for you! Python is wonderful! There should really be some kind of on-the-fly-tool/Live Coding-tool to python too. If I learn C/C++ (whatever I need), I maybe do one. (there isn't one, right?)
Back to top
View user's profile Send private message
majutsu



Joined: Jun 18, 2006
Posts: 151
Location: New York
Audio files: 1

PostPosted: Wed Oct 18, 2006 3:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

lol i was thinking of a python app for music programming too. i think this would be very cool. i need to learn c++ as well. i need those learning chips they put in your head in the matrix, that would speed this process up a little Very Happy
_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
Gasten



Joined: Oct 16, 2006
Posts: 7
Location: Sweden

PostPosted: Wed Oct 18, 2006 11:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Learning-chips is the shit. If I learn Perl, I might even convert "feedback-pl" to python-code. Well.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use