Building anything on the Mac, from the command line ?
Added by David Cowan over 1 year ago
Could someone with a Mac possibly give me a hand?
I'm a COMPLETE n00b when it comes to Mac stuff... and I appear to be stuck at the first hurdle.
I have jamplus checked out to ~
I'm in terminal
I've added ~/jamplus/bin/macosx32 to my PATH
When I run jam, I get "Jambase.jam: No such file or directory"
If I specify the jambase.jam file manually with the -f option, I get...
c-autodetect.jam: No such file or directory warning: unknown rule ActiveProject (last file: Jamfile.jam) warning: unknown rule C.MacOSX_SDK (last file: Jamfile.jam) CopyFile.jam: No such file or directory warning: unknown rule C.OutputPostfixClear (last file: CopyFile.jam) warning: unknown rule C.LinkFrameworks (last file: CopyFile.jam) warning: unknown rule C.BundleInfo (last file: CopyFile.jam) warning: unknown rule C.BundleInfo (last file: CopyFile.jam) warning: unknown rule C.BundleInfo (last file: CopyFile.jam) warning: unknown rule C.BundleInfo (last file: CopyFile.jam) warning: unknown rule C.BundleInfo (last file: CopyFile.jam) warning: unknown rule C.BundleInfo (last file: CopyFile.jam) warning: unknown rule C.BundleInfo (last file: CopyFile.jam) warning: unknown rule C.PrecompiledHeader (last file: CopyFile.jam) warning: unknown rule C.Application (last file: CopyFile.jam) warning: unknown rule XIB (last file: CopyFile.jam) warning: unknown rule CopyFile (last file: CopyFile.jam) warning: unknown rule CopyFile (last file: CopyFile.jam)
... like its not finding the modules folder...
Is there some special incantation or setting I'm missing to set up a terminal based build environment for jamplus on Mac?
Replies (5)
RE: Building anything on the Mac, from the command line ?
-
Added by Joshua Jensen over 1 year ago
As far as I am aware, the published build of JamPlus on the Mac just works. You don't need to specify a path to the Jambase.
What Mac OS X version are you running? All of my machines are on 10.6 now, but JamPlus used to work on 10.4 and 10.5. I never tested below 10.4.
RE: Building anything on the Mac, from the command line ?
-
Added by David Cowan over 1 year ago
I re-installed OSX and XCode 3.2.5 (my mac was a bodge of old compilers and tools, and crap left over from when my wife was using it, so I decided to start with a clean slate).
My status is thus...
1. iOS projects build (samples\iPhone\opengles sample) - (iPhone, iPhoneSimulator, iPad, iPadSimulator) -- however, I don't seem to be able to run them -- XCode complains that I have no provisioned devices connected. My understanding was that I didn't need to provision any devices to run the emulator?
2. Attempting to build (samples\macosx\cf or macosx\glut) - results in
Daves-Mac:glut Dave$ jam -a PLATFORM=macosx32
*** found 8 target(s)...
*** updating 2 target(s)...
@ C.CC <glut>main.o
@ C.Link <glut>glut.release
g++ -arch i386 -framework GLUT -framework OpenGL -o glut.release main.o
: command not found
: No such file or directory.1:
*** failed C.Link <glut>glut.release ...
*** failed updating 1 target(s)...
*** updated 1 target(s)...
*** finished in 0.08 sec
However -- cutting/pasting the cmdline from the jam process into the command line directly - correctly builds 'main.o'
The same thing happens at the link stage, and again, I can link by hand if I issue the same command line.
Any pointers where I can start poking/prodding?
Thanks
RE: Building anything on the Mac, from the command line ?
-
Added by Joshua Jensen over 1 year ago
Are you using the snapshot JamPlus binaries directly?
It really looks like a whitespace issue. Jam has always handed the contents of the actions directly to batch file or shell script. In a shell script's case, CRLF is bad.
Did you checkout the sources with Git and have a core.autocrlf setting of 'true'?
RE: Building anything on the Mac, from the command line ?
-
Added by David Cowan over 1 year ago
Got the compilation and workspace generation problems sorted for now -- it was mostly to do with global/system wide paths and environment variables.
However -- I'm still stuck trying to run the sample programs on the simulator...
E.g. in the samples/opengles sample, I generate an Xcode workspace using the shell command in that folder, and successfully build the iphonesimulator project target.
However, when it comes to running, I get -
"Error Starting Executable"
"No provisioned iOS device is connected"
However - if I compile and run a fresh Xcode sample (Create new iOS project) - the simulator starts fine.
What am I missing?
Thanks
RE: Building anything on the Mac, from the command line ?
-
Added by Joshua Jensen over 1 year ago
David Cowan wrote:
Got the compilation and workspace generation problems sorted for now -- it was mostly to do with global/system wide paths and environment variables.
I'd be curious as to which and what I can build in to avoid the problem in the future.
However -- I'm still stuck trying to run the sample programs on the simulator...
E.g. in the samples/opengles sample, I generate an Xcode workspace using the shell command in that folder, and successfully build the iphonesimulator project target. However, when it comes to running, I get -
"Error Starting Executable" "No provisioned iOS device is connected"
Did you select Simulator in the build dropdown instead of Device? I'm referring to the top two items on the dropdown. Then the list of build configurations follow. Obviously, you need an iphonesimulator configuration. The executable target and architecture should be fine as the defaults.
(1-5/5)