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

issues with building demo example #232

Open
SimonDev666 opened this issue Nov 5, 2024 · 0 comments
Open

issues with building demo example #232

SimonDev666 opened this issue Nov 5, 2024 · 0 comments
Labels

Comments

@SimonDev666
Copy link

Hello vgvassilev,

Op Sys: Kali Linux v2024.3 (updated + upgraded)
cling: most current version (as per build script below)
level of experience with cmake / cling: low+

we were talking on the cppyy github site about issues i was having with building cling into a standalone solution, then embedding within my qt c++ solution. i that conversation you suggested i use the 'demo' example in 'tools'. i tried this but still no luck.

Here is my build script:
"
mkdir experimental
cd experimental
git clone https://github.com/root-project/llvm-project.git
cd llvm-project
git checkout cling-latest
cd ..
git clone https://github.com/root-project/cling.git
mkdir cling-build && cd cling-build
cmake -DLLVM_EXTERNAL_PROJECTS=cling -DLLVM_EXTERNAL_CLING_SOURCE_DIR=../cling/ -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_TARGETS_TO_BUILD="host;NVPTX" -DCMAKE_BUILD_TYPE=Release ../llvm-project/llvm
cmake --build . --target cling
cmake --build . --target clang
"

as per your web page in github for the 'demo' example, i tried the following:
"
cmake -Dcling_DIR=/home/simon/Experimental/cling-build/lib/cmake/clang /home/simon/Experimental/cling/tools/demo
"

i noticed there is no cling-build/lib/cmake/clang directory created after the build process.
i also get the following errors:
"
CMake Error at CMakeLists.txt:25 (find_package):
By not providing "Findcling.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "cling", but
CMake did not find one.

Could not find a package configuration file provided by "cling" with any of
the following names:

clingConfig.cmake
cling-config.cmake
Add the installation prefix of "cling" to CMAKE_PREFIX_PATH or set
"cling_DIR" to a directory containing one of the above files. If "cling"
provides a separate development package or SDK, be sure it has been
installed.
"

i checked and there is no files for "cling*.cmake" anywhere in Experiemental (in any of the 3 directories within it - cling, cling-build, llvm-project)

is there any chance in helping me solve this issue and what i am doing wrong - please.

@SimonDev666 SimonDev666 added the bug label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant