Eneroth3 / open-newer-version

Convert and open models made in newer versions of SketchUp.
MIT License
44 stars 12 forks source link

Mac Support #3

Open Eneroth3 opened 6 years ago

Eneroth3 commented 6 years ago

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.

seiler-emerson commented 1 year ago

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

benjamindulau commented 1 year ago

Interested too :)

joshmans commented 6 months ago

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

kirik commented 5 months ago

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
4v3ngR commented 4 months ago

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.