Author Topic: Newton Physics OS X (PPC)  (Read 3416 times)

Offline matty47

  • Mr. Drawsprite
  • **
  • Posts: 71
    • View Profile
    • Matt and Marg's Homesite
Newton Physics OS X (PPC)
« on: 2008-Jul-26 »
I believe that GLBasic uses the Newton Library as a dynamic library rather than statically linking. I have the libraries for Windows and Linux, but am not sure how to obtain / make the library for OS X. I am trialling on an Emac with System 10.5 installed. XCode is installed (Although I don't profess to really know how to use it). Has anyone used Newton and GLBasic on OS X? If so could you please give some advice on how to get Newton working or post the newton.dylib somewhere for download.
Thanks for your patience
Matthew

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Newton Physics OS X (PPC)
« Reply #1 on: 2008-Jul-28 »
That would be a case for Trucidare to test. I'm not 100% sure if the .dylib loading code on OS-X works correctly. However, you would have to change the "dll"-name in the newton.gbas file first. Maybe Tricidare can take a look and see if we can load it. Would be required for Tcl/Tk, too.

Offline matty47

  • Mr. Drawsprite
  • **
  • Posts: 71
    • View Profile
    • Matt and Marg's Homesite
Re: Newton Physics OS X (PPC)
« Reply #2 on: 2008-Aug-03 »
Can GLBasic link static libraries? Under Klepto's 3d module for Blitzmax he links Newton statically thus doing away with the need to call a dynamic library. If GL can do this how do I set it up?
Thanks
Matthew

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Newton Physics OS X (PPC)
« Reply #3 on: 2008-Aug-04 »
You will not get a static library for Newton, unless you are a close relative to Julio. If he claims to link "statically", he'd better read up waht "statically" means.

Offline matty47

  • Mr. Drawsprite
  • **
  • Posts: 71
    • View Profile
    • Matt and Marg's Homesite
Re: Newton Physics OS X (PPC)
« Reply #4 on: 2008-Aug-04 »
Sorry probably made a mistake in what I said.:S The module includes a libnewton.a for each platform and compiles this into the executable. I compiled a physics example for linux and when I ran ldd on the executable libnewton.so was not listed so I assumed (probably incorrectly) that the library had been statically linked. I will try on a windows machine later and see what happens.
Thanks for the reply
Matthew

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Newton Physics OS X (PPC)
« Reply #5 on: 2008-Aug-05 »
Blimey. You might be right, then.
In this case, you might be able to link that library with the compiler flags in theproject/options dialog. But... what's the problem with shipping a .so/.dll file as well?