Subject: CGAL users discussion list
List archive
[cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake
Chronological Thread
- From: japhir <>
- To:
- Subject: [cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake
- Date: Tue, 4 Apr 2017 05:22:11 -0700 (PDT)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Fail ; spf=None
- Ironport-phdr: 9a23:qBxjchGe4gpyetGxdaGv851GYnF86YWxBRYc798ds5kLTJ78r82wAkXT6L1XgUPTWs2DsrQf2raQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDWwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VjO+4qplSRLljD4LOyMl/GrKjsB9gr5XrA6kqxF53oXaYpyaNOBmc63Tfd0UW2lPUNteWCNdDY2xdJcPAugbMOpEs4Xxu0UCoB2jDgesHuPvzTpIi2f03aIgy+QhEQDG3BY9FN8JsXTYttf1OL0RUeCy0KbIzivMb/VN1Dfg9YjEaBYhofWVUL92bMHfx04vFwbfgVWRr4zoJzWV2f4WvGeA6+pvS/ijhHIgqwF0ujSg3N0shZXJhoIRy1DE8zh5wYkvKd2/Uk57btipG4ZTuSGCL4Z6X8IvT39ytCokyrALt4S3cDUExZkp3RLSZPKKf5CV7h/iSuqdOyl0iXJrdb6lmhq//0atxvf8W8S21ltBszBLncPWtn8X0hze8siHReV5/kemwTuP0g7S6uZeIUA3j6bbLYQuzaUrmZoXr0vPBDP5mELzjKOOd0Uk/Pan6/j/b7n7p5KQKZV4hh/+P6kggMCzHOo1PwYUU2WU9+mwzLjj8lf4QLVOgP02iK7ZsJXCKMQavKK5ARVZ0oUk6xmjDDepztIYkGIaLFJYYh6HiYzpN0nUIP/kFfe/n0iskDBzyv/aMb3uGJHNImHen7fgZrZy91NcyBEozd1E/JJVCrQBIOrpVUPrtdzYCAU5Mw2uzOr9BtV9zNBWZWXaCaCQNObesESD+/k0C+iKfo4c/jjneNY/4Pu7j3YhmV4HNf2om5lRa3ezHflgC1iEJ3zo1IRSWVwWtxYzGbW5wGaJViReMi3qB68=
Hi all!
I use cgal version 4.9-1
When trying to `cmake` a package (GPlates, currently making AUR package),
that uses the line `include(${CGAL_USE_FILE})`, on my Arch Linux
(4.10.6-1-ARCH) machine I get the following error:
```
CMake Error at src/CMakeLists.txt:86 (include):
include could not find load file:
/usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake
```
This is because `UseCGAL.cmake` is located in `/usr/lib/CGAL`, and not in
that subdirectory.
The directory seems to be set with the variable `CGAL_MODULES_DIR`, which is
set in `/usr/lib/CGAL/UseCGAL.cmake` by the line
`set(CGAL_MODULES_DIR"${CGAL_INSTALL_PREFIX}/lib64/CGAL" )`
But it should be overwritten by these lines in the same file, if I'm
correct.
```
# CGAL_DIR is the directory where this CGALConfig.cmake is installed
string(REPLACE "lib64/CGAL" "" CGAL_INSTALL_PREFIX "${CGAL_CONFIG_DIR}")
```
I've tried to pass `-DCGAL_DIR:PATH=/usr/lib/CGAL` to make cmake command,
but this doesn't fix the issue.
This link describes someone else's trouble with CGAL's dir. It might also
have something to do with the qt4 building that is referred to later on in
the discussion.
http://cgal-discuss.949826.n4.nabble.com/Compiling-a-basic-CGAL-program-in-C-on-Mac-OS-X-10-7-2-td4166413.html
Basically my question is: help! I'm confused by if the implementation on my
distro (https://www.archlinux.org/packages/community/x86_64/cgal/) is wrong,
or if I need to make it with qt4, or how I can pass the correct arguments to
cmake, such that it will compile.
Kind regards!
Ilja
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/cmake-problem-could-not-load-file-usr-lib-CGAL-lib64-CGAL-UseCGAL-cmake-tp4662628.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake, japhir, 04/04/2017
- Re: [cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake, Piero Toffanin, 04/04/2017
- Re: [cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake, Piero Toffanin, 04/04/2017
- RE: [cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake, Kocken, I.J. (Ilja), 04/04/2017
- Re: [cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake, Piero Toffanin, 04/04/2017
- Re: [cgal-discuss] cmake problem: could not load file /usr/lib/CGAL/lib64/CGAL/UseCGAL.cmake, Piero Toffanin, 04/04/2017
Archive powered by MHonArc 2.6.18.