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

Installing CloudCompare on Intel-Based Mac #1988

Open
mohsennazemi opened this issue Mar 31, 2024 · 9 comments
Open

Installing CloudCompare on Intel-Based Mac #1988

mohsennazemi opened this issue Mar 31, 2024 · 9 comments

Comments

@mohsennazemi
Copy link

Hi,

I am trying to install CloudCompare on my intel mac to load my laz file. I initially managed to install and run CloudCompare. However, I realized that the base application does not support laz file, and therefore, I had to install it again and include laz plugin, i.e. PLUGIN_IO_QLAS.

I followed the installations instructions.

1- I installed Qt5.
2- I installed laszip-3.4.3.tar.gz (md5)
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/liblaszip.8.0.5.dylib
-- Installing: /usr/local/lib/liblaszip.8.dylib
-- Installing: /usr/local/lib/liblaszip.dylib
-- Installing: /usr/local/lib/liblaszip_api.8.0.5.dylib
-- Installing: /usr/local/lib/liblaszip_api.8.dylib
-- Installing: /usr/local/lib/liblaszip_api.dylib
-- Installing: /usr/local/include/laszip/laszip_api.h
-- Installing: /usr/local/include/laszip/laszip_api_version.h
3- I built the latest version of the CloudCompare

cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/qt@5 -DPLUGIN_IO_QLAS=ON ..
followed by
cmake --build .
4- I installed the app
sudo cmake –install .
 
After doing these steps, I cannot open CloudCompare anymore! I click on the app icon and then after a short moment, the app does not launch.

I appreciate your help on this matter.
 
P.S.: On a side note, it seems that the developer has hardcoded a local address in his scripts that contains “/paul/”. It would be great if this issue could also be resolved.

@dgirardeau
Copy link
Member

We will need the help from Paul himself (the latest macOS 'maintainer'). But he had an issue with his github account recently, so we'll need it to be reactivated before 😅

@dgirardeau
Copy link
Member

dgirardeau commented Apr 4, 2024

Good news, Paul has been able to generate packages for Intel and arm: https://www.simulation.openfields.fr/index.php/cloudcompare-downloads

(Paul sadly has an issue with his github account and cannot use it at the moment... so it might take some time before he is able to push any code...)

@cyhsu
Copy link

cyhsu commented Apr 9, 2024

I guess this is the reason why I keep have "paul" in the install process.

modify @executable_path en @rpath:  /Users/chuanyuan.hsu/dev/software/CloudCompare/build/CloudCompare/CloudCompare/CloudCompare.app/Contents/Frameworks/libqtvirtualkeyboard_hangul.dylib
modify @executable_path en @rpath:  /Users/chuanyuan.hsu/dev/software/CloudCompare/build/CloudCompare/CloudCompare/CloudCompare.app/Contents/Frameworks/libqtvirtualkeyboard_pinyin.dylib
modify @executable_path en @rpath:  /Users/chuanyuan.hsu/dev/software/CloudCompare/build/CloudCompare/CloudCompare/CloudCompare.app/Contents/Frameworks/libqtvirtualkeyboard_tcime.dylib
=================== CloudCompare app end   =============================
Traceback (most recent call last):
  File "/Users/chuanyuan.hsu/Downloads/CloudCompare/build/postInstall/libBundleCloudCompare.py", line 428, in <module>
    with open(os.path.join(rootdir, 'dependancies.json'), 'w', encoding="utf-8") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/paul/projets/CloudCompare/dependancies.json'
-- signature ...
--- remove old signatures
postInstall/signatureCloudCompare.sh: line 86: [: ==: unary operator expected
--- signature dylib & so CloudCompare app ---
error: The specified item could not be found in the keychain.
error: The specified item could not be found in the keychain.
error: The specified item could not be found in the keychain.

@dgirardeau
Copy link
Member

I've contacted Paul (who still hasn't recovered his github account).

@cyhsu
Copy link

cyhsu commented Apr 10, 2024

But finally I got who is Paul.

@rasclep
Copy link

rasclep commented Apr 29, 2024

Hello, Sorry to reply so late, I'm still having trouble with my GitHub account and have created a new one to be visible....
My installation process in CMake is quite complicated because it covers almost all the steps to build a standalone package signed and ready for notarization. You may not need all these steps for a local execution of your build.
There is indeed a hard-coded local address in libBundleCloudCompare.py.in: rootdir should be set, for example, to your home directory or anywhere to store a json file. I'll try to fix the scripts to get something more portable!
Regards,
Paul

@cyhsu
Copy link

cyhsu commented Apr 30, 2024

I am not in the hurry. Thanks for your response.

@danci7
Copy link

danci7 commented May 3, 2024

Hello, I'm actually experiencing the same issue as @mohsennazemi described.

I'm using a macOS with an Intel chip. macOS Version = 12.7

I installed the software following the instructions and added -DPLUGIN_IO_QLAS=ON in the configuration phase.
The software crashed immediately when it opened, and the following output is shown.
Screenshot 2024-05-03 at 12 00 38

Before the installation of the plugin, the program opened normally and seemed to work smoothly :) Is there another way to work with .laz files without the plugin in cloudCompare?

Thank you very much for your support!!

@dgirardeau
Copy link
Member

Are you able to install the package generated by @prascle or is it an issue with the OS version?

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

No branches or pull requests

6 participants