UCL / pet-rd-tools

Command line tools for PET-MR (pre-)processing
Apache License 2.0
13 stars 4 forks source link

Installation problems #44

Closed Ede1994 closed 4 years ago

Ede1994 commented 4 years ago

I've some problems, when I run make in the pet-rd-tools-master (see error_file.txt). Can anyone help me with some infos about the installation? I've installed all requirements. error_file.txt

KrisThielemans commented 4 years ago

error is

/usr/bin/ld: -lglog::glog cannot be found

this seems to say it's interpreting the CMake target as a file, which is obviously incorrect.

If on Linux, you could try sudo apt install libgoogle-glog-dev if you didn't yet. Might be good to use a new CMake as well.

Otherwise, give more info on your configuration, including OS, CMake, glog and pet-rd-tools version.

An alternative might be to use the SIRF-SuperBuild which will build glog and pet-rd-tools.

Ede1994 commented 4 years ago

I tried to use nm_extract etc with the SIRF-SuperBuild but it didn't work. So I searched for another way...

How can I use nm_extract etc with the SIRF-SuperBuild?

KrisThielemans commented 4 years ago

Setting BUILD_pet_rd_tools=ON with CMake should do the trick. e.g. command line

cd whereveryoubuiltthesuperbuild
cmake -DBUILD_pet_rd_tools:BOOL=ON .
make pet-rd-tools

(I'm being optimistic)

Ede1994 commented 4 years ago

That works! Thanks!