potree / PotreeConverter

Create multi res point cloud to use with potree
http://potree.org
BSD 2-Clause "Simplified" License
679 stars 423 forks source link

Bus error: 10 #34

Closed stephenpardy closed 9 years ago

stephenpardy commented 10 years ago

Trying the converter on one of the resources included with potree on Mac OSX 10.9 produces result: "Bus error: 10" and no outputs. How I am calling the program: ./PotreeConverter_exe lion_takanawa.ply -o test_output/

And I am not sure if this helps, but these are the warnings I get during compilation: ~/Code/PotreeConverter/PotreeConverter/src/PotreeConverter.cpp:118:3: warning: delete called on 'PointReader' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete reader; ^ ~/Code/PotreeConverter/PotreeConverter/src/PotreeConverter.cpp:170:3: warning: delete called on 'PointReader' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete reader; ^ 2 warnings generated. [ 75%] Building CXX object PotreeConverter/CMakeFiles/PotreeConverter.dir/src/PotreeWriter.cpp.o ~/Code/PotreeConverter/PotreeConverter/src/PotreeWriter.cpp:69:2: warning: delete called on 'PointReader' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete reader; ^ ~/Code/PotreeConverter/PotreeConverter/src/PotreeWriter.cpp:92:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ ~/Code/PotreeConverter/PotreeConverter/src/PotreeWriter.cpp:148:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ ~/Code/PotreeConverter/PotreeConverter/src/PotreeWriter.cpp:168:4: warning: delete called on 'PointReader' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete reader; ^ ~/Code/PotreeConverter/PotreeConverter/src/PotreeWriter.cpp:176:3: warning: delete called on 'PointWriter' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor] delete writer; ^ 5 warnings generated.

m-schuetz commented 10 years ago

Did you compile libLAS and LASzip to dynamic libraries and copy them into the potree directory? On windows, when one of them is missing, the executable will exit without output. Links to dependencies are on this page: https://github.com/potree/PotreeConverter

stephenpardy commented 10 years ago

I installed libLAS and LASzip through homebrew and I am getting no linking issues: /usr/local/lib/liblas.2.2.0.dylib (compatibility version 2.2.0, current version 0.0.0) /usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

But I am not sure if the ".dylib" files act the same as the Windows equivalent.

m-schuetz commented 10 years ago

Hm, there's no laszip in this list. Can you try https://code.google.com/p/macdependency/ ? Aparently it is a osx equivalent to dependency-walker which I've been using to check which dlls are missing.

stephenpardy commented 10 years ago

MacDependency gives only these two warnings:

WARNING: Dependency was requested from /usr/local/lib/libboost_thread-mt.dylib with install name @loader_path/libboost_system-mt.dylib but only found with ID name /usr/local/lib/libboost_system-mt.dylib. This is just a warning, since this check is not done by dyld.

WARNING: Dependency was requested from /usr/local/lib/libboost_filesystem-mt.dylib with install name @loader_path/libboost_system-mt.dylib but only found with ID name /usr/local/lib/libboost_system-mt.dylib. This is just a warning, since this check is not done by dyld.

m-schuetz commented 10 years ago

Unfortunately I don't have a mac so I can't realy help you with that. :(

m-schuetz commented 9 years ago

Did you solve this problem or does it still persist?

stephenpardy commented 9 years ago

Just pulled the new changes and am no longer getting this error.

irealva commented 8 years ago

@stephenpardy Hi stephen, would you mind sharing how you got Potree to run on mac? How did you get the PotreeConverter_exe executable. I've got all the right dependencies and followed the installation instructions here: https://github.com/potree/PotreeConverter

thanks!

stephenpardy commented 8 years ago

@irealva As far as I can remember, I followed the Linux instructions and installed from source using the provided CMakeList.txt. However, I have upgraded a few things since I last installed and I just double checked now and it is not working anymore. I didn't end up using this program, so I don't think I can help you. Sorry!