You are not logged in.

#1 2004-04-05 22:34:28

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Request: Hydrogen

http://hydrogen.sourceforge.net/

Could someone make a Arch Package for this?  That would put the finishing touches to make Arch a good recording station...
GTick..
Audacity
Hydrogen
ALSA/OSS

I tried making a package but I can't get it to compile..

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/opt/qt/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O3  -c -o AudioEngineInfoForm_UI.o `test -f 'AudioEngineInfoForm_UI.cpp' || echo './'`AudioEngineInfoForm_UI.cpp
AudioEngineInfoForm_UI.cpp: In constructor `
   AudioEngineInfoForm_UI::AudioEngineInfoForm_UI(QWidget*, const char*, 
   unsigned int)':
AudioEngineInfoForm_UI.cpp:75: error: `Spacer2' undeclared (first use this 
   function)
AudioEngineInfoForm_UI.cpp:75: error: (Each undeclared identifier is reported 
   only once for each function it appears in.)
AudioEngineInfoForm_UI.cpp:80: error: `Spacer1' undeclared (first use this 
   function)
make[3]: *** [AudioEngineInfoForm_UI.o] Error 1
make[3]: Leaving directory `/home/punkrockguy318/hydrogen-0.8.2/hydrogen_gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/punkrockguy318/hydrogen-0.8.2/hydrogen_gui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/punkrockguy318/hydrogen-0.8.2'
make: *** [all] Error 2

That's what I get... 

Also:  There's an optional JACK dependency.  Why do we need JACk?  Can't we just use ALSA?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#2 2004-04-05 22:35:27

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Request: Hydrogen

BTW:  Hydrogen is an advance GPL drum loop recorder... Kinda like Fruity Loops but better designed.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#3 2004-04-06 00:24:10

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: Request: Hydrogen

I get the same build error.

punkrockguy318 wrote:

Also: There's an optional JACK dependency. Why do we need JACk? Can't we just use ALSA?

If you'd care to read up on JACK, you'd notice they're quite different:

JACK is a low-latency audio server that can connect a number of different applications to an audio device, as well as allowing them to share audio between themselves. ALSA is an audio driver and JACK will actually use ALSA to be able to ultimately play the audio.

I really hope something like JACK becomes standard equipment in Linux, and programs will start using it on a massive scale. Esd and aRts seem to do a similar job, but still, they can't interoperate between themselves. Somebody needs to cut the knot here, in my opinion. Because at the moment, you can't even have notify sounds and play music at the same time!

Edit: I see the jack-audio-connection-kit is in staging, cool. Now we also need at least xmms-jack. Also, a jackd starting script should be added to /etc/rc.d in the package. Next, GAIM needs to use JACK. Etc. wink


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#4 2004-05-26 15:32:15

shadowplay
Member
From: Gotheburg, Sweden
Registered: 2004-05-26
Posts: 13

Re: Request: Hydrogen

Hello there,

I have also had problems buildning 0.8.2, looks like this for me:

g++ -DHAVE_CONFIG_H -I. -I. -I..   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O3  -c -                                              o Hydrogen.o `test -f 'Hydrogen.cpp' || echo './'`Hydrogen.cpp
Hydrogen.cpp: In member function `void Hydrogen::setTapTempo(float)':
Hydrogen.cpp:2505: error: call of overloaded `abs(float)' is ambiguous
/usr/include/stdlib.h:740: note: candidates are: int abs(int)
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/cstdlib:153:                                               note:                 long long int __gnu_cxx::abs(long long int)
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/cstdlib:123:                                               note:                 long int std::abs(long int)
make[2]: *** [Hydrogen.o] Error 1
make[2]: Leaving directory `/home/j/download/sound/hydrogen/src/hydrogen-0.8.2/                                              lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/j/download/sound/hydrogen/src/hydrogen-0.8.2'
make: *** [all] Error 2

any idea of that?

anyway, this does not occur with 0.8.1,

the following PKGBUILD works fine for me.

#Contributor: Johan Lennerås <it3lejo@ituniv.se>

pkgname=hydrogen
pkgver=0.8.1
pkgrel=1
pkgdesc="Hydrogen is an advanced drum machine."
url="http://hydrogen.sourceforge.net/"
source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$startdir/pkg install
}

I have liblrdf, raptor and jack installed.


Bjørn: thanks for that info about xmms-jack, now I can start my jack-server on boot without have to shut i down to listen to music. You're absolutely right there. more things like this! I also tried to make a package of xmms-jack but failed for some reason. I shall try that again... maybe something for another thread.

Offline

#5 2004-05-26 15:42:43

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: Request: Hydrogen

Bjørn: thanks for that info about xmms-jack, now I can start my jack-server on boot without have to shut i down to listen to music. You're absolutely right there. more things like this! I also tried to make a package of xmms-jack but failed for some reason. I shall try that again... maybe something for another thread.

Ok, nice, you're welcome. :-) At the moment I'm using esd, which at the time was just needing a recompile to work properly (only I didn't think about that for quite some time). Esd works reasonable with GAIM, XMMS and some other things, making me quasi-happy about the situation. Still too much programs that want direct access to /dev/dsp though, like Rhythmbox for example.

I've also heard some people can play multiple sounds at the same time when only using ALSA. That must be some hardware capability that my onboard Intel chipset can't handle...


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#6 2004-05-26 20:39:53

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Request: Hydrogen

Bjørn wrote:

I've also heard some people can play multiple sounds at the same time when only using ALSA. That must be some hardware capability that my onboard Intel chipset can't handle...

I've seen a couple of posts about multiple sounds and it may not be hardware related.  Try searching the forums for "dmix".

Offline

#7 2004-05-26 21:05:11

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Request: Hydrogen

shadowplay:  In lib/Hydrogen.cpp on line 2505 change the abs function to fabs.

Now I have  punkrockguy318's compile problem.

Offline

#8 2004-05-26 21:29:53

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Request: Hydrogen

The problem is hydrogen_gui/AudioEngineInfoForm_UI.h.  Here's a patch:

--- hydrogen_gui/AudioEngineInfoForm_UI.h.orig  2004-05-26 17:06:29.000000000 -0400
+++ hydrogen_gui/AudioEngineInfoForm_UI.h       2004-05-26 17:14:11.000000000 -0400
@@ -12,6 +12,7 @@
  
 #include <qvariant.h>
 #include <qwidget.h>
+#include <qlayout.h>
  
 class QVBoxLayout;
 class QHBoxLayout;
@@ -56,6 +57,8 @@
     QLabel* currentPatternLbl;
     QLabel* TextLabel1_2_2;
     QLabel* m_pSongPositionLbl;
+    QSpacerItem* Spacer1;
+    QSpacerItem* Spacer2;
  
 protected:
     QHBoxLayout* Layout2;

Except this problem occurs again in yet another spot.  Good luck.

Offline

#9 2004-05-27 01:44:46

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Request: Hydrogen

Offline

#10 2004-06-02 23:23:50

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: Request: Hydrogen

Now we also need at least xmms-jack

xmms-jack PKGUILD at

http://bbs.archlinux.org/viewtopic.php?t=4884

Offline

Board footer

Powered by FluxBB