open-newer-version icon indicating copy to clipboard operation
open-newer-version copied to clipboard

Mac Support

Open Eneroth3 opened this issue 7 years ago • 5 comments

As I only have a PC with Windows it's hard for me to compile the C program for Mac and test that it is working.

If you are interested in adding Mac support, please reply in this thread.

Eneroth3 avatar Jul 01 '18 17:07 Eneroth3

I'm interested, I have a mac m2 and I have sketchup make 2017

seiler-emerson avatar Jun 20 '23 16:06 seiler-emerson

Interested too :)

benjamindulau avatar Jun 30 '23 20:06 benjamindulau

I could also help - I'm on an intel macbook 2019 with sketchup make 2017

joshmans avatar May 08 '24 01:05 joshmans

I found a way to get it working on MBP m3 (actually any M macs I believe):

  1. download and install Whisky (wine for mac) https://github.com/Whisky-App/Whisky
  2. install sketchup 2016 (not later because from SU2017 it will require OpenGL 3.0+ which is not supported by M-macs) https://web.archive.org/web/20240507224123/https://download.sketchup.com/SketchUpPro-2016-1-1449-80430-en-x64.exe
  3. install this extension to wine sketchup
  4. now you can convert your newer models via wine sketchup2016 to older versions and then open then in native mac sketchup make 2017

kirik avatar Jun 27 '24 19:06 kirik

I was able to build your cpp helper on macOS using the following script:

#!/bin/sh

FRAMEWORK_DIR=/opt/frameworks
OUTPUT=skpconv
g++ -std=c++11 main.cpp -F"$FRAMEWORK_DIR" -framework SketchUpAPI -o $OUTPUT
install_name_tool -change "@rpath/SketchUpAPI.framework/Versions/A/SketchUpAPI" "$FRAMEWORK_DIR/SketchUpAPI.framework/SketchUpAPI" $OUTPUT

I tried including this binary in the extension's bin directory, but as the extension has windows specific workarounds, the extension continues to fail. It would need a macOS way of executing the binary.

I'm currently using the binary produced by my script (skpconv) as a command line utility that I use to manually convert downloaded skp files.

4v3ngR avatar Jul 03 '24 00:07 4v3ngR