Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. ascorbin
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    ascorbin

    @ascorbin

    0
    Reputation
    5
    Posts
    89
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Email owi@owimahn.de

    ascorbin Follow

    Posts made by ascorbin

    • RE: Where to put my .dylib ?

      Hi Riccardo

      Thank you for this hint. The trouble is that it is a precompiled 3rdParty-Dylib which i can‘t compile by myself.

      Greetings ascorbin

      posted in Cinema 4D Development
      ascorbin
    • RE: Where to put my .dylib ?

      The issue is still not solved. I had success with R19 & R20 on Windows with the same lib as DLL. On Mac I suspect System Integrity Protection and DYLD_LIBRARY_PATH. Do I need code-signing ?

      greetings ascorbin

      posted in Cinema 4D Development
      ascorbin
    • RE: Where to put my .dylib ?

      Hi Andreas

      Thanks a lot for your detailed answer.
      Concerning this additional build/Release sub directory. After a complete fresh install (unzipping ski.zip, running kernel_app.app/Contents/MacOS/kernel_app g_updateproject=/Users/lenaamrhein/PROGRAMMING/C4D/sdk and compiling) my folder structure looks like this:

      0_1543829647492_Bildschirmfoto 2018-12-03 um 10.26.52.png

      Build path settings in Xcode
      0_1543829691165_Bildschirmfoto 2018-12-03 um 10.20.40.png

      So these build/Release-Folder aren't intended? Is it a feature of Xcode 10.1 ?

      greetings ascorbin

      posted in Cinema 4D Development
      ascorbin
    • RE: Where to put my .dylib ?

      Hm, still the same issue...

      I hope this is a beginners problem. So my setup is this:

      my project file ( designfabric.vcxproj ) lies here:

      Cinema 4D R20/sdk/plugins/designfabric/project/designfabric.vcxproj

      was created with Project Tool
      sources are beneath:

      Cinema 4D R20/sdk/plugins/designfabric/source

      Is this the right location ? (should it developed inside /plugins ? - guess no)
      there is also a res folder with the dylib, here:

      Cinema 4D R20/sdk/plugins/designfabric/res/libs/osx/libxl.dylib

      If I compile and start Cinema with Xcode the plugin only starts if there is libxl.dylib here:

      Cinema 4D R20/sdk/build/Release/libxl.dylib

      How to distribute Plugins?
      Is it only copying the .xlib somewhere in plugins ? Must it have a res folder? other things?

      Strange thing is if I compile another project with Xcode than my old designfabric.xlib inside plugins find the dylib inside sdk/build/Release and shows up. I really don't get it. Im totally messed with the paths.

      Quite desperated I begun to port the whole project to Windows C4D R 19. Everything compiled nice, dlls loaded, but it wasn't possible to copy these plugins to another windows machine (the c4dsdkexample either)... em... so Im back on Mac R20 and trying to explain my boss: ok, you have to start Cinema 4D by Xcode and its only working on THIS computer.

      Hope you have some clues for me, Greetings ascorbin

      posted in Cinema 4D Development
      ascorbin
    • Where to put my .dylib ?

      Hi!

      I have a very hard time to figure out where to put my 3rd party dylib. I'm on macOs High Sierra 10.13.6 with Xcode 10.1 trying to code a C++ plugin with this library -> http://www.libxl.com. Strange thing is everything compiles fine and even works if (Xcode controls C4D (though I don't understand why the compiler creates an alias-file in sdk/build/Release, the place where the plugin-.xlib-module finds the dylib). If I place my compiled lib into the default plugin folder and start Cinema 4D app alone my dylib and so my xlib could not be loaded. Where to put my dylib? I tried several folder and subfolder but I can't find the correct location. Is Xcode setting some global path parameters? Do I have to define paths in projectdefinition.txt for Project Tool ? Thanks for a hint.

      greetings ascorbin

      posted in Cinema 4D Development
      ascorbin