Closed fusepilot closed 7 years ago
Hi @fusepilot , it seems you have a relatively old version of the code. Please make sure you get the newest from the repository. The second exception is definitely already resolved in the current code. I am unsure about the first exception. Please try again with the latest version.
Yeah, I'm not sure what happened there. I must have been looking at an old version of this repo when I downloaded it originally. But now that I've dropped in the latest, I get this error now:
> craftr export -d directory="/Applications/Maxon/Cinema 4D R17/"
Loading CXX Toolkit "craftr.lang.cxx.common" (with craftr.lang.cxx.common.toolkit="") (craftr.lang.cxx:33)
cxc.name="llvm" (craftr.lang.cxx:36)
cxc.target_arch="x86_64-apple-darwin15.6.0" (craftr.lang.cxx:37)
cxc.version="8.0.0" (craftr.lang.cxx:38)
error: C4D installation path could not be determined
I also tried > craftr export -d .directory="/Applications/Maxon/Cinema 4D R17/"
I debugged a little bit and it seems like options.directory in the Craftrfile is always empty. Am I not passing options correctly? Also is there an up to date c++ example that has all of this working?
The "directory" option is not inheritable from the global options namespace, thus it must be specified with its full name.
craftr export -d NiklasRosenstein.maxon.c4d.directory="..."
If you build your plugin from inside the C4D application plugin's folder and your Cinema 4D installation directory's name is of the format Cinema 4D RXX
it should automatically be able to detect the directory and version. Otherwise you will also need to specify the NiklasRosenstein.maxon.c4d.release=17
option.
The template directory contains an example that is (or should be) working.
I just noticed you used a relative option name (with the .
(dot) in the beginning). What is the main module you want yo build: Your plugin or the C4D SDK? Because a relative option name is relative to the main module, and if you build your plugin, it's going to be yourpluginmodulename.directory
option that you specify.
Thanks Niklas. craftr export -d NiklasRosenstein.maxon.c4d.directory="..."
works. I didn't pick up on that reading through the docs.
Hey Niklas,
Getting a few errors trying out the latest 2.0.0.dev7. Repro here: https://github.com/fusepilot/craftr-plugin-repro
This is the error I get exporting for R17:
And then a different error for R15: