Coder Social home page Coder Social logo

Comments (9)

pca006132 avatar pca006132 commented on July 23, 2024

what error do you get? did you try a clean build?

from manifold.

briansturgill avatar briansturgill commented on July 23, 2024

manifold/CMakeFiles/manifold.dir/src/sort.cpp.o -MF CMakeFiles/manifold.dir/src/sort.cpp.o.d -o CMakeFiles/manifold.dir/src/sort.cpp.o -c /home/brian/work/manifold/manifold/src/manifold/src/sort.cpp
make[2]: *** No rule to make target 'Clipper2', needed by 'src/manifold/libmanifold.so.2.3.1'. Stop.
make[2]: Leaving directory '/home/brian/work/manifold/manifold/build'
make[1]: *** [CMakeFiles/Makefile2:584: src/manifold/CMakeFiles/manifold.dir/all] Error 2
make[1]: Leaving directory '/home/brian/work/manifold/manifold/build'
make: *** [Makefile:139: all] Error 2
./build_manifold: line 7: test/manifold_test: No such file or directory

from manifold.

briansturgill avatar briansturgill commented on July 23, 2024

build_manifold is a shell script that I use to git and buiild the latest and greatest...

rm -rf manifold
git clone --recurse-submodules https://github.com/elalish/manifold.git
cd manifold
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DMANIFOLD_JSBIND=OFF -DMANIFOLD_CBIND=ON -DMANIFOLD_PYBIND=ON -DMANIFOLD_EXPORT=OFF -DBUILD_SHARED_LIBS=ON -DMANIFOLD_TEST=ON .. && make
test/manifold_test

from manifold.

briansturgill avatar briansturgill commented on July 23, 2024

@pca006132 manifold/src/third_party has quick_hull but does not have clipper2. This is true on github when I
look there as well. It's like the submodule got removed.

from manifold.

pca006132 avatar pca006132 commented on July 23, 2024

yes I removed it, but it should get the dependency automatically

can you attach the full cmake output?

from manifold.

briansturgill avatar briansturgill commented on July 23, 2024

@pca006132 Here's the output:
out.txt

from manifold.

pca006132 avatar pca006132 commented on July 23, 2024

It is weird, pkg-config found clipper2 but somehow make is trying to make Clipper2 target. What distribution are you using and did you run anything like cmake --install . before?

from manifold.

pca006132 avatar pca006132 commented on July 23, 2024

can you try to add the following line to https://github.com/elalish/manifold/blob/master/manifoldDeps.cmake#L11-L14

message("Clipper2_LINK_LIBRARIES: ${Clipper2_LINK_LIBRARIES}")
message("Clipper2_INCLUDE_DIRS: ${Clipper2_INCLUDE_DIRS}")

and show me the output? e.g. for my system:

Clipper2_LINK_LIBRARIES: /nix/store/66bnx3k21rc512r2bzkzmlw6vcf435f3-clipper2-1.3.0/lib/libClipper2.so
Clipper2_INCLUDE_DIRS: /nix/store/66bnx3k21rc512r2bzkzmlw6vcf435f3-clipper2-1.3.0/include

I suspect that Clipper2_LINK_LIBRARIES is empty in your system. In that case you probably have a faulty installation of Clipper2 and you should remove it.

from manifold.

briansturgill avatar briansturgill commented on July 23, 2024

Clipper2_LINK_LIBRARIES:
Clipper2_INCLUDE_DIRS: /usr/local/include

As far as I can tell I don't have clipper2 installed at all...
For some reason I did have clipper2 header files (no libs) in /usr/local/lib
I deleted them.

Now both messages show empty.

Still failing, doing global find for -iname clipper2
Ah found /usr/local/lib/pkgconfig/Clipper2.pc.

Removed it.

That did it... strangely I don't seem to have an actual library installed for Clipper2!

Thanks much for the help!

from manifold.

Related Issues (20)

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.