1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
|
diff --git a/cpp/open3d/core/CMakeLists.txt b/cpp/open3d/core/CMakeLists.txt
index 43f0802f..34db67ef 100644
--- a/cpp/open3d/core/CMakeLists.txt
+++ b/cpp/open3d/core/CMakeLists.txt
@@ -1,5 +1,10 @@
open3d_ispc_add_library(core OBJECT)
+IF(CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 13)
+ MESSAGE(STATUS "GCC13 detected disabling \"-Wfree-nonheap-object\" in Cpp files")
+ target_compile_options(core PRIVATE "-Wno-free-nonheap-object")
+ENDIF()
+
target_sources(core PRIVATE
AdvancedIndexing.cpp
CUDAUtils.cpp
diff --git a/3rdparty/assimp/0001-ASSIMP-GCC13.patch b/3rdparty/assimp/0001-ASSIMP-GCC13.patch
new file mode 100644
index 00000000..302ec41d
--- /dev/null
+++ b/3rdparty/assimp/0001-ASSIMP-GCC13.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3288a18..e0d59aa 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -260,6 +260,10 @@ IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT MINGW)
+ SET(CMAKE_CXX_STANDARD 17)
+ SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
+ ENDIF()
++ IF(CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 13)
++ MESSAGE(STATUS "GCC13 detected disabling \"-Wdangling-reference\" in Cpp files as it appears to be a false positive")
++ ADD_COMPILE_OPTIONS("$<$<COMPILE_LANGUAGE:CXX>:-Wno-dangling-reference>")
++ ENDIF()
+ # hide all not-exported symbols
+ IF(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64" )
+ SET(CMAKE_CXX_FLAGS "-mxgot -fvisibility=hidden -fno-strict-aliasing -Wall ${CMAKE_CXX_FLAGS}")
+
diff --git a/3rdparty/assimp/assimp.cmake b/3rdparty/assimp/assimp.cmake
index 445f363d..9c29d8d2 100644
--- a/3rdparty/assimp/assimp.cmake
+++ b/3rdparty/assimp/assimp.cmake
@@ -21,6 +21,8 @@ ExternalProject_Add(
URL_HASH SHA256=b2f1c9450609f3bf201aa63b0b16023073d0ebb1c6e9ae5a832441f1e43c634c
DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/assimp"
UPDATE_COMMAND ""
+ PATCH_COMMAND echo "patch"
+ COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/0001-ASSIMP-GCC13.patch
CMAKE_ARGS
${ExternalProject_CMAKE_ARGS_hidden}
-DCMAKE_CXX_FLAGS:STRING=${assimp_cmake_cxx_flags}
@@ -33,6 +35,7 @@ ExternalProject_Add(
-DASSIMP_BUILD_ZLIB=ON
-DHUNTER_ENABLED=OFF # Renamed to "ASSIMP_HUNTER_ENABLED" in newer assimp.
-DCMAKE_DEBUG_POSTFIX=
+ -DCMAKE_BUILD_TYPE=
BUILD_BYPRODUCTS
<INSTALL_DIR>/${Open3D_INSTALL_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${lib_name}${CMAKE_STATIC_LIBRARY_SUFFIX}
<INSTALL_DIR>/${Open3D_INSTALL_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}IrrXML${CMAKE_STATIC_LIBRARY_SUFFIX}
diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake
index 58b450d6..976dba0b 100644
--- a/3rdparty/find_dependencies.cmake
+++ b/3rdparty/find_dependencies.cmake
@@ -519,12 +519,14 @@ if(WITH_OPENMP)
endif()
# X11
-if(UNIX AND NOT APPLE)
- open3d_find_package_3rdparty_library(3rdparty_x11
- QUIET
- PACKAGE X11
- TARGETS X11::X11
- )
+if(NOT TIZEN)
+ if(UNIX AND NOT APPLE)
+ open3d_find_package_3rdparty_library(3rdparty_x11
+ QUIET
+ PACKAGE X11
+ TARGETS X11::X11
+ )
+ endif()
endif()
# CUB (already included in CUDA 11.0+)
@@ -599,102 +601,106 @@ else()
endif()
# GLEW
-if(USE_SYSTEM_GLEW)
- open3d_find_package_3rdparty_library(3rdparty_glew
- HEADER
- PACKAGE GLEW
- TARGETS GLEW::GLEW
- )
- if(NOT 3rdparty_glew_FOUND)
- open3d_pkg_config_3rdparty_library(3rdparty_glew
+if(NOT TIZEN)
+ if(USE_SYSTEM_GLEW)
+ open3d_find_package_3rdparty_library(3rdparty_glew
HEADER
- SEARCH_ARGS glew
+ PACKAGE GLEW
+ TARGETS GLEW::GLEW
)
if(NOT 3rdparty_glew_FOUND)
- set(USE_SYSTEM_GLEW OFF)
+ open3d_pkg_config_3rdparty_library(3rdparty_glew
+ HEADER
+ SEARCH_ARGS glew
+ )
+ if(NOT 3rdparty_glew_FOUND)
+ set(USE_SYSTEM_GLEW OFF)
+ endif()
endif()
endif()
-endif()
-if(NOT USE_SYSTEM_GLEW)
- open3d_build_3rdparty_library(3rdparty_glew DIRECTORY glew
- HEADER
- SOURCES
- src/glew.c
- INCLUDE_DIRS
- include/
- )
- if(ENABLE_HEADLESS_RENDERING)
- target_compile_definitions(3rdparty_glew PUBLIC GLEW_OSMESA)
- endif()
- if(WIN32)
- target_compile_definitions(3rdparty_glew PUBLIC GLEW_STATIC)
+ if(NOT USE_SYSTEM_GLEW)
+ open3d_build_3rdparty_library(3rdparty_glew DIRECTORY glew
+ HEADER
+ SOURCES
+ src/glew.c
+ INCLUDE_DIRS
+ include/
+ )
+ if(ENABLE_HEADLESS_RENDERING)
+ target_compile_definitions(3rdparty_glew PUBLIC GLEW_OSMESA)
+ endif()
+ if(WIN32)
+ target_compile_definitions(3rdparty_glew PUBLIC GLEW_STATIC)
+ endif()
+ list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_CUSTOM Open3D::3rdparty_glew)
+ else()
+ list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_SYSTEM Open3D::3rdparty_glew)
endif()
- list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_CUSTOM Open3D::3rdparty_glew)
-else()
- list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_SYSTEM Open3D::3rdparty_glew)
endif()
# GLFW
-if(USE_SYSTEM_GLFW)
- open3d_find_package_3rdparty_library(3rdparty_glfw
- HEADER
- PACKAGE glfw3
- TARGETS glfw
- )
- if(NOT 3rdparty_glfw_FOUND)
- open3d_pkg_config_3rdparty_library(3rdparty_glfw
+if(NOT TIZEN)
+ if(USE_SYSTEM_GLFW)
+ open3d_find_package_3rdparty_library(3rdparty_glfw
HEADER
- SEARCH_ARGS glfw3
+ PACKAGE glfw3
+ TARGETS glfw
)
if(NOT 3rdparty_glfw_FOUND)
- set(USE_SYSTEM_GLFW OFF)
+ open3d_pkg_config_3rdparty_library(3rdparty_glfw
+ HEADER
+ SEARCH_ARGS glfw3
+ )
+ if(NOT 3rdparty_glfw_FOUND)
+ set(USE_SYSTEM_GLFW OFF)
+ endif()
endif()
endif()
-endif()
-if(NOT USE_SYSTEM_GLFW)
- message(STATUS "Building library 3rdparty_glfw from source")
- add_subdirectory(${Open3D_3RDPARTY_DIR}/glfw)
- open3d_import_3rdparty_library(3rdparty_glfw
- HEADER
- INCLUDE_DIRS ${Open3D_3RDPARTY_DIR}/glfw/include/
- LIBRARIES glfw3
- DEPENDS glfw
- )
- target_link_libraries(3rdparty_glfw INTERFACE Open3D::3rdparty_threads)
- if(UNIX AND NOT APPLE)
- find_library(RT_LIBRARY rt)
- if(RT_LIBRARY)
- target_link_libraries(3rdparty_glfw INTERFACE ${RT_LIBRARY})
+ if(NOT USE_SYSTEM_GLFW)
+ message(STATUS "Building library 3rdparty_glfw from source")
+ add_subdirectory(${Open3D_3RDPARTY_DIR}/glfw)
+ open3d_import_3rdparty_library(3rdparty_glfw
+ HEADER
+ INCLUDE_DIRS ${Open3D_3RDPARTY_DIR}/glfw/include/
+ LIBRARIES glfw3
+ DEPENDS glfw
+ )
+ target_link_libraries(3rdparty_glfw INTERFACE Open3D::3rdparty_threads)
+ if(UNIX AND NOT APPLE)
+ find_library(RT_LIBRARY rt)
+ if(RT_LIBRARY)
+ target_link_libraries(3rdparty_glfw INTERFACE ${RT_LIBRARY})
+ endif()
+ find_library(MATH_LIBRARY m)
+ if(MATH_LIBRARY)
+ target_link_libraries(3rdparty_glfw INTERFACE ${MATH_LIBRARY})
+ endif()
+ if(CMAKE_DL_LIBS)
+ target_link_libraries(3rdparty_glfw INTERFACE ${CMAKE_DL_LIBS})
+ endif()
endif()
- find_library(MATH_LIBRARY m)
- if(MATH_LIBRARY)
- target_link_libraries(3rdparty_glfw INTERFACE ${MATH_LIBRARY})
+ if(APPLE)
+ find_library(COCOA_FRAMEWORK Cocoa)
+ find_library(IOKIT_FRAMEWORK IOKit)
+ find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation)
+ find_library(CORE_VIDEO_FRAMEWORK CoreVideo)
+ target_link_libraries(3rdparty_glfw INTERFACE
+ ${COCOA_FRAMEWORK}
+ ${IOKIT_FRAMEWORK}
+ ${CORE_FOUNDATION_FRAMEWORK}
+ ${CORE_VIDEO_FRAMEWORK}
+ )
endif()
- if(CMAKE_DL_LIBS)
- target_link_libraries(3rdparty_glfw INTERFACE ${CMAKE_DL_LIBS})
+ if(WIN32)
+ target_link_libraries(3rdparty_glfw INTERFACE gdi32)
endif()
+ list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_CUSTOM Open3D::3rdparty_glfw)
+ else()
+ list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_SYSTEM Open3D::3rdparty_glfw)
endif()
- if(APPLE)
- find_library(COCOA_FRAMEWORK Cocoa)
- find_library(IOKIT_FRAMEWORK IOKit)
- find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation)
- find_library(CORE_VIDEO_FRAMEWORK CoreVideo)
- target_link_libraries(3rdparty_glfw INTERFACE
- ${COCOA_FRAMEWORK}
- ${IOKIT_FRAMEWORK}
- ${CORE_FOUNDATION_FRAMEWORK}
- ${CORE_VIDEO_FRAMEWORK}
- )
- endif()
- if(WIN32)
- target_link_libraries(3rdparty_glfw INTERFACE gdi32)
+ if(TARGET Open3D::3rdparty_x11)
+ target_link_libraries(3rdparty_glfw INTERFACE Open3D::3rdparty_x11)
endif()
- list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_CUSTOM Open3D::3rdparty_glfw)
-else()
- list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_SYSTEM Open3D::3rdparty_glfw)
-endif()
-if(TARGET Open3D::3rdparty_x11)
- target_link_libraries(3rdparty_glfw INTERFACE Open3D::3rdparty_x11)
endif()
# TurboJPEG
@@ -759,6 +765,32 @@ else()
list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_SYSTEM Open3D::3rdparty_jsoncpp)
endif()
+
+# dlog, minizip
+if(TIZEN)
+ open3d_pkg_config_3rdparty_library(3rdparty_dlog
+ HEADER
+ SEARCH_ARGS dlog)
+ if(3rdparty_dlog_FOUND)
+ if(TARGET Open3D::3rdparty_dlog)
+ list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_SYSTEM Open3D::3rdparty_dlog)
+ endif()
+ else()
+ set(USE_SYSTEM_DLOG OFF)
+ endif()
+
+ open3d_pkg_config_3rdparty_library(3rdparty_minizip
+ HEADER
+ SEARCH_ARGS minizip)
+ if(3rdparty_minizip_FOUND)
+ if(TARGET Open3D::3rdparty_minizip)
+ list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_SYSTEM Open3D::3rdparty_minizip)
+ endif()
+ else()
+ set(USE_SYSTEM_MINIZIP OFF)
+ endif()
+endif()
+
# liblzf
if(USE_SYSTEM_LIBLZF)
open3d_find_package_3rdparty_library(3rdparty_liblzf
@@ -1363,22 +1395,24 @@ if(BUILD_GUI)
endif() # if(NOT USE_SYSTEM_FILAMENT)
endif()
-# Headless rendering
-if (ENABLE_HEADLESS_RENDERING)
- open3d_find_package_3rdparty_library(3rdparty_opengl
- REQUIRED
- PACKAGE OSMesa
- INCLUDE_DIRS OSMESA_INCLUDE_DIR
- LIBRARIES OSMESA_LIBRARY
- )
-else()
- open3d_find_package_3rdparty_library(3rdparty_opengl
- PACKAGE OpenGL
- TARGETS OpenGL::GL
- )
- set(USE_SYSTEM_OPENGL ON)
+if(NOT TIZEN)
+ # Headless rendering
+ if (ENABLE_HEADLESS_RENDERING)
+ open3d_find_package_3rdparty_library(3rdparty_opengl
+ REQUIRED
+ PACKAGE OSMesa
+ INCLUDE_DIRS OSMESA_INCLUDE_DIR
+ LIBRARIES OSMESA_LIBRARY
+ )
+ else()
+ open3d_find_package_3rdparty_library(3rdparty_opengl
+ PACKAGE OpenGL
+ TARGETS OpenGL::GL
+ )
+ set(USE_SYSTEM_OPENGL ON)
+ endif()
+ list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_SYSTEM Open3D::3rdparty_opengl)
endif()
-list(APPEND Open3D_3RDPARTY_HEADER_TARGETS_FROM_SYSTEM Open3D::3rdparty_opengl)
# CPU Rendering
if(BUILD_GUI AND UNIX AND NOT APPLE)
@@ -1502,7 +1536,6 @@ open3d_import_3rdparty_library(3rdparty_uvatlas
)
list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_CUSTOM Open3D::3rdparty_uvatlas)
-
if(BUILD_SYCL_MODULE)
add_library(3rdparty_sycl INTERFACE)
target_link_libraries(3rdparty_sycl INTERFACE
@@ -1657,7 +1690,11 @@ else() # if(OPEN3D_USE_ONEAPI_PACKAGES)
# Find libgfortran.a and libgcc.a inside the gfortran library search
# directories. This ensures that the library matches the compiler.
# On ARM64 Ubuntu and ARM64 macOS, libgfortran.a is compiled with `-fPIC`.
- find_library(gfortran_lib NAMES libgfortran.a PATHS ${gfortran_lib_dirs} REQUIRED)
+ if (NOT TIZEN)
+ find_library(gfortran_lib NAMES libgfortran.a PATHS ${gfortran_lib_dirs} REQUIRED)
+ else()
+ find_library(gfortran_lib NAMES libgfortran.so PATHS ${gfortran_lib_dirs} REQUIRED)
+ endif()
find_library(gcc_lib NAMES libgcc.a PATHS ${gfortran_lib_dirs} REQUIRED)
target_link_libraries(3rdparty_blas INTERFACE
${gfortran_lib}
@@ -1707,12 +1744,14 @@ else() # if(OPEN3D_USE_ONEAPI_PACKAGES)
LIBRARIES ${STATIC_MKL_LIBRARIES}
DEPENDS ext_tbb ext_mkl_include ext_mkl
)
- if(UNIX)
- target_compile_options(3rdparty_blas INTERFACE "$<$<COMPILE_LANGUAGE:CXX>:-m64>")
- target_link_libraries(3rdparty_blas INTERFACE Open3D::3rdparty_threads ${CMAKE_DL_LIBS})
+ if (NOT TIZEN)
+ if(UNIX)
+ target_compile_options(3rdparty_blas INTERFACE "$<$<COMPILE_LANGUAGE:CXX>:-m64>")
+ target_link_libraries(3rdparty_blas INTERFACE Open3D::3rdparty_threads ${CMAKE_DL_LIBS})
+ endif()
+ target_compile_definitions(3rdparty_blas INTERFACE "$<$<COMPILE_LANGUAGE:CXX>:MKL_ILP64>")
+ list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_CUSTOM Open3D::3rdparty_blas)
endif()
- target_compile_definitions(3rdparty_blas INTERFACE "$<$<COMPILE_LANGUAGE:CXX>:MKL_ILP64>")
- list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_CUSTOM Open3D::3rdparty_blas)
endif()
endif() # if(OPEN3D_USE_ONEAPI_PACKAGES)
diff --git a/3rdparty/fmt/fmt.cmake b/3rdparty/fmt/fmt.cmake
index f53e2f49..41cc2760 100644
--- a/3rdparty/fmt/fmt.cmake
+++ b/3rdparty/fmt/fmt.cmake
@@ -2,17 +2,23 @@ include(ExternalProject)
set(FMT_LIB_NAME fmt)
-if (MSVC AND MSVC_VERSION VERSION_LESS 1930 OR
- CMAKE_CXX_COMPILER_ID MATCHES "IntelLLVM")
- # MSVC 17.x required for building fmt >6
- # SYCL / DPC++ needs fmt ver <=6 or >= 9.2: https://github.com/fmtlib/fmt/issues/3005
+if (NOT TIZEN)
+ if (MSVC AND MSVC_VERSION VERSION_LESS 1930 OR
+ CMAKE_CXX_COMPILER_ID MATCHES "IntelLLVM")
+ # MSVC 17.x required for building fmt >6
+ # SYCL / DPC++ needs fmt ver <=6 or >= 9.2: https://github.com/fmtlib/fmt/issues/3005
+ set(FMT_VER "6.0.0")
+ set(FMT_SHA256
+ "f1907a58d5e86e6c382e51441d92ad9e23aea63827ba47fd647eacc0d3a16c78")
+ else()
+ set(FMT_VER "9.0.0")
+ set(FMT_SHA256
+ "9a1e0e9e843a356d65c7604e2c8bf9402b50fe294c355de0095ebd42fb9bd2c5")
+ endif()
+else()
set(FMT_VER "6.0.0")
set(FMT_SHA256
"f1907a58d5e86e6c382e51441d92ad9e23aea63827ba47fd647eacc0d3a16c78")
-else()
- set(FMT_VER "9.0.0")
- set(FMT_SHA256
- "9a1e0e9e843a356d65c7604e2c8bf9402b50fe294c355de0095ebd42fb9bd2c5")
endif()
ExternalProject_Add(
diff --git a/3rdparty/jsoncpp/jsoncpp.cmake b/3rdparty/jsoncpp/jsoncpp.cmake
index 2f5b48d4..207c5e46 100644
--- a/3rdparty/jsoncpp/jsoncpp.cmake
+++ b/3rdparty/jsoncpp/jsoncpp.cmake
@@ -1,31 +1,59 @@
include(ExternalProject)
-find_package(Git QUIET REQUIRED)
+if(NOT TIZEN)
+ find_package(Git QUIET REQUIRED)
-ExternalProject_Add(
- ext_jsoncpp
- PREFIX jsoncpp
- URL https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.4.tar.gz
- URL_HASH SHA256=e34a628a8142643b976c7233ef381457efad79468c67cb1ae0b83a33d7493999
- DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/jsoncpp"
- UPDATE_COMMAND ""
- PATCH_COMMAND ${GIT_EXECUTABLE} init
- COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace
- ${CMAKE_CURRENT_LIST_DIR}/0001-optional-CXX11-ABI-and-MSVC-runtime.patch
- CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
- -DBUILD_SHARED_LIBS=OFF
- -DBUILD_STATIC_LIBS=ON
- -DBUILD_OBJECT_LIBS=OFF
- -DJSONCPP_WITH_TESTS=OFF
- -DJSONCPP_USE_CXX11_ABI=${GLIBCXX_USE_CXX11_ABI}
- -DJSONCPP_STATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
- ${ExternalProject_CMAKE_ARGS_hidden}
- BUILD_BYPRODUCTS
- <INSTALL_DIR>/${Open3D_INSTALL_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}jsoncpp${CMAKE_STATIC_LIBRARY_SUFFIX}
-)
+ ExternalProject_Add(
+ ext_jsoncpp
+ PREFIX jsoncpp
+ URL https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.4.tar.gz
+ URL_HASH SHA256=e34a628a8142643b976c7233ef381457efad79468c67cb1ae0b83a33d7493999
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/jsoncpp"
+ UPDATE_COMMAND ""
+ PATCH_COMMAND ${GIT_EXECUTABLE} init
+ COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace
+ ${CMAKE_CURRENT_LIST_DIR}/0001-optional-CXX11-ABI-and-MSVC-runtime.patch
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
+ -DBUILD_SHARED_LIBS=OFF
+ -DBUILD_STATIC_LIBS=ON
+ -DBUILD_OBJECT_LIBS=OFF
+ -DJSONCPP_WITH_TESTS=OFF
+ -DJSONCPP_USE_CXX11_ABI=${GLIBCXX_USE_CXX11_ABI}
+ -DJSONCPP_STATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ BUILD_BYPRODUCTS
+ <INSTALL_DIR>/${Open3D_INSTALL_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}jsoncpp${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
-ExternalProject_Get_Property(ext_jsoncpp INSTALL_DIR)
-set(JSONCPP_INCLUDE_DIRS ${INSTALL_DIR}/include/) # "/" is critical.
-set(JSONCPP_LIB_DIR ${INSTALL_DIR}/${Open3D_INSTALL_LIB_DIR})
-set(JSONCPP_LIBRARIES jsoncpp)
+ ExternalProject_Get_Property(ext_jsoncpp INSTALL_DIR)
+ set(JSONCPP_INCLUDE_DIRS ${INSTALL_DIR}/include/) # "/" is critical.
+ set(JSONCPP_LIB_DIR ${INSTALL_DIR}/${Open3D_INSTALL_LIB_DIR})
+ set(JSONCPP_LIBRARIES jsoncpp)
+else()
+ ExternalProject_Add(
+ ext_jsoncpp
+ PREFIX jsoncpp
+ URL https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.4.tar.gz
+ URL_HASH SHA256=e34a628a8142643b976c7233ef381457efad79468c67cb1ae0b83a33d7493999
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/jsoncpp"
+ UPDATE_COMMAND ""
+ PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/0001-optional-CXX11-ABI-and-MSVC-runtime.patch
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
+ -DBUILD_SHARED_LIBS=OFF
+ -DBUILD_STATIC_LIBS=ON
+ -DBUILD_OBJECT_LIBS=OFF
+ -DJSONCPP_WITH_TESTS=OFF
+ -DJSONCPP_USE_CXX11_ABI=${GLIBCXX_USE_CXX11_ABI}
+ -DJSONCPP_STATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ BUILD_BYPRODUCTS
+ <INSTALL_DIR>/${Open3D_INSTALL_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}jsoncpp${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+
+ ExternalProject_Get_Property(ext_jsoncpp INSTALL_DIR)
+ set(JSONCPP_INCLUDE_DIRS ${INSTALL_DIR}/include/) # "/" is critical.
+ set(JSONCPP_LIB_DIR ${INSTALL_DIR}/${Open3D_INSTALL_LIB_DIR})
+ set(JSONCPP_LIBRARIES jsoncpp)
+endif()
diff --git a/3rdparty/mkl/0001-TBB-GCC13.patch b/3rdparty/mkl/0001-TBB-GCC13.patch
new file mode 100644
index 00000000..25ef23e9
--- /dev/null
+++ b/3rdparty/mkl/0001-TBB-GCC13.patch
@@ -0,0 +1,13 @@
+diff --git a/include/tbb/task.h b/include/tbb/task.h
+index d58fb36..093ebf2 100644
+--- a/include/tbb/task.h
++++ b/include/tbb/task.h
+@@ -249,7 +249,7 @@ namespace internal {
+ #if __TBB_TASK_PRIORITY
+ //! Pointer to the next offloaded lower priority task.
+ /** Used to maintain a list of offloaded tasks inside the scheduler. **/
+- task* next_offloaded;
++ tbb::task* next_offloaded;
+ #endif
+
+ #if __TBB_PREVIEW_RESUMABLE_TASKS
diff --git a/3rdparty/mkl/tbb.cmake b/3rdparty/mkl/tbb.cmake
index b87ef79f..92d8997b 100644
--- a/3rdparty/mkl/tbb.cmake
+++ b/3rdparty/mkl/tbb.cmake
@@ -21,30 +21,57 @@ set(STATIC_TBB_INCLUDE_DIR "${STATIC_MKL_INCLUDE_DIR}")
set(STATIC_TBB_LIB_DIR "${STATIC_MKL_LIB_DIR}")
set(STATIC_TBB_LIBRARIES tbb_static tbbmalloc_static)
-find_package(Git QUIET REQUIRED)
+if (NOT TIZEN)
+ find_package(Git QUIET REQUIRED)
-ExternalProject_Add(
- ext_tbb
- PREFIX tbb
- URL https://github.com/wjakob/tbb/archive/141b0e310e1fb552bdca887542c9c1a8544d6503.tar.gz # Sept 2020
- URL_HASH SHA256=bb29b76eabf7549660e3dba2feb86ab501469432a15fb0bf2c21e24d6fbc4c72
- DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/tbb"
- UPDATE_COMMAND ""
- PATCH_COMMAND ${GIT_EXECUTABLE} init
- COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace
- ${CMAKE_CURRENT_LIST_DIR}/0001-Allow-selecttion-of-static-dynamic-MSVC-runtime.patch
- CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=${MKL_INSTALL_PREFIX}
- -DSTATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
- -DTBB_BUILD_TBBMALLOC=ON
- -DTBB_BUILD_TBBMALLOC_PROXYC=OFF
- -DTBB_BUILD_SHARED=OFF
- -DTBB_BUILD_STATIC=ON
- -DTBB_BUILD_TESTS=OFF
- -DTBB_INSTALL_ARCHIVE_DIR=${Open3D_INSTALL_LIB_DIR}
- -DTBB_CMAKE_PACKAGE_INSTALL_DIR=${Open3D_INSTALL_LIB_DIR}/cmake/tbb
- ${ExternalProject_CMAKE_ARGS_hidden}
- BUILD_BYPRODUCTS
- ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbb_static${CMAKE_STATIC_LIBRARY_SUFFIX}
- ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbbmalloc_static${CMAKE_STATIC_LIBRARY_SUFFIX}
-)
+ ExternalProject_Add(
+ ext_tbb
+ PREFIX tbb
+ URL https://github.com/wjakob/tbb/archive/141b0e310e1fb552bdca887542c9c1a8544d6503.tar.gz # Sept 2020
+ URL_HASH SHA256=bb29b76eabf7549660e3dba2feb86ab501469432a15fb0bf2c21e24d6fbc4c72
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/tbb"
+ UPDATE_COMMAND ""
+ PATCH_COMMAND ${GIT_EXECUTABLE} init
+ COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace
+ ${CMAKE_CURRENT_LIST_DIR}/0001-Allow-selecttion-of-static-dynamic-MSVC-runtime.patch
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${MKL_INSTALL_PREFIX}
+ -DSTATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
+ -DTBB_BUILD_TBBMALLOC=ON
+ -DTBB_BUILD_TBBMALLOC_PROXYC=OFF
+ -DTBB_BUILD_SHARED=OFF
+ -DTBB_BUILD_STATIC=ON
+ -DTBB_BUILD_TESTS=OFF
+ -DTBB_INSTALL_ARCHIVE_DIR=${Open3D_INSTALL_LIB_DIR}
+ -DTBB_CMAKE_PACKAGE_INSTALL_DIR=${Open3D_INSTALL_LIB_DIR}/cmake/tbb
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ BUILD_BYPRODUCTS
+ ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbb_static${CMAKE_STATIC_LIBRARY_SUFFIX}
+ ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbbmalloc_static${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+else()
+ ExternalProject_Add(
+ ext_tbb
+ PREFIX tbb
+ URL https://github.com/wjakob/tbb/archive/141b0e310e1fb552bdca887542c9c1a8544d6503.tar.gz # Sept 2020
+ URL_HASH SHA256=bb29b76eabf7549660e3dba2feb86ab501469432a15fb0bf2c21e24d6fbc4c72
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/tbb"
+ UPDATE_COMMAND ""
+ PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/0001-Allow-selecttion-of-static-dynamic-MSVC-runtime.patch
+ COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/0001-TBB-GCC13.patch
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${MKL_INSTALL_PREFIX}
+ -DSTATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
+ -DTBB_BUILD_TBBMALLOC=ON
+ -DTBB_BUILD_TBBMALLOC_PROXYC=OFF
+ -DTBB_BUILD_SHARED=OFF
+ -DTBB_BUILD_STATIC=ON
+ -DTBB_BUILD_TESTS=OFF
+ -DTBB_INSTALL_ARCHIVE_DIR=${Open3D_INSTALL_LIB_DIR}
+ -DTBB_CMAKE_PACKAGE_INSTALL_DIR=${Open3D_INSTALL_LIB_DIR}/cmake/tbb
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ BUILD_BYPRODUCTS
+ ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbb_static${CMAKE_STATIC_LIBRARY_SUFFIX}
+ ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbbmalloc_static${CMAKE_STATIC_LIBRARY_SUFFIX}
+ )
+endif()
-ExternalProject_Add(
- ext_tbb
- PREFIX tbb
- URL https://github.com/wjakob/tbb/archive/141b0e310e1fb552bdca887542c9c1a8544d6503.tar.gz # Sept 2020
- URL_HASH SHA256=bb29b76eabf7549660e3dba2feb86ab501469432a15fb0bf2c21e24d6fbc4c72
- DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/tbb"
- UPDATE_COMMAND ""
- PATCH_COMMAND ${GIT_EXECUTABLE} init
- COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace
- ${CMAKE_CURRENT_LIST_DIR}/0001-Allow-selecttion-of-static-dynamic-MSVC-runtime.patch
- CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=${MKL_INSTALL_PREFIX}
- -DSTATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
- -DTBB_BUILD_TBBMALLOC=ON
- -DTBB_BUILD_TBBMALLOC_PROXYC=OFF
- -DTBB_BUILD_SHARED=OFF
- -DTBB_BUILD_STATIC=ON
- -DTBB_BUILD_TESTS=OFF
- -DTBB_INSTALL_ARCHIVE_DIR=${Open3D_INSTALL_LIB_DIR}
- -DTBB_CMAKE_PACKAGE_INSTALL_DIR=${Open3D_INSTALL_LIB_DIR}/cmake/tbb
- ${ExternalProject_CMAKE_ARGS_hidden}
- BUILD_BYPRODUCTS
- ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbb_static${CMAKE_STATIC_LIBRARY_SUFFIX}
- ${STATIC_TBB_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}tbbmalloc_static${CMAKE_STATIC_LIBRARY_SUFFIX}
-)
diff --git a/3rdparty/uvatlas/uvatlas.cmake b/3rdparty/uvatlas/uvatlas.cmake
index 51831059..03aa5224 100644
--- a/3rdparty/uvatlas/uvatlas.cmake
+++ b/3rdparty/uvatlas/uvatlas.cmake
@@ -1,36 +1,68 @@
include(ExternalProject)
# uvatlas needs some headers from directx
-ExternalProject_Add(
- ext_directxheaders
- PREFIX uvatlas
- GIT_REPOSITORY https://github.com/microsoft/DirectX-Headers.git
- GIT_TAG v1.606.3
- GIT_SHALLOW TRUE
- DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/uvatlas"
- UPDATE_COMMAND ""
- CMAKE_ARGS
- ${ExternalProject_CMAKE_ARGS_hidden}
- -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
- -DBUILD_GMOCK=OFF
- -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
- -DDXHEADERS_BUILD_TEST=OFF
- -DINSTALL_GTEST=OFF
-)
+if (NOT TIZEN)
+ ExternalProject_Add(
+ ext_directxheaders
+ PREFIX uvatlas
+ GIT_REPOSITORY https://github.com/microsoft/DirectX-Headers.git
+ GIT_TAG v1.606.3
+ GIT_SHALLOW TRUE
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/uvatlas"
+ UPDATE_COMMAND ""
+ CMAKE_ARGS
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
+ -DBUILD_GMOCK=OFF
+ -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
+ -DDXHEADERS_BUILD_TEST=OFF
+ -DINSTALL_GTEST=OFF
+ )
+else()
+ ExternalProject_Add(
+ ext_directxheaders
+ PREFIX uvatlas
+ URL https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v1.606.3.tar.gz
+ URL_HASH SHA256=bf0183981e505336e918609374907c934b99eb61c0826d75a5649f41568abc4b
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/uvatlas/d"
+ UPDATE_COMMAND ""
+ CMAKE_ARGS
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
+ -DBUILD_GMOCK=OFF
+ -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
+ -DDXHEADERS_BUILD_TEST=OFF
+ -DINSTALL_GTEST=OFF
+ )
+endif()
# uvatlas needs DirectXMath
-ExternalProject_Add(
- ext_directxmath
- PREFIX uvatlas
- GIT_REPOSITORY https://github.com/microsoft/DirectXMath.git
- GIT_TAG may2022
- GIT_SHALLOW TRUE
- DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/uvatlas"
- UPDATE_COMMAND ""
- CMAKE_ARGS
- ${ExternalProject_CMAKE_ARGS_hidden}
- -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-)
+if (NOT TIZEN)
+ ExternalProject_Add(
+ ext_directxmath
+ PREFIX uvatlas
+ GIT_REPOSITORY https://github.com/microsoft/DirectXMath.git
+ GIT_TAG may2022
+ GIT_SHALLOW TRUE
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/uvatlas"
+ UPDATE_COMMAND ""
+ CMAKE_ARGS
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
+ )
+else()
+ ExternalProject_Add(
+ ext_directxmath
+ PREFIX uvatlas
+ URL hhttps://github.com/microsoft/DirectXMath/archive/refs/tags/may2022.tar.gz
+ URL_HASH SHA256=b2c5b419ca2c567860f7c204c9c0890573e8a58c8d877473e4f3ba6b851ca4ce
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/uvatlas/d"
+ UPDATE_COMMAND ""
+ CMAKE_ARGS
+ ${ExternalProject_CMAKE_ARGS_hidden}
+ -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
+ )
+endif()
# uvatlas
ExternalProject_Add(
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c37ce5f..23a0d8cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -217,7 +217,7 @@ if(BUNDLE_OPEN3D_ML AND NOT (BUILD_TENSORFLOW_OPS OR BUILD_PYTORCH_OPS))
message(SEND_ERROR "3DML depends on TensorFlow or PyTorch Ops. Enable them with -DBUILD_TENSORFLOW_OPS=ON or -DBUILD_PYTORCH_OPS=ON")
endif()
if(BUILD_WEBRTC AND LINUX_AARCH64)
- message(FATAL_ERROR "BUILD_WEBRTC=ON is not yet supported on ARM Linux")
+ message(WARNING "BUILD_WEBRTC=ON is not yet supported on ARM Linux")
endif()
if(BUILD_WEBRTC AND NOT BUILD_GUI)
message(FATAL_ERROR "BUILD_WEBRTC=ON requires BUILD_GUI=ON")
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index 8662fb37..fe2435ef 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -1,6 +1,8 @@
add_subdirectory(open3d)
-add_subdirectory(tools)
-add_subdirectory(apps)
+if(NOT TIZEN)
+ add_subdirectory(tools)
+ add_subdirectory(apps)
+endif()
if (BUILD_UNIT_TESTS)
add_subdirectory(tests)
endif()
diff --git a/cpp/open3d/CMakeLists.txt b/cpp/open3d/CMakeLists.txt
index 6da3581e..86c3cfad 100644
--- a/cpp/open3d/CMakeLists.txt
+++ b/cpp/open3d/CMakeLists.txt
@@ -66,7 +66,9 @@ add_subdirectory(t/geometry)
add_subdirectory(t/io)
add_subdirectory(t/pipelines)
add_subdirectory(utility)
-add_subdirectory(visualization)
+if(NOT TIZEN)
+ add_subdirectory(visualization)
+endif()
if (BUILD_GUI)
add_subdirectory(visualization/gui)
@@ -96,7 +98,6 @@ open3d_ispc_target_sources_TARGET_OBJECTS(Open3D PRIVATE
tpipelines
tpipelines_kernel
utility
- visualization
)
if (BUILD_GUI)
@@ -123,8 +124,9 @@ add_source_group(ml)
add_source_group(pipelines)
add_source_group(tpipelines)
add_source_group(utility)
-add_source_group(visualization)
-
+if(NOT TIZEN)
+ add_source_group(visualization)
+endif()
open3d_show_and_abort_on_warning(Open3D)
open3d_set_global_properties(Open3D)
open3d_set_open3d_lib_properties(Open3D)
diff --git a/cpp/open3d/Open3D.h.in b/cpp/open3d/Open3D.h.in
index 38ba353c..600a9231 100644
--- a/cpp/open3d/Open3D.h.in
+++ b/cpp/open3d/Open3D.h.in
@@ -6,6 +6,7 @@
// ----------------------------------------------------------------------------
#pragma once
+#cmakedefine TIZEN
// Note: do not modify Open3D.h, modify Open3D.h.in instead
#include "open3d/Open3DConfig.h"
@@ -97,6 +98,7 @@
#include "open3d/utility/ProgressReporters.h"
#include "open3d/utility/Random.h"
#include "open3d/utility/Timer.h"
+#if !defined(TIZEN)
#include "open3d/visualization/gui/Application.h"
#include "open3d/visualization/gui/Button.h"
#include "open3d/visualization/gui/Checkbox.h"
@@ -133,6 +135,7 @@
#include "open3d/visualization/visualizer/VisualizerWithEditing.h"
#include "open3d/visualization/visualizer/VisualizerWithKeyCallback.h"
#include "open3d/visualization/visualizer/VisualizerWithVertexSelection.h"
+#endif
// clang-format off
@BUILD_AZURE_KINECT_COMMENT@#include "open3d/io/sensor/azure_kinect/AzureKinectRecorder.h"
diff --git a/cpp/open3d/io/CMakeLists.txt b/cpp/open3d/io/CMakeLists.txt
index b4348583..74bb82b9 100644
--- a/cpp/open3d/io/CMakeLists.txt
+++ b/cpp/open3d/io/CMakeLists.txt
@@ -36,16 +36,18 @@ target_sources(io PRIVATE
file_format/FileXYZRGB.cpp
)
-target_sources(io PRIVATE
- rpc/BufferConnection.cpp
- rpc/Connection.cpp
- rpc/DummyReceiver.cpp
- rpc/MessageProcessorBase.cpp
- rpc/MessageUtils.cpp
- rpc/RemoteFunctions.cpp
- rpc/ZMQContext.cpp
- rpc/ZMQReceiver.cpp
-)
+if(NOT TIZEN)
+ target_sources(io PRIVATE
+ rpc/BufferConnection.cpp
+ rpc/Connection.cpp
+ rpc/DummyReceiver.cpp
+ rpc/MessageProcessorBase.cpp
+ rpc/MessageUtils.cpp
+ rpc/RemoteFunctions.cpp
+ rpc/ZMQContext.cpp
+ rpc/ZMQReceiver.cpp
+ )
+endif()
if (BUILD_AZURE_KINECT)
target_sources(io PRIVATE
diff --git a/cpp/open3d/t/geometry/CMakeLists.txt b/cpp/open3d/t/geometry/CMakeLists.txt
index 1b1ba576..60192167 100644
--- a/cpp/open3d/t/geometry/CMakeLists.txt
+++ b/cpp/open3d/t/geometry/CMakeLists.txt
@@ -11,7 +11,7 @@ target_sources(tgeometry PRIVATE
RGBDImage.cpp
TensorMap.cpp
TriangleMesh.cpp
- TriangleMeshFactory.cpp
+ TriangleMeshFactory.cpp
VoxelBlockGrid.cpp
VtkUtils.cpp
)
diff --git a/cpp/open3d/t/geometry/TriangleMesh.cpp b/cpp/open3d/t/geometry/TriangleMesh.cpp
index 4134ee6f..48e6070a 100644
--- a/cpp/open3d/t/geometry/TriangleMesh.cpp
+++ b/cpp/open3d/t/geometry/TriangleMesh.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
+#include "open3d/Open3D.h"
#include "open3d/t/geometry/TriangleMesh.h"
#include <vtkBooleanOperationPolyDataFilter.h>
@@ -333,6 +334,7 @@ geometry::TriangleMesh TriangleMesh::FromLegacy(
}
// Convert material if legacy mesh only has one
+#if !defined(TIZEN)
if (mesh_legacy.materials_.size() == 1) {
const auto &mat = mesh_legacy.materials_.begin()->second;
auto &tmat = mesh.GetMaterial();
@@ -365,6 +367,7 @@ geometry::TriangleMesh TriangleMesh::FromLegacy(
"Legacy mesh has more than 1 material which is not supported "
"by Tensor-based meshes.");
}
+#endif
return mesh;
}
@@ -834,7 +837,9 @@ void UpdateMaterialTextures(
}
core::Tensor img_data = tex.second.Reshape(shape);
+#if !defined(TIZEN)
material.SetTextureMap(tex.first, Image(img_data));
+#endif
}
}
diff --git a/cpp/open3d/t/pipelines/CMakeLists.txt b/cpp/open3d/t/pipelines/CMakeLists.txt
index 352a033a..2dcf2c7e 100644
--- a/cpp/open3d/t/pipelines/CMakeLists.txt
+++ b/cpp/open3d/t/pipelines/CMakeLists.txt
@@ -15,9 +15,14 @@ target_sources(tpipelines PRIVATE
target_sources(tpipelines PRIVATE
slac/ControlGrid.cpp
slac/SLACOptimizer.cpp
- slac/Visualization.cpp
)
+if(NOT TIZEN)
+ target_sources(tpipelines PRIVATE
+ slac/Visualization.cpp
+ )
+endif()
+
target_sources(tpipelines PRIVATE
slam/Model.cpp
)
diff --git a/cpp/open3d/t/pipelines/slac/FillInLinearSystemImpl.h b/cpp/open3d/t/pipelines/slac/FillInLinearSystemImpl.h
index 4ad6a5d8..a84a0d3d 100644
--- a/cpp/open3d/t/pipelines/slac/FillInLinearSystemImpl.h
+++ b/cpp/open3d/t/pipelines/slac/FillInLinearSystemImpl.h
@@ -9,6 +9,7 @@
#include <fstream>
+#include "open3d/Open3D.h"
#include "open3d/core/EigenConverter.h"
#include "open3d/t/pipelines/kernel/FillInLinearSystem.h"
#include "open3d/t/pipelines/slac/SLACOptimizer.h"
@@ -91,11 +92,12 @@ void FillInRigidAlignmentTerm(Tensor& AtA,
FillInRigidAlignmentTerm(AtA, Atb, residual, tpcd_i_indexed,
tpcd_j_indexed, Ti, Tj, i, j,
params.distance_threshold_);
-
+#if !defined(TIZEN)
if (debug_option.debug_ && i >= debug_option.debug_start_node_idx_) {
VisualizePointCloudCorrespondences(tpcd_i, tpcd_j, corres_ij,
Tj.Inverse().Matmul(Ti));
}
+#endif
}
}
@@ -202,13 +204,14 @@ void FillInSLACAlignmentTerm(Tensor& AtA,
FillInSLACAlignmentTerm(AtA, Atb, residual, ctr_grid, tpcd_param_i,
tpcd_param_j, Ti, Tj, i, j, n_frags,
params.distance_threshold_);
-
+#if !defined(TIZEN)
if (debug_option.debug_ && i >= debug_option.debug_start_node_idx_) {
VisualizePointCloudCorrespondences(tpcd_i, tpcd_j, corres_ij,
Tj.Inverse().Matmul(Ti));
VisualizePointCloudEmbedding(tpcd_param_i, ctr_grid);
VisualizePointCloudDeformation(tpcd_param_i, ctr_grid);
}
+#endif
}
}
@@ -230,9 +233,11 @@ void FillInSLACRegularizerTerm(Tensor& AtA,
positions_curr,
n_frags * params.regularizer_weight_,
n_frags, ctr_grid.GetAnchorIdx());
+#if !defined(TIZEN)
if (debug_option.debug_) {
VisualizeGridDeformation(ctr_grid);
}
+#endif
}
} // namespace slac
diff --git a/cpp/open3d/t/pipelines/slac/SLACOptimizer.cpp b/cpp/open3d/t/pipelines/slac/SLACOptimizer.cpp
index f51f59ce..2b8fd19e 100644
--- a/cpp/open3d/t/pipelines/slac/SLACOptimizer.cpp
+++ b/cpp/open3d/t/pipelines/slac/SLACOptimizer.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
+#include "open3d/Open3D.h"
#include "open3d/t/pipelines/slac/SLACOptimizer.h"
#include "open3d/core/EigenConverter.h"
@@ -43,7 +44,7 @@ static std::vector<std::string> PreprocessPointClouds(
if (pcd == nullptr) {
utility::LogError("Internal error: pcd is nullptr.");
}
-
+#if !defined(TIZEN)
// Pre-processing input pointcloud.
if (params.voxel_size_ > 0) {
pcd = pcd->VoxelDownSample(params.voxel_size_);
@@ -55,7 +56,7 @@ static std::vector<std::string> PreprocessPointClouds(
pcd->EstimateNormals();
}
}
-
+#endif
io::WritePointCloud(fname_processed, *pcd);
utility::LogInfo("Saving processed point cloud {}", fname_processed);
}
@@ -192,11 +193,13 @@ static core::Tensor GetCorrespondenceSetForPointCloudPair(
inlier_ratio);
if (j != i + 1 && inlier_ratio < fitness_threshold) {
+#if !defined(TIZEN)
if (debug) {
VisualizePointCloudCorrespondences(
tpcd_i, tpcd_j, correspondence_set,
T_j.Inverse().Matmul(T_i).To(device, dtype));
}
+#endif
return core::Tensor();
}
diff --git a/cpp/open3d/utility/Logging.cpp b/cpp/open3d/utility/Logging.cpp
index 782c5155..31d12850 100644
--- a/cpp/open3d/utility/Logging.cpp
+++ b/cpp/open3d/utility/Logging.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
+#include "open3d/Open3D.h"
#include "open3d/utility/Logging.h"
#include <fmt/core.h>
@@ -16,6 +17,16 @@
#include <sstream>
#include <string>
+#if defined(TIZEN)
+#include <dlog.h>
+
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+
+#define LOG_TAG "OPEN3D"
+#endif
+
namespace open3d {
namespace utility {
@@ -76,6 +87,9 @@ void Logger::VError [[noreturn]] (const char *file,
const std::string &message) const {
std::string err_msg = fmt::format("[Open3D Error] ({}) {}:{}: {}\n",
function, file, line, message);
+#if defined(TIZEN)
+ LOGE("%s", err_msg.c_str());
+#endif
err_msg = impl_->ColorString(err_msg, TextColor::Red, 1);
#ifdef _MSC_VER // Uncaught exception error messages not shown in Windows
std::cerr << err_msg << std::endl;
@@ -88,8 +102,13 @@ void Logger::VWarning(const char *file,
const char *function,
const std::string &message) const {
std::string err_msg = fmt::format("[Open3D WARNING] {}", message);
+#if defined(TIZEN)
+ LOGW("%s", err_msg.c_str());
+#endif
err_msg = impl_->ColorString(err_msg, TextColor::Yellow, 1);
+#if !defined(TIZEN)
impl_->print_fcn_(err_msg);
+#endif
}
void Logger::VInfo(const char *file,
@@ -97,7 +116,11 @@ void Logger::VInfo(const char *file,
const char *function,
const std::string &message) const {
std::string err_msg = fmt::format("[Open3D INFO] {}", message);
+#if defined(TIZEN)
+ LOGI("%s", err_msg.c_str());
+#else
impl_->print_fcn_(err_msg);
+#endif
}
void Logger::VDebug(const char *file,
@@ -105,7 +128,11 @@ void Logger::VDebug(const char *file,
const char *function,
const std::string &message) const {
std::string err_msg = fmt::format("[Open3D DEBUG] {}", message);
+#if defined(TIZEN)
+ LOGI("%s", err_msg.c_str());
+#else
impl_->print_fcn_(err_msg);
+#endif
}
void Logger::SetPrintFunction(
diff --git a/cpp/open3d/visualization/CMakeLists.txt b/cpp/open3d/visualization/CMakeLists.txt
index fd794dce..75c18202 100644
--- a/cpp/open3d/visualization/CMakeLists.txt
+++ b/cpp/open3d/visualization/CMakeLists.txt
@@ -98,7 +98,6 @@ if (BUILD_GUI)
)
endif()
-
include(Open3DAddEncodedShader)
open3d_add_encoded_shader(shader
diff --git a/cpp/open3d/visualization/rendering/MaterialRecord.h b/cpp/open3d/visualization/rendering/MaterialRecord.h
index 987099f1..c72820f9 100644
--- a/cpp/open3d/visualization/rendering/MaterialRecord.h
+++ b/cpp/open3d/visualization/rendering/MaterialRecord.h
@@ -13,7 +13,10 @@
#include "open3d/geometry/Image.h"
#include "open3d/visualization/rendering/Gradient.h"
+#include "open3d/Open3D.h"
+#if !defined(TIZEN)
#include "open3d/visualization/utility/GLHelper.h"
+#endif
namespace open3d {
namespace visualization {
diff --git a/cpp/open3d/visualization/utility/GLHelper.h b/cpp/open3d/visualization/utility/GLHelper.h
index 02020b75..ec99d472 100644
--- a/cpp/open3d/visualization/utility/GLHelper.h
+++ b/cpp/open3d/visualization/utility/GLHelper.h
@@ -13,8 +13,10 @@
#include <windows.h>
#endif
+#if defined(TIZEN)
#include <GL/glew.h> // Make sure glew.h is included before gl.h
#include <GLFW/glfw3.h>
+#endif
#include <Eigen/Core>
#include <string>
diff --git a/cpp/tests/io/CMakeLists.txt b/cpp/tests/io/CMakeLists.txt
index c6ed76f3..8015efcb 100644
--- a/cpp/tests/io/CMakeLists.txt
+++ b/cpp/tests/io/CMakeLists.txt
@@ -26,9 +26,11 @@ target_sources(tests PRIVATE
file_format/FileXYZRGB.cpp
)
-target_sources(tests PRIVATE
- rpc/RemoteFunctions.cpp
-)
+if(NOT TIZEN)
+ target_sources(tests PRIVATE
+ rpc/RemoteFunctions.cpp
+ )
+endif()
if (BUILD_AZURE_KINECT)
target_sources(tests PRIVATE
diff --git a/cpp/tests/t/geometry/Image.cpp b/cpp/tests/t/geometry/Image.cpp
index 1b9fa211..30790c56 100644
--- a/cpp/tests/t/geometry/Image.cpp
+++ b/cpp/tests/t/geometry/Image.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
+#include "open3d/Open3D.h"
#include "open3d/t/geometry/Image.h"
#include <gmock/gmock.h>
@@ -868,8 +869,10 @@ TEST_P(ImagePermuteDevices, DISABLED_CreateVertexMap_Visual) {
core::Tensor intrinsic_t = CreateIntrinsics();
auto vertex_map = depth_clipped.CreateVertexMap(intrinsic_t, invalid_fill);
+#if !defined(TIZEN)
visualization::DrawGeometries(
{std::make_shared<open3d::geometry::Image>(vertex_map.ToLegacy())});
+#endif
}
TEST_P(ImagePermuteDevices, DISABLED_CreateNormalMap_Visual) {
@@ -898,9 +901,11 @@ TEST_P(ImagePermuteDevices, DISABLED_CreateNormalMap_Visual) {
// Use abs for better visualization
normal_map.AsTensor() = normal_map.AsTensor().Abs();
+#if !defined(TIZEN)
visualization::DrawGeometries(
{std::make_shared<open3d::geometry::Image>(
normal_map.ToLegacy())});
+#endif
}
}
@@ -913,13 +918,17 @@ TEST_P(ImagePermuteDevices, DISABLED_ColorizeDepth) {
->To(device);
auto color_depth = depth.ColorizeDepth(1000.0, 0.0, 3.0);
+#if !defined(TIZEN)
visualization::DrawGeometries({std::make_shared<open3d::geometry::Image>(
color_depth.ToLegacy())});
+#endif
auto depth_clipped = depth.ClipTransform(1000.0, 0.0, 3.0, 0.0);
auto color_depth_clipped = depth_clipped.ColorizeDepth(1.0, 0.0, 3.0);
+#if !defined(TIZEN)
visualization::DrawGeometries({std::make_shared<open3d::geometry::Image>(
color_depth_clipped.ToLegacy())});
+#endif
}
} // namespace tests
} // namespace open3d
diff --git a/cpp/tests/t/geometry/TriangleMesh.cpp b/cpp/tests/t/geometry/TriangleMesh.cpp
index 4e51b34e..2c185932 100644
--- a/cpp/tests/t/geometry/TriangleMesh.cpp
+++ b/cpp/tests/t/geometry/TriangleMesh.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
+#include "open3d/Open3D.h"
#include "open3d/t/geometry/TriangleMesh.h"
#include <gmock/gmock.h>
@@ -452,6 +453,7 @@ TEST_P(TriangleMeshPermuteDevices, FromLegacy) {
}
TEST_P(TriangleMeshPermuteDevices, ToLegacy) {
+#if !defined(TIZEN)
using ::testing::ElementsAreArray;
using ::testing::FloatEq;
using ::testing::Pointwise;
@@ -507,6 +509,7 @@ TEST_P(TriangleMeshPermuteDevices, ToLegacy) {
EXPECT_TRUE(mat.baseClearCoat == 0.0);
EXPECT_TRUE(mat.baseClearCoatRoughness == 0.0);
EXPECT_TRUE(mat.baseAnisotropy == 0.0);
+#endif
}
TEST_P(TriangleMeshPermuteDevices, CreateBox) {
diff --git a/cpp/tests/t/geometry/VoxelBlockGrid.cpp b/cpp/tests/t/geometry/VoxelBlockGrid.cpp
index 570a1868..581c2711 100644
--- a/cpp/tests/t/geometry/VoxelBlockGrid.cpp
+++ b/cpp/tests/t/geometry/VoxelBlockGrid.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
+#include "open3d/Open3D.h"
#include "open3d/t/geometry/VoxelBlockGrid.h"
#include "core/CoreTest.h"
@@ -379,7 +380,7 @@ TEST_P(VoxelBlockGridPermuteDevices, DISABLED_RayCastingVisualize) {
"mask", "interp_ratio", "interp_ratio_dx",
"interp_ratio_dy", "interp_ratio_dz"},
depth_scale, depth_min, depth_max, 1.0);
-
+#if !defined(TIZEN)
auto to_legacy_ptr = [=](const Image &im_t) {
return std::make_shared<open3d::geometry::Image>(
im_t.ToLegacy());
@@ -394,7 +395,7 @@ TEST_P(VoxelBlockGridPermuteDevices, DISABLED_RayCastingVisualize) {
Image(result["depth"]).ColorizeDepth(1000.0, 0, 4))});
visualization::DrawGeometries(
{to_legacy_ptr(Image(result["color"]))});
-
+#endif
// Differentiable rendering
// Render color
@@ -416,10 +417,10 @@ TEST_P(VoxelBlockGridPermuteDevices, DISABLED_RayCastingVisualize) {
(nb_colors * nb_interp_ratio)
.Reshape(core::SizeVector({height, width, 8, 3}))
.Sum({2});
-
+#if !defined(TIZEN)
visualization::DrawGeometries(
{to_legacy_ptr(Image(nb_sum_color / 255.0))});
-
+#endif
// Render normal
auto tsdf_tensor = vbg.GetAttribute("tsdf").Reshape({-1, 1});
@@ -453,7 +454,9 @@ TEST_P(VoxelBlockGridPermuteDevices, DISABLED_RayCastingVisualize) {
normals.SetItem({core::TensorKey::Index(2)}, nz);
normals =
normals.T().Reshape({height, width, 3}).Contiguous().Neg_();
+#if !defined(TIZEN)
visualization::DrawGeometries({to_legacy_ptr(normals)});
+#endif
}
}
}
diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt
index e09c0eda..17ec0305 100644
--- a/examples/cpp/CMakeLists.txt
+++ b/examples/cpp/CMakeLists.txt
@@ -27,8 +27,11 @@ macro(open3d_add_example EXAMPLE_CPP_NAME)
list(APPEND EXAMPLE_TARGETS ${EXAMPLE_CPP_NAME})
endmacro()
-open3d_add_example(CameraPoseTrajectory)
-open3d_add_example(ColorMapOptimization)
+if (NOT TIZEN)
+ open3d_add_example(CameraPoseTrajectory)
+ open3d_add_example(ColorMapOptimization)
+endif()
+
open3d_add_example(DepthCapture)
open3d_add_example(EvaluatePCDMatch)
open3d_add_example(FileDialog Open3D::3rdparty_tinyfiledialogs)
diff --git a/examples/cpp/CameraPoseTrajectory.cpp b/examples/cpp/CameraPoseTrajectory.cpp
index dfd4d71e..b05fe1d7 100644
--- a/examples/cpp/CameraPoseTrajectory.cpp
+++ b/examples/cpp/CameraPoseTrajectory.cpp
@@ -63,7 +63,9 @@ int main(int argc, char *argv[]) {
pcds.push_back(pcd);
}
}
+#if !defined(TIZEN)
visualization::DrawGeometriesWithCustomAnimation(pcds);
+#endif
return 0;
}
diff --git a/examples/cpp/DepthCapture.cpp b/examples/cpp/DepthCapture.cpp
index 8ae8cba7..411df954 100644
--- a/examples/cpp/DepthCapture.cpp
+++ b/examples/cpp/DepthCapture.cpp
@@ -13,6 +13,7 @@
using namespace open3d;
+#if !defined(TIZEN)
class VisualizerWithDepthCapture
: public visualization::VisualizerWithCustomAnimation {
protected:
@@ -64,6 +65,7 @@ protected:
UpdateRender();
}
};
+#endif
void PrintHelp() {
using namespace open3d;
@@ -88,11 +90,13 @@ int main(int argc, char *argv[]) {
auto mesh_ptr = io::CreateMeshFromFile(bunny_mesh.GetPath());
mesh_ptr->ComputeVertexNormals();
utility::LogInfo("Press S to capture a depth image.");
+#if !defined(TIZEN)
VisualizerWithDepthCapture visualizer;
visualizer.CreateVisualizerWindow("Depth Capture", 640, 480, 200, 200);
visualizer.AddGeometry(mesh_ptr);
visualizer.Run();
visualizer.DestroyVisualizerWindow();
+#endif
if (!utility::filesystem::FileExists("depth.png") ||
!utility::filesystem::FileExists("camera.json")) {
@@ -101,13 +105,16 @@ int main(int argc, char *argv[]) {
}
auto image_ptr = io::CreateImageFromFile("depth.png");
+#if !defined(TIZEN)
visualization::DrawGeometries({image_ptr});
+#endif
camera::PinholeCameraTrajectory camera;
io::ReadIJsonConvertible("camera.json", camera);
auto pointcloud_ptr = geometry::PointCloud::CreateFromDepthImage(
*image_ptr, camera.parameters_[0].intrinsic_,
camera.parameters_[0].extrinsic_);
+#if !defined(TIZEN)
VisualizerWithDepthCapture visualizer1;
visualizer1.CreateVisualizerWindow("Depth Validation", 640, 480, 200, 200);
visualizer1.AddGeometry(pointcloud_ptr);
@@ -121,6 +128,7 @@ int main(int argc, char *argv[]) {
visualizer2.AddGeometry(mesh_ptr);
visualizer2.Run();
visualizer2.DestroyVisualizerWindow();
+#endif
utility::LogInfo("End of the test.");
diff --git a/examples/cpp/Flann.cpp b/examples/cpp/Flann.cpp
index 4217c3e2..102f0655 100644
--- a/examples/cpp/Flann.cpp
+++ b/examples/cpp/Flann.cpp
@@ -92,6 +92,8 @@ int main(int argc, char *argv[]) {
}
new_cloud_ptr->colors_[199] = Eigen::Vector3d(0.0, 1.0, 1.0);
+#if !defined(TIZEN)
visualization::DrawGeometries({new_cloud_ptr}, "KDTreeFlann", 1600, 900);
+#endif
return 0;
}
diff --git a/examples/cpp/GeneralizedICP.cpp b/examples/cpp/GeneralizedICP.cpp
index 614c9cf5..449a10ec 100644
--- a/examples/cpp/GeneralizedICP.cpp
+++ b/examples/cpp/GeneralizedICP.cpp
@@ -22,8 +22,10 @@ void VisualizeRegistration(const open3d::geometry::PointCloud &source,
*source_transformed_ptr = source;
*target_ptr = target;
source_transformed_ptr->Transform(Transformation);
+#if !defined(TIZEN)
visualization::DrawGeometries({source_transformed_ptr, target_ptr},
"Registration result");
+#endif
}
void PrintHelp() {
diff --git a/examples/cpp/ISSKeypoints.cpp b/examples/cpp/ISSKeypoints.cpp
index c5088d9b..dc8328cb 100644
--- a/examples/cpp/ISSKeypoints.cpp
+++ b/examples/cpp/ISSKeypoints.cpp
@@ -73,9 +73,13 @@ int main(int argc, char *argv[]) {
mesh->PaintUniformColor(Eigen::Vector3d(0.5, 0.5, 0.5));
mesh->ComputeVertexNormals();
mesh->ComputeTriangleNormals();
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh, iss_keypoints}, "ISS", 1600, 900);
+#endif
} else {
+#if !defined(TIZEN)
visualization::DrawGeometries({iss_keypoints}, "ISS", 1600, 900);
+#endif
}
return 0;
diff --git a/examples/cpp/LineSet.cpp b/examples/cpp/LineSet.cpp
index 836e3d74..24730699 100644
--- a/examples/cpp/LineSet.cpp
+++ b/examples/cpp/LineSet.cpp
@@ -55,7 +55,9 @@ int main(int argc, char *argv[]) {
}
auto lineset_ptr = geometry::LineSet::CreateFromPointCloudCorrespondences(
*cloud_ptr, *cloud_ptr, correspondences);
+#if !defined(TIZEN)
visualization::DrawGeometries({cloud_ptr, lineset_ptr});
+#endif
auto new_cloud_ptr = std::make_shared<geometry::PointCloud>();
*new_cloud_ptr = *cloud_ptr;
@@ -85,7 +87,9 @@ int main(int argc, char *argv[]) {
new_lineset_ptr->colors_[i] = Eigen::Vector3d(0.0, 0.0, 0.0);
}
}
+#if !defined(TIZEN)
visualization::DrawGeometries({cloud_ptr, new_cloud_ptr, new_lineset_ptr});
+#endif
return 0;
}
diff --git a/examples/cpp/Octree.cpp b/examples/cpp/Octree.cpp
index bf0cca65..e7c566ca 100644
--- a/examples/cpp/Octree.cpp
+++ b/examples/cpp/Octree.cpp
@@ -90,6 +90,7 @@ int main(int argc, char* argv[]) {
point_node->indices_.size());
}
std::cout << std::endl << std::endl;
-
+#if !defined(TIZEN)
visualization::DrawGeometries({pcd, octree});
+#endif
}
diff --git a/examples/cpp/PCDFileFormat.cpp b/examples/cpp/PCDFileFormat.cpp
index 6de798ef..8b00af07 100644
--- a/examples/cpp/PCDFileFormat.cpp
+++ b/examples/cpp/PCDFileFormat.cpp
@@ -34,7 +34,9 @@ int main(int argc, char* argv[]) {
}
auto cloud_ptr = io::CreatePointCloudFromFile(argv[1]);
+#if !defined(TIZEN)
visualization::DrawGeometries({cloud_ptr}, "TestPCDFileFormat", 1920, 1080);
+#endif
if (argc >= 3) {
std::string method(argv[2]);
diff --git a/examples/cpp/PlanarPatchDetection.cpp b/examples/cpp/PlanarPatchDetection.cpp
index ccc5dc28..58169fb0 100644
--- a/examples/cpp/PlanarPatchDetection.cpp
+++ b/examples/cpp/PlanarPatchDetection.cpp
@@ -95,7 +95,9 @@ int main(int argc, char **argv) {
// visualize point cloud, too
geometries.push_back(cloud_ptr);
+#if !defined(TIZEN)
visualization::DrawGeometries(geometries, "Visualize", 1600, 900);
+#endif
return 0;
}
diff --git a/examples/cpp/PointCloud.cpp b/examples/cpp/PointCloud.cpp
index 9de7cc3b..d9e3ba48 100644
--- a/examples/cpp/PointCloud.cpp
+++ b/examples/cpp/PointCloud.cpp
@@ -144,8 +144,9 @@ int main(int argc, char *argv[]) {
}
// 3. test pointcloud visualization
-
+#if !defined(TIZEN)
visualization::Visualizer visualizer;
+#endif
std::shared_ptr<geometry::PointCloud> pointcloud_ptr(
new geometry::PointCloud);
*pointcloud_ptr = pointcloud;
@@ -162,7 +163,7 @@ int main(int argc, char *argv[]) {
Eigen::AngleAxisd(M_PI / 4.0, Eigen::Vector3d::UnitX()));
pointcloud_transformed_ptr->Transform(trans_to_origin.inverse() *
transformation * trans_to_origin);
-
+#if !defined(TIZEN)
visualizer.CreateVisualizerWindow("Open3D", 1600, 900);
visualizer.AddGeometry(pointcloud_ptr);
visualizer.AddGeometry(pointcloud_transformed_ptr);
@@ -191,7 +192,7 @@ int main(int argc, char *argv[]) {
return true;
}}},
"Press Space to Estimate Normal", 1600, 900);
-
+#endif
// n. test end
utility::LogInfo("End of the test.");
diff --git a/examples/cpp/RGBDOdometry.cpp b/examples/cpp/RGBDOdometry.cpp
index 536e7a88..fc48ad33 100644
--- a/examples/cpp/RGBDOdometry.cpp
+++ b/examples/cpp/RGBDOdometry.cpp
@@ -33,7 +33,9 @@ std::shared_ptr<geometry::RGBDImage> ReadRGBDImage(
if (visualize) {
auto pcd = geometry::PointCloud::CreateFromRGBDImage(*rgbd_image,
intrinsic);
+#if !defined(TIZEN)
visualization::DrawGeometries({pcd});
+#endif
}
return rgbd_image;
}
diff --git a/examples/cpp/RegistrationColoredICP.cpp b/examples/cpp/RegistrationColoredICP.cpp
index 9f5d5776..4761363a 100644
--- a/examples/cpp/RegistrationColoredICP.cpp
+++ b/examples/cpp/RegistrationColoredICP.cpp
@@ -22,8 +22,10 @@ void VisualizeRegistration(const open3d::geometry::PointCloud &source,
*source_transformed_ptr = source;
*target_ptr = target;
source_transformed_ptr->Transform(Transformation);
+#if !defined(TIZEN)
visualization::DrawGeometries({source_transformed_ptr, target_ptr},
"Registration result");
+#endif
}
void PrintHelp() {
diff --git a/examples/cpp/RegistrationFGR.cpp b/examples/cpp/RegistrationFGR.cpp
index 77c0120d..ce76fd86 100644
--- a/examples/cpp/RegistrationFGR.cpp
+++ b/examples/cpp/RegistrationFGR.cpp
@@ -36,8 +36,11 @@ void VisualizeRegistration(const open3d::geometry::PointCloud &source,
*source_transformed_ptr = source;
*target_ptr = target;
source_transformed_ptr->Transform(Transformation);
+
+#if !defined(TIZEN)
visualization::DrawGeometries({source_transformed_ptr, target_ptr},
"Registration result");
+#endif
}
void PrintHelp() {
diff --git a/examples/cpp/RegistrationRANSAC.cpp b/examples/cpp/RegistrationRANSAC.cpp
index 2a84bbcf..df749aeb 100644
--- a/examples/cpp/RegistrationRANSAC.cpp
+++ b/examples/cpp/RegistrationRANSAC.cpp
@@ -36,8 +36,10 @@ void VisualizeRegistration(const open3d::geometry::PointCloud &source,
*source_transformed_ptr = source;
*target_ptr = target;
source_transformed_ptr->Transform(Transformation);
+#if !defined(TIZEN)
visualization::DrawGeometries({source_transformed_ptr, target_ptr},
"Registration result");
+#endif
}
void PrintHelp() {
diff --git a/examples/cpp/TIntegrateRGBD.cpp b/examples/cpp/TIntegrateRGBD.cpp
index cab188b6..10688601 100644
--- a/examples/cpp/TIntegrateRGBD.cpp
+++ b/examples/cpp/TIntegrateRGBD.cpp
@@ -92,7 +92,9 @@ int main(int argc, char* argv[]) {
utility::GetProgramOptionAsDouble(argc, argv, "--depth_max", 3.f));
bool enable_raycast = utility::ProgramOptionExists(argc, argv, "--raycast");
+#if !defined(TIZEN)
bool debug = utility::ProgramOptionExists(argc, argv, "--debug");
+#endif
// Device
std::string device_code = "CPU:0";
@@ -160,7 +162,7 @@ int main(int argc, char* argv[]) {
utility::LogInfo("{}: Raycast takes {}", i,
ray_timer.GetDurationInMillisecond());
time_raycasting += ray_timer.GetDurationInMillisecond();
-
+#if !defined(TIZEN)
if (debug) {
t::geometry::Image depth_raycast(result["depth"]);
visualization::DrawGeometries(
@@ -174,6 +176,7 @@ int main(int argc, char* argv[]) {
{std::make_shared<open3d::geometry::Image>(
color_raycast.ToLegacy())});
}
+#endif
}
timer.Stop();
diff --git a/examples/cpp/TOdometryRGBD.cpp b/examples/cpp/TOdometryRGBD.cpp
index a39580ed..8b8f12f5 100644
--- a/examples/cpp/TOdometryRGBD.cpp
+++ b/examples/cpp/TOdometryRGBD.cpp
@@ -100,7 +100,9 @@ int main(int argc, char* argv[]) {
depth_scale)
.ToLegacy());
target_pcd->PaintUniformColor(Eigen::Vector3d(0, 1, 0));
+#if !defined(TIZEN)
visualization::DrawGeometries({source_pcd, target_pcd});
+#endif
// Decide method
t::pipelines::odometry::Method odom_method;
@@ -135,5 +137,7 @@ int main(int argc, char* argv[]) {
Tensor::Eye(4, core::Dtype::Float32, device), depth_scale)
.ToLegacy());
target_pcd->PaintUniformColor(Eigen::Vector3d(0, 1, 0));
+#if !defined(TIZEN)
visualization::DrawGeometries({source_pcd, target_pcd});
+#endif
}
diff --git a/examples/cpp/TriangleMesh.cpp b/examples/cpp/TriangleMesh.cpp
index 64082476..a2551df7 100644
--- a/examples/cpp/TriangleMesh.cpp
+++ b/examples/cpp/TriangleMesh.cpp
@@ -45,27 +45,37 @@ int main(int argc, char *argv[]) {
if (option == "sphere") {
auto mesh = geometry::TriangleMesh::CreateSphere(0.05);
mesh->ComputeVertexNormals();
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh});
+#endif
io::WriteTriangleMesh("sphere.ply", *mesh, true, true);
} else if (option == "cylinder") {
auto mesh = geometry::TriangleMesh::CreateCylinder(0.5, 2.0);
mesh->ComputeVertexNormals();
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh});
+#endif
io::WriteTriangleMesh("cylinder.ply", *mesh, true, true);
} else if (option == "cone") {
auto mesh = geometry::TriangleMesh::CreateCone(0.5, 2.0, 20, 3);
mesh->ComputeVertexNormals();
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh});
+#endif
io::WriteTriangleMesh("cone.ply", *mesh, true, true);
} else if (option == "arrow") {
auto mesh = geometry::TriangleMesh::CreateArrow();
mesh->ComputeVertexNormals();
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh});
+#endif
io::WriteTriangleMesh("arrow.ply", *mesh, true, true);
} else if (option == "frame") {
if (argc < 3) {
auto mesh = geometry::TriangleMesh::CreateCoordinateFrame();
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh});
+#endif
io::WriteTriangleMesh("frame.ply", *mesh, true, true);
} else {
auto mesh = io::CreateMeshFromFile(argv[2]);
@@ -73,7 +83,9 @@ int main(int argc, char *argv[]) {
auto boundingbox = mesh->GetAxisAlignedBoundingBox();
auto mesh_frame = geometry::TriangleMesh::CreateCoordinateFrame(
boundingbox.GetMaxExtent() * 0.2, boundingbox.min_bound_);
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh, mesh_frame});
+#endif
}
} else if (option == "merge") {
auto mesh1 = io::CreateMeshFromFile(argv[2]);
@@ -94,7 +106,9 @@ int main(int argc, char *argv[]) {
"After purge vertices, Mesh1 has {:d} vertices, {:d} "
"triangles.",
mesh1->vertices_.size(), mesh1->triangles_.size());
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh1});
+#endif
io::WriteTriangleMesh("temp.ply", *mesh1, true, true);
} else if (option == "normal") {
auto mesh = io::CreateMeshFromFile(argv[2]);
@@ -143,7 +157,9 @@ int main(int argc, char *argv[]) {
if (argc > 5) {
io::WriteTriangleMesh(argv[5], *mesh1);
}
+#if !defined(TIZEN)
visualization::DrawGeometries({mesh1});
+#endif
} else if (option == "showboth") {
auto mesh1 = io::CreateMeshFromFile(argv[2]);
PaintMesh(*mesh1, Eigen::Vector3d(1.0, 0.75, 0.0));
@@ -152,7 +168,9 @@ int main(int argc, char *argv[]) {
std::vector<std::shared_ptr<const geometry::Geometry>> meshes;
meshes.push_back(mesh1);
meshes.push_back(mesh2);
+#if !defined(TIZEN)
visualization::DrawGeometries(meshes);
+#endif
} else if (option == "colormapping") {
auto mesh = io::CreateMeshFromFile(argv[2]);
mesh->ComputeVertexNormals();
@@ -172,7 +190,9 @@ int main(int argc, char *argv[]) {
mesh_sphere->Transform(trans);
mesh_sphere->ComputeVertexNormals();
ptrs.push_back(mesh_sphere);
+#if !defined(TIZEN)
visualization::DrawGeometries(ptrs);
+#endif
for (size_t i = 0; i < trajectory.parameters_.size(); i += 10) {
std::string buffer =
@@ -195,7 +215,9 @@ int main(int argc, char *argv[]) {
if (result.first) {
utility::LogInfo("{:.6f}", result.second);
}
+#if !defined(TIZEN)
visualization::DrawGeometries({fimage}, "Test", 1920, 1080);
+#endif
}
}
return 0;
diff --git a/examples/cpp/ViewDistances.cpp b/examples/cpp/ViewDistances.cpp
index ab61377f..f3092909 100644
--- a/examples/cpp/ViewDistances.cpp
+++ b/examples/cpp/ViewDistances.cpp
@@ -78,6 +78,7 @@ int main(int argc, char *argv[]) {
return 1;
}
pcd->colors_.resize(pcd->points_.size());
+#if !defined(TIZEN)
visualization::ColorMapHot colormap;
for (size_t i = 0; i < pcd->points_.size(); i++) {
pcd->colors_[i] = colormap.GetColor(distances[i] / max_distance);
@@ -88,5 +89,6 @@ int main(int argc, char *argv[]) {
if (!utility::ProgramOptionExists(argc, argv, "--without_gui")) {
visualization::DrawGeometries({pcd}, "Point Cloud", 1920, 1080);
}
+#endif
return 0;
}
diff --git a/examples/cpp/ViewPCDMatch.cpp b/examples/cpp/ViewPCDMatch.cpp
index 526f3617..fa94053b 100644
--- a/examples/cpp/ViewPCDMatch.cpp
+++ b/examples/cpp/ViewPCDMatch.cpp
@@ -127,8 +127,10 @@ int main(int argc, char *argv[]) {
pcd_source->colors_.resize(pcd_source->points_.size(),
color_palette[1]);
pcd_source->Transform(transformations[k]);
+#if !defined(TIZEN)
visualization::DrawGeometriesWithCustomAnimation(
{pcd_target, pcd_source}, "ViewPCDMatch", 1600, 900);
+#endif
}
return 0;
}
diff --git a/examples/cpp/Visualizer.cpp b/examples/cpp/Visualizer.cpp
index d7ffcedb..ba983736 100644
--- a/examples/cpp/Visualizer.cpp
+++ b/examples/cpp/Visualizer.cpp
@@ -25,6 +25,7 @@ void PrintHelp() {
}
int main(int argc, char *argv[]) {
+#if !defined(TIZEN)
using namespace open3d;
utility::SetVerbosityLevel(utility::VerbosityLevel::Debug);
@@ -216,6 +217,6 @@ int main(int argc, char *argv[]) {
}
utility::LogInfo("End of the test.");
-
+#endif
return 0;
}
diff --git a/examples/cpp/Voxelization.cpp b/examples/cpp/Voxelization.cpp
index e0265b3f..60291a3b 100644
--- a/examples/cpp/Voxelization.cpp
+++ b/examples/cpp/Voxelization.cpp
@@ -44,10 +44,14 @@ int main(int argc, char* argv[]) {
auto pcd = io::CreatePointCloudFromFile(argv[1]);
auto voxel = geometry::VoxelGrid::CreateFromPointCloud(*pcd, 0.05);
PrintVoxelGridInformation(*voxel);
+#if !defined(TIZEN)
visualization::DrawGeometries({pcd, voxel});
+#endif
io::WriteVoxelGrid(argv[2], *voxel, true);
auto voxel_read = io::CreateVoxelGridFromFile(argv[2]);
PrintVoxelGridInformation(*voxel_read);
+#if !defined(TIZEN)
visualization::DrawGeometries({pcd, voxel_read});
+#endif
}
diff --git a/3rdparty/possionrecon/possionrecon.cmake b/3rdparty/possionrecon/possionrecon.cmake
index 0328804d..235ec2b3 100644
--- a/3rdparty/possionrecon/possionrecon.cmake
+++ b/3rdparty/possionrecon/possionrecon.cmake
@@ -1,17 +1,33 @@
include(ExternalProject)
-ExternalProject_Add(
- ext_poisson
- PREFIX poisson
- URL https://github.com/isl-org/Open3D-PoissonRecon/archive/fd273ea8c77a36973d6565a495c9969ccfb12d3b.tar.gz
- URL_HASH SHA256=917d98e037982d57a159fa166b259ff3dc90ffffe09c6a562a71b400f6869ddf
- DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/poisson"
- SOURCE_DIR "poisson/src/ext_poisson/PoissonRecon" # Add extra directory level for POISSON_INCLUDE_DIRS.
- UPDATE_COMMAND ""
- CONFIGURE_COMMAND ""
- BUILD_COMMAND ""
- INSTALL_COMMAND ""
-)
+if (NOT TIZEN)
+ ExternalProject_Add(
+ ext_poisson
+ PREFIX poisson
+ URL https://github.com/isl-org/Open3D-PoissonRecon/archive/fd273ea8c77a36973d6565a495c9969ccfb12d3b.tar.gz
+ URL_HASH SHA256=917d98e037982d57a159fa166b259ff3dc90ffffe09c6a562a71b400f6869ddf
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/poisson"
+ SOURCE_DIR "poisson/src/ext_poisson/PoissonRecon" # Add extra directory level for POISSON_INCLUDE_DIRS.
+ UPDATE_COMMAND ""
+ CONFIGURE_COMMAND ""
+ BUILD_COMMAND ""
+ INSTALL_COMMAND ""
+ )
+else()
+ ExternalProject_Add(
+ ext_poisson
+ PREFIX poisson
+ URL https://github.com/isl-org/Open3D-PoissonRecon/archive/fd273ea8c77a36973d6565a495c9969ccfb12d3b.tar.gz
+ URL_HASH SHA256=04f67a6f1695af0eb62a7862debf4f73f774bc98cd50baa11eafe7d6059c51a8
+ DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/poisson"
+ SOURCE_DIR "poisson/src/ext_poisson/PoissonRecon" # Add extra directory level for POISSON_INCLUDE_DIRS.
+ UPDATE_COMMAND ""
+ CONFIGURE_COMMAND ""
+ BUILD_COMMAND ""
+ INSTALL_COMMAND ""
+ )
+endif()
+
ExternalProject_Get_Property(ext_poisson SOURCE_DIR)
set(POISSON_INCLUDE_DIRS ${SOURCE_DIR}) # Not using "/" is critical.
diff --git a/cpp/tests/test_utility/Raw.h b/cpp/tests/test_utility/Raw.h
index c77ceb71..192111cb 100644
--- a/cpp/tests/test_utility/Raw.h
+++ b/cpp/tests/test_utility/Raw.h
@@ -10,6 +10,7 @@
#include <iostream>
#include <string>
#include <vector>
+#include <cstdint>
namespace open3d {
namespace tests {
|