Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Attempting to compile driver_display_callback

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
tfurrebo
4038 Views, 8 Replies

Attempting to compile driver_display_callback

I have this set up in Visual Studio: Display Driver, though when compiling I receive an error that I did not define a `main()` method, from which file in the Arnold SDK do I need to import in order to have this entry point defined?

1899-screenshot-152.png

Tags (1)
Labels (1)
8 REPLIES 8
Message 2 of 9
maxtarpini
in reply to: tfurrebo

Shouldn't you compile a library instead of an exe ?

Message 3 of 9
tfurrebo
in reply to: tfurrebo

@Max Tarpini

I've tried compiling both a dynamic and standard library - I have no errors now, but it doesn't appear that the display_driver_callback node is being added to Arnold:

`arnold.AiNode("driver_display_callback")` fails with: ERROR | node "driver_display_callback" is not installed

Message 4 of 9
tfurrebo
in reply to: tfurrebo

Here's the log after compiling `driver_display_callback.cpp`:

1905-screenshot-157.png

Message 5 of 9
maxtarpini
in reply to: tfurrebo

Ok so a dll is good 🙂 btw don't forget to compile it in Release mode at some point with ProjectProperty -> C/C++ -> Optimization set to at least O2. Then before you can use it .. you need to let Arnold source your library with ie from kick cli .. -l "pathtomylib"

Message 6 of 9
tfurrebo
in reply to: tfurrebo

@Max Tarpini I got this:

C:\Users\tyler\source\repos\driver_display_callback\x64\Release>kickArnold 5.1.1.0 [e338d869] windows icc-17.0.2 oiio-1.7.17 osl-1.9.0 vdb-4.0.0 clm-1.0.3.513 rlm-12.2.2 2018/05/23 00:19:24kick: No arguments. Try kick --help for a command summary
Message 7 of 9
tfurrebo
in reply to: tfurrebo

I'm still getting this issue:

arnold.AiNode("driver_display_callback") fails with: ERROR | node "driver_display_callback" is not installed

Message 8 of 9
tfurrebo
in reply to: tfurrebo

I do see this though:

loading plugins from C:\Users\tyler\source\repos\driver_display_callback\x64\Release\ driver_display_callback  driver

Still not sure how I can use it with `arnold.AiNode("driver_display_callback")` though.. hmm..

Message 9 of 9
tfurrebo
in reply to: tfurrebo

@Max Tarpini Alright I think I finally got it, I just dragged the .dll file into the

`Arnold-5.1.1.0-windows\plugins` folder, and finally it appears that it can find this display driver, now I have to try and call it's method, it appears this method does not exist, any idea how to get access to the node's method?

`cb = arnold.DriverDisplayCallbackMtd(_callback)`
`arnold.AiNodeSetPtr(driver, "callback", cb)`

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report