<div dir="ltr"><div>Hi,<br><br></div>OS X 10.9 doesn't have the "-psn_XXX" argument anymore when launched by "double-clicking". I don't have a proper solution right now but the following lines do their job:<br>
<br>#ifdef __APPLE__<br>/*<br> * If the program was started by double-clicking on the application bundle on Mac OS X<br> * rather than from the command-line, enable Qt and don't try to process other options;<br> * argv[1] contains a process serial number in the form -psn_0_1234567<br>
* OS X <= 10.8 have a -psn_XXX argument given by the system<br> * OS X >= 10.9 does not have one, so we use the "TERM" environment variable <br> * to distinguish between launched by the Terminal or by the system.<br>
*/<br>if ( ( (argc > 1) && (strncmp( argv[1], "-psn", 4 ) == 0) ) || getenv("TERM") == NULL ) {<br> argc = 1;<br> isQt = 1;<br> break;<br>}<br>#endif<br><br>// Getting the option<br>
c = getopt_long( argc, argv, "hva:", longOptions, &optionIndex );<br><br><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Let me know if it works for you now.<br><br></div><div class="gmail_extra">
Best regards,<br></div><div class="gmail_extra">Jérôme<br><br></div><div class="gmail_extra"><div class="gmail_quote">2013/12/3 Marc Chamberland <span dir="ltr"><<a href="mailto:MarcChamberland@cmail.carleton.ca" target="_blank">MarcChamberland@cmail.carleton.ca</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Matthew,<br>
<br>
There is a Macport version of Gate. I recently updated to OS X 10.9 (Mavericks) and I installed CLHEP, Geant4 and Gate through Macports. The only issue I'm having right now is a crash when using Qt visualization. Everything else works fine.<br>
<br>
Marc<br>
<br>
<br>
<br>
__________________________<br>
<br>
Marc Chamberland, MSc<br>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)<br>
<br>
On Dec 3, 2013, at 2:11, Matthew Lewis <<a href="mailto:matthew.lewis@gmail.com">matthew.lewis@gmail.com</a>> wrote:<br>
<br>
><br>
><br>
> the current installation guide seems to be Linux-centric….<br>
><br>
> I found one post in the 2013 archive about building CLHEP manually under OSX Mountain Lion.<br>
><br>
> Macports will successfully build CLHEP and Geant4. Has anyone successfully built Gate 6.2 using the dependencies from macports?<br>
><br>
> Any pointers for building on OSX 10.8.x would be appreciated….<br>
><br>
> mlewis<br>
><br>
> _______________________________________________<br>
> Gate-users mailing list<br>
> <a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jérôme Suhard<br></div>
</div></div></div></div>