Cannot compile the samples

Archives Forums/MacOS X Discussion/Cannot compile the samples

Ravl(Posted 2012) [#1]
Hi,

I installed a 10.7.5 Lion OS on my vmWare and start it.

I download the MaxOS SDK from blitzmax site and try to compile any example. I receive this error:


Building _shooter_main
Compiling:_shooter_main.bmx
sh: as: command not found
Build Error: Failed to assemble /BlitzMax/samples/shooter/.bmx/_shooter_main.bmx.gui.debug.macos.x86.s
Process complete

What should I do?


GfK(Posted 2012) [#2]
Not sure what 'MaxOS SDK from blitzmax site' actually is, but you probably haven't installed XCode. Think you need 4.3 for Lion, not 100% on that, though.


Ravl(Posted 2012) [#3]
I have installed 4.5. Should I make a downgrade?


GfK(Posted 2012) [#4]
No, should be fine - apparently 4.5 is compatible with 10.7.

Just try rebuilding modules.


Ravl(Posted 2012) [#5]
Already done that from blitzmax ide.

question: it is first time I use macOS, so maybe I am making something wrong. I downloaded a DMG file from Apple and run it. Is this wnought? I have xcode installed? I mean I am able to start using it but I cannot find it anywhere on the hdd..

dman that is quite difficult..


Ravl(Posted 2012) [#6]
just found this:

http://blitzbasic.com/Community/posts.php?topic=98118

I had to "1. In XCode 4.3.x open preferences go to downloads section and install the Command Line Tools from the Components section. "

someone should make a tutorial for noobs like me :D

now I was able to run a sample from the bmax samples folder.


Grey Alien(Posted 2012) [#7]
Perfect, just what I was looking for ;-)