esrf-bliss / Lima

Library for Image Acquisition
https://lima1.rtfd.io
GNU General Public License v3.0
39 stars 71 forks source link

PROBLEM INSTALLING LiMA #129

Closed leito92 closed 8 months ago

leito92 commented 2 years ago

Hello, I can't install the LiMA on Linux from the source. I need help! Best,

laurent-claustre commented 2 years ago

Hi again, could you tell us more?

leito92 commented 2 years ago

detector_tango_install.txt detector_tango_error.txt

I attached the steps on what I did. When I run the script, it stops in the middle of execution and tells me: "Problem building/installing Lima: CMake could not build Lima". I also attached the error file.

laurent-claustre commented 2 years ago

Hi, it seems there is a mismatch between the gcc pthread and your native CC pthreads (with a s a the end). On which platform and with which compiler are you building ?

sdebionne commented 2 years ago

And wich version of CMake? It's strange that the FindThreads module fails. Here is the doc. Maybe you need to set THREADS_PREFER_PTHREAD_FLAG on your platform? Or are you cross compiling?

leito92 commented 2 years ago

I am working with Docker. The platform is Debian and the compiler is gcc. The version of CMake is 3.13.4 but I do not understand the question: "are you cross compiling?". How can I set "THREADS_PREFER_PTHREAD_FLAG"?

laurent-claustre commented 2 years ago

if you are looking for the QHYccd camera support in LIMA project, you can stop now, there is not code available for this type of camera, since the main developer (tester) did never finish to test. And we do have such detector at ESRF. Sorry for the inconvenience.

leito92 commented 2 years ago

So, how can I install LiMA for QHYCCD camera?

laurent-claustre commented 2 years ago

Do you want to develop the plugin code for this camera? The actual project is empty, no line of code http://github.com/esrf-bliss/lima-camera-qhyccd, just a project skeleton.

leito92 commented 2 years ago

Yes, I want to do. How can I install the LiMA library to use it in my code for QHYCCD?

sdebionne commented 2 years ago

Maybe that documentation would help to setup a dev env.

leito92 commented 2 years ago

only by conda can I install lima-core?

laurent-claustre commented 2 years ago

Hi, yes, this is the easiest way for you to compile a new camera plugin. Create an empty conda env., then install the lima-camera-simulator-tango package, you then get all you need, lima-core, processlib, other third-party packages to compile your code.

leito92 commented 2 years ago

Hi, I am working on a Raspberry Pi 3 B+. I can not install lima-core with conda. Is there no other way to have lima-core for python?

sdebionne commented 2 years ago

Using Conda to setup a dev env is only a suggestion, you can of course build from source on your Raspberry Pi. All you need is a C++ compiler and CMake recent enough and to install all 3rd party dependencies that you want to support in your build (e.g. HDF5). If you have all that installed on your target system, then building Lima should be relatively simple:

cmake -Bbuild -H. -DLIMA_ENABLE_PYTHON=ON
cmake --build build --target install

You can add more options to the configure step (the first command line), e.g. -DLIMA_ENABLE_HDF5=ON.

leito92 commented 2 years ago

hello again.. what compiler version should I have?

sdebionne commented 2 years ago

To be on the safe side, I would say g++ > 7.2.

leito92 commented 2 years ago

Hi, I keep having problems installing LImA. I did: "./install.sh --install-prefix=${HOME} tests". Where can I locate "Lima.Core" that it is used in the import?

sdebionne commented 2 years ago

It should be installed in your Python dist packages folder:

python -c 'import site; print(site.getsitepackages())'

The C++ libraries should be in ${HOME}/lib, headers in ${HOME}/include as usual on Linux.