Skip to content

Commit 8c07159

Browse files
committed
Fixed example makefiles on linux
1 parent 8b67690 commit 8c07159

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

examples/arap_mesh_deformation/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifeq ($(UNAME), Darwin)
77
endif
88

99
ifeq ($(UNAME), Linux)
10-
LFLAGS += -L../external/OpenMesh/lib/linux
10+
LFLAGS += -L../external/OpenMesh/lib/linux -Wl,-rpath,../external/OpenMesh/lib/linux
1111
endif
1212

1313
LFLAGS += -lOpenMeshCore -lOpenMeshTools

examples/cotangent_mesh_smoothing/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifeq ($(UNAME), Darwin)
77
endif
88

99
ifeq ($(UNAME), Linux)
10-
LFLAGS += -L../external/OpenMesh/lib/linux
10+
LFLAGS += -L../external/OpenMesh/lib/linux -Wl,-rpath,../external/OpenMesh/lib/linux
1111
endif
1212

1313
LFLAGS += -lOpenMeshCore -lOpenMeshTools

examples/embedded_mesh_deformation/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ ifeq ($(UNAME), Darwin)
77
endif
88

99
ifeq ($(UNAME), Linux)
10-
LFLAGS += -L../external/OpenMesh/lib/linux
10+
LFLAGS += -L../external/OpenMesh/lib/linux -Wl,-rpath,../external/OpenMesh/lib/linux
1111
endif
1212

13+
LFLAGS += -lOpenMeshCore -lOpenMeshTools
14+
1315
include ../shared/make_template.inc

examples/robust_nonrigid_alignment/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifeq ($(UNAME), Darwin)
77
endif
88

99
ifeq ($(UNAME), Linux)
10-
LFLAGS += -L../external/OpenMesh/lib/linux
10+
LFLAGS += -L../external/OpenMesh/lib/linux -Wl,-rpath,../external/OpenMesh/lib/linux
1111
endif
1212

1313
LFLAGS += -lOpenMeshCore -lOpenMeshTools

examples/shape_from_shading/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ ifeq ($(UNAME), Darwin)
88
endif
99

1010
ifeq ($(UNAME), Linux)
11-
LFLAGS += -L../external/OpenMesh/lib/linux
11+
LFLAGS += -L../external/OpenMesh/lib/linux -Wl,-rpath,../external/OpenMesh/lib/linux
1212
endif
1313

14+
LFLAGS += -lOpenMeshCore -lOpenMeshTools
15+
1416

1517
include ../shared/make_template.inc

examples/volumetric_mesh_deformation/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifeq ($(UNAME), Darwin)
77
endif
88

99
ifeq ($(UNAME), Linux)
10-
LFLAGS += -L../external/OpenMesh/lib/linux
10+
LFLAGS += -L../external/OpenMesh/lib/linux -Wl,-rpath,../external/OpenMesh/lib/linux
1111
endif
1212

1313
LFLAGS += -lOpenMeshCore -lOpenMeshTools

0 commit comments

Comments
 (0)