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

New recipe: Clipper2 #5513

Merged
merged 2 commits into from
Sep 16, 2022
Merged

New recipe: Clipper2 #5513

merged 2 commits into from
Sep 16, 2022

Conversation

aviks
Copy link
Contributor

@aviks aviks commented Sep 16, 2022

Windows does not work, but keeping it enabled for now to see if anyone has any ideas.

This is a C++ library, but presumably does not do any string manipulation. The Wizard did not seem to complain, so do I need expand_cxx_abi for this?

@aviks aviks mentioned this pull request Sep 16, 2022
@giordano
Copy link
Member

This is a C++ library, but presumably does not do any string manipulation. The Wizard did not seem to complain, so do I need expand_cxx_abi for this?

No, if the auditor doesn't complain about the string ABI there is no need to do anything.

@giordano
Copy link
Member

For Windows, https://stackoverflow.com/a/27586530/2442087 seems relevant for the error

[16:08:21] /opt/bin/x86_64-w64-mingw32-libgfortran5-cxx11/x86_64-w64-mingw32-g++ --sysroot=/opt/x86_64-w64-mingw32/x86_64-w64-mingw32/sys-root/ -DClipper2Zutils_EXPORTS -DUSINGZ @CMakeFiles/Clipper2Zutils.dir/includes_CXX.rsp -O3 -DNDEBUG -std=c++17 -MD -MT CMakeFiles/Clipper2Zutils.dir/Utils/ClipFileLoad.cpp.obj -MF CMakeFiles/Clipper2Zutils.dir/Utils/ClipFileLoad.cpp.obj.d -o CMakeFiles/Clipper2Zutils.dir/Utils/ClipFileLoad.cpp.obj -c /workspace/srcdir/Clipper2/CPP/Utils/ClipFileLoad.cpp
[16:08:22] In file included from /workspace/srcdir/Clipper2/CPP/Utils/ClipFileLoad.cpp:5:
[16:08:22] /workspace/srcdir/Clipper2/CPP/Utils/ClipFileLoad.h: In function ‘bool FileExists(const string&)’:
[16:08:22] /workspace/srcdir/Clipper2/CPP/Utils/ClipFileLoad.h:20:37: error: no matching function for call to ‘stat::stat(const char*, stat*)’
[16:08:22]    20 |   return (stat(name.c_str(), &buffer) == 0);
[16:08:22]       |                                     ^

?

@aviks
Copy link
Contributor Author

aviks commented Sep 16, 2022

OK, this is good to go from my side. @cormullion might want to check if this looks reasonable.

@cormullion
Copy link

Well we'll have a go and see. I think making a new Julia package would be best, rather than update the older one:

https://github.com/JuliaGeometry/Clipper.jl

I'm hoping some JuliaGeometry folks will be able to assist... 😉

@giordano
Copy link
Member

CC @sjkelly

@giordano giordano merged commit 770c0c0 into JuliaPackaging:master Sep 16, 2022
@giordano giordano deleted the as/clipper2 branch September 16, 2022 16:43
@sjkelly
Copy link
Contributor

sjkelly commented Sep 16, 2022

Yes, we probably want to make a new Clipper2.jl package since the API is quite different. Thanks @aviks !

@sjkelly
Copy link
Contributor

sjkelly commented Sep 16, 2022

xref: JuliaGeometry/Clipper.jl#49

@giordano giordano linked an issue Sep 16, 2022 that may be closed by this pull request
@jebej
Copy link
Contributor

jebej commented Mar 15, 2023

There is an unofficial library offering C bindings here: https://github.com/geoffder/clipper2c

@ferrolho
Copy link
Contributor

I have opened #7093 to update Clipper2 from v1.0.4 to the latest available version, v1.2.2. Is there anything else required besides opening the PR?

Also, what is the purpose for sharedlib.patch? Do we need it still?

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

Successfully merging this pull request may close these issues.

Clipper v2
6 participants