Comments (6)
So it seems that it's not possible to install with pip at all.
Installing collected packages: floorpy, poly2tri
Running setup.py develop for floorpy
install_dir /home/skrat/workspace/dd/geri/lib/python2.6/site-packages/
Creating /home/skrat/workspace/dd/geri/lib/python2.6/site-packages/floorpy.egg-link (link to .)
floorpy 0.2 is already the active version in easy-install.pth
Installed /home/skrat/workspace/dd/geri/src/floorpy
Running setup.py develop for poly2tri
install_dir /home/skrat/workspace/dd/geri/lib/python2.6/site-packages/
building 'p2t' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/p2t.c -o build/temp.linux-i686-2.6/src/p2t.o
gcc: src/p2t.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
Complete output from command /home/skrat/workspace/dd/geri/bin/python -c "import setuptools; __file__='/home/skrat/workspace/dd/geri/src/poly2tri/setup.py'; execfile('/home/skrat/workspace/dd/geri/src/poly2tri/setup.py')" develop --no-deps:
running develop
Original comment by [email protected]
on 5 Mar 2011 at 12:08
from poly2tri.
The Python version of poly2tri wraps the C++ version via. Cython. I'm currently
working to update the C++ code, and also in the process of creating a pure C
port. As soon as I finish with this stuff, I'll take a second look at Python
and update the project accordingly. I don't have much experience with pip or
installing pypi packages, so if you would like to contribute that would be
excellent...
Original comment by [email protected]
on 5 Mar 2011 at 1:52
from poly2tri.
Also, did you try compiling p2t with 'python setup.py build_ext -i' ?
Original comment by [email protected]
on 5 Mar 2011 at 1:53
from poly2tri.
With a bit of hacking, it's online http://pypi.python.org/pypi/poly2tri/0.3.3
I attached a patch for setup.py. You can later change it to support C port.
If you need to release new version, change the number in setup.py and run
setup.py with: clean sdist register upload
You need pypi account for that, let me know then I'll add you as an owner.
Original comment by [email protected]
on 5 Mar 2011 at 2:14
Attachments:
from poly2tri.
Excellent, thanks Duan.Maliarik! I've applied your patch and committed to the
Python repo - much appreciated!
/Mason
Original comment by [email protected]
on 5 Mar 2011 at 7:28
- Changed state: Done
from poly2tri.
Also unable to build:
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
poly2tri/sweep/advancing_front.cc -o
build/temp.linux-x86_64-2.7/poly2tri/sweep/advancing_front.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for
C/ObjC but not for C++ [enabled by default]
In file included from poly2tri/sweep/advancing_front.cc:31:0:
poly2tri/sweep/advancing_front.h: In constructor
‘p2t::Node::Node(p2t::Point&)’:
poly2tri/sweep/advancing_front.h:49:10: warning: ‘p2t::Node::value’ will be
initialized after [-Wreorder]
double value;
^
poly2tri/sweep/advancing_front.h:46:9: warning: ‘p2t::Node*
p2t::Node::next’ [-Wreorder]
Node* next;
^
poly2tri/sweep/advancing_front.h:51:3: warning: when initialized here
[-Wreorder]
Node(Point& p) : point(&p), triangle(NULL), value(p.x), next(NULL), prev(NULL)
^
poly2tri/sweep/advancing_front.h: In constructor
‘p2t::Node::Node(p2t::Point&, p2t::Triangle&)’:
poly2tri/sweep/advancing_front.h:49:10: warning: ‘p2t::Node::value’ will be
initialized after [-Wreorder]
double value;
^
poly2tri/sweep/advancing_front.h:46:9: warning: ‘p2t::Node*
p2t::Node::next’ [-Wreorder]
Node* next;
^
poly2tri/sweep/advancing_front.h:55:3: warning: when initialized here
[-Wreorder]
Node(Point& p, Triangle& t) : point(&p), triangle(&t), value(p.x),
^
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
poly2tri/sweep/cdt.cc -o build/temp.linux-x86_64-2.7/poly2tri/sweep/cdt.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for
C/ObjC but not for C++ [enabled by default]
In file included from poly2tri/sweep/cdt.h:35:0,
from poly2tri/sweep/cdt.cc:31:
poly2tri/sweep/advancing_front.h: In constructor
‘p2t::Node::Node(p2t::Point&)’:
poly2tri/sweep/advancing_front.h:49:10: warning: ‘p2t::Node::value’ will be
initialized after [-Wreorder]
double value;
^
poly2tri/sweep/advancing_front.h:46:9: warning: ‘p2t::Node*
p2t::Node::next’ [-Wreorder]
Node* next;
^
poly2tri/sweep/advancing_front.h:51:3: warning: when initialized here
[-Wreorder]
Node(Point& p) : point(&p), triangle(NULL), value(p.x), next(NULL), prev(NULL)
^
poly2tri/sweep/advancing_front.h: In constructor
‘p2t::Node::Node(p2t::Point&, p2t::Triangle&)’:
poly2tri/sweep/advancing_front.h:49:10: warning: ‘p2t::Node::value’ will be
initialized after [-Wreorder]
double value;
^
poly2tri/sweep/advancing_front.h:46:9: warning: ‘p2t::Node*
p2t::Node::next’ [-Wreorder]
Node* next;
^
poly2tri/sweep/advancing_front.h:55:3: warning: when initialized here
[-Wreorder]
Node(Point& p, Triangle& t) : point(&p), triangle(&t), value(p.x),
^
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
poly2tri/sweep/sweep.cc -o build/temp.linux-x86_64-2.7/poly2tri/sweep/sweep.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for
C/ObjC but not for C++ [enabled by default]
In file included from poly2tri/sweep/sweep.cc:32:0:
poly2tri/sweep/sweep_context.h: In constructor
‘p2t::SweepContext::Basin::Basin()’:
poly2tri/sweep/sweep_context.h:105:23: error: ‘NULL’ was not declared in
this scope
Basin() : left_node(NULL), bottom_node(NULL), right_node(NULL), width(0.0), left_highest(false)
^
poly2tri/sweep/sweep_context.h: In member function ‘void
p2t::SweepContext::Basin::Clear()’:
poly2tri/sweep/sweep_context.h:111:17: error: ‘NULL’ was not declared in
this scope
left_node = NULL;
^
poly2tri/sweep/sweep_context.h: In constructor
‘p2t::SweepContext::EdgeEvent::EdgeEvent()’:
poly2tri/sweep/sweep_context.h:123:34: error: ‘NULL’ was not declared in
this scope
EdgeEvent() : constrained_edge(NULL), right(false)
^
In file included from poly2tri/sweep/sweep.cc:33:0:
poly2tri/sweep/advancing_front.h: In constructor
‘p2t::Node::Node(p2t::Point&)’:
poly2tri/sweep/advancing_front.h:49:10: warning: ‘p2t::Node::value’ will be
initialized after [-Wreorder]
double value;
^
poly2tri/sweep/advancing_front.h:46:9: warning: ‘p2t::Node*
p2t::Node::next’ [-Wreorder]
Node* next;
^
poly2tri/sweep/advancing_front.h:51:3: warning: when initialized here
[-Wreorder]
Node(Point& p) : point(&p), triangle(NULL), value(p.x), next(NULL), prev(NULL)
^
poly2tri/sweep/advancing_front.h: In constructor
‘p2t::Node::Node(p2t::Point&, p2t::Triangle&)’:
poly2tri/sweep/advancing_front.h:49:10: warning: ‘p2t::Node::value’ will be
initialized after [-Wreorder]
double value;
^
poly2tri/sweep/advancing_front.h:46:9: warning: ‘p2t::Node*
p2t::Node::next’ [-Wreorder]
Node* next;
^
poly2tri/sweep/advancing_front.h:55:3: warning: when initialized here
[-Wreorder]
Node(Point& p, Triangle& t) : point(&p), triangle(&t), value(p.x),
^
poly2tri/sweep/sweep.cc: In member function ‘void
p2t::Sweep::SweepPoints(p2t::SweepContext&)’:
poly2tri/sweep/sweep.cc:54:46: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for (int i = 0; i < point.edge_list.size(); i++) {
^
poly2tri/sweep/sweep.cc: In destructor ‘p2t::Sweep::~Sweep()’:
poly2tri/sweep/sweep.cc:813:36: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for(int i = 0; i < nodes_.size(); i++) {
^
poly2tri/sweep/sweep.cc: In member function ‘p2t::Point&
p2t::Sweep::NextFlipPoint(p2t::Point&, p2t::Point&, p2t::Triangle&,
p2t::Point&)’:
poly2tri/sweep/sweep.cc:779:1: warning: control reaches end of non-void
function [-Wreturn-type]
}
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Original comment by [email protected]
on 2 Apr 2014 at 6:12
from poly2tri.
Related Issues (20)
- Java source unbuildable in 1.7+
- Build failed when compliling with -we4715
- Java findbugs - nullcheck of value previously dereferenced HOT 1
- [java] Tessellation with hole error HOT 4
- Polygon with hole HOT 10
- [java] Missing triangle in non-constrained delaunay HOT 3
- Problem building library
- the EPSILON value is not exported in the python/cython version HOT 1
- Compilation fails with MSVC
- CMake build script
- Inconsistent behavior with holes that share a point HOT 17
- add typedef for "double"
- add typedef for std::vector<Point*>, std::vector<Triangle*> and other containers
- Triangulate crashes in sweep.cc:703 HOT 3
- java version compile error HOT 3
- Polygon.getHoles() missing HOT 5
- poly2tri crashes on a very simple geometry HOT 1
- crash with attached polygon HOT 2
- Crash when triangulating a polygon HOT 1
- crash with square polygon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poly2tri.