-
Notifications
You must be signed in to change notification settings - Fork 54
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
Macos #2
base: main
Are you sure you want to change the base?
Macos #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not work for me. M1 pro Sanoma, blender 4.0.2
Hi @tonfdd Would you be able to provide a bit more context. At which step does it fail?
Please could you provide any terminal / blender console output to help track down the issue. |
Tks for support |
Hi^ The addon does not work on blender 4.0 with Sonoma 14.1.2. After adding the addon to blender, I can’t check the box to enable it |
Grey for me in Blender 4.02, MacOS 12.7.2 (Monterey). Built as follows: Downloaded python 3.12, did pip3 install setuptools (got 69.1.0), pip3 install Cython. Copied the .framework files from SketchUp SDK to the install dir. Had to remove /usr/local/include due to some old crud causing " error: unknown type name 'uint64_t' " Copied the frameworks to sketchup_importer. Copied sketchup.cpython-312-darwin.so to sketchup_importer, renamed it to sketchup.so Made a Zip of the sketchup_importer directory. Added that to add-ons in Blender Edit -> Preferencess. Extension appears, but is not selectable. Trying to select it causes error in Blender:
(edit: gah several mistakes in my report, hope I got most of them, that's what I get for doing this while sick) |
Hi @darishante, I think the issue comes from building the plugin with Python 3.12 when Blender 4.0.2 uses Python 3.10. Here are the steps I took to build a working version with 3.10. Hopefully, it works for you too.
|
Hi @tobiasjewson Any suggestions please? |
Hi @balarayen, Since the plugin builds and loads, I'm going to say that the issue is not with this specific branch but with the plugin more generally. Try to strip down the .skp file to the simplest possible version that still fails and submit an issue against the main repo. Tobias |
Another simpler .skp file imports well in Blender. Thanks for your response and suggestions @tobiasjewson ! |
It did! I could add the extension and import simple and complicated models! Thank you so much! |
@tobiasjewson @balarayen @darishante Please, can you upload here MacOS Blender 4.1 version? Really appriciated! |
@balarayen +1 for the Mac version please. |
@odil24 @KevJames Please see if this helps: |
@balarayen Tried it with Blender 4.1 on an M2 MacBook running Sonoma and unfortunately it didn't work |
... but maybe it just meant repo dir since this repo was forked from one named …I had to add diff --git a/setup.py b/setup.py
index c5eae9d..72f78fe 100644
--- a/setup.py
+++ b/setup.py
@@ -16,10 +16,10 @@ if platform.system() == 'Linux':
elif platform.system() == 'Darwin': # OS X
libraries = []
- extra_compile_args = ['-mmacosx-version-min=10.9', '-F.']
+ extra_compile_args = ['-mmacosx-version-min=10.9', '-F.', '-F./slapi']
extra_link_args = ['-mmacosx-version-min=10.9',
'-F',
- '.',
+ './slapi',
'-framework',
'SketchUpAPI']
|
well, when that didn't work, I tried to cut out the middle man and build using /Applications/Blender.app/Contents/Resources/4.1/python/bin/python3.11 directly but it turns out this python (in the blender.org download which is also what brew installs): A. doesn't include libpython (its statically linked into the bin?) or any of its headers (there is a so that certainly can't help with anything I'mma try building my own blender bin I guess ... but that seems pretty daunting when the EDIT: for the record the 4.2 daily's python has the same properties, modulo that its |
its a particularly in some ways silly and in some ways opportune time to be attempting this build given that the 4.2 release branch merged to main 5 hours ago blender/blender@840457c (its also very silly that they have a GitHub mirror of that repo but don't actually have mirrors of the 5 target specific lib, datafiles, or test submodules ) I probably should have (discovered and) gone for: https://download.blender.org/source/blender-with-libraries-4.1.0.tar.xz maybe it'll slow down or cmake output has me fooled but its looking very possible that actual build time is slower than clone and submodules and lfs download time |
annnnd building yourself still uses a pre-compiled python (https://projects.blender.org/blender/lib-macos_arm64/src/branch/main/python ) which in turn has bad hardcoded links to other libs (like openssl) and they only hung an all or nothing |
there is logic in the build system to avoid this: but something isn't working right EDIT: There is also some logic perhaps specifically about sanitizing the python install but its guarded to Windows only (and works with .dlls): https://projects.blender.org/blender/blender/src/commit/983b0b61826794b1c372b4bc13e8754df379bc9b/build_files/build_environment/cmake/package_python.cmake |
Well the "good" news is that after:
I was succesfully able to import an skp from 3D Warehouse into Blender 4.3 Alpha (blender/blender@983b0b618267) Footnotes
|
did open a blender issue https://projects.blender.org/blender/blender/issues/123764 but the concern is probably pretty niche |
Unfortunately, I can’t enable the plugin in Blender 4.1.1 on macOS 14.5. Imports fine, with no errors. But the checkbox isn’t able to be toggled to the On state. Bummer. |
I use pc on windows10
Le sam. 13 juill. 2024 à 16:05, Fuzen Co. ***@***.***> a
écrit :
… Unfortunately, I can’t enable the plugin in Blender 4.1.1 on macOS 14.5.
Imports fine, with no errors. But the checkbox isn’t able to be toggled to
the On state. Bummer.
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJRP3EJ2XVIHWKPYHPIQIFTZMGB7DAVCNFSM6AAAAABCZCYUNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGA4TANRRGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I wonder why this hasn't been merged yet? |
I dont have any knowledge in python or coding but can anyone give instructions as to how i can build it to get it working for blender 4.2 on macos ventura? |
Isn't this going to be merged? |
I seem to have built this, and upon trying to install, it was looking for the API folders in Blender.app/Contents/resources/lib. I move them there for now, and then ended up with... ![]() No idea where to go from there. Any chance an installable zip could be uploaded for testing? |
A couple of minor changes to allow your fork to be built on macOS. I've not tested it extensively, but it builds, installs and imports ok using Blender 4.0.2, macOS Sonoma on an Apple M1 mbp.