lispgames / glop

Direct FFI bindings for OpenGL window and context management
MIT License
67 stars 14 forks source link

osx el capitan dylib error #21

Open gregcman opened 8 years ago

gregcman commented 8 years ago

on osx el capitan i had to comment out lines 44-47 in "appkit.m" in order for it to build correctly. Then, in sbcl i had to disable floating point traps. I suggest this gets put in some sort of documentation

patzy commented 8 years ago

Is this specific to the el captain osx version ?

tavurth commented 7 years ago

OSX Sierra:

* (ql:quickload "glop")
To load "glop":
  Load 1 ASDF system:
    glop
; Loading "glop"
.
debugger invoked on a LOAD-FOREIGN-LIBRARY-ERROR in thread
#<THREAD "main thread" RUNNING {1001F0EC13}>:
  Unable to load foreign library (BRIDGE).
  Error opening shared object "/Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib":
  dlopen(/Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib, 10): no suitable image found.  Did find:
    /Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib: mach-o, but wrong architecture
    /Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib: mach-o, but wrong architecture.

Type HELP for debugger help, or (SB-EXT:EXIT) 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 bridge and try loading it again
  3: [RETRY                        ] Retry
                                     loading FASL for #<CL-SOURCE-FILE "glop" "src" "osx" "bridge">.
  4: [ACCEPT                       ] Continue, treating
                                     loading FASL for #<CL-SOURCE-FILE "glop" "src" "osx" "bridge">
                                     as having been successful.
  5:                                 Retry ASDF operation.
  6: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
                                     configuration.
  7: [ABORT                        ] Give up on "glop"
  8:                                 Exit debugger, returning to top level.

(CFFI::FL-ERROR "Unable to load foreign library (~A).~%  ~A" BRIDGE "Error opening shared object \"/Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib\":
  dlopen(/Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib, 10): no suitable image found.  Did find:
    /Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib: mach-o, but wrong architecture
    /Users/Tavurth/quicklisp/dists/quicklisp/software/glop-20160531-git/src/osx/bridge/glop-bridge.dylib: mach-o, but wrong architecture.")
   source: (ERROR 'LOAD-FOREIGN-LIBRARY-ERROR :FORMAT-CONTROL CONTROL
                  :FORMAT-ARGUMENTS ARGUMENTS)
tavurth commented 7 years ago

When running make:

appkit.m:44:12: error: redefinition of 'NSEventModifierFlags' as different kind of symbol
patzy commented 7 years ago

What about previous versions? I made a change in the devel branch but since I don't have any osx to test it any feedback from osx users would be appreciated.