Lisp HUG Maillist Archive

CL-GD on OS X

Hi,

I just joined the list, so sorry if this has been covered.  Has  
anyone installed CL-GD on on OS X.  I'm using Lispworks 5.  I  
compiled CL-GD-GLUE fine, and it seems to load, but I get a series of  
errors when I run the test.

I'm sure it's a stupid configuration problem, but maybe someone else  
has worked through it before?

Thanks,
Chhi'mèd

CL-GD-TEST 2341 > (test)
Test 1 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 2 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 3 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 4 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 5 failed with the following error: File #P"/Users/clwk/garuda/ 
external/cl-gd-0.5.2/test/one-pixel.png" could not be found
Test 6 failed with the following error: File #P"/Users/clwk/garuda/ 
external/cl-gd-0.5.2/test/one-pixel.png" could not be found
Test 7 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 8 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 9 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 10 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-DESTROY trying to call to unresolved external function  
"_gdImageDestroy".
Test 11 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 12 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 13 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 14 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 15 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 16 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE-TRUE-COLOR trying to call to unresolved external  
function "_gdImageCreateTrueColor".
Test 17 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 18 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE trying to call to unresolved external function  
"_gdImageCreate".
Test 19 failed with the following error: Foreign function CL-GD::GD- 
IMAGE-CREATE-TRUE-COLOR trying to call to unresolved external  
function "_gdImageCreateTrueColor".
Done.
NIL

Cl


Re: CL-GD on OS X

Have you called fli:register-module to load libgd before trying to  
call function in that library?

-greg


On Mar 10, 2007, at 9:17 AM, Chhi'med Kunzang wrote:

>
> Hi,
>
> I just joined the list, so sorry if this has been covered.  Has  
> anyone installed CL-GD on on OS X.  I'm using Lispworks 5.  I  
> compiled CL-GD-GLUE fine, and it seems to load, but I get a series  
> of errors when I run the test.
>
> I'm sure it's a stupid configuration problem, but maybe someone  
> else has worked through it before?
>
> Thanks,
> Chhi'mèd
>
> CL-GD-TEST 2341 > (test)
> Test 1 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 2 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 3 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 4 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 5 failed with the following error: File #P"/Users/clwk/garuda/ 
> external/cl-gd-0.5.2/test/one-pixel.png" could not be found
> Test 6 failed with the following error: File #P"/Users/clwk/garuda/ 
> external/cl-gd-0.5.2/test/one-pixel.png" could not be found
> Test 7 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 8 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 9 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 10 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-DESTROY trying to call to unresolved external function  
> "_gdImageDestroy".
> Test 11 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 12 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 13 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 14 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 15 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 16 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE-TRUE-COLOR trying to call to unresolved external  
> function "_gdImageCreateTrueColor".
> Test 17 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 18 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE trying to call to unresolved external function  
> "_gdImageCreate".
> Test 19 failed with the following error: Foreign function CL-GD::GD- 
> IMAGE-CREATE-TRUE-COLOR trying to call to unresolved external  
> function "_gdImageCreateTrueColor".
> Done.
> NIL
>
> Cl
>



Re: CL-GD on OS X

On Sat, 10 Mar 2007 10:17:19 -0700, "Chhi'med Kunzang" <clkunzang@gmail.com> wrote:

> I just joined the list, so sorry if this has been covered.

It's probably more appropriate to continue this discussion on the
CL-GD mailing list.  I've put the list on Cc, but you'll have to
subscribe to post something there.

> Has anyone installed CL-GD on on OS X.  I'm using Lispworks 5.  I
> compiled CL-GD-GLUE fine, and it seems to load, but I get a series
> of errors when I run the test.
>
> I'm sure it's a stupid configuration problem, but maybe someone else
> has worked through it before?

I don't have a Mac, so I can't confirm that CL-GD runs on OS X, but I
think that there's nothing specific in the code that prevents it from
running there.

> "_gdImageCreate".

The underline shouldn't be there.  The C function is called
"gdImageCreate" (unless this is some name mangling convention on OS X
that I'm not aware of).

Where did you get the GD library from and where is it located?
Updated at: 2020-12-10 08:46 UTC