[MacPorts] #64655: libsdl2: find some version to use for Tiger and Leopard

MacPorts noreply at macports.org
Tue Mar 1 18:17:49 UTC 2022


#64655: libsdl2: find some version to use for Tiger and Leopard
---------------------------+------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc, leopard
      Port:  libsdl2       |
---------------------------+------------------------------

Comment (by barracuda156):

 P. S. Wonder if `libsdl2` actually works though LOL. I honestly picked a
 random helloworld from here:
 https://gist.github.com/cicanci/b54715298ab55dff2fbcd0ca3829d13b

 And neither of the two versions produced meaningful output on 10.6.8.

 Here is what I got with my 2.0.9:


 {{{
 Sergey-Fedorovs-Mac-mini:Documents svacchanda$
 /opt/svacchanda/gcc10ppc/bin/g++ /Users/svacchanda/Documents/test.cpp
 -I/opt/local/include/SDL2 -L/opt/local/lib -lSDL2 -o test
 Sergey-Fedorovs-Mac-mini:Documents svacchanda$
 /Users/svacchanda/Documents/test 2022-03-02 02:07:01.292 test[38833:903]
 *** __NSAutoreleaseNoPool(): Object 0x1944e20 of class NSView autoreleased
 with no pool in place - just leaking
 2022-03-02 02:07:01.336 test[38833:903] *** __NSAutoreleaseNoPool():
 Object 0x1945080 of class NSCFArray autoreleased with no pool in place -
 just leaking
 2022-03-02 02:07:01.340 test[38833:903] *** __NSAutoreleaseNoPool():
 Object 0x19459f0 of class NSCFArray autoreleased with no pool in place -
 just leaking
 2022-03-02 02:07:01.977 test[38833:903] INFO: SDL_LoadBMP Error: Couldn't
 open image.bmp
 }}}

 Then I reverted to the old @kencu's 2.0.3:

 {{{
 Sergey-Fedorovs-Mac-mini:Documents svacchanda$
 /opt/svacchanda/gcc10ppc/bin/g++ /Users/svacchanda/Documents/test.cpp
 -I/opt/local/include/SDL2 -L/opt/local/lib -lSDL2 -o test2
 Sergey-Fedorovs-Mac-mini:Documents svacchanda$
 /Users/svacchanda/Documents/test2
 2022-03-02 02:09:36.649 test2[38865:903] INFO: SDL_Init Error: The video
 driver did not add any displays
 }}}

 They fail differently, but both fail.

 P. S. At the same time I am not sure how this at all is supposed to work
 via Rosetta, so will repeat on the Quad later.

-- 
Ticket URL: <https://trac.macports.org/ticket/64655#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list