Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csound5gui Error

Date2006-05-05 19:59
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-05 20:31
From"David Akbari"
Subject[Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-06 00:42
FromDavid Akbari
SubjectRe: [Cs-dev] csound5gui Error
Hi Istvan,

First off, please accept my sincerest apologies for not specifying this 
information in the original email.

I was using the csound5-20060430 tarball that had the csound5gui 
program in the "fltk_gui" directory. Also I was using FLTK-1.1.5 on Mac 
OS 10.4 that was configured with --enable-shared --enable-threads.

Using FLTK-1.1.7 on Mac OS 10.3.9, I experienced no problems at all. 
Just now, I trashed the old Csound5 directory and freshly compiled the 
csound5-20060430 sources and everything compiled without issue 
(including manually going to the frontends/fltk_gui and doing make -f 
Makefile-OSX)

Perhaps important to note is that I was unable to get FLTK-1.1.7 or 
FLTK-1.1.6 compiling on Mac OS 10.4 Tiger. It would get all the way to 
the link phase of fluid-shared and then error out with a single 
undefined symbol in Fl::widget.

I emailed Victor off-list and he suggested to use FLTK-1.1.5 which 
definitely worked, and allowed for compiling all SConstruct enabled 
targets, however it was the first time I had compilation errors with 
the csound5gui program (original email).

Is this simply an FLTK version mismatch ? Perhaps it is worth 
formulating some empirical evidence to bring to the attention to the 
FLTK developers...

For one thing, on *all* versions of FLTK I've compiled on OS X, they 
are missing a link flag to link with libstdc++ and it always errors out 
with undefined symbols related to the stdc++ library.

Specifically, ./configure in FLTK generates this line

DSOCOMMAND	= $(CC)  -dynamiclib -lc -o

which should nominally be

DSOCOMMAND	= $(CC)  -dynamiclib -lc -lstdc++ -L../lib -o

on OS X (all versions). Using the former results in undefined symbols 
[0], which means the "stable release" 1.1.7 does not work out of the 
box.

Specifically concerning the csound5gui frontend, I have been using it 
with FLTK-1.1.7 on OS X 10.3 and Debian Linux 2.6 kernel. Disabling a 
separate thread for audio allows instantiation of the FLTK widgets from 
the frontend (they respond to mouse input) however there is no audio. 
Leaving a separate thread enabled for audio processing produces audio 
output but the FLTK window hangs and does not respond to interrupts 
(spinning beach ball) forcing a Ctrl+C of the program. Frankly, I don't 
use FLTK too much so I find this frontend to be most useful for quickly 
compiling Csound5 orchestras. The message level by default is also 
nice.

Is there a way to change the message color using #FFFFFF 6 digit hex 
notation ? Just curious.





-David

[0]

gcc -dynamiclib -lc -o libfltk.1.1.dylib ...
ld: Undefined symbols:
__ZdaPv
__ZdlPv
__Znam
__Znwm
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
___cxa_pure_virtual


On May 5, 2006, at 2:59 PM, Istvan Varga wrote:

> What sources and FLTK version did you use ?
>
> On Friday 05 May 2006 21:31, David Akbari wrote:
>
>> While trying today to compile csound5gui on a fresh OS X 10.4 system,
>> I get the following error trying to compile using both g++ 4.0.1 and
>> g++ 3.3
>>
>> g++ -Wall -W -ansi -pedantic -g -O -I. -I../../H -I../../interfaces -c
>> CsoundPerformanceSettingsPanel_FLTK.cpp -o
>> CsoundPerformanceSettingsPanel_FLTK.o
>> CsoundPerformanceSettingsPanel_FLTK.cpp: In member function 'void
>> CsoundPerformanceSettingsPanel::cb_Buffer_i(Fl_Choice*, void*)':
>> CsoundPerformanceSettingsPanel_FLTK.cpp:383: error: 'numBuffersInput'
>> was not declared in this scope
>> CsoundPerformanceSettingsPanel_FLTK.cpp:385: error: 'numBuffersInput'
>> was not declared in this scope
>> make: *** [CsoundPerformanceSettingsPanel_FLTK.o] Error 1
>>
>> Any help appreciated on how to make this work!



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-06 09:48
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-06 18:20
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-06 23:10
FromDavid Akbari
SubjectRe: [Cs-dev] csound5gui Error
Hi Istvan,

On May 6, 2006, at 1:20 PM, Istvan Varga wrote:

> There is a new source package now here:
>   http://csound.sourceforge.net/csound5-20060506.tar.gz

Thanks for posting the tarball !

> Note that the
> GUI frontend has some currently incomplete code for loading Python
> scripts, and it is now built using SConstruct which was not tested
> on the Mac yet.

Running SConstruct out of the box with the desired options, the first  
error I encountered was a strange one

cp -af csound5gui frontends/fltk_gui/Csound5GUI.app/Contents/MacOS/
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
        cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN  
directory
scons: ***  
[frontends/fltk_gui/Csound5GUI.app/Contents/MacOS/csound5gui] Error 64
scons: building terminated because of errors.

It seems that the cp program doesn't have the -a Archive option like on  
Linux ...

My workaround was taking this function defined in SConstruct

(line 1310)
     if getPlatform() == 'darwin':
         appDir = 'frontends/fltk_gui/Csound5GUI.app/Contents/MacOS'
         csound5GUIEnvironment.Command(
             '%s/csound5gui' % appDir, 'csound5gui',
             "cp -af $SOURCE %s/" % appDir)

fixed with

     if getPlatform() == 'darwin':
         appDir = 'frontends/fltk_gui/Csound5GUI.app/Contents/MacOS'
         csound5GUIEnvironment.Command(
             '%s/csound5gui' % appDir, 'csound5gui',
             "cp $SOURCE %s/" % appDir)

otherwise everything compiles and links without issue. I saw that  
Victor made them go into .apps in their respective frontend  
directories, however the binary files generated in the root of the  
source tree still need Rez run on them if simply executed with ./  
instead of double-clicked on the .app [1].

> There are a few things that may be worth testing to fix possible
> bugs before the 5.02 release:
>   - the csound5gui frontend tries to load the Python library from
>      
> /System/Library/Frameworks/Python.Framework/Versions/Current/lib/ 
> libpython2.4.dylib
>     on MacOS X. Check the message printed at start-up to find out
>     if loading Python was successful; if it was not, sending the
>     correct path to the library would be welcome.

I got this

"Python not found, disabling scripting. Check your PATH or Python  
installation."

Perhaps this differs for Mac OS 10.4, but on OS 10.3, it likes to have  
Python 2.3 as the inexorable default. I have also installed Python 2.4  
and that lives at

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/

as opposed to Python 2.3's which is at

/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/

Note that in the location

> /System/Library/Frameworks/Python.Framework/Versions/Current/lib/ 
> libpython2.4.dylib

That "Current" is actually just a symbolic link to a directory labeled  
'2.3' or '2.4'. I actually couldn't locate a libpython2.3.dylib or a  
libpython2.4.dylib and exploring the path at

/Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/

is a lot of .py, .pyc, and .pyo files - but no libpython.dylib ?? I ran  
the locate program several times but couldn't find any such library...  
perhaps Victor has a clue on this one.

>   - problems were reported about using the JACK plugin on OS X.
>     I made some attempts to fix/improve this, but do not know if
>     the changes have any useful effect.

I saw that there were additional fields in the Options -> Csound...  
dialog for specifying the name and port prefix. That's quite useful. I  
didn't experience any other anomalies other than the usual

  *** rtjack: period size (-b) must be an integer multiple of ksmps

which is intended behavior. With excessive intentional GUI disruption I  
get

WARNING: rtjack: xrun in real time audio

but no worse than just running Csound in a Terminal window and doing  
the same kinds of excessive click-dragging around.

>   - FLTK graphs and widgets in the GUI frontend.

Trying Art Hunkins piece, "Angel Dervish" I notice an additional warning

FLpanel: widget opcodes have been disabled by the host application

when intentionally leaving the "Perform audio in a separate thread" box  
checked. Also, toggling this specific checkbox disables the OK and  
Cancel buttons on the "Csound performance settings" window from having  
any effect (they depress but the window stays forcing a kill -9). It  
works the first time, but if you enable/disable it, the OK and Cancel  
no longer work.

When disabling Perform in a separate thread, while using the JACK  
driver to do FLTK I notice that the csound5gui frontend connects to  
Jack but the transport indicator doesn't register correctly when  
pressing the play button like it does when rendering other csds, just  
leaving the --.--.-- without numerical output.

When leaving perform in a separate thread on using the native CoreAudio  
driver, the FLTK window is created and the DigiCoreAudio Manager pops  
up (indicating the driver is being used by an application) but I get no  
sound or reaction in the Csound console output. Also, after closing  
everything here the "Csound performance settings" window sticks around.  
When disabling the Perform in a separate thread while using CoreAudio  
driver, the FLTK window is created and driver initialized but the  
console or transport does not reflect this. Also there is no sound.

This behavior is not present when running .csd files that do not  
contain FLTK widget opcodes. I think I've said this before, but due to  
the non-imperative nature of FLTK widget opcodes in my work, I find  
this frontend incredibly useful. It will be a good day when a decision  
is reached on how to migrate FLTK to using emulated widgets via the  
software bus.

I was using this file [0], Art's piece stdervish.csd, examples/fl.csd,  
and examples/trappedrt.csd primarily to test the csound5gui frontend.  
Thanks again for posting these changes that include the stack, push,  
and pop opcodes !





-David

[1]

I think it would be beneficial to add a commandline if platform ==  
"darwin" in the SConstruct that simply executed this line after linking  
everything

/Developer/Tools/Rez -i APPL -o csound5gui cs5.r;\
/Developer/Tools/Rez -i APPL -o winsound cs5.r

so that the two frontends can simply be executed in the top level of  
the sources by ./csound5gui or ./winsound and actually be movable by  
the mouse. Rez is already run on the encapsulation of these in .app  
form but I often prefer executing things via the commandline. As it is  
now, the two frontends run, but without Rez, it is impossible to move  
them with the mouse or make them in active focus.

[0]




; "Twilight" by David Akbari

sr		=	44100
ksmps	=	64
nchnls	=	2

ga1	init	0
ga2	init	0

/*--- ---*/

		opcode	cpsmid, k, k

kmid	xin

#define MIDI2CPS(xmidi) # (440.0*exp(log(2.0)*(($xmidi)-69.0)/12.0)) #

kcps	=	$MIDI2CPS(kmid)

	xout	kcps

		endop

/*--- ---*/

		opcode pan_equal_power, aa, ak

ain, kpan       xin

kangl   =  1.57079633 * (kpan + 0.5)

         xout    ain * sin(kangl), ain * cos(kangl)

		endop

/*--- ---*/

		instr	1,2,3,4,5,6,7,8

kcps	cpsmid	p4
ivelo		=	p5

; try ampdb(79)
a1	oscil	ampdb(74), kcps, 10

kenv	oscil	1, (1 / p3), 8

a1	=	a1 * kenv

;kpan	random	-0.5, 0.5	
kpan	=	0
kpan	port	kpan, 0.05

aL, aR	pan_equal_power a1, kpan

kcnv	oscil	1, (1 / p3), 9

aL	=	aL * kcnv
aR	=	aR * kcnv

;aL	butlp	aL, 420
;aR	butlp	aR, 420

ga1	=	ga1 + (aL * 0.618)
ga2	=	ga2 + (aR * 0.618)

aL	butlp	aL, 420
aR	butlp	aR, 420

aL	=	aL * 0.2358
aR	=	aR * 0.2358

	outs	aL, aR

		endin

/*---

		instr	3,4,7,8

ain1	=	0

	scanu	1, .01, 6, 2, 3, 4, 5, 2, .1, .1, -.01, .1, .5, 0, 0, ain1, 1, 2

kcps	cpsmid	p4
ivelo	=		p5

; try ampdb(79)
a1	scans 	ampdb(74), kcps, 7,       2

arez	rezzy	a1, 358, 0.01

kenv1	phasor	(1 / p3)

isz	tableng	9
kenv1	=	kenv1 * isz

kenv	table	kenv1, 9

arez	=	arez * kenv

ga1	=	ga1 + (arez * 0.618)
ga2	=	ga2 + (arez * 0.618)

	outs	arez, arez

		endin

---*/

		instr 25	;Costello Reverb

ahp1	butterhp	ga1, 111
ahp2	butterhp	ga2, 111

aL, aR	reverbsc	ahp1, ahp2, 0.91, 18532

	outs	aL, aR

ga1 = 0
ga2 = 0

	endin

/*--- ---*/



;; Scanned Synth parameters

; Initial condition

f1 0 128 20 9 1

; Masses

f2 0 128 -7 1 128 1

; Spring matrices

;f3 0 16384 -23  
"/Volumes/Neuromancer/TEMP/twilight/circularstring-128.matrix"

; Centering force

f4  0 128 -7 0 128 2

; Damping

f5 0 128 -7 .8 128 1

; Initial velocity

f6 0 128 -7 0 128 .5

; Trajectories

f7 0 128 -5 .001 128 128

;;;;

f8 0 16384 11 1	; cosine wave

f9 0 16384 20 9 1	; sync window

f10 0 16384 10 1 .5 .333333	; siney wave

; reverb

i25      0.0000     425

; tempo

t	    0.0000	   85.0000

; voice A1

i 1	    0.0000	   23.7500	 51	110
i 1	    0.0000	   23.7500	 58	110
i 1	    0.0000	   23.7500	 62	110
i 1	   32.0000	   23.7500	 53	110
i 1	   32.0000	   23.7500	 58	110
i 1	   32.0000	   23.7500	 60	110
i 1	   64.0000	   23.7500	 47	110
i 1	   64.0000	   23.7500	 49	110
i 1	   64.0000	   23.7500	 51	110
i 1	   64.0000	   23.7500	 57	110
i 1	   96.0000	   23.7500	 48	110
i 1	   96.0000	   23.7500	 52	110
i 1	   96.0000	   23.7500	 54	110
i 1	   96.0000	   23.7500	 57	110
i 1	  128.0000	   23.7500	 49	110
i 1	  128.0000	   23.7500	 53	110
i 1	  128.0000	   23.7500	 57	110
i 1	  128.0000	   23.7500	 61	110
i 1	  160.0000	   23.7500	 58	110
i 1	  160.0000	   23.7500	 62	110
i 1	  160.0000	   23.7500	 66	110
i 1	  192.0000	   23.7500	 54	110
i 1	  192.0000	   23.7500	 58	110
i 1	  192.0000	   23.7500	 60	110
i 1	  192.0000	   23.7500	 63	110

; voice A2

i 2	    0.0000	   23.7500	 43	110
i 2	    0.0000	   23.7500	 48	110
i 2	   32.0000	   23.7500	 31	110
i 2	   32.0000	   23.7500	 38	110
i 2	   32.0000	   23.7500	 46	110
i 2	   64.0000	   23.7500	 35	110
i 2	   64.0000	   23.7500	 39	110
i 2	   96.0000	   23.7500	 28	110
i 2	   96.0000	   23.7500	 34	110
i 2	  128.0000	   23.7500	 32	110
i 2	  128.0000	   23.7500	 39	110
i 2	  160.0000	   23.7500	 44	110
i 2	  160.0000	   23.7500	 48	110
i 2	  192.0000	   23.7500	 34	110
i 2	  192.0000	   23.7500	 40	110

; voice B1

i 3	   16.0000	   23.7500	 54	110
i 3	   16.0000	   23.7500	 57	110
i 3	   16.0000	   23.7500	 58	110
i 3	   16.0000	   23.7500	 64	110
i 3	   48.0000	   23.7500	 49	110
i 3	   48.0000	   23.7500	 54	110
i 3	   48.0000	   23.7500	 55	110
i 3	   48.0000	   23.7500	 61	110
i 3	   80.0000	   23.7500	 47	110
i 3	   80.0000	   23.7500	 54	110
i 3	   80.0000	   23.7500	 59	110
i 3	  112.0000	   23.7500	 45	110
i 3	  112.0000	   23.7500	 49	110
i 3	  112.0000	   23.7500	 51	110
i 3	  112.0000	   23.7500	 54	110
i 3	  144.0000	   23.7500	 58	110
i 3	  144.0000	   23.7500	 65	110
i 3	  176.0000	   23.7500	 53	110
i 3	  176.0000	   23.7500	 60	110
i 3	  176.0000	   23.7500	 65	110

; voice B2

i 4	   16.0000	   23.7500	 37	110
i 4	   16.0000	   23.7500	 45	110
i 4	   48.0000	   23.7500	 34	110
i 4	   48.0000	   23.7500	 42	110
i 4	   80.0000	   23.7500	 25	110
i 4	   80.0000	   23.7500	 33	110
i 4	  112.0000	   23.7500	 25	110
i 4	  112.0000	   23.7500	 31	110
i 4	  144.0000	   23.7500	 43	110
i 4	  144.0000	   23.7500	 48	110
i 4	  176.0000	   23.7500	 31	110
i 4	  176.0000	   23.7500	 39	110

; voice C1

i 5	  208.0000	   23.7500	 75	110
i 5	  208.0000	   23.7500	 82	110
i 5	  208.0000	   23.7500	 86	110
i 5	  240.0000	   23.7500	 77	110
i 5	  240.0000	   23.7500	 82	110
i 5	  240.0000	   23.7500	 84	110
i 5	  272.0000	   23.7500	 71	110
i 5	  272.0000	   23.7500	 73	110
i 5	  272.0000	   23.7500	 75	110
i 5	  272.0000	   23.7500	 81	110
i 5	  304.0000	   23.7500	 72	110
i 5	  304.0000	   23.7500	 76	110
i 5	  304.0000	   23.7500	 78	110
i 5	  304.0000	   23.7500	 81	110
i 5	  336.0000	   23.7500	 73	110
i 5	  336.0000	   23.7500	 77	110
i 5	  336.0000	   23.7500	 81	110
i 5	  336.0000	   23.7500	 85	110
i 5	  368.0000	   23.7500	 82	110
i 5	  368.0000	   23.7500	 86	110
i 5	  368.0000	   23.7500	 90	110
i 5	  400.0000	   23.7500	 78	110
i 5	  400.0000	   23.7500	 82	110
i 5	  400.0000	   23.7500	 84	110
i 5	  400.0000	   23.7500	 87	110

; voice C2

i 6	  208.0000	   23.7500	 67	110
i 6	  208.0000	   23.7500	 72	110
i 6	  240.0000	   23.7500	 55	110
i 6	  240.0000	   23.7500	 62	110
i 6	  240.0000	   23.7500	 70	110
i 6	  272.0000	   23.7500	 59	110
i 6	  272.0000	   23.7500	 63	110
i 6	  304.0000	   23.7500	 52	110
i 6	  304.0000	   23.7500	 58	110
i 6	  336.0000	   23.7500	 56	110
i 6	  336.0000	   23.7500	 63	110
i 6	  368.0000	   23.7500	 68	110
i 6	  368.0000	   23.7500	 72	110
i 6	  400.0000	   23.7500	 58	110
i 6	  400.0000	   23.7500	 64	110

; voice D1

i 7	  224.0000	   23.7500	 78	110
i 7	  224.0000	   23.7500	 81	110
i 7	  224.0000	   23.7500	 82	110
i 7	  224.0000	   23.7500	 88	110
i 7	  256.0000	   23.7500	 73	110
i 7	  256.0000	   23.7500	 78	110
i 7	  256.0000	   23.7500	 79	110
i 7	  256.0000	   23.7500	 85	110
i 7	  288.0000	   23.7500	 71	110
i 7	  288.0000	   23.7500	 78	110
i 7	  288.0000	   23.7500	 83	110
i 7	  320.0000	   23.7500	 69	110
i 7	  320.0000	   23.7500	 73	110
i 7	  320.0000	   23.7500	 75	110
i 7	  320.0000	   23.7500	 78	110
i 7	  352.0000	   23.7500	 82	110
i 7	  352.0000	   23.7500	 89	110
i 7	  384.0000	   23.7500	 77	110
i 7	  384.0000	   23.7500	 84	110
i 7	  384.0000	   23.7500	 89	110

; voice D2

i 8	  224.0000	   23.7500	 61	110
i 8	  224.0000	   23.7500	 69	110
i 8	  256.0000	   23.7500	 58	110
i 8	  256.0000	   23.7500	 66	110
i 8	  288.0000	   23.7500	 49	110
i 8	  288.0000	   23.7500	 57	110
i 8	  320.0000	   23.7500	 49	110
i 8	  320.0000	   23.7500	 55	110
i 8	  352.0000	   23.7500	 67	110
i 8	  352.0000	   23.7500	 72	110
i 8	  384.0000	   23.7500	 55	110
i 8	  384.0000	   23.7500	 63	110
s

t0 85

i25      0.0000     [10+23.75]

i 7	     0.0000	   23.7500	 82	110
i 7	     0.0000	   23.7500	 89	110
i 8	     0.0000	   23.7500	 67	110
i 8	     0.0000	   23.7500	 72	110
i 1	     8.0000	   23.7500	 51	110
i 1	     8.0000	   23.7500	 58	110
i 1	     8.0000	   23.7500	 62	110
i 2	     8.0000	   23.7500	 43	110
i 2	     8.0000	   23.7500	 48	110

e






-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-06 23:38
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-07 04:07
FromAnthony Kozar
SubjectRe: [Cs-dev] csound5gui Error
cp-ing a file after running Rez will be futile, as cp will only copy the
data fork and not the resource fork added by Rez.  You can either Rez after
the cp or use the MacOS X-specific tool CpMac that also copies resource
forks.  (It may be necessary to specify the complete path to CpMac which I
think is the same as Rez).

Anthony Kozar
anthonykozar AT sbcglobal DOT net


Istvan Varga wrote on 5/6/06 6:38 PM:

> OK, this will be fixed, too. Is running Rez on the file in the top
> directory, and only after that copying it to the app directory
> sufficient, or does Rez need to be run twice (this may be a trivial
> question, but I am not familiar with OS X).



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-07 14:38
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-07 14:38
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-07 14:48
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-08 03:40
FromGraham Breed
SubjectRe: [Cs-dev] csound5gui Error
Istvan Varga wrote:
> I have made changes to check the following files, in this order:

I have Tiger...

>     "/System/Library/Frameworks/Python.Framework/Versions/Current/Python",
>     "/System/Library/Frameworks/Python.framework/Versions/Current/Python",

It's the second: the small f.  But OS X isn't case specific so it 
doesn't matter.

>     "/System/Library/Frameworks/Python.Framework/Versions/2.4/Python",
>     "/System/Library/Frameworks/Python.framework/Versions/2.4/Python",

I don't have 2.4

>     "/System/Library/Frameworks/Python.Framework/Versions/2.3/Python",
>     "/System/Library/Frameworks/Python.framework/Versions/2.3/Python",

2.3 comes with the OS and "Current" is a link to it.

>     "/usr/lib/libpython2.4.dylib",

Not here.

>     "/usr/lib/libpython2.3.dylib",

This is a link to /usr/lib/python2.dylib which is in turn a link to 
/System/Library/Frameworks/Python.framework/Versions/2.3/Python. 
There's also a /usr/lib/libpython.dylib

>     "/Library/Frameworks/Python.Framework/Versions/Current/Python",
>     "/Library/Frameworks/Python.framework/Versions/Current/Python",
>     "/Library/Frameworks/Python.Framework/Versions/2.4/Python",
>     "/Library/Frameworks/Python.framework/Versions/2.4/Python",
>     "/Library/Frameworks/Python.Framework/Versions/2.3/Python",
>     "/Library/Frameworks/Python.framework/Versions/2.3/Python",

Nope, no Python under /Library/Frameworks.  I don't know where a new 
install would go.

>     "/usr/local/lib/libpython2.4.dylib",
>     "/usr/local/lib/libpython2.3.dylib",

Could be, yes.  As well as /usr/local/ you could try /opt/local/ and 
/sw/ because Darwin Ports and Fink use them.

> It would be much easier to fix, though, if someone having access to
> OS X explained how and from where the Python library should be loaded
> dynamically (at run-time) on OS X.

I don't know what you *should* do, and can't speak for other versions, 
but for Tiger you can count on one of those links working for 2.3.

HTH,

               Graham


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-08 03:59
From"Steven Yi"
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-08 07:37
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-08 07:51
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-08 19:23
FromAnthony Kozar
SubjectRe: [Cs-dev] csound5gui Error
Yes, finding Python on OS X is further complicated by the fact that Apple
has changed how they provide Python with pretty much every release.

Here is what I *think* is correct, but I am not sure:

10.4  Full MacPython distro as a framework in /Systems/Library/Frameworks

10.3  Python 2.3? framework in /Systems/Library/Frameworks (no IDE though)

10.2  Commandline Python 2.2 only in /usr/bin

10.1 & 10.0  No Python installed by default

On my 10.2 system I also have installed a MacPython 2.3.5 framework and that
went into /Library/Frameworks.  I think that the normal linking order on OS
X finds /Library/Frameworks before it finds /System/Library/Frameworks, so
that may be the prefered order.

I do not think I have ever seen a python library named like this:

>     "/usr/lib/libpython2.4.dylib",

but I may not have ever installed a commandline python with headers and
libraries.

A reasonable search path might be

/Library/Frameworks/Python.framework/Versions/Current/Python
/System/Library/Frameworks/Python.framework/Versions/Current/Python
/usr/local/lib/libpython.dylib
/opt/local/lib/libpython.dylib
/sw/lib/libpython.dylib
/usr/lib/libpython.dylib

where libpython.dylib is replaced by whatever the python library is called
when installed as a "standard Unix" package instead of a Mac framework.
(But users who install Python via Fink or Darwin Ports like I did on my 10.1
computer may not have any library at all).

I have not exhaustively checked all of these facts ...

Anthony Kozar
anthonykozar AT sbcglobal DOT net


Istvan Varga wrote on 5/8/06 2:51 AM:

> It complicates the issue somewhat that there may also be an user-installed
> Python framework in /Library, and it is not clear which one should be used
> if the two locations have different versions of Python (e.g. 2.4 in /Library
> and 2.3 in /System/Library).
> 
> On Monday 08 May 2006 08:37, Istvan Varga wrote:
> 
>> OK, so /System/Library/Frameworks/Python.framework/Versions/Current/Python
>> is the best choice. It is already what is checked first, but if I
>> understand correctly, all the uppercase "Python.Framework" paths are
>> redundant and can be removed (I thought that OS X, being a variant of
>> Unix, is case sensitive, and I found both "Python.Framework" and
>> "Python.framework" in various places, so I wanted to be safe).



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-08 19:35
FromAnthony Kozar
SubjectRe: [Cs-dev] csound5gui Error
I think that most commandline tools are case sensitive.  However the default
filesystem (HFS+) inherited from MacOS 9 is case insensitive.  Since OS X
supports multiple filesystems though, the safest assumption is that
filenames are case sensitive but that you cannot have two files with
identical names when ignoring case.  (So don't assume that you can create
two files named "temp" and "TEMP" in the same directory).

(.framework seems to be the correct case usage).

Anthony Kozar
anthonykozar AT sbcglobal DOT net


Istvan Varga wrote on 5/8/06 2:37 AM:

> all the uppercase "Python.Framework" paths are
> redundant and can be removed (I thought that OS X, being a variant of
> Unix, is case sensitive, and I found both "Python.Framework" and
> "Python.framework" in various places, so I wanted to be safe).



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-08 19:59
FromAnthony Kozar
SubjectRe: [Cs-dev] csound5gui Error
This would be why I could not find any python library on 10.2 that came with
the OS:

"4.1 What are the problems with the included Python on Mac OS X 10.2?

Mac OS X 10.2 shipped with Python 2.2.0, which was rife with bugs (both
cross-platform and Mac specific bugs). A shared library was not available
(it was statically linked), so this Python could not be embedded in other
software. Thus, application bundles that bootstrapped with this Python
needed to use a shell script or equivalent that did an execve(...) call to
/usr/bin/python. Additionally, the config/Makefile for this Python had some
compiler flags related to x86 cross-compilation that Apple neglected to
remove from their production build, thus it was necessary to sudo vi this
file or mangle distutils a bit at runtime from setup.py in order to build
extensions at all. 

The best solution if you want Python on Mac OS X 10.2 is to install
"MacPython" found  here."


So, any user wanting to use csound5gui on 10.2 should be advised to install
a Python framework distro.

Anthony

Anthony Kozar wrote on 5/8/06 2:23 PM:

> I do not think I have ever seen a python library named like this:
> 
>> "/usr/lib/libpython2.4.dylib",
> 
> but I may not have ever installed a commandline python with headers and
> libraries.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-08 20:12
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-08 20:29
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone  

Date2006-05-08 22:12
FromAnthony Kozar
SubjectRe: [Cs-dev] csound5gui Error
No, it is not necessarily a safe assumption.  From what I was reading on the
MacPython wiki, the linking issues with Python extensions and hosts can be
quite tricky.

Here is the relevant link:



THe stuff near the end of this FAQ answer is the most relevant.  I do not
completely understand how OS X searches for libraries  myself.

Anthony


Istvan Varga wrote on 5/8/06 3:29 PM:

> Ideally, the Python library loaded should be the same as the one that
> _csnd.so links against at run-time. Is it safe to assume that
> /Library/Frameworks is preferred even if /System/Library/Frameworks
> was used at link time (i.e. are the library paths hardcoded into the
> binaries) ?



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net