GLBasic forum

Main forum => GLBasic - en => Topic started by: jboadas on 2011-Jul-17

Title: Crash on OSX
Post by: jboadas on 2011-Jul-17
Hello  everybody.

This is my first post, I Just download the Free SDK V9 and compile my first program:

PRINT "This is a Test for OSX",10,10
SHOWSCREEN
MOUSEWAIT

this works well in Windows but on OSX I get a crash report, then run the application from the comand line /Contents/MacOS/MacOS and get
the following error

"DECLARE module not found: soundengine.dylib"

I check the directory /Contents/MacOS and have two files MacOS and SoundEngine.dylib recheck the permission and ownership of the files
but everything looks good any clues on this issue.

Thanks in advance 
Title: Re: Crash on OSX
Post by: MrTAToad on 2011-Jul-17
What version of OSX are you using?  Later versions of OSX have permission problems after transferring the program from a PC
Title: Re: Crash on OSX
Post by: jboadas on 2011-Jul-17
Im Using Leopard 10.5.8
Title: Re: Crash on OSX
Post by: MrTAToad on 2011-Jul-17
No-one has come up with that problem before, so it looks like permission problems...
Title: Re: Crash on OSX
Post by: jboadas on 2011-Jul-17
I also suspect that is a permission problem and download examples from here to compare but the examples I found doesn't have the file soundengine.dylib only have the file MacOSX on that directory I'll keep looking

Thanks
Title: Re: Crash on OSX
Post by: Kitty Hello on 2011-Jul-18
Please try the V10 RC now. I don't think support for V9 makes much sense now, anymore. I'm about to release.
Title: Re: Crash on OSX
Post by: jboadas on 2011-Aug-31
Test with SDK V10 today and getting the seem error, any clues ?  I re-check all permissions and everything seem to be ok also anybody have a compiled example working on OSX with V10 to compare.

Best Regards. 
Title: Re: Crash on OSX
Post by: Kitty Hello on 2011-Aug-31
@Trucidare - can you help?
Title: Re: Crash on OSX
Post by: jboadas on 2011-Aug-31
V8 is Working Ok ... and doesn't have this file SoundEngine.dylib
Title: Re: Crash on OSX
Post by: Kitty Hello on 2011-Aug-31
yes. we added that new sound engine in V9.3xx I think. But it's working fine on my builds. In the .app directory - do you have the file:
$Project\distribute\MacOSX\xml_parser.app\Contents\MacOS\SoundEngine.dylib

It should be there. Also, be sure you use the build from the "distribute" directory - not the "old" .app one.
Title: Re: Crash on OSX
Post by: jboadas on 2011-Aug-31
Yep I have SoundEngine.dylib in that directory and the permission are ok. but still the app not running. I am the only Mac user testing GLBasic ?
Title: Re: Crash on OSX
Post by: trucidare on 2011-Aug-31
i need the package for tests
Title: Re: Crash on OSX
Post by: jboadas on 2011-Sep-01
Here is the application.

Best regads

[attachment deleted by admin]
Title: Re: Crash on OSX
Post by: jboadas on 2011-Sep-07
I dont know if this matters but I'm using Windows XP on BootCamp in a MacBook, I will try in a native Windows 7 to see if it make the diference.
Title: Re: Crash on OSX
Post by: jboadas on 2011-Sep-08
Just compiled the program on a diferent machine and get the seem result:

Process:         MacOSX [164]
Path:            /Users/mymac/Downloads/testw7.app/Contents/MacOS/MacOSX
Identifier:      com.yourcompany.testw7
Version:         0.001.0 (0.001.0)
Code Type:       X86 (Native)
Parent Process:  launchd [104]

Exception Type:  EXC_CRASH (SIGBUS)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  1

Thread 0:
0   ???                              0000000000 0 + 0
1   com.yourcompany.testw7           0x00030918 __GlobalInit + 2518
2   com.yourcompany.testw7           0x00019166 SDL_main + 786
3   com.yourcompany.testw7           0x00003eba -[SDLMain applicationDidFinishLaunching:] + 88 (SDLMain.m:302)
4   com.apple.Foundation             0x91fbe52c _nsnote_callback + 364

and from the console:

DECLARE module not found: soundengine.dylib

Thanks in advance
Title: Re: Crash on OSX
Post by: MrTAToad on 2011-Sep-08
Is SoundEngine part of OpenAL ?
Title: Re: Crash on OSX
Post by: Kitty Hello on 2011-Sep-08
no, part of GLBasic.
Title: Re: Crash on OSX
Post by: jboadas on 2011-Sep-08
Also using otool seems to be ok but some diferences on libraries version

otool -L SoundEngine.dylib 
SoundEngine.dylib:
   SoundEngine.dylib (compatibility version 0.0.0, current version 0.0.0)
   /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL (compatibility version 1.0.0, current version 1.0.0)
   /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
   /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.42.0)
   /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1.0.0)
   /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1)
   /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.42.0)


otool -L MacOSX
MacOSX:
   /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
   /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 11.0.0)
   /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime (compatibility version 1.0.0, current version 63.0.0)
   @executable_path/../Frameworks/SDL.framework/Versions/A/SDL (compatibility version 1.0.0, current version 1.0.0)
   /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.3)
Title: Re: Crash on OSX
Post by: trucidare on 2011-Sep-08
let me have a look
Title: Re: Crash on OSX
Post by: trucidare on 2011-Sep-08
works fine here

[attachment deleted by admin]
Title: Re: Crash on OSX
Post by: erico on 2011-Sep-08
I have a hackintosh running osx 10.6.7

your test program worked fine here too.
Title: Re: Crash on OSX
Post by: jboadas on 2011-Sep-08
Well Now Im almost crazy, Im using Leopard 10.5.8 are you using any different ?   
Title: Re: Crash on OSX
Post by: erico on 2011-Sep-08
I don´t know which osx trucidare has,
like I said mine is 10.6.7

I once installed a 10.5.8 on the same machine(~6 months ago), glbasic programs worked too.
I can´t remember the glbasic version I runned there though..

both installs are quite clean, just system and nothing more, I use then to check if things are working on mac.

sorry I don´t have enough knowledge of macs to have any hints on this.

PS: ops I once had a problem, it was related to transfering the files, something to do with flags, so I zipped it into my pc and copied to mac and unzipped there, then it worked (kitty´s recommendation).
original thread here:
http://www.glbasic.com/forum/index.php?topic=6029.msg47525#msg47525
Title: Re: Crash on OSX
Post by: Kitty Hello on 2011-Sep-09
Why is it displaying "DEMO" - are you using network, inline or 3D stuff?
Title: Re: Crash on OSX
Post by: trucidare on 2011-Sep-09
uhm could anyone check if i compiled the soundengine.dylib for snow leo and higherß??? i know its intel only but the target level i dont know anymore
Title: Re: Crash on OSX
Post by: jboadas on 2011-Sep-09
I dont think so
Im creating a sprite 32x32 then grab the sprite and createscreen of 256x256 sprites then use this screen to scroll the actual screen of 640X480
Title: Re: Crash on OSX
Post by: Kitty Hello on 2011-Sep-09
paste me the compile output when you compile for OSX, please.
Title: Re: Crash on OSX
Post by: jboadas on 2011-Sep-09
Compiler Output:

*** Configuration: OS-X_X86 ***
precompiling:
GPC - GLBasic Precompiler V.8.013 SN:a6cb957b - 2D, WIN32
Wordcount:4 commands
compile+link:
cygwin warning:
  MS-DOS style path detected: C:\GLDevel\testXP\MacIcon.icns
  Preferred POSIX equivalent is: /cygdrive/c/GLDevel/testXP/MacIcon.icns
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Using icns type 'ic09' (ARGB) for 'C:\GLDevel\testXP\tmpMacIcon.png'
Saved icns file to C:\GLDevel\testXP\MacIcon.icns
Creating .app for testXP
run: "C:\GLBasic\Tools\Icons.exe" "C:\GLDevel\testXP\icon.png" /MACOSX
success
_______________________________________
*** Finished ***
Elapsed: 5.7 sec. Time: 11:24
Build: 1 succeeded.