<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader in Arnold General Rendering Forum</title>
    <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048850#M1201</link>
    <description>&lt;P&gt;Sorry my comment replies are getting removed by the system somehow.&lt;/P&gt;&lt;P&gt;Testing like this instead.&lt;/P&gt;&lt;P&gt;Thanks for the small camera example I tried to compile that instead and then I didn't get the CameraReverseRay error.  One difference I see is that your example has both 'camera_create_ray' and 'camera_reverse_ray', whilst the code im using only has the 'camera_create_ray'. Maybe it needs something for the reverse ray too?&lt;BR /&gt;&lt;BR /&gt;But unfortunately I still get a build error with the example code,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [test] Error 1&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 18:56:25 GMT</pubDate>
    <dc:creator>Fred_Blueroom</dc:creator>
    <dc:date>2021-01-15T18:56:25Z</dc:date>
    <item>
      <title>Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048845#M1196</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to compile a Camera shader for Arnold v6 on Linux and have cleared all the compile errors from the old v4 code (I think) that I picked up!&lt;BR /&gt;&lt;BR /&gt;Now I'm getting this link error that I don't understand,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;In file included from /software/apps/arnold/6.1.0.1/cent7.x86_64/include/ai.h:33:0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from fCameraShader.cpp:1:&lt;BR /&gt;/software/apps/arnold/6.1.0.1/cent7.x86_64/include/ai_cameras.h:115:13: warning: ‘bool CameraReverseRay(const AtNode*, const AtVector&amp;amp;, float, AtVector2&amp;amp;)’ used but never defined [enabled by default]&lt;BR /&gt;&amp;nbsp;static bool CameraReverseRay(const AtNode* node, const AtVector &amp;amp;Po, float relative_time, AtVector2 &amp;amp;Ps)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;/software/apps/arnold/6.1.0.1/cent7.x86_64/include/ai_cameras.h:59:1: note: in expansion of macro ‘camera_reverse_ray’&lt;BR /&gt;&amp;nbsp;camera_reverse_ray; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;fCameraShader.cpp:10:1: note: in expansion of macro ‘AI_CAMERA_NODE_EXPORT_METHODS’&lt;BR /&gt;&amp;nbsp;AI_CAMERA_NODE_EXPORT_METHODS(VRCameraMethods);&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':&lt;BR /&gt;(.text+0x20): undefined reference to `main'&lt;BR /&gt;/tmp/ccDdbLFd.o:(.data+0x38): undefined reference to `CameraReverseRay(AtNode const*, AtVector const&amp;amp;, float, AtVector2&amp;amp;)'&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;BR /&gt;make: *** [target] Error 1&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Iv'e only managed to find mentions of 'CameraReverseRay' in ai_cameras.h which is part of the defines.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My build command so far looks like this,&lt;/P&gt;&lt;PRE&gt;&amp;nbsp; &amp;nbsp; gcc -std=c++11 -I$(ARNOLD_PATH)/include -L$(ARNOLD_PATH)/bin -L./ -lm -lai -loptix -lAdClmHub -lAdskLicensingSDK -lAdpSDKWrapper-arnold -dynamiclib fCameraShader.cpp -o fCameraShader.so&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here's the full shader source&lt;/STRONG&gt;, &lt;A href="https://pastebin.com/hD3CNZTz"&gt;https://pastebin.com/hD3CNZTz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to resolve this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 17:44:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048845#M1196</guid>
      <dc:creator>Fred_Blueroom</dc:creator>
      <dc:date>2021-01-15T17:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048846#M1197</link>
      <description>&lt;P&gt;I don't have an answer for the link error, but I don't think you need this stuff for a shader:&lt;/P&gt;&lt;PRE&gt;-loptix -lAdClmHub -lAdskLicensingSDK -lAdpSDKWrapper-arnold &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:31:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048846#M1197</guid>
      <dc:creator>Stephen.Blair</dc:creator>
      <dc:date>2021-01-15T18:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048847#M1198</link>
      <description>&lt;P&gt;Ok, thanks!   I got link errors saying I needed them but maybe there's something triggering that that is not needed now. The code I believe was written for V4 and maybe that's changed things.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048847#M1198</guid>
      <dc:creator>Fred_Blueroom</dc:creator>
      <dc:date>2021-01-15T18:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048848#M1199</link>
      <description>&lt;P&gt;Do you have camera_create_ray() in fCameraShader.cpp ?&lt;BR /&gt;&lt;BR /&gt;If not, if you put in something, like the one from this example, do you still get the same link errors?&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://docs.arnoldrenderer.com/x/TwAnAg" target="_blank"&gt;https://docs.arnoldrenderer.com/x/TwAnAg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:39:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048848#M1199</guid>
      <dc:creator>Stephen.Blair</dc:creator>
      <dc:date>2021-01-15T18:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048849#M1200</link>
      <description>&lt;P&gt;Thanks for that link.&lt;BR /&gt;I tried to compile that instead. First by removing the extra libs you pointed to but I then got pages of errors. Then I tried with and I &lt;STRONG&gt;didn't&lt;/STRONG&gt; get the CameraReverseRay error.&lt;BR /&gt;But I did get a link error,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [test] Error 1&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:49:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048849#M1200</guid>
      <dc:creator>Fred_Blueroom</dc:creator>
      <dc:date>2021-01-15T18:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048850#M1201</link>
      <description>&lt;P&gt;Sorry my comment replies are getting removed by the system somehow.&lt;/P&gt;&lt;P&gt;Testing like this instead.&lt;/P&gt;&lt;P&gt;Thanks for the small camera example I tried to compile that instead and then I didn't get the CameraReverseRay error.  One difference I see is that your example has both 'camera_create_ray' and 'camera_reverse_ray', whilst the code im using only has the 'camera_create_ray'. Maybe it needs something for the reverse ray too?&lt;BR /&gt;&lt;BR /&gt;But unfortunately I still get a build error with the example code,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [test] Error 1&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048850#M1201</guid>
      <dc:creator>Fred_Blueroom</dc:creator>
      <dc:date>2021-01-15T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048851#M1202</link>
      <description>&lt;P&gt;Awesome thanks for your help. I'll study that example and see what I'm doing different.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 19:10:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048851#M1202</guid>
      <dc:creator>Fred_Blueroom</dc:creator>
      <dc:date>2021-01-15T19:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048852#M1203</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://docs.arnoldrenderer.com/display/A5ARP/Creating+a+Simple+Plugin" target="_blank"&gt;https://docs.arnoldrenderer.com/display/A5ARP/Creating+a+Simple+Plugin&lt;/A&gt; has instructions for how to build. Note the suggestion of -shared.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 19:12:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048852#M1203</guid>
      <dc:creator>thiago.ize</dc:creator>
      <dc:date>2021-01-15T19:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CameraReverseRay shader Error - Arnold v6 shader</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048853#M1204</link>
      <description>&lt;P&gt;Thanks a lot that helped me!&lt;BR /&gt;I had to also add '-fpic'&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 19:33:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/undefined-reference-to-camerareverseray-shader-error-arnold-v6/m-p/11048853#M1204</guid>
      <dc:creator>Fred_Blueroom</dc:creator>
      <dc:date>2021-01-15T19:33:46Z</dc:date>
    </item>
  </channel>
</rss>

