justinhj / lispbuilder

Automatically exported from code.google.com/p/lispbuilder
0 stars 0 forks source link

Quicklisp cant load cocoahelper #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
(ql:quickload 
         '(:lispbuilder-sdl-mixer :lispbuilder-sdl-ttf 
     :lispbuilder-sdl-image :uuid :cl-opengl :cl-fad))

What is the expected output? What do you see instead?

This is SBCL 1.0.55.0-abb03f9, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
To load "lispbuilder-sdl-mixer":
  Load 1 ASDF system:
    lispbuilder-sdl-mixer
; Loading "lispbuilder-sdl-mixer"
[package lispbuilder-sdl-mixer-binaries]..........
[package lispbuilder-sdl-assets]..................
[package lispbuilder-sdl-binaries]................
[package alexandria.0.dev]........................
[package babel-encodings].........................
[package babel]...................................
..................................................
[package cffi-sys]................................
[package cffi]....................................
[package cffi-features]...........................
[package lispbuilder-sdl-cocoahelper]
debugger invoked on a LOAD-FOREIGN-LIBRARY-ERROR:
  Unable to load any of the alternatives:
   ((:FRAMEWORK "cocoahelper") (:DEFAULT "cocoahelper"))

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY          ] Try loading the foreign library again.
  1: [USE-VALUE      ] Use another library instead.
  2: [TRY-RECOMPILING] Recompile cocoahelper and try loading it again
  3: [RETRY          ] Retry
                       loading FASL for #<CL-SOURCE-FILE "cocoahelper" "cocoahelper" "cocoahelper">.
  4: [ACCEPT         ] Continue, treating
                       loading FASL for #<CL-SOURCE-FILE "cocoahelper" "cocoahelper" "cocoahelper">
                       as having been successful.
  5: [ABORT          ] Give up on "lispbuilder-sdl-mixer"
  6: [RETRY          ] Retry EVAL of current toplevel form.
  7: [CONTINUE       ] Ignore error and continue loading file "/Users/kilon/blocky/loadme.lisp".
  8:                   Abort loading file "/Users/kilon/blocky/loadme.lisp".
  9:                   Ignore runtime option --load "loadme.lisp".
 10:                   Skip rest of --eval and --load options.
 11:                   Skip to toplevel READ/EVAL/PRINT loop.
 12: [QUIT           ] Quit SBCL (calling #'QUIT, killing the process).

(CFFI::FL-ERROR
 "Unable to load any of the alternatives:~%   ~S"
 ((:FRAMEWORK "cocoahelper") (:DEFAULT "cocoahelper")))
0] 12
; 
; compilation unit aborted
;   caught 1 fatal ERROR condition

What version of the product are you using? On what operating system?

I assume its the latest since its downloaded by quicklisp , my OS is Lion 
latest.

Please provide any additional information below.

I am not the only one with this problem, the problem has been reported also in 
quicklisp mailing list here

http://groups.google.com/group/quicklisp/browse_thread/thread/d25c048674658efa/

The one things that worries me is that when I build I get warnings

make
gcc -fPIC  -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -c 
cocoahelper.m -o cocoahelper.o
cocoahelper.m: In function ‘setApplicationMenu’:
cocoahelper.m:163: warning: no ‘-setAppleMenu:’ method found
cocoahelper.m:163: warning: (Messages without a matching method signature
cocoahelper.m:163: warning: will be assumed to return ‘id’ and accept
cocoahelper.m:163: warning: ‘...’ as arguments.)
gcc -dynamiclib  -L/usr/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -o 
cocoahelper.dylib cocoahelper.o

I searched the issues here and I found the one mentioning a problem with not 
building the framework, he attached a new makefile, tried that makefile , I get 
the same error. It does create the cocoahelper.framework but cocoahelper stills 
fails to load. 

Original issue reported on code.google.com by theki...@gmail.com on 15 Mar 2012 at 9:52

GoogleCodeExporter commented 9 years ago
In case of ccl (Clozure CL64) it seems to load through quicklisp 
lispbuilder-sdl with no issues, but it messes up the Applemenu with adding a 
new apple icon that is smaller, so I think that the problem here is somewhate 
related with that applemenu missing method but of course I am not very good 
with lisp or objc so I will require your help here. Its seems like a bug

Original comment by theki...@gmail.com on 15 Mar 2012 at 10:24

GoogleCodeExporter commented 9 years ago
Does lispbuilder-sdl itself work?  

Original comment by l...@balooga.com on 26 Mar 2012 at 4:43

GoogleCodeExporter commented 9 years ago
in sbcl no , in ccl it displays a smaller apple icon which when i click on it 
nothing really happen, while he bigger apple icon opens up the apple menu 
correctly. That applies for all sdl examples and not just blocky. 

It seems that there is a conflict of some sort with Apple Menu. Also I remember 
last time I had several crashes with sdl examples and weird behavior.

And all that only with ccl I never managed to get sbcl working with sbcl at 
all. I can post the errors if you want with the sdl examples. In sort it seems 
lispbuilder is completely broken on macos Snow leopard and Lion.   

Original comment by theki...@gmail.com on 27 Mar 2012 at 12:53

GoogleCodeExporter commented 9 years ago
sorry i understand now that you wanted me to just load lispbuilder-sdl, my macs 
are at home will try that when i get back . Isnt cocoahelper needed for 
creating the SDL window ? I thought it was necessary. I do think only 
cocoahelper is the problem here, but I may be wrong, I will have to test and 
get back at you. 

Original comment by theki...@gmail.com on 27 Mar 2012 at 1:19

GoogleCodeExporter commented 9 years ago
I tried (ql:quickload '(:lispbuilder-sdl)) and it loaded without any problems.

Original comment by theki...@gmail.com on 27 Mar 2012 at 7:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
ok cocoahelper makes with these warnings

gcc -fPIC  -D_GNU_SOURCE=1 -D_THREAD_SAFE 
-I/Library/Frameworks/SDL.framework/Headers/ -c cocoahelper.m -o cocoahelper.o
cocoahelper.m: In function ‘-[SDLMain setupWorkingDirectory:]’:
cocoahelper.m:90: warning: pointer targets in passing argument 3 of 
‘CFURLGetFileSystemRepresentation’ differ in signedness
cocoahelper.m: In function ‘setApplicationMenu’:
cocoahelper.m:163: warning: no ‘-setAppleMenu:’ method found
cocoahelper.m:163: warning: (Messages without a matching method signature
cocoahelper.m:163: warning: will be assumed to return ‘id’ and accept
cocoahelper.m:163: warning: ‘...’ as arguments.)
gcc -dynamiclib  -framework SDL -framework Cocoa -o cocoahelper.dylib 
cocoahelper.o

when I (ql:quickload '(:lispbuilder-sdl)) it messes up the Applemenu with 
adding a new apple icon that is smaller, and I am suddenly unable to copy and 
paste stuff into the Clozure CL32 IDE. When I typed in the basic lispbuilder 
example (little green box in its own window) it doesn't work quite right: the 
box remains white, window doesn't close when I hit key (only closes when I hit 
the x button), box only moves to where I click to regain focus in that window.

Original comment by andersdh...@gmail.com on 24 Sep 2012 at 1:57

GoogleCodeExporter commented 9 years ago
this line is not in the original post

cocoahelper.m: In function ‘-[SDLMain setupWorkingDirectory:]’:
cocoahelper.m:90: warning: pointer targets in passing argument 3 of 
‘CFURLGetFileSystemRepresentation’ differ in signedness

Original comment by andersdh...@gmail.com on 24 Sep 2012 at 2:00