Giter VIP home page Giter VIP logo

glam's People

Contributors

kwonoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

glam's Issues

cannot compile with find_package(TBB) error

Hi there,

I could not compile the program by default CMakeList.txt with the following errors:
`-- Unable to find TBB
CMake Warning at CMakeLists.txt:18 (find_package):
By not providing "FindCGAL.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "CGAL", but
CMake did not find one.

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

CGALConfig.cmake
cgal-config.cmake

Add the installation prefix of "CGAL" to CMAKE_PREFIX_PATH or set
"CGAL_DIR" to a directory containing one of the above files. If "CGAL"
provides a separate development package or SDK, be sure it has been
installed.

-- Shape based metric requires CGAL
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- graph
-- program_options
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
CMake Error at CMakeLists.txt:42 (message):
Unable to find OpenCL

-- Configuring incomplete, errors occurred!`

If I change find_package(TBB) to find_package(TBB REQUIRED), another error raises:
`CMake Error at cmake/modules/FindTBB.cmake:80 (message):
Required library TBB not found.
Call Stack (most recent call first):
cmake/modules/FindTBB.cmake:273 (findpkg_finish)
CMakeLists.txt:9 (find_package)

-- Configuring incomplete, errors occurred!`

Thanks in advance:)

Shiqi

How Can I install it?

I am facing the following problems while installing it. What might be the reason?

/data/morahma/Softwars/glam/include/kw/algorithm/normalize.hpp:32:41: error: parameter declared ‘auto’
tbb::parallel_for_each(c, [=](auto& x) { x = (x - min) / range; });
^
/data/morahma/Softwars/glam/include/kw/algorithm/normalize.hpp: In lambda function:
/data/morahma/Softwars/glam/include/kw/algorithm/normalize.hpp:32:46: error: ‘x’ was not declared in this scope
tbb::parallel_for_each(c, [=](auto& x) { x = (x - min) / range; });
^
In file included from /data/morahma/Softwars/glam/include/kw/graph/layout/metric.hpp:10:0,
from /data/morahma/Softwars/glam/src/main.cpp:14:
/data/morahma/Softwars/glam/include/kw/graph/layout/metric/edge_length.hpp: In function ‘double kw::edge_length_cv(const Graph&, PositionMap)’:
/data/morahma/Softwars/glam/include/kw/graph/layout/metric/edge_length.hpp:39:18: error: parameter declared ‘auto’
[&](auto itr) {
^
/data/morahma/Softwars/glam/include/kw/graph/layout/metric/edge_length.hpp: In lambda function:
/data/morahma/Softwars/glam/include/kw/graph/layout/metric/edge_length.hpp:40:42: error: ‘itr’ was not declared in this scope
auto const e = boost::get<0>(itr);
^
In file included from /data/morahma/Softwars/glam/include/kw/graph/layout/metric.hpp:11:0,
from /data/morahma/Softwars/glam/src/main.cpp:14:
/data/morahma/Softwars/glam/include/kw/graph/layout/metric/min_angle.hpp: In function ‘double kw::min_angle_metric(const Graph&, PositionMap)’:
/data/morahma/Softwars/glam/include/kw/graph/layout/metric/min_angle.hpp:48:69: error: parameter declared ‘auto’
kw::make_iterator_range(boost::vertices(g)), [&](auto const u) {
^

"Unable to find OpenCL devices"

Problem
When computing the "crosslessness" metric, it could happen that a std::runtime_error is thrown with "Unable to find OpenCL devices" even though there are devices available on the machine.

Possible cause
The available devices get filtered by CL_DEVICE_TYPE_CPU and CL_DEVICE_TYPE_ACCELERATOR for which they might not qualify.

Workaround
By changing lines 250 and 251 in glam/include/kw/graph/layout/metric/edge_crossing.hpp from

for (auto& device : platform.devices(CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR)) {
to
for (auto& device : platform.devices()) {

the available devices don't get filtered and appear in the list. This workaround has fixed the issue for me (running on wsl2).

kw Error

When I'm compiling with c++14 I'm getting this error...
abhikasera@abhikasera:~/Downloads/Project/glam-master/src$ c++ -std=c++14 -I /home/abhikasera/Downloads/Project/glam-master/include main.cpp -o main
main.cpp: In function ‘void compute_shape_delaunay(const Graph&, PositionMap)’:
main.cpp:132:5: error: ‘delaunay_triangulation’ is not a member of ‘kw’
kw::delaunay_triangulation(s, svp_pos);
^
main.cpp: In function ‘void compute_shape_gabriel(const Graph&, PositionMap)’:
main.cpp:147:5: error: ‘delaunay_triangulation’ is not a member of ‘kw’
kw::delaunay_triangulation(s, svp_pos);

Can you tell me how to run it with Cmake??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.