Open Eneroth3 opened 6 years ago
I'm interested, I have a mac m2 and I have sketchup make 2017
Interested too :)
I could also help - I'm on an intel macbook 2019 with sketchup make 2017
I found a way to get it working on MBP m3 (actually any M macs I believe):
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.
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.