Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qhull
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Qhull
Commits
ebd7850f
Commit
ebd7850f
authored
13 years ago
by
Brad Barber
Browse files
Options
Downloads
Patches
Plain Diff
Fix so files for libqhull and libqhull-p
Fix shadowed variable 'facets' Fix gitignore for sln/vcproj
parent
0f998af1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
Makefile
+16
-8
16 additions, 8 deletions
Makefile
src/Changes.txt
+1
-1
1 addition, 1 deletion
src/Changes.txt
src/qhull-all.pro
+3
-1
3 additions, 1 deletion
src/qhull-all.pro
src/user_eg3/user_eg3.cpp
+3
-3
3 additions, 3 deletions
src/user_eg3/user_eg3.cpp
with
27 additions
and
13 deletions
.gitignore
+
4
−
0
View file @
ebd7850f
...
...
@@ -20,12 +20,14 @@ r?
bin/*
lib/*
tmp/*
build/*
*.a
*.dll
*.lib
*.exe
*.o
*.md5sum
src/road/RoadTest.h.cpp
# Out-of-date directories
config/*
...
...
@@ -44,6 +46,8 @@ working/*/*
*.suo
*.user
*.ilk
!build/*.sln
!build/*/*.vcproj
# CVS files
CVS/*
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
16
−
8
View file @
ebd7850f
...
...
@@ -74,12 +74,13 @@ PRINTC = enscript -2r
# -fno-strict-aliasing not needed for gcc 4.4+ (segfault in qset.c)
#for CXX_OPTS1, libqhullcpp must be before libqhull
CC
=
gcc
CC_OPTS1
=
-O2
-ansi
-fno-strict-aliasing
-Isrc
/libqhull
$(
CC_WARNINGS
)
CC_OPTS1
=
-O2
-fPIC
-ansi
-fno-strict-aliasing
-Isrc
/libqhull
$(
CC_WARNINGS
)
CXX
=
g++
CXX_OPTS1
=
-O2
-Dqh_QHpointer
-Isrc
/
-Isrc
/libqhullcpp
-Isrc
/libqhull
$(
CXX_WARNINGS
)
SO
=
so
# Extension for shared libraries
CC_OPTS3
=
SO
=
so.5.1
# On MinGW,
# SO
= dll # make SO=
dll
# SO
= 5.1.
dll
# CC_OPTS3= -Wl,-s -Wl,--out-implib,bin/libqhull.a -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
# for Sun's cc compiler, -fast or O2 for optimization, -g for debugging, -Xc for ANSI
...
...
@@ -114,9 +115,12 @@ CXX_WARNINGS = -Wall -Wcast-qual -Wextra -Wwrite-strings -Wno-sign-conversion -W
# Default targets for make
all
:
bin/rbox bin/qconvex bin/qdelaunay bin/qhalf bin/qvoronoi bin/qhull qtest
\
bin/user_eg bin/user_eg
2
bin/user_eg
3
bin/qhull-p.$(SO) qhull-prompt
all
:
bin-lib
bin/rbox bin/qconvex bin/qdelaunay bin/qhalf bin/qvoronoi bin/qhull qtest
\
bin/user_eg bin/user_eg
3
bin/user_eg
2
bin/qhull-p.$(SO) qhull-prompt
bin-lib
:
mkdir
-p
bin lib
# LIBQHULL_OBJS ordered by frequency of execution with small files at end. Better locality.
L
=
src/libqhull
...
...
@@ -405,6 +409,7 @@ clean:
rm
-f
src/libqhullstatic/
*
.o src/libqhullstaticp/
*
.o src/qconvex/
*
.o
rm
-f
src/qdelaunay/
*
.o src/qhalf/
*
.o src/qvoronoi/
*
.o src/qhull/
*
.o src/rbox/
*
.o
rm
-f
src/road/
*
.o src/user_eg/
*
.o src/user_eg2/
*
.o src/user_eg3/
*
.o
rm
-f
src/road/RoadTest.h.cpp
cleanall
:
clean
rm
-f
bin/qconvex bin/qdelaunay bin/qhalf bin/qvoronoi bin/qhull bin/
*
.exe
...
...
@@ -452,11 +457,13 @@ lib/libqhullstatic-p.a: $(LIBQHULLP_OBJS)
ar
-rs
$@
$^
#ranlib $@
bin/qhull.$(SO)
:
$(LIBQHULL_OBJS)
bin/
lib
qhull.$(SO)
:
$(LIBQHULL_OBJS)
$(
CC
)
-shared
-o
$@
$(
CC_OPTS2
)
$^
ln
$@
bin/libqhull.so
bin/qhull-p.$(SO)
:
$(LIBQHULLP_OBJS)
bin/
lib
qhull-p.$(SO)
:
$(LIBQHULLP_OBJS)
$(
CC
)
-shared
-o
$@
$(
CC_OPTS2
)
$^
ln
$@
bin/libqhull-p.so
lib/libqhullcpp.a
:
$(LIBQHULLCPP_OBJS)
ar
-rs
$@
$^
...
...
@@ -485,7 +492,8 @@ bin/rbox: src/rbox/rbox.o lib/libqhullstatic.a
bin/user_eg
:
src/user_eg/user_eg.o lib/libqhullstatic.a
$(
CC
)
-o
$@
$<
$(
CC_OPTS2
)
-Llib
-lqhullstatic
-lm
bin/user_eg2
:
src/user_eg2/user_eg2.o bin/qhull.$(SO)
bin/user_eg2
:
src/user_eg2/user_eg2.o bin/libqhull.$(SO)
echo
-e
'\n== If user_eg2 fails to link, switch to -lqhullstatic.\n== On MinGW/Cygwin, use "make SO=dll"'
$(
CC
)
-o
$@
$<
$(
CC_OPTS2
)
-Lbin
-lqhull
-lm
bin/user_eg3
:
src/user_eg3/user_eg3.o lib/libqhullstatic-p.a lib/libqhullcpp.a
...
...
This diff is collapsed.
Click to expand it.
src/Changes.txt
+
1
−
1
View file @
ebd7850f
...
...
@@ -61,7 +61,7 @@ To do
gitorious.org/qhull 2011/03/27
- Fixed QhullFacet::PrintRidges to check hasNextRidge3d()
- Cleaned up project files
- Fixed Makefile for shared libraries
- Fixed Makefile for shared libraries
, but does not work on all platforms
- Moved libqhull to libqhullstatic, as done in CMakeLists
- Made libqhull a shared library
The msvc build does not generate a valid dll
...
...
This diff is collapsed.
Click to expand it.
src/qhull-all.pro
+
3
−
1
View file @
ebd7850f
...
...
@@ -24,12 +24,14 @@ SUBDIRS += qhalf
SUBDIRS
+=
qvoronoi
SUBDIRS
+=
rbox
SUBDIRS
+=
user_eg
#
user
program
linked
to
libqhullstatic
SUBDIRS
+=
user_eg2
#
user
program
linked
to
libqhull
SUBDIRS
+=
libqhullcpp
#
static
library
for
C
++
interface
to
libqhullstaticp
SUBDIRS
+=
user_eg3
#
user
program
with
libqhullcpp
and
libqhullstaticp
SUBDIRS
+=
qhulltest
#
test
program
with
Qt
,
libqhullcpp
,
and
libqhullstaticp
#
user_eg2
does
not
link
in
DevStudio
2005
-
lqhull
not
found
SUBDIRS
+=
user_eg2
#
user
program
linked
to
libqhull
OTHER_FILES
+=
CMakeLists
.
txt
OTHER_FILES
+=
Make
-
config
.
sh
OTHER_FILES
+=
..
/
Announce
.
txt
...
...
This diff is collapsed.
Click to expand it.
src/user_eg3/user_eg3.cpp
+
3
−
3
View file @
ebd7850f
...
...
@@ -65,7 +65,7 @@ int main(int argc, char **argv) {
int
user_eg3
(
int
argc
,
char
**
argv
)
{
bool
f
acets
=
false
;
bool
printF
acets
=
false
;
if
(
strcmp
(
argv
[
1
],
"eg-100"
)
==
0
){
RboxPoints
rbox
;
rbox
.
appendPoints
(
"100"
);
...
...
@@ -98,7 +98,7 @@ int user_eg3(int argc, char **argv)
qhull
.
setOutputStream
(
&
cout
);
}
}
else
if
(
strcmp
(
argv
[
i
],
"facets"
)
==
0
){
f
acets
=
true
;
printF
acets
=
true
;
}
else
if
(
readingRbox
){
readingRbox
++
;
cerr
<<
"rbox "
<<
argv
[
i
]
<<
endl
;
...
...
@@ -146,7 +146,7 @@ int user_eg3(int argc, char **argv)
if
(
qhull
.
useOutputStream
){
return
0
;
}
if
(
f
acets
){
if
(
printF
acets
){
QhullFacetList
facets
=
qhull
.
facetList
();
cout
<<
"
\n
Facets created by Qhull::runQhull()
\n
"
<<
facets
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment