Page 1 of 2

Can't guess file format: unhandled file extension 'pcd'

Posted: Sun Nov 02, 2014 10:12 pm
by msfTinMar
Hello,
I just updated Cloudcompare in ubuntu, and now I can't open .pcd files.
The error is get is [Load] Can't guess file format: unhandled file extension 'pcd'
Is that supposed to happen?

best regards

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Mon Nov 03, 2014 7:50 am
by daniel
Indeed, the default PCD I/O filter was broken (it worked only for a few kinds of PCD files). It has been replaced by the qPclIO plugin (a new kind of plugin for loading/saving files). So you simply have to compile qPclIO (see CMake) to be able to load PCD files.

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Mon Nov 21, 2016 2:50 pm
by tawm
I am stuck on this also. Apologies for my ignorance but Daniel could you please details steps needed to make this work a little more please.
Thank you

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Mon Nov 21, 2016 7:47 pm
by daniel
You shouldn't need to do it now (this was true a long time ago ;). What version are you using?

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Mon Feb 20, 2017 11:54 am
by kcal
I'm trying to compile CC on a mac since the lastest OS X does not support the older CC version that had pcd-support.

I can compile everything fine as long as I don't include the QPCL plugin. This is the error message I am getting:
[ 45%] Linking CXX static library libqcustomplot.a
[ 45%] Built target qcustomplot
Scanning dependencies of target QPCL_PLUGIN_automoc
[ 45%] Automatic moc for target QPCL_PLUGIN
Generating moc_qPCL.cpp
[ 45%] Built target QPCL_PLUGIN_automoc
Scanning dependencies of target QPCL_PLUGIN_UTILS_LIB_automoc
[ 45%] Automatic moc for target QPCL_PLUGIN_UTILS_LIB
Generating moc_BaseFilter.cpp
Generating moc_MLSDialog.cpp
[ 45%] Built target QPCL_PLUGIN_UTILS_LIB_automoc
[ 45%] Generating ui_StatisticalOutliersRemoverDlg.h
[ 45%] Generating ui_MLSDialog.h
[ 46%] Generating ui_NormalEstimationDlg.h
[ 46%] Generating ui_SIFTExtractDlg.h
Scanning dependencies of target QPCL_PLUGIN_UTILS_LIB
[ 46%] Building CXX object plugins/qPCL/PclUtils/CMakeFiles/QPCL_PLUGIN_UTILS_LIB.dir/filters/BaseFilter.cpp.o
clang: warning: -lpthread: 'linker' input unused
clang: error: unsupported option '-fopenmp'
make[2]: *** [plugins/qPCL/PclUtils/CMakeFiles/QPCL_PLUGIN_UTILS_LIB.dir/filters/BaseFilter.cpp.o] Error 1
make[1]: *** [plugins/qPCL/PclUtils/CMakeFiles/QPCL_PLUGIN_UTILS_LIB.dir/all] Error 2
make: *** [all] Error 2


I've set all my paths correctly and my guess would be that it's related to my default compiler. gcc -v gives me:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I installed the latest gcc with brew - would it help if I can point the compiler to that version instead of the default one (and if yes, how do i do that)? Thanks a lot, any feedback is much appreciated!

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Mon Feb 20, 2017 8:48 pm
by daniel
If I remember well OpenMP is not supported on Mac OS (or maybe it's only with gcc on Mac OS, or something like this).

However the CMakeLists.txt script in 'plugins\qPCL\PclUtils' does enable OpenMP by default. I guess you should simply remove the '-fopenmp' part on line 7 of this script.

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Tue Feb 21, 2017 10:45 am
by kcal
Thanks Daniel - that worked and compiled fine now. Installation works too, but I keep getting this libc++abi.dylib error when I try to open CC. Do you have any idea what this is related to?
objc[73850]: Class RunLoopModeTracker is implemented in both /usr/local/Cellar/qt5/5.8.0_1/lib/QtCore.framework/Versions/5/QtCore (0x1129e3e30) and /usr/local/CloudCompare/CloudCompare.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore (0x111f9be30). One of the two will be used. Which one is undefined.
objc[73850]: Class NotificationReceiver is implemented in both /usr/local/Cellar/qt5/5.8.0_1/lib/QtWidgets.framework/Versions/5/QtWidgets (0x112f160a0) and /usr/local/CloudCompare/CloudCompare.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets (0x10f68b0a0). One of the two will be used. Which one is undefined.
objc[73850]: Class QCocoaPageLayoutDelegate is implemented in both /usr/local/CloudCompare/CloudCompare.app/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x10dfe2ed0) and /usr/local/Cellar/qt5/5.8.0_1/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x116ec3ed0). One of the two will be used. Which one is undefined.
objc[73850]: Class QCocoaPrintPanelDelegate is implemented in both /usr/local/CloudCompare/CloudCompare.app/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x10dfe2f20) and /usr/local/Cellar/qt5/5.8.0_1/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x116ec3f20). One of the two will be used. Which one is undefined.
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
QObject: Cannot create children for a parent that is in a different thread.
(Parent is MainWindow(0x7fda1c858400), parent's thread is QThread(0x7fda1c6002b0), current thread is QThread(0x7fda1c7003d0)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is ccRecentFiles(0x7fda2211ad60), parent's thread is QThread(0x7fda1c7003d0), current thread is QThread(0x7fda1c6002b0)
2017-02-21 10:15:52.412 CloudCompare[73850:8092468] *** Assertion failure in -[NSBitmapImageRep initWithCGImage:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.81.100/AppKit.subproj/NSBitmapImageRep.m:1296
2017-02-21 10:15:52.431 CloudCompare[73850:8092468] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cgImage != NULL'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8a436e7b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff9f020cad objc_exception_throw + 48
2 CoreFoundation 0x00007fff8a43bb82 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fff8be85d50 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 AppKit 0x00007fff8802c112 -[NSBitmapImageRep initWithCGImage:] + 149
5 QtGui 0x00000001122fb79c _Z21qt_mac_create_nsimageRK5QIconi + 748
6 libqcocoa.dylib 0x0000000116d2cb00 qt_plugin_instance + 151216
7 libqcocoa.dylib 0x0000000116d29db7 qt_plugin_instance + 139623
8 QtWidgets 0x000000010f38fa14 _ZN5QMenu11actionEventEP12QActionEvent + 1380
9 QtWidgets 0x000000010f24c53b _ZN7QWidget5eventEP6QEvent + 299
10 QtWidgets 0x000000010f38d5d7 _ZN5QMenu5eventEP6QEvent + 1175
11 QtWidgets 0x000000010f20bd3d _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 301
12 QtWidgets 0x000000010f20d0e1 _ZN12QApplication6notifyEP7QObjectP6QEvent + 369
13 QtCore 0x0000000112705a34 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 164
14 QtWidgets 0x000000010f24060f _ZN7QWidget12insertActionEP7QActionS1_ + 367
15 CloudCompare 0x000000010d9c366f _ZN10MainWindowC2Ev + 57167
16 CloudCompare 0x000000010d9b5bb8 _ZN10MainWindowC2Ev + 1176
17 CloudCompare 0x000000010d9cddd5 _ZN10MainWindowC1Ev + 21
18 CloudCompare 0x000000010da1b158 _ZN10MainWindow11TheInstanceEv + 56
19 CloudCompare 0x000000010d9af864 main + 5236
20 libdyld.dylib 0x00007fff9f904255 start + 1
21 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Wed Feb 22, 2017 8:07 am
by daniel
Not at all (I'm not a Mac user/dev). Have you tried to ask google? ;)

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Wed Feb 22, 2017 5:06 pm
by kcal
Got it working now, with pcd support! For future reference, removing qt5 from homebrew and installing qt5.6.2 through the qt creator package did the trick.

Re: Can't guess file format: unhandled file extension 'pcd'

Posted: Mon Jul 31, 2017 10:35 pm
by Matt
Does this issue have a workable resolution? I've encountered this error and I'm not sure how to fix it.

For reference, I'm using CloudCompare v2.8.1 binaries on Ubuntu 14.04.