Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem during ostap installation #32

Open
km-b214 opened this issue Apr 15, 2024 · 7 comments
Open

Problem during ostap installation #32

km-b214 opened this issue Apr 15, 2024 · 7 comments

Comments

@km-b214
Copy link

km-b214 commented Apr 15, 2024

I have follow the direction to install ostap on my Ubuntu machine. However, when I execute

cmake .. -DCMAKE_INSTALL_PREFIX=..

I have the following error. I am wondering if you could tell me how to fix it. Thank you.

........
........
-- Configuring done (3.8s)
CMake Error at source/CMakeROOT_6_23.cmake:225 (add_dependencies):
The dependency target "ROOT::MathMore" of target "ostapDict" does not
exist.
Call Stack (most recent call first):
source/CMakeLists.txt:14 (include)

CMake Error at source/CMakeROOT_6_23.cmake:194 (target_link_libraries):
Target "ostap" links to:

ROOT::MathMore

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
source/CMakeLists.txt:14 (include)

CMake Error at source/CMakeROOT_6_23.cmake:226 (target_link_libraries):
Target "ostapDict" links to:

ROOT::MathMore

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
source/CMakeLists.txt:14 (include)

-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.

@VanyaBelyaev
Copy link
Member

Dear @km-b214
what ROOT do you use?
Do you use local build?
Has it been built with MathMore?

@km-b214
Copy link
Author

km-b214 commented Apr 15, 2024

Hello,

It used to be good. However, after I reinstalled ROOT by building from source, there was an error after I ran a script with this library. I've tried to reinstall this ostap library again, then there is error. I thought that the problem is from cmake but it is not.


This is how installed ROOT (from root.cern/install/:

The latest stable branch gets updated automatically on each release.

You may update your local copy by issuing a git pull command from within root_src/.

$ git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src
$ mkdir root_build root_install && cd root_build
$ cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src # && check cmake configuration output for warnings or errors
$ cmake --build . -- install -j4 # if you have 4 cores available for compilation
$ source ../root_install/bin/thisroot.sh # or thisroot.{fish,csh}

@VanyaBelyaev
Copy link
Member

Dear @km-b214

Here there is a recipe to build ROOT with MathMore -
in turn, it requires GSL.

@VanyaBelyaev
Copy link
Member

I suspect that MathMore is not build due to missing GSL

@VanyaBelyaev
Copy link
Member

you can have a look here

@VanyaBelyaev
Copy link
Member

Dear @km-b214
Have you solved the issue?

@km-b214
Copy link
Author

km-b214 commented Apr 17, 2024

Hello. The problem hasn't been solved. I believe that mathmore library is not properly installed. I can't find libmathmore.so in the library folder although gsl library is successfully installed. I am still trying to follow the link but it is not clear to me. I can comeback to you if there is still an error after the library has been installed successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants