Skip to content

Commit 48d36ac

Browse files
blootsvoetslarsmans
authored andcommitted
fix build on OS X
Linking fails without ARCHFLAGS because setup.py tries to build i386 libraries. Turns out OS X Python uses .so suffix, so we don't need to check for .dylib files for make clean.
1 parent 8507941 commit 48d36ac

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test: pcl/_pcl.so tests/test.py
1313

1414
clean:
1515
rm -rf build
16-
rm -f pcl/_pcl.cpp pcl/_pcl.so
16+
rm -f pcl/_pcl.cpp pcl/_pcl.so pcl/registration.so
1717

1818
doc: pcl.so conf.py readme.rst
1919
sphinx-build -b singlehtml -d build/doctrees . build/html

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
import subprocess
77
import numpy
88
import sys
9+
import platform
10+
import os
11+
12+
if platform.system() == "Darwin":
13+
os.environ['ARCHFLAGS'] = ''
914

1015
# Try to find PCL. XXX we should only do this when trying to build or install.
1116
PCL_SUPPORTED = ["-1.7", "-1.6", ""] # in order of preference

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy