libtool: can't create output file: /./lib_api_debu



  • On 12/10/2015 at 10:16, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   14 
    Platform:    Mac  ;  Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Hi all !

    I'm doing my first steps, trying to compile a "Hello World" plugin as seen here : http://www.andrewnoske.com/wiki/Cinema_4D_-_C++_plugins

    My specs :

    Cinema4D R14
    XCode 5.02

    I've tried following the instructions on the above mentioned blog for the "Tutorial 1: Hello World".
    When I hit build, i got 1 error :

    (I copy the entire error messaage)

    Libtool /./lib_api_debug.a normal x86_64
        cd "/Applications/MAXON/CINEMA 4D R14/resource/_api_lib"
        setenv MACOSX_DEPLOYMENT_TARGET 10.6
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/Applications/MAXON/CINEMA\ 4D\ R14/resource/_api_lib/../../../../(build)/Debug -filelist /Applications/MAXON/CINEMA\ 4D\ R14/resource/_api_lib/../../../../(build)/_api.build/Debug/_api.build/Objects-normal/x86_64/_api_debug.LinkFileList -o /./lib_api_debug.a

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't create output file: /./lib_api_debug.a (Permission denied)
    Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
    I've changed folder permissions on all folders inside : /Applications/(user) .
    I've seen some forum posts where the only solution they argued was to reinstall Cinema4D. I would like to avoid reinstalling Cinema4D or even better understand why reinstalling should be the trick to solve this problem.
    Could anyone please give me a hand ?
    Is reinstalling the only way to go ?
    Thanks for any tricks to solve this stupid issue ...
    e*



  • On 13/10/2015 at 09:38, xxxxxxxx wrote:

    Hi,

    welcome to the Plugin Café forums 🙂

    Usually we support only the latest version of Cinema 4D SDKs.
    Lets tackle your problem step by step.
    In order to get you going, I suggest you first try to compile the SDK example project (cinema4dsdk). That should work out of the box. Let me know if it works.
    When that's working, you could use the Create a new plugin project in Xcode article on our blog, to create your own project.



  • On 13/10/2015 at 12:34, xxxxxxxx wrote:

    You don't have permission to write to the /Applications folder, where you installed Cinema 4D to. You could
    either get write permission from the root user (likely yourself) or copy the Cinema 4D installation folder to
    your home ~/Applications folder (which is what I would prefer). That will solve the permission error.



  • On 18/10/2015 at 06:12, xxxxxxxx wrote:

    Thanks a lot @NiklasR and @Andreas Block !

    so finally i made what Andreas suggested ... I start again with a fresh new OS release (El captian), a fresh new XCode 6 and the R17 SDK.

    Now I've been able to compile and even add a new library to the plugin (libArtnet for DMX output from the plugin) so i'm actively learning a bit the whole structure.

    I've been looking at the SDK examples, which are really helpfull to start to understand how c4dsdk works ... but i'm willing to understand much better how it all works.

    Is there any book, blog, or something that describes extensively the c4dsdk insights ?

    As an example ... how many types of plugins you can have ? What are it's particularities, calls and functions ?

    As an example ... i'm trying to add a color picker to a plugin sub-dialog, but i can't read the "color" that is being set by the user because i don't get how to get user input from the sdk ...

    I've seen the sdk website which points to a few blogs or website ... which are somehow usefull, but ... how to get a deep learning on C4D SDK ?

    Thanks a lot !

    I'll post my color picker doubts in another thread ...


Log in to reply