Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac安装PotreeConverter错误 #664

Open
raymondwm opened this issue Aug 24, 2024 · 3 comments
Open

mac安装PotreeConverter错误 #664

raymondwm opened this issue Aug 24, 2024 · 3 comments

Comments

@raymondwm
Copy link

make
[ 58%] Built target brotlicommon-static
[ 58%] Built target brotlienc-static
[ 58%] Built target laszip
[ 58%] Built target brotlidec-static
[ 58%] Building CXX object CMakeFiles/PotreeConverter.dir/Converter/src/chunker_countsort_laszip.cpp.o
In file included from /Users/rawang/pythonProject/PotreeConverter/./Converter/include/Attributes.h:10,
from /Users/rawang/pythonProject/PotreeConverter/./Converter/include/chunker_countsort_laszip.h:8,
from /Users/rawang/pythonProject/PotreeConverter/Converter/src/chunker_countsort_laszip.cpp:10:
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp: In function 'std::vector readBinaryFile(std::string, uint64_t, uint64_t)':
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:435:17: error: 'fseek_64_all_platforms' was not declared in this scope
435 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:444:17: error: 'fseek_64_all_platforms' was not declared in this scope
444 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp: In function 'void readBinaryFile(std::string, uint64_t, uint64_t, void*)':
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:462:17: error: 'fseek_64_all_platforms' was not declared in this scope
462 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:466:17: error: 'fseek_64_all_platforms' was not declared in this scope
466 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/rawang/pythonProject/PotreeConverter/Converter/src/chunker_countsort_laszip.cpp:19:
/Users/rawang/pythonProject/PotreeConverter/./Converter/libs/json/json.hpp: In static member function 'static CharType nlohmann::detail::binary_writer<BasicJsonType, CharType>::to_char_type(uint8_t)':
/Users/rawang/pythonProject/PotreeConverter/./Converter/libs/json/json.hpp:12595:28: warning: 'template struct std::is_pod' is deprecated: use 'is_standard_layout && is_trivial' instead [-Wdeprecated-declarations]
12595 | static_assert(std::is_pod::value, "CharType must be POD");
| ^~~~~~
In file included from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/bits/move.h:37,
from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/bits/exception_ptr.h:41,
from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/exception:166,
from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/ios:41,
from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/ostream:40,
from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/iostream:41,
from /Users/rawang/pythonProject/PotreeConverter/Converter/src/chunker_countsort_laszip.cpp:2:
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/type_traits:890:5: note: declared here
890 | is_pod
| ^~~~~~
In file included from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/aarch64-apple-darwin23/bits/c++config.h:887,
from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/bits/requires_hosted.h:31,
from /opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/iostream:38:
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_RandomAccessIterator __pstl::__internal::__brick_unique(_RandomAccessIterator, _RandomAccessIterator, _BinaryPredicate, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:1219:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
1219 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_RandomAccessIterator __pstl::__internal::__brick_partition(_RandomAccessIterator, _RandomAccessIterator, _UnaryPredicate, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:1929:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
1929 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_RandomAccessIterator __pstl::__internal::__brick_stable_partition(_RandomAccessIterator, _RandomAccessIterator, _UnaryPredicate, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:2029:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
2029 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_RandomAccessIterator3 __pstl::__internal::__brick_merge(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _RandomAccessIterator2, _RandomAccessIterator3, _Compare, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:2715:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
2715 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function 'void __pstl::__internal::__brick_inplace_merge(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:2764:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
2764 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial")
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_OutputIterator __pstl::__internal::__brick_set_union(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _RandomAccessIterator2, _OutputIterator, _Compare, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:3141:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
3141 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_RandomAccessIterator3 __pstl::__internal::__brick_set_intersection(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _RandomAccessIterator2, _RandomAccessIterator3, _Compare, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:3202:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
3202 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_RandomAccessIterator3 __pstl::__internal::__brick_set_difference(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _RandomAccessIterator2, _RandomAccessIterator3, _Compare, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:3298:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
3298 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h: In function '_RandomAccessIterator3 __pstl::__internal::__brick_set_symmetric_difference(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _RandomAccessIterator2, _RandomAccessIterator3, _Compare, std::true_type)':
/opt/homebrew/Cellar/gcc/14.1.0_2/include/c++/14/pstl/algorithm_impl.h:3390:5: note: '#pragma message: [Parallel STL message]: "Vectorized algorithm unimplemented, redirected to serial"'
3390 | _PSTL_PRAGMA_MESSAGE("Vectorized algorithm unimplemented, redirected to serial");
| ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/PotreeConverter.dir/Converter/src/chunker_countsort_laszip.cpp.o] Error 1
make[1]: *** [CMakeFiles/PotreeConverter.dir/all] Error 2
make: *** [all] Error 2


版本 gcc -v
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

谁能解答下,如何安装?

@raymondwm
Copy link
Author

In file included from /Users/rawang/pythonProject/PotreeConverter/./Converter/include/Attributes.h:10,
from /Users/rawang/pythonProject/PotreeConverter/./Converter/include/chunker_countsort_laszip.h:8,
from /Users/rawang/pythonProject/PotreeConverter/Converter/src/chunker_countsort_laszip.cpp:10:
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp: In function 'std::vector readBinaryFile(std::string, uint64_t, uint64_t)':
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:435:17: error: 'fseek_64_all_platforms' was not declared in this scope
435 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:444:17: error: 'fseek_64_all_platforms' was not declared in this scope
444 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp: In function 'void readBinaryFile(std::string, uint64_t, uint64_t, void*)':
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:462:17: error: 'fseek_64_all_platforms' was not declared in this scope
462 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
/Users/rawang/pythonProject/PotreeConverter/./Converter/modules/unsuck/unsuck.hpp:466:17: error: 'fseek_64_all_platforms' was not declared in this scope
466 | fseek_64_all_platforms(file, start, SEEK_SET);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/rawang/pythonProject/PotreeConverter/Converter/src/chunker_countsort_laszip.cpp:19:
/Users/rawang/pythonProject/PotreeConverter/./Converter/libs/json/json.hpp: In static member function 'static CharType nlohmann::detail::binary_writer<BasicJsonType, CharType>::to_char_type(uint8_t)':
/Users/rawang/pythonProject/PotreeConverter/./Converter/libs/json/json.hpp:12595:28: warning: 'template struct std::is_pod' is deprecated: use is_standard_layout && is_trivial instead [-Wdeprecated-declarations]
12595 | static_assert(std::is_pod::value, "CharType must be POD");
| ^~~~~~
In file included from /opt/homebrew/Cellar/gcc@11/11.4.0/include/c++/11/bits/move.h:57,
from /opt/homebrew/Cellar/gcc@11/11.4.0/include/c++/11/bits/exception_ptr.h:43,
from /opt/homebrew/Cellar/gcc@11/11.4.0/include/c++/11/exception:153,
from /opt/homebrew/Cellar/gcc@11/11.4.0/include/c++/11/ios:39,
from /opt/homebrew/Cellar/gcc@11/11.4.0/include/c++/11/ostream:38,
from /opt/homebrew/Cellar/gcc@11/11.4.0/include/c++/11/iostream:39,
from /Users/rawang/pythonProject/PotreeConverter/Converter/src/chunker_countsort_laszip.cpp:2:
/opt/homebrew/Cellar/gcc@11/11.4.0/include/c++/11/type_traits:733:5: note: declared here
733 | is_pod
| ^~~~~~
make[2]: *** [CMakeFiles/PotreeConverter.dir/Converter/src/chunker_countsort_laszip.cpp.o] Error 1
make[1]: *** [CMakeFiles/PotreeConverter.dir/all] Error 2
make: *** [all] Error 2

g++ version -g++11
报错信息

@ScubaDiving
Copy link

I have the same problem. I tried @LeftOfHere solution but I get the same problem when running make.

@LeftOfHere
Copy link

Hi, I have this fork that works for me. Added some mac specific checks to make the code work.
https://github.com/LeftOfHere/PotreeConverter

I'm on Sequoia 15.1.1, but it worked with previous versions for me too.

Just do a clean checkout to make sure there is no build files and try to build it again. Hope it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@LeftOfHere @ScubaDiving @raymondwm and others