[linux-audio-user] [ANN] Slat 0.3

Hans Fugal hans at fugal.net
Fri Sep 23 11:00:57 EDT 2005


On Fri, 23 Sep 2005 at 15:04 +0100, james at dis-dot-dat.net wrote:
> On Fri, 23 Sep, 2005 at 07:39AM -0600, Hans Fugal spake thus:
> > Hey that looks pretty spiffy. Unfortunately it won't compile with
> > clanlib 0.6.5 which is what's in Debian/Demudi stable/testing.
> 
> Have you tried changing the Makefile?

Yeah:

--- Makefile    2005-09-16 13:34:38.000000000 -0600
+++ Makefile.new        2005-09-23 08:57:52.000000000 -0600
@@ -1,9 +1,9 @@
-PACKAGES = clanCore-0.7 clanDisplay-0.7 clanApp-0.7 clanGL-0.7 clanVorbis-0.7 clanSound-0.7 jack
+PACKAGES = jack
 #CPP = gcc -g -I/usr/include/ClanLib-0.7/ -Wall `pkg-config --cflags $(PACKAGES)`
 CPP = gcc -g -Wall 
 #`pkg-config --cflags $(PACKAGES)`
-LIBS=`pkg-config --libs $(PACKAGES)`
-FLAGS=`pkg-config --cflags $(PACKAGES)`
+LIBS=`pkg-config --libs $(PACKAGES)` `clanlib-config --libs`
+FLAGS=`pkg-config --cflags $(PACKAGES)` `clanlib-config --cflags`
 version=`./packagename`
 
 slat: theremin.o jackPart.o cmdline.o 

> I doubt that I'm doing anything cutting-edge enough to realy need
> clanlib 0.7, so you should be OK just changing the very first line.
> In fact, most of the first line is not doing anything.  It's left over
> from the last place I copied and pasted from ;)

See the attached error output. I think it looks like it can't find some
function definitions, and my guess is the API changed (or maybe with
0.6.5 we need different include files)
 
-- 
 Hans Fugal                 | If more of us valued food and cheer and
 http://hans.fugal.net/     | song above hoarded gold, it would be a
 http://gdmxml.fugal.net/   | merrier world.  
                            |         -- J.R.R. Tolkien
---------------------------------------------------------------------
GnuPG Fingerprint: 6940 87C5 6610 567F 1E95  CB5E FC98 E8CD E0AA D460
-------------- next part --------------
theremin.h:42: error: expected ?,? or ?...? before ?&? token
theremin.h:42: error: ISO C++ forbids declaration of ?CL_InputEvent? with no type
theremin.h:43: error: expected ?,? or ?...? before ?&? token
theremin.h:43: error: ISO C++ forbids declaration of ?CL_InputEvent? with no type
theremin.h:44: error: expected ?,? or ?...? before ?&? token
theremin.h:44: error: ISO C++ forbids declaration of ?CL_InputEvent? with no type
theremin.cpp:39: error: cannot declare variable ?inst? to be of abstract type ?Theremin?
theremin.h:34: note:   because the following virtual functions are pure within ?Theremin?:
/usr/include/ClanLib/Application/clanapp.h:48: note:  virtual char* CL_ClanApplication::get_title()
theremin.cpp: In member function ?virtual int Theremin::main(int, char**)?:
theremin.cpp:145: error: ?CL_DisplayWindow? was not declared in this scope
theremin.cpp:145: error: expected `;' before ?window?
theremin.cpp:146: error: ?sig_key_down? is not a member of ?CL_Keyboard?
theremin.cpp:147: error: ?sig_key_up? is not a member of ?CL_Keyboard?
theremin.cpp:148: error: no matching function for call to ?CL_Signal_v2<int, int>::connect(Theremin* const, void (Theremin::*)(int))?
/usr/include/ClanLib/Core/System/../Resources/../../Signals/signal_v2.h:95: note: candidates are: CL_Slot CL_Signal_v2<PARAM1, PARAM2>::connect(CL_Slot_v2<PARAM1, PARAM2>*) [with PARAM1 = int, PARAM2 = int]
/usr/include/ClanLib/Core/System/../Resources/../../Signals/signal_v2.h:103: note:                 CL_Slot CL_Signal_v2<PARAM1, PARAM2>::connect(void (*)(PARAM1, PARAM2)) [with PARAM1 = int, PARAM2 = int]
theremin.cpp:152: error: ?class CL_Surface? has no member named ?set_scale?
theremin.cpp:158: error: ?class CL_Surface? has no member named ?set_alignment?
theremin.cpp:158: error: ?origin_center? was not declared in this scope
theremin.cpp:177: error: ?class CL_Surface? has no member named ?draw?
theremin.cpp:180: error: ?class CL_Surface? has no member named ?set_alpha?
theremin.cpp:181: error: ?class CL_Surface? has no member named ?draw?
theremin.cpp:182: error: ?class CL_Surface? has no member named ?draw?
theremin.cpp:183: error: ?flip? is not a member of ?CL_Display?
theremin.cpp:146: warning: unused variable ?keydown?
theremin.cpp:147: warning: unused variable ?keyup?
theremin.cpp:148: warning: unused variable ?mousemove?
theremin.cpp:123: warning: unused variable ?winsize?
theremin.cpp: At global scope:
theremin.cpp:208: error: expected ?,? or ?...? before ?&? token
theremin.cpp:208: error: ISO C++ forbids declaration of ?CL_InputEvent? with no type
theremin.cpp: In member function ?void Theremin::keydownhandler(int)?:
theremin.cpp:210: error: ?i? was not declared in this scope
theremin.cpp: At global scope:
theremin.cpp:220: error: expected ?,? or ?...? before ?&? token
theremin.cpp:220: error: ISO C++ forbids declaration of ?CL_InputEvent? with no type
theremin.cpp: In member function ?void Theremin::keyuphandler(int)?:
theremin.cpp:221: error: ?i? was not declared in this scope
theremin.cpp: At global scope:
theremin.cpp:227: error: expected ?,? or ?...? before ?&? token
theremin.cpp:227: error: ISO C++ forbids declaration of ?CL_InputEvent? with no type
make: *** [theremin.o] Error 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20050923/35032a82/attachment.pgp 


More information about the Linux-audio-user mailing list