automatically open .sh3d file on a Mac

This topic has been viewed 13117 times and has 27 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

When I install the version of Zulu 15.0.10, it installs in the folder Library/Java/JavaVirtualMachines/zulu-15.jdk/Contents/Home

In build xml: I notice 2 differents paths depending on the architecture :
value="/Library/Java/JavaVirtualMachines/zulu-15.0.10-macosx_x86_64.jdk/Contents/Home"/>
and
<property name="javaHome_macosx_arm64" value="/Library/Java/JavaVirtualMachines/zulu-15.0.10-macosx_aarch64.jdk/Contents/Home"/>

I do not see how to obtain these two different folders..


So, Im a bit embarassed, because I do not have the dylib for the arm version.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: automatically open .sh3d file on a Mac

Post by Puybaret »

[font=courier new]zulu-15.0.10-macosx_x86_64.jdk[/font] and [font=courier new]zulu-15.0.10-macosx_aarch64.jdk[/font] folders are just renamed folders. As the build procedure needs both x86-64 and arm JDKs, I had to rename [font=courier new]zulu-15.jdk[/font] folder.
By the way, take the [font=courier new]zulu-15.jdk[/font] folder found in Zulu tar.gz files at Azul, not dmg files.
Emmanuel Puybaret, Sweet Home 3D creator
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

I would never have found this on my own :)
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Just a quick question, to build the dmg/app of SW for macos 13, I have to use : ant macosxInstaller

Is that correct ?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: automatically open .sh3d file on a Mac

Post by Puybaret »

I would never have found this on my own :)
It's noted in build.xml here but it could be more detailed...
to build the dmg/app of SW for macos 13, I have to use : ant macosxInstaller
Is that correct ?
macosxInstaller target will build a dmg but it won't be signed and can't be notarized, i.e. end users who download it will be able to run the application it contains only if they right click on it to select Open item in contextual menu. It's required only the fist time, and afterwards a simple double click will launch the program.

Note that if you encounter an error "hdiutil: create failed- Permission denied" at the end, add the line:

Code: Select all

<arg value="-L"/>
in the statement which copies legal files to copy files matching symlinks, or use XCode 12 tools.
Emmanuel Puybaret, Sweet Home 3D creator
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Thks,

Yes, sometimes I randomly have strange folder errors like this.
Generally, I write: sudo ant macosxInstaller and it works :)
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Hi,

I have created an .app working fine for intel Mac but not in M1/M2 OS.

First, I would want to know if I have to rebuild the app on an M1 Mac in order to make it works ?

Second, I take a look at the folder : \lib\java3d-1.6 and I see only one dylib file. Is it compatible with both Intel and M1/M2 chipsets ?

Thx for help.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: automatically open .sh3d file on a Mac

Post by Puybaret »

dylib files coming with the current version of Sweet Home 3D are universal libraries containing binary code for Intel 64 bit and ARM processors. Are you sure you use the last version of these dylibs? Does your build.xml file builds a universal JRE like Sweet Home 3D does?
Emmanuel Puybaret, Sweet Home 3D creator
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Hi

I work with the 7.1 version and I use the official build.xml of the repository.

Does this version normally works with M1/M2 ?

Is it better to upgrade it with the files of the 7.2 ? (libgluegen_rt / libjogl_desktop / libnativewindow_awt / libnativewindow_macosx)

I notice that you also update these files in 7.2 : gluegen-rt.jar / jogl-all.jar

Is it also a good idea to update them in my version ?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: automatically open .sh3d file on a Mac

Post by Puybaret »

Does this version normally works with M1/M2 ?
Apple Mx processors have been supported since version 6.5.
Is it better to upgrade it with the files of the 7.2 ?
Yes, you should better upgrade to JOGL 2.5 (dylib and jar files).
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest