[Gate-users] Gate v6.2 compilation with Macports
Jérôme Suhard
jerome at suhard.fr
Tue Dec 3 14:46:56 CET 2013
Hi,
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:
#ifdef __APPLE__
/*
* If the program was started by double-clicking on the application bundle
on Mac OS X
* rather than from the command-line, enable Qt and don't try to process
other options;
* argv[1] contains a process serial number in the form -psn_0_1234567
* OS X <= 10.8 have a -psn_XXX argument given by the system
* OS X >= 10.9 does not have one, so we use the "TERM" environment
variable
* to distinguish between launched by the Terminal or by the system.
*/
if ( ( (argc > 1) && (strncmp( argv[1], "-psn", 4 ) == 0) ) ||
getenv("TERM") == NULL ) {
argc = 1;
isQt = 1;
break;
}
#endif
// Getting the option
c = getopt_long( argc, argv, "hva:", longOptions, &optionIndex );
Let me know if it works for you now.
Best regards,
Jérôme
2013/12/3 Marc Chamberland <MarcChamberland at cmail.carleton.ca>
> Hi Matthew,
>
> 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.
>
> Marc
>
>
>
> __________________________
>
> Marc Chamberland, MSc
> PhD candidate
> Department of Physics
> Carleton University
> Ottawa (ON)
>
> On Dec 3, 2013, at 2:11, Matthew Lewis <matthew.lewis at gmail.com> wrote:
>
> >
> >
> > the current installation guide seems to be Linux-centric….
> >
> > I found one post in the 2013 archive about building CLHEP manually under
> OSX Mountain Lion.
> >
> > Macports will successfully build CLHEP and Geant4. Has anyone
> successfully built Gate 6.2 using the dependencies from macports?
> >
> > Any pointers for building on OSX 10.8.x would be appreciated….
> >
> > mlewis
> >
> > _______________________________________________
> > Gate-users mailing list
> > Gate-users at lists.opengatecollaboration.org
> > http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
--
Jérôme Suhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20131203/9e0d3194/attachment.html>
More information about the Gate-users
mailing list