electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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
deb pack for chuck?
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 3 [55 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2, 3 Next
Author Message
majutsu



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

PostPosted: Tue Aug 29, 2006 8:41 pm    Post subject: deb pack for chuck? Reply with quote  Mark this post and the followings unread

hey! i have suffered a major windows crash from a bad security update. i lost two computers of data. i was out two weeks. i have decided to come back all linux to avoid this kind of thing and get deeper into programming.

i am now successfully running ubuntu (debian) with JACK. Those packages work great! i have a high speed ethernet connect which ubuntu also picked up. i also have suse installed on another, but i like ubuntu more. i need to configure my keyboards still.

there is no deb package i've seen for chuck. if someone knows of one, let me know. if not, i will make a deb, then ubuntu pack for myself and others.

_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Wed Aug 30, 2006 12:22 am    Post subject: Reply with quote  Mark this post and the followings unread

i guess someone's also working on an official debian package for chuck

i can see an older version here
arrow http://piem.org/debian
(but haven't tested it on debian/ubuntu)

actually i'm quite a linux newbie, so i get confused easily.
i've succeed compiling chuck from source in linux..
(but last time i didn't lolol, i still haven't got all required package to make)

let's talk on this topic for a while
i was trying to build chuck for linux-alsa
i think i have to get these packages: bison make g++
and some linux header source..
might be some alsa header source..
for linux-oss i guess it'd be easier
if i know exactly how, i'll come back to tell what i did to succeed ^^"
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
ge



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

PostPosted: Wed Aug 30, 2006 12:29 am    Post subject: Re: deb pack for chuck? Reply with quote  Mark this post and the followings unread

majutsu wrote:
hey! i have suffered a major windows crash from a bad security update. i lost two computers of data. i was out two weeks. i have decided to come back all linux to avoid this kind of thing and get deeper into programming.

Doh. Sorry about your computer Brian.

Quote:
there is no deb package i've seen for chuck.

This might be a good question to post to chuck-users.

Have you tried compiling chuck from source? It doesn't require a lot of dependencies. Let us know how it goes if you do.

Good luck, and may your computer be happy and well! Smile
Back to top
View user's profile Send private message Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Wed Aug 30, 2006 3:01 am    Post subject: Reply with quote  Mark this post and the followings unread

yes! today i just succeeded compiling from source
(on (k)ubuntu .. let's say debian testing (etch))

this is what i did (for compiling for linux-oss):
- edit /etc/apt/sources.list and remove # from some deb lines so that i can update from universe
- sudo apt-get update
- sudo apt-get install gcc flex bison libsndfile1-dev
- then i go to the extracted chuck-1.2.0.6 directory, then go to src
- make

Code:
[chuck build]: please use one of the following configurations:
   make linux-alsa, make linux-jack, make linux-oss,
   make osx, make osx-ub, or make win32

- make linux-oss
...

then i have chuck executable (running with ./chuck works well)
then i copy chuck to /usr/bin (sudo cp chuck /usr/bin) so i can chuck from anywhere.

- - -

i'll report soon after i can compile for linux-alsa
because it still failed, i'm gonna try fetching alsa's headers and see if it works


well, i'm back!
i still can't compile for linux-alsa
while compiling, it says:

Code:
/usr/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status

what packages do i need?
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Aug 30, 2006 4:08 am    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, I'd love a package as well.

Well, either a package or a list of basically everything that's realy needed and how to make those things "sort themselves out".

Basically; I'm on Demudi which is cool and works well but it works so well with the packages that I got to accidentally install it without GCC...

So I managed to get GCC and G++ and the parser thingies and so on installed and they are fine Jack and Alsa require some sort of library to be configured properly but my package manager (synaptic) isn't too clear about which ones and how. OSS does work; managed to build that and it works aside from file in/out. I got the libsndfile package, then build it myself too but neither does the trick; as soon as I try to call a wav into sndbuf I get a error saying some variable doesn't equal another and that this usually means libsndfile isn't properly configured, no news on how and where to do that (and I did look).

So. that's where I am... A package would be great, but this building stuff, when it works, is fun and gives a sort of feeling of independance. More simple clear info on where and how to mack Jack and libsndfile sort themselves out would be good too.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
majutsu



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

PostPosted: Wed Aug 30, 2006 1:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

hi ge very cool. am back on chuck users today. will ask.

i love linux. debian totally rocks. i haven't had this much fun computing since the early days with trs80s and c64s.

ubuntu comes bundled with sc and pd (although the pd midi doesn't work and sc is missing scsynth ?!? but i repacked easily). it should come with chuck too. i tried to get a debian pack, and a debian search turned up nothing. i know you can compile and chuck better than most. but i want to make an ubuntu pack for the ubuntu universe. and maybe an audicle pack too!

hey kassen. i was wondering about demudi. i just needed the gnome, openoffice and all the ubuntu goodies so my wife wouldn't miss windows at all. it's really awesome. man linux has come a long way since i messed with redhat. they are really top dog on some apps. and the community has so much energy, which is what i like most about chuck. a community with a lot of energy and a lot of hope!

_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Aug 30, 2006 1:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

Demudi is cool, I like how the default login schreen is this huge tube-radio close-up. This computer mostly gets used for internet though; I'm not putting thewindows laptop online but it does have the real soundcard.
_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
spencer



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

PostPosted: Wed Aug 30, 2006 2:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

kijjaz wrote:
well, i'm back!
i still can't compile for linux-alsa
while compiling, it says:
Code:
/usr/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status

what packages do i need?

apt-get install libasound-dev should do the trick for alsa.

also, i might be wrong, but on my ubuntu install (5.10) all of the necessary packages are in the main (non-universe) repositories.

Kassen wrote:
Well, either a package or a list of basically everything that's realy needed and how to make those things "sort themselves out".

Heres a start for necessary packages on debian/ubuntu and friends. Im sure Im forgetting something so please let me know if there are any mistakes...

gcc
g++
make
flex
bison
libsndfile1-dev
libasound2-dev (for ALSA and/or JACK support)
libjack-dev (for JACK support)

Im actually trying to put together a deb package for chuck and miniAudicle, also.

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: Wed Aug 30, 2006 5:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

that's a good list of dependencies, pretty much what i needed

when i ran chuck, it worked ok for one file, but when tried to play multiple files like the otf examples, i got:

*** Fatal error : sizeof (off_t) != sizeof (sf_count_t)
*** This means that libsndfile was not configured correctly.

EDIT full story otf5 and otf6 work fine, either alone or together! otf4 and otf7 don't work and give the above error. aren't those samples whereas otf5 and otf6 are synths?



how to fix?

_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Aug 30, 2006 6:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

spencer wrote:

Heres a start for necessary packages on debian/ubuntu and friends. Im sure Im forgetting something so please let me know if there are any mistakes...

gcc
g++
make
flex
bison


These bits I got. Either they were clear already or there would be complaints that made it clear what was needed.

Quote:

libsndfile1-dev
libasound2-dev (for ALSA and/or JACK support)
libjack-dev (for JACK support)


AH! This bit wasn't so clear. It said "libsndfile" so I got that, I didn't quite get what the"dev" version was but I was fairly certain I wasn't developing either ChucK or libsndfile so.... (I can be naive)

I'll try again soon with this info, I'd like to be able to roll my own, It'd be cool to be able to tinker with bits and see what happens.

Quote:

Im actually trying to put together a deb package for chuck and miniAudicle, also.


Wonderfull! Do Ge and you sleep at all? It's kinda like Chrismas all year round!

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
majutsu



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

PostPosted: Wed Aug 30, 2006 8:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

alright!
chuck is working in ubuntu

sudo apt-get install build-essential bison flex libjack-dev libasound2-dev libsndfile1-dev

download the tar to the desktop.

then extract the tar with extract here.

terminal:
cd chuck*
cd src
make linux-alsa
sudo make install

voila!

very cool! everything works fine. don't know what's wrong with my jack, probably why jack midi in pd not working . . .

I will make deb pack soon.

my usb midi keyboard isn't working though that's probably my link up. i get the following error with gomidi

ALSA lib seq_hw.c:456:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory

_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Aug 31, 2006 6:16 am    Post subject: Reply with quote  Mark this post and the followings unread

Right, way cool!

Majutsu, are you on the wiki yet? If so, maybe it'd be nice to add this there because I think more people ran into the exact problem and symptomes you & me did. It'd be nice to be rid of those once and for all, at least for users of Debian and it's childeren.

The Wiki isn't that hard to deal with, and you can prview before hitting submit.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nescivi



Joined: Mar 23, 2005
Posts: 94
Location: Montreal

PostPosted: Thu Aug 31, 2006 11:51 am    Post subject: Reply with quote  Mark this post and the followings unread

well, the -dev versions of libraries in Debian are the ones that install the headers and stuff, so you can build stuff from source, that need them.

I guess it is assumed you develop stuff, as soon as you try to build them from source Wink
or at least you are using software that is still in a development state...
Back to top
View user's profile Send private message Visit poster's website
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri Sep 01, 2006 5:03 am    Post subject: Reply with quote  Mark this post and the followings unread

nescivi wrote:

or at least you are using software that is still in a development state...


Well, yeah, but would you ever want to use something that's not developing? I wouldn't even hang out with people that stoped developing, if at all possible I'd eat food that was still developing!

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
majutsu



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

PostPosted: Fri Sep 01, 2006 10:10 am    Post subject: Reply with quote  Mark this post and the followings unread

yeah i heard the big man of linux say, "we want to be in development. linux is a process not a goal. we don't want a stable, frozen platform"

Smile

btw chuck is totally ok
it's really my keyboards that aren't connecting to alsa or jack for the midi. i need to figure this out.

_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Fri Sep 01, 2006 4:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

majutsu wrote:
alright!
chuck is working in ubuntu

sudo apt-get install build-essential bison flex libjack-dev libasound2-dev libsndfile1-dev

i'm just successfully installed kubuntu 6.06 (dapper)
and yes! confirmed! the building goes well.
(i was building for oss, alsa)
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
majutsu



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

PostPosted: Sun Sep 10, 2006 8:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

my usb is now working in chuck on linux, down to the last resistant one -- the m-audio.

i had posted earlier about problems getting my usb o2 m-audio midi to work in dapper. i had tried firmware etc. but after updating jack, alsa, and oss. i got ChucK to recognize my midi perfectly with the ubuntu studio fix:

sudo su
modprobe snd-seq
if grep -q -x snd-seq /etc/modules; \
then echo && echo "NOTE: snd-seq is already in /etc/modules, no changes needed."; \
else cp /etc/modules /etc/modules_backup_`date +%Y%m%d%H%M` && echo snd-seq >> /etc/modules; \
fi
exit

just wanted others who may have this issue to know too.

:p

i am really rolling now. and just in time for the next version!!

i wonder what it's going to be called . . . mummy? werewolf?

_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
jksuperstar



Joined: Aug 20, 2004
Posts: 2503
Location: Denver
Audio files: 1
G2 patch files: 18

PostPosted: Sun Sep 10, 2006 8:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

How is ubuntu for audio? I guess you don't have MIDI working yet, but I have ubuntu on my home pc (internet, etc) and it feels damn slow to most other distro's I've used (on a 1.6GHz AMD/Nvidia NForce System). I seems stable, and has some of what I need, but the menu seems sparse, and I don't know if that's on purpose or if there's more under the hood that's just not visible to the gnome menu.

I like xubuntu better, seems a bit more snappy. Still, the kernel is definitely NOT tuned for pre-emptive and real-time activity. Maybe instead of running it as LiveCD I should install and build my own kernel, though I haven't done that since Fedora Core and the CCRMA stuff...
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 10, 2006 9:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

ubuntu live cd is very slow.
it's a very fast distro when installed, well, same as any debian really.
it's very similar in latency to the demudi distro, have the newest kernels (what would be unstable debian stuff). some of the packages don't really work for music without jiggling. but i got sc3, pd, ams, chuck, hydrogen, beast working. Actually i finally DID get midi working, and the fix is above. ubuntu dapper has a bug where the alsa seq module isn't loaded on boot unless you change the script. it's been about 2 weeks with ubuntu and it's getting smooth. i was using demudi, debian sarge, suse , dynebolic and windows to fill in gaps, but now ubuntu is running everything by herself very well. i am pleased. as far as linux sound experiences go, it's a pleasant little joy ride so far. miniAudicle works too with the 2.6 wxwidgets ubuntu has pre-installed. it's pretty sweet so far, but the above mentioned distros are all i've used.

_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Mon Sep 11, 2006 5:07 am    Post subject:   Reply with quote  Mark this post and the followings unread

yes! i agree.
my ubuntu machine works fine.
now using dapper.. and with some tweaks from the instructions at
www.ubuntustudio.com

it has instructions for ubuntu dapper & breezy
also for debian sid & etch

i guess the above config for ALSA Sequencer is what i did on my ubuntu dapper
after that, using Jack sound server for running chuck-jack works well.
(but i was quite naughty with that ubuntu machine
and it's behaving strangely these days.)

not i'm addicted to chucking everyday.
sometimes i don't have time..
but a little noise s => dac; for(0 => float t; t < 1; 0.01 +=> t) { t => s.gain; t::ms => now; } a day makes me happy.


- kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
yob



Joined: Sep 16, 2006
Posts: 2
Location: Australia

PostPosted: Sat Sep 16, 2006 11:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

There has been some discussion about getting chuck into debian formally, however it looks like the licensing in a few of the source files might cause some problems.

More info here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=267626

James
Back to top
View user's profile Send private message
yob



Joined: Sep 16, 2006
Posts: 2
Location: Australia

PostPosted: Thu Oct 05, 2006 7:21 pm    Post subject: Debian Reply with quote  Mark this post and the followings unread

A chuck package for debian has just entered the NEW queue for the official archive.

This means that all going well, it should be available in unstable within a few days, and in testing within a few weeks.

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



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

PostPosted: Thu Oct 05, 2006 7:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Smile
_________________
All phenomena are atoms in association and dissociation.
Back to top
View user's profile Send private message
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Fri Oct 06, 2006 2:20 am    Post subject:   Reply with quote  Mark this post and the followings unread

yob: wow.. that is exciting. with this we can expand our chuckian community.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Mon Nov 06, 2006 3:37 am    Post subject: Reply with quote  Mark this post and the followings unread

oh.. and i also would like to add.
for all people that're compiling chuck & miniAudicle from source..
(i still visit this page frequently to check out what's needed to compile chuck heheh)
some information on this page might be included in the welcome topic.
so that new users that need to compile chuck, miniAudicle, Audicle by themselves feel comfortable.

i'd like to add in this page also, about compiling miniAudicle.
i'm on debian/ubuntu.. and i only need one extra package for compiling miniAudicle:
libwxgtk2.6-dev

i hope you all enjoy as well heheh ^_^ and cheers for today.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 3 [55 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2, 3 Next
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