fujita-y / ypsilon

R7RS/R6RS Scheme Implementation
BSD 2-Clause "Simplified" License
55 stars 5 forks source link

can't run sdl examples #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make & make install 
2. cd example
3. ypsilon sdl-ttf-demo.scm

What is the expected output? 
Running sdl-ttf-demo.

What do you see instead?

error in load-shared-object: dlopen(/usr/local/lib/ypsilon/SDLMain.dylib, 9): 
no suitable image found.  Did find:
    /usr/local/lib/ypsilon/SDLMain.dylib: mach-o, but wrong architecture

irritants:
  ("/usr/local/lib/ypsilon/SDLMain.dylib")

backtrace:
  0  (SDL_Init SDL_INIT_EVERYTHING)
  ..."/Users/nek/Projects/ypsilon-read-only/example/sdl-ttf-demo.scm" line 31

What version of the product are you using? On what operating system?
Ypsilon 0.9.6-trunk/r506 
on OS X Lion 10.7.4

Please provide any additional information below.
Obviously the SDLMain.dylib is compiled with different arch
The fix is to add
 -arch i386
to SDLMain.dylib task

..but this brings different problem.

Original issue reported on code.google.com by nikdud...@gmail.com on 13 Oct 2012 at 4:00

GoogleCodeExporter commented 9 years ago
What version of the product are you using? 
SDL_ttf-2.0.11
SDL-1.2.15

Original comment by nikdud...@gmail.com on 13 Oct 2012 at 4:12

GoogleCodeExporter commented 9 years ago
The different problem http://code.google.com/p/ypsilon/issues/detail?id=153

Original comment by nikdud...@gmail.com on 13 Oct 2012 at 4:12