JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for SYNERBI-DEVEL Archives


SYNERBI-DEVEL Archives

SYNERBI-DEVEL Archives


SYNERBI-DEVEL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SYNERBI-DEVEL Home

SYNERBI-DEVEL Home

SYNERBI-DEVEL  July 2018

SYNERBI-DEVEL July 2018

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: FindSTIR

From:

"Gillman, Ashley (H&B, Herston - RBWH)" <[log in to unmask]>

Reply-To:

Gillman, Ashley (H&B, Herston - RBWH)

Date:

Tue, 3 Jul 2018 09:14:53 +1000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (102 lines)

Sorry, the line numbers of the last two links in the last email were off 
by one.

Regarding my proposal to move these requires source files to header 
files and installing them:
Am I right in thinking that most registries are essentially header files?
e.g.,
https://github.com/UCL/STIR/blob/master/src/IO/IO_registries.cxx
Likely I am missing some insight here.

Ash


-- 

Ashley Gillman, BEng (Hons), BIT
PhD Candidate
Australian e-Health Research Centre, CSIRO
School of Medicine, University of Queensland

E [log in to unmask]    M +61 404 085 204

Level 5 UQ Health Science Building 901/16
Royal Brisbane and Women's Hospital
Herston, QLD 4029
Australia

www.csiro.au | http://www.aehrc.com/biomedical_imaging/

PLEASE NOTE
The information contained in this email may be confidential or
privileged. Any unauthorised use or disclosure is prohibited. If you
have received this email in error, please delete it immediately and
notify the sender by return email. Thank you. To the extent permitted
by law, CSIRO does not represent, warrant and/or guarantee that the
integrity of this communication has been maintained or that the
communication is free of errors, virus, interception or interference.

On 03/07/18 08:56, Gillman, Ashley (H&B, Herston - RBWH) wrote:
> I am hesitant to send this because of the Nix stuff - I hope not to 
> confuse you. Feel free to ignore.
> 
> This is how I solved in Nix:
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/stir/default.nix 
> 
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/sirf/default.nix 
> 
> 
> NB: Ignore the mess here:
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/stir/default.nix#L23-L40 
> 
> That's pulled from the standard Nix installer to find the downloaded 
> source from GitHub.
> 
> The language is a little confusing, but essentially just calls `cmake 
> $cmakeFlags` then `make` then `make install`. There are some default 
> flags for CMake and Make, then everything in the .nix file augments on 
> top of this.
> You can see which cmake flags I add here:
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/stir/default.nix#L48-L57 
> 
> 
> The main change was the three lines here:
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/stir/default.nix#L42-L46 
> 
> I copy the STIR source to the install location, and install from there. 
> I later delete temporary build files here:
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/stir/default.nix#L64 
> 
> I had to do this because as Kris mentioned, the registries are needed at 
> runtime, so I had to install these - since Nix, like Conda (presumably? 
> I haven't used it) removes the temporary files including source. 
> Otherwise, I ended up with STIRConfig.cmake setting the source directory 
> to a no longer existing temp dir. Perhaps an appropriate location to 
> install to would be /usr/share/stir/src
> 
> NB: You may also have to install the scripts to the output /bin or 
> /usr/bin like here:
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/stir/default.nix#L59-L61 
> 
> 
> Finally, as Kris suggests, you can just point to the location of 
> STIRConfig.cmake:
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/sirf/default.nix#L32 
> 
> And the rest should go as planned.
> 
> I also had to manually move the $CMAKE_INSTALL_DIR/python to 
> $CMAKE_INSTALL_DIR/lib/python3.x/site-packages
> https://github.com/ashgillman/SIRF-NixBuild/blob/master/pkgs/sirf/default.nix#L35-L41 
> 
> 
> Hope this is helpful, Not sure how much translates to Conda package manager
> Ash
> 
> 

########################################################################

To unsubscribe from the CCP-PETMR-DEVEL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP-PETMR-DEVEL&A=1

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
November 2015


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager