<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with c++ - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=c%2B%2B</link>
      <pubDate>Sun, 08 Aug 2021 16:54:13 +0000</pubDate>
         <description>Tagged with c++ - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedc%2B%2B/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>libxd - A Processing inspired graphics library for C++</title>
      <link>https://forum.processing.org/two/discussion/27279/libxd-a-processing-inspired-graphics-library-for-c</link>
      <pubDate>Sun, 25 Mar 2018 16:57:52 +0000</pubDate>
      <dc:creator>bernhardfritz</dc:creator>
      <guid isPermaLink="false">27279@/two/discussions</guid>
      <description><![CDATA[<p>Hi everyone!</p>

<p>I'd like to announce a new library that I've been working on called libxd.
It's written from scratch in C++ and has a very similar API like Processing or p5.js.
libxd is available for all major operating systems and is well documented (<a rel="nofollow" href="https://bernhardfritz.github.io/libxd">see for yourself</a>).
It should be fairly simple to get started and write your first sketches.
Prior knowledge of C++ is useful but not mandatory.
Bare in mind, libxd currently only supports 2D graphics but being OpenGL-based it could potentially be extended to 3D in the future (hence the name libxd, I know probably noone will get it :p).
Most of the essential features of Processing and p5.js are also available for libxd, but I guess there is a lot of room for improvement!</p>

<p>This announcement should not only be addressed to end users but also to experienced C++ developers interested in getting involved in the development of libxd.
Being a Java web developer myself, I'm kind of a rookie when it comes to C++, so feel free to leave <a rel="nofollow" href="https://github.com/bernhardfritz/libxd/issues">some feedback</a> or <a rel="nofollow" href="https://github.com/bernhardfritz/libxd/pulls">open a pull-request</a>, I'd really appreciate it :)</p>

<p>libxd is Open Source and has been published <a rel="nofollow" href="https://github.com/bernhardfritz/libxd">on GitHub</a> under LGPL 2.1.</p>

<p>Links that could be of interest:</p>

<ul>
<li><a rel="nofollow" href="https://bernhardfritz.github.io/libxd">libxd on GitHub pages</a></li>
<li><a rel="nofollow" href="https://github.com/bernhardfritz/libxd">libxd GitHub repo</a></li>
<li><a rel="nofollow" href="https://github.com/bernhardfritz/spaceinvaders">SpaceInvaders made with libxd</a></li>
</ul>

<p>Happy coding!</p>

<p>~Bernhard Fritz</p>
]]></description>
   </item>
   <item>
      <title>How can I submit my own mode for Processing?</title>
      <link>https://forum.processing.org/two/discussion/25311/how-can-i-submit-my-own-mode-for-processing</link>
      <pubDate>Thu, 30 Nov 2017 20:47:08 +0000</pubDate>
      <dc:creator>MGlolenstine</dc:creator>
      <guid isPermaLink="false">25311@/two/discussions</guid>
      <description><![CDATA[<p>Ok, so I know that this category is probably not meant for questions like these, but let's just hit it, because I can't find any category that would be more suitable for this...</p>

<p>I've been working on my C++ library for processing for quite a while now and I've also started working on my own IDE, but I changed my mind because I wasn't able to make it multiplatform. Let's leave that... 
So, I decided that I'd at least try to submit my library as a new mode. It has many basic functions and it's just basically based on C++. It's probably not as optimised as it should be, but I'm making it as a school assignment.</p>

<p>So this is just my 5 cents, take it or leave it, if you take it, I'll let my IDE rest in peace.</p>

<p>Yours sincerely,</p>

<p>MGlolenstine</p>

<p><a rel="nofollow" href="http://github.com/MGlolenstine/P5c">Here is a link to my library with list of all working functions.</a></p>
]]></description>
   </item>
   <item>
      <title>Any Ideas about Memory Mapping  or C++</title>
      <link>https://forum.processing.org/two/discussion/25247/any-ideas-about-memory-mapping-or-c</link>
      <pubDate>Tue, 28 Nov 2017 09:54:42 +0000</pubDate>
      <dc:creator>kfreesp</dc:creator>
      <guid isPermaLink="false">25247@/two/discussions</guid>
      <description><![CDATA[<p>Hey guys nice to see you.</p>

<p>I'm currently doing a visualization of motion in the design project that I'm in.</p>

<p>I'm trying to use 'ZED' which is a 3D Camera for Depth Sensing by stereolabs. co.</p>

<p>But it's developed based on C++, So it seems like it won't work with the Processing. 
If I make a C++ codes for running the camera is it possible to do memory mapping with Processing?
Or is it better to implement a wrapper?</p>

<p>thanks!</p>
]]></description>
   </item>
   <item>
      <title>Porting code to Arduboy (from Processing to C++)</title>
      <link>https://forum.processing.org/two/discussion/24242/porting-code-to-arduboy-from-processing-to-c</link>
      <pubDate>Sun, 24 Sep 2017 19:21:15 +0000</pubDate>
      <dc:creator>luxregina</dc:creator>
      <guid isPermaLink="false">24242@/two/discussions</guid>
      <description><![CDATA[<p>Hello everyone!</p>

<p>I'm building a prototype for an <a href="https://arduboy.com/" target="_blank" rel="nofollow">https://arduboy.com/</a> game
A video of what's playable so far can be seen here: <span class="VideoWrap"><span class="Video YouTube" id="youtube-HZpErpFeYKk"><span class="VideoPreview"><a href="http://youtube.com/watch?v=HZpErpFeYKk"><img src="http://img.youtube.com/vi/HZpErpFeYKk/0.jpg" width="640" height="385" border="0" /></a></span><span class="VideoPlayer"></span></span></span></p>

<p>I'm developing the prototype using Processing. I was wondering if a good soul would help me translate my code to C++ which is what's needed to compile for Arduboy. It will be distributed for free, and open sourced. I'll provide the fully functional Processing code. No money involved, but the opportunity to get coding credit on hopefully a fun little game on a fun little device.</p>

<p>Some images of the game: <img src="http://www.garage-collective.com/arduboy/dark&amp;under.gif" alt="" /></p>
]]></description>
   </item>
   <item>
      <title>Thu tuc lap mang Internet va truyen hinh cap quang FPT</title>
      <link>https://forum.processing.org/two/discussion/23743/thu-tuc-lap-mang-internet-va-truyen-hinh-cap-quang-fpt</link>
      <pubDate>Tue, 08 Aug 2017 04:05:08 +0000</pubDate>
      <dc:creator>snowfun87</dc:creator>
      <guid isPermaLink="false">23743@/two/discussions</guid>
      <description><![CDATA[<p>Ngoai viec dang ky lap dat mang Internet cap quang cua FPT, co rat nhieu khach hang, dac biet la cac ho gia dinh, con rat quan tam den thu tuc lap mang Internet va truyen hinh cap quang FPT, de vua dap ung nhu cau hoc tap, lam viec online vua dap ung nhu cau giai tri qua truyen hinh cho moi thanh vien trong gia dinh. Xem chi tiet ve dich vu internet fpt tai day: <a rel="nofollow" href="https://internetfpt.vn">https://internetfpt.vn</a></p>

<p>Vay thu tuc dang ky lap mang Internet va truyen hinh cap quang FPT Telecom nhu the nao, can phai luu y van de gi trong qua trinh dang ky lap dat hay khong? Hay danh mot chut thoi gian de theo doi chi tiet trong bai viet duoi day cac ban nhe!
Click image for larger version</p>

<p><img src="https://www.broadbandtvnews.com/wp-content/uploads/2011/09/LG_connectedtv.jpg" alt="" /></p>

<p><em>Thu tuc lap mang Internet va truyen hinh cap quang FPT nhu the nao?</em></p>

<p><strong>Thu tuc lap mang Internet va truyen hinh cap quang FPT</strong></p>

<p>Dap ung nhu cau dang ky dong thoi mang Internet va truyen hinh cap quang FPT Telecom cua dong dao khach hang hien nay, FPT Telecom da toi gian hoa moi thu tuc giay to dang ky lap dat mang Internet va truyen hinh cho khach hang, giup quy khach hang co the nhanh chong lap dat duoc ca mang Internet cung nhu truyen hinh thong minh trong thoi gian ngan nhat, khong mat nhieu thoi gian cho doi nhu cac don vi cung cap dich vu khac.</p>

<p>---&gt;&gt; Tham khao bang gia cac goi cuoc cap quang fpt tai day: <a rel="nofollow" href="https://www.linkedin.com/pulse/bang-gia-cac-goi-cuoc-cap-quang-fpt-huy-duong/">https://www.linkedin.com/pulse/bang-gia-cac-goi-cuoc-cap-quang-fpt-huy-duong/</a></p>

<p>Duoi day la cac buoc dang ky lap dat mang Internet cap quang va truyen hinh thong minh cua FPT ma khach hang co the tham khao va ap dung khi co nhu cau dang ky lap dat hai dich vu nay cua FPT Telecom:</p>

<ul>
<li>Buoc 1: Voi khach hang la ca nhan dang ky lap dat combo mang Internet cap quang va truyen hinh thong minh cua FPT Telecom, ban can chuan bi ban sao Chung minh thu nhan dan hoac ho chieu cung voi ban sao cua so ho khau</li>
<li>Buoc 2: Quy khach hang lien he truc tiep voi so tong dai dang ky lap dat mang FPT Telecom de duoc cac tong dai vien tu van chi tiet ve goi cuoc combo phu hop voi nhu cau su dung cua quy khach hang cung nhu cac chuong trinh khuyen mai di kem theo goi cuoc giup khach hang nam bat duoc day du thong tin chi tiet ve cac goi cuoc phu hop voi nhu cau su dung</li>
<li>Buoc 3: Sau khi thong nhat duoc thoi gian, dia chi dang ky lap dat mang Internet va truyen hinh thong minh FPT, nhan vien ky thuat cua FPT Telecom se den tan dia chi cua khach hang de ho tro Quy khach hang lam thu tuc ky ket hop dong cung nhu hen ngay gio lap dat mang va truyen hinh cho quy khach.
Click image for larger version</li>
</ul>

<p><img src="https://i.pinimg.com/564x/c6/0f/b1/c60fb1d7d3c0e111d159199649135d13.jpg" alt="" /></p>

<p><em>Can luu y gi khi lap mang Internet va truyen hinh cap quang FPT?</em></p>

<p><strong>Luu y khi lap dat mang Internet va truyen hinh cap quang cua FPT Telecom</strong></p>

<p>Trong qua trinh dang ky lap dat mang Internet va truyen hinh cap quang cua FPT Telecom, quy khach hang can luu y mot so van de duoi day:</p>

<ul>
<li>De tim hieu thong tin chi tiet ve cac goi cuoc combo bao gom ca dang ky lap dat mang cung nhu truyen hinh cap quang cua FPT Telecom, Quy khach tot nhat nen lien he truc tiep voi tong dai FPT Telecom. Cac tong dai vien se tiep nhan cuoc goi cua quy khach va tu van truc tiep moi thong tin chi tiet ve cac van de ma quy khach hang ban khoan thac mac</li>
<li>FPT Telecom ho tro quy khach hang ky ket hop dong tai nha, do do khach hang khong can phai den tan dia chi van phong giao dich cua FPT Telecom de lam hop dong. Dieu nay giup quy khach hang tiet kiem toi da thoi gian cong suc</li>
<li>Thong thuong thoi gian FPT Telecom tien hanh lap dat mang cho quy khach hang la tu 1 den 3 ngay sau khi ky ket hop dong</li>
</ul>

<p>Tren day la nhung thong tin chi tiet ve thu tuc quy trinh dang ky lap dat mang Internet va goi cuoc truyen hinh cap quang cho khach hang cua FPT Telecom cung voi mot so van de can luu y trong qua trinh nay.</p>

<p>Hi vong voi nhung thong tin chi tiet tren day, cac ban da co the chu dong lua chon goi cuoc phu hop voi nhu cau su dung cung nhu biet quy trinh dang ky lap dat mang Internet va truyen hinh cua FPT nhu the nao de sap xep thoi gian hop ly khi co nhu cau dang ky mang va truyen hinh cua FPT Telecom.</p>

<p>Neu ban dang su dung internet cua fpt telecom va can duoc ho tro, hay lien he so tong dai fpt tai day: <a rel="nofollow" href="https://www.linkedin.com/company/tong-dai-fpt-telecom/">https://www.linkedin.com/company/tong-dai-fpt-telecom/</a></p>
]]></description>
   </item>
   <item>
      <title>Navier-Stokes implementation from Jos Stam in 3D</title>
      <link>https://forum.processing.org/two/discussion/23347/navier-stokes-implementation-from-jos-stam-in-3d</link>
      <pubDate>Fri, 07 Jul 2017 11:33:57 +0000</pubDate>
      <dc:creator>Stanlepunk</dc:creator>
      <guid isPermaLink="false">23347@/two/discussions</guid>
      <description><![CDATA[<p>I try to translate a Jos Stam work about the fluid in 3D, I found a C++ code, but the translation don't work...I try to find where is my mistake, but every thing seems ok... but not.
And I found no Java or Processing code for a 3D model, so if any body have a time to look in my code, that's be awesome !</p>

<p>Thx</p>

<p><a href="https://www.dropbox.com/s/u5rtclf1kdux2o9/NS_2D_3D_17_7_6.zip?dl=0" target="_blank" rel="nofollow">https://www.dropbox.com/s/u5rtclf1kdux2o9/NS_2D_3D_17_7_6.zip?dl=0</a> [DEAD LINK]</p>
]]></description>
   </item>
   <item>
      <title>parking project c++ any help plz</title>
      <link>https://forum.processing.org/two/discussion/22335/parking-project-c-any-help-plz</link>
      <pubDate>Mon, 01 May 2017 23:59:41 +0000</pubDate>
      <dc:creator>quickreflex</dc:creator>
      <guid isPermaLink="false">22335@/two/discussions</guid>
      <description><![CDATA[<p>Each parking opens from 8:00 a.m. till 8:00 p.m.</p>

<p> The first parking (B- biggest parking area), can accommodate 15 cars in a column</p>

<p> The second parking (M- middle parking area), can accommodate 10 cars in a column</p>

<p> The first parking (S- smallest parking area), can accommodate 5 cars in each column</p>

<p> The first row in each parking is reserved for the faculty and staff</p>

<p> Each parking has the same number of rows per column</p>

<p> To park you should specify the parking area as B, M, or S and the parking time. The system will check for the availability. If a parking slot is available the system will allow the user to park his car. If not, the system will redirect the user to another parking. If no parking slot is available at the three parkings the system will ask the user if he would like to park in a column reserved for cars that leave at a later time. The user may not choose to park at a time earlier than the one he/she specified at the beginning.</p>

<p> The system should provide the following information about the three parkings:</p>

<p> The total number of parked cars at a specific hour</p>

<p> The number of parked cars in each parking</p>

<p> The number of available parking slots</p>

<p> View the three parking area.</p>

<p> The number of rejected parking request</p>
]]></description>
   </item>
   <item>
      <title>Howto call from c++ a module of processing</title>
      <link>https://forum.processing.org/two/discussion/19107/howto-call-from-c-a-module-of-processing</link>
      <pubDate>Fri, 18 Nov 2016 02:16:41 +0000</pubDate>
      <dc:creator>laimperiestro</dc:creator>
      <guid isPermaLink="false">19107@/two/discussions</guid>
      <description><![CDATA[<p>Hello:</p>

<p>Is it possible to call from c++ a module of processing.  I mean I would have a menu in c++ call something from processing and get back to it, perphaps returning some data from it</p>

<p>Looking forward comments</p>

<p>Regards</p>

<p>Julio Dorado</p>
]]></description>
   </item>
   <item>
      <title>Segmentation fault (core dumped) image processing c++/opencv</title>
      <link>https://forum.processing.org/two/discussion/15824/segmentation-fault-core-dumped-image-processing-c-opencv</link>
      <pubDate>Sun, 03 Apr 2016 16:42:33 +0000</pubDate>
      <dc:creator>Amoun</dc:creator>
      <guid isPermaLink="false">15824@/two/discussions</guid>
      <description><![CDATA[<p>I want to apply a smooth to an image,for that purpose I create the function "sum" Here's my code</p>

<pre><code>double sum(cv::Mat img, int startedX, int startedY, int w) {
  double res = 0;
  std::cout &lt;&lt; "startedX= " &lt;&lt; startedX &lt;&lt; "/ startedY= " &lt;&lt; startedY &lt;&lt;  std::endl; 
  for (int i = startedX - ((w - 1) / 2); i &lt; startedX + ((w + 1) / 2); i++) {
    std::cout &lt;&lt; "i= " &lt;&lt; i &lt;&lt;  std::endl;    
    for (int j = startedY - ((w - 1) / 2) ; j &lt; startedY + ((w + 1) / 2); j++) {
      std::cout &lt;&lt; " j= " &lt;&lt; j &lt;&lt;  std::endl;
      if ((i &gt;= 0 &amp;&amp; i &lt; img.size().width) &amp;&amp; (j &gt;= 0  &amp;&amp; j &lt; img.size().height)) {      
        res += img.at&lt;float&gt;(i,j);
      }
    }
  }
  return res;
}
</code></pre>

<p>This is a portion of my main function where the program crashes :</p>

<pre><code>for (int k = 0; k &lt; imgSource.size().width; k++) {
  for (int l = 0; l &lt; imgSource.size().height; l++) {
    if( (k &gt;= 0 &amp;&amp; k &lt; imgSource.size().width) &amp;&amp; (l &gt;= 0  &amp;&amp; l &lt; imgSource.size().height) ) {
      std::cout &lt;&lt; "k= " &lt;&lt; k &lt;&lt;"  l= " &lt;&lt; l &lt;&lt; " wmax= " &lt;&lt; wmax &lt;&lt; std::endl; 
      newImgMax.at&lt;float&gt;(k,l) =(float)sum(imgMax, k, l, wmax) / (wmax * wmax);
    }
  }
}
</code></pre>

<p>for k=0 and l=0 the program works fine and returns a value but for k=0 and l=1 the call of the function(sum(imgMax,0,1,1)) doesn't pass,it crashes and shows a segmentation fault core dumped.This is my output:</p>

<pre><code>k= 0  l= 0 wmax= 1
startedX= 0/ startedY= 0
i= 0
j= 0
k= 0  l= 1 wmax= 1
Segmentation fault (core dumped)
</code></pre>
]]></description>
   </item>
   <item>
      <title>using c++ library in processing.org</title>
      <link>https://forum.processing.org/two/discussion/11256/using-c-library-in-processing-org</link>
      <pubDate>Thu, 11 Jun 2015 02:29:37 +0000</pubDate>
      <dc:creator>user93</dc:creator>
      <guid isPermaLink="false">11256@/two/discussions</guid>
      <description><![CDATA[<p>Is it possible to write processing library in c++ and access it in regular sketch . If it is done like that would it speed up the sketch? and are there any processing libraries that does that?</p>
]]></description>
   </item>
   <item>
      <title>How and when does processing delete objects</title>
      <link>https://forum.processing.org/two/discussion/11398/how-and-when-does-processing-delete-objects</link>
      <pubDate>Mon, 22 Jun 2015 08:27:53 +0000</pubDate>
      <dc:creator>nikolaj</dc:creator>
      <guid isPermaLink="false">11398@/two/discussions</guid>
      <description><![CDATA[<p>In processing the word <code>new</code> initializes a new instance of an object, for instance</p>

<pre><code>Cat myCat = new Cat()
</code></pre>

<p>Means make a new object, from the class Cat, which can be accesed by the name myCat.</p>

<p>Making a new object of the class Cat, means allocating memory to store all the variables in the class Cat, the location of this data, (its adress) is then stored at the variable myCat. At some point, the object cat, won't be used anymore (at the latest when the program is terminated), then the allocated memory must be freed, but you can't write in the code when, and how you want to do that.</p>

<p>In the programming language C++ ,  you will have to  use the keyword <code>delete</code> (or <code>delete[]</code>) to delete each of the objects you initialized using <code>new</code>.  In C++ you also get to make a destructer-function when you make a class.</p>

<p>In processing you can't delete objects manually, so i asume, it happens automatically, but i would like to know how it works. And what about objects stored in other objects, or if more objects of the same or different class, are storring the same other object in them?</p>

<p>and are there a way to manually delete objects?</p>
]]></description>
   </item>
   <item>
      <title>Returning value from keyPressed</title>
      <link>https://forum.processing.org/two/discussion/10454/returning-value-from-keypressed</link>
      <pubDate>Wed, 22 Apr 2015 11:55:44 +0000</pubDate>
      <dc:creator>Mr_Matten</dc:creator>
      <guid isPermaLink="false">10454@/two/discussions</guid>
      <description><![CDATA[<p>I need a way to return a value from keyPressed (or some user input from keyboard) stored in a variable and have not been able to find any way of doing so. I would like it to be something like below. I'm new to Processing, but have done a bit of C++, so I am trying to find a way around cin &gt;&gt; from C++.</p>

<p><code>String keyPressed() {
  if (key == '\n' ) {
    saved = typing;
    typing = ""; 
  } else {
    typing = typing + key; 
  }
  return saved;
}</code></p>
]]></description>
   </item>
   <item>
      <title>Getpixel equivalent in Processing</title>
      <link>https://forum.processing.org/two/discussion/9115/getpixel-equivalent-in-processing</link>
      <pubDate>Wed, 21 Jan 2015 17:05:04 +0000</pubDate>
      <dc:creator>srinag</dc:creator>
      <guid isPermaLink="false">9115@/two/discussions</guid>
      <description><![CDATA[<p>Getpixel returns the color of the pixel in c++. Is there an equivalent in Processing..? if not is there any mechanism to get pixel details? Thankyou in adv!</p>
]]></description>
   </item>
   <item>
      <title>Wrapping C++ code with SWIG to be used in Processing</title>
      <link>https://forum.processing.org/two/discussion/7890/wrapping-c-code-with-swig-to-be-used-in-processing</link>
      <pubDate>Fri, 31 Oct 2014 04:35:26 +0000</pubDate>
      <dc:creator>miquel</dc:creator>
      <guid isPermaLink="false">7890@/two/discussions</guid>
      <description><![CDATA[<p>Hi,</p>

<p>I'd like to use some C++ libraries in a Processing project but I am not sure how to do it (I am completely newbie in Processing and Java).</p>

<p>The way I proceeded is by using SWIG to create a shared library (.so) that can be then loaded (using the System.load command) in a Java application in the same way as explained in the tutorial:</p>

<p><a href="http://www.swig.org/tutorial.html" target="_blank" rel="nofollow">http://www.swig.org/tutorial.html</a></p>

<p>This might be a super basic question, but my doubt is (I have not been able to find a solution in Google or Stackoverflow) how do I import this library into Processing?</p>

<p>Using the example provided in the link, neither:</p>

<pre><code>System.load("/path/to/example.so") # I compiled the library with .so rather than .dll, I am using Mac OS X
</code></pre>

<p>nor</p>

<pre><code>System.loadLibrary("example") # Putting the example.so file in the library folder
</code></pre>

<p>seem to actually import the library. When I try to do something like:</p>

<pre><code>double var = example.fact(5); 
</code></pre>

<p>Processing complains saying that "Cannot find anything named example". Could you help me with this? Any hint on how to import .so libraries in Processing would be greatly appreciated.</p>

<p>Many thanks!</p>

<p><a href="/two/profile/Tryskele">@Tryskele</a></p>
]]></description>
   </item>
   <item>
      <title>Best c++ tutorials?</title>
      <link>https://forum.processing.org/two/discussion/7518/best-c-tutorials</link>
      <pubDate>Thu, 09 Oct 2014 00:42:42 +0000</pubDate>
      <dc:creator>TechWiz777</dc:creator>
      <guid isPermaLink="false">7518@/two/discussions</guid>
      <description><![CDATA[<p>Hi, does anyone know where the best c++ tutorials are? Links would be preferable, thanks.</p>
]]></description>
   </item>
   <item>
      <title>System() call to .exe Processing file doesn't work!</title>
      <link>https://forum.processing.org/two/discussion/6460/system-call-to-exe-processing-file-doesn-t-work</link>
      <pubDate>Wed, 23 Jul 2014 02:49:52 +0000</pubDate>
      <dc:creator>nsathiya</dc:creator>
      <guid isPermaLink="false">6460@/two/discussions</guid>
      <description><![CDATA[<p>Hi,</p>

<p>I exported my Processing project, which renders as P3d, successfully. The .exe file works, even from the command line. I need to run this executable from a c++ program. When I call system("Project_name.exe") on it, it doesn't open up the file. I checked the path by opening other types of files like .txt successfully. I also tried it with system("start Project_name.exe")and it gives the same input.</p>

<p>Is it because its not reading java with the app properly? The java folder is also in the same directory. Please help!</p>

<p>Note: I understand system calls are not the best approach. I also used CreateProcess but was not successful. I think the file is opened but the frame and contents doesn't display.</p>

<p>Thank you</p>
]]></description>
   </item>
   <item>
      <title>Using Processing program in C++</title>
      <link>https://forum.processing.org/two/discussion/6435/using-processing-program-in-c</link>
      <pubDate>Mon, 21 Jul 2014 16:50:02 +0000</pubDate>
      <dc:creator>nsathiya</dc:creator>
      <guid isPermaLink="false">6435@/two/discussions</guid>
      <description><![CDATA[<p>Hi,</p>

<p>I have a Processing program that takes care of some image processing work once the pictures are taken. However the sdk for the camera is in c++. Ideally, I would like to call Processing functions from my c++ program. But a workaround is also to call the Processing program to run once the pictures are taken, automatically from c++.</p>

<p>Can I please get some guidance on how to do this? One possible approach might be to turn Processing project into a jar file and call it from the c++ program to run. Is this doable?</p>

<p>Thanks in advance</p>
]]></description>
   </item>
   <item>
      <title>Invoking Native Code on OS X</title>
      <link>https://forum.processing.org/two/discussion/2220/invoking-native-code-on-os-x</link>
      <pubDate>Thu, 19 Dec 2013 13:31:50 +0000</pubDate>
      <dc:creator>tiernep</dc:creator>
      <guid isPermaLink="false">2220@/two/discussions</guid>
      <description><![CDATA[<p>I'm a developer at Autodesk interested in exposing a subset of our surface and solid modeling kernel to the Processing community: the ACIS kernel used in AutoCAD, CATIA, SolidWorks, NX Unigraphics, Revit, and parts of Alias and Maya. A java library has been written, but I'm running into trouble loading this library in Processing.</p>

<p>The specific error I'm getting is:</p>

<p><code>A library relies on native code that's not available.
Or only works properly when the sketch is run as a 32-bit  application</code></p>

<p>My library loads our internal dylib using JNI:</p>

<p><code>public class LibGForProcessing {    
    static {
        System.loadLibrary("LibG");
    }
...
}</code></p>

<p>To be used in a Processing sketch as follows:</p>

<p><code>import autodesk.libg.*;
LibGForProcessing l = new LibGForProcessing(this);
void setup() {
  size(400, 400);
  Point p = Point.by_coordinates(0, 0, 0); 
}
void draw() {
  background(0);
}</code></p>

<p>I've verified that I can run the library on command line java (Java HotSpot(TM) 64-Bit Server VM) with the following script:</p>

<p><code>import autodesk.libg.*;
class LibGJavaTest {
    static {
        System.loadLibrary("LibG");
    }
    public static void main(String[] args) {
        LibG.start_asm_library();
        Point p1 = Point.by_coordinates(0, 0, 0);
        Point p2 = Point.by_coordinates(10, 10, 0);
        Line line = Line.by_start_point_end_point(p1, p2);
        double d = line.length();
        System.out.println("d is " + d);
        LibG.end_asm_library();
    }
}</code></p>

<p>A have a feeling that the problem lies with OS X not being able to find one of the dependencies of the library, of which there are many. Here's the otool output for the dylib I load with JNI:</p>

<p><code>bash-3.2$ otool -L libLibG.dylib 
libLibG.dylib:
        .//libLibG.dylib (compatibility version 0.0.0, current version 0.0.0)
        ./bin/libdsnetwork.dylib (compatibility version 0.0.0, current version 0.0.0)
        ./bin/libgcore.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
        <a href="/two/profile/rpath">@rpath</a>/libASMahl220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMbase220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMblnd220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMbool220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMcovr220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMcstr220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMct220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMdatax220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMdefm220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMeulr220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMfct220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMfrec220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMga220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMheal220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMimport220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMintr220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMkern220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMlaw220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMlop220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMlopt220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMmatrix220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMnpch220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMofst220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMoper220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMpid220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMrbase220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMrbi220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMrem220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMsbap220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMsbool220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMshl220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMskin220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMswp220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMtopt220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMtwk220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMufld220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        <a href="/two/profile/rpath">@rpath</a>/libASMweld220A.dylib (compatibility version 0.0.0, current version 2200.18.11)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)</code></p>

<p>I've created a bin directory inside of the lib directory of the library folder, containing both libdsnetwork.dylib and libgcore.dylib</p>

<p>Could anyone on the forum help with the following questions:</p>

<ul>
<li>Is there any way to set the <a href="/two/profile/rpath">@rpath</a> for this Processing library?</li>
<li>Where does JNI look for libraries when it's invoked inside of Processing? Does ./bin resolve to the lib folder of the library folder, or is it somewhere in the main Processing.app folder?</li>
<li>Is there any way to get a more detailed output from Processing to see which library it's failing to load? I've run Processing inside of dtruss and I can't see any calls to load a library.</li>
</ul>
]]></description>
   </item>
   <item>
      <title>Using data from gaze tracking glasses in Processing</title>
      <link>https://forum.processing.org/two/discussion/3252/using-data-from-gaze-tracking-glasses-in-processing</link>
      <pubDate>Mon, 24 Feb 2014 09:37:47 +0000</pubDate>
      <dc:creator>ruppy99</dc:creator>
      <guid isPermaLink="false">3252@/two/discussions</guid>
      <description><![CDATA[<p>I'm a complete newbie to processing so please forgive me if I'm missing something really obvious here.</p>

<p>I have a set of gaze tracking glasses which using an SDK in C++. It gives x and y data to where you are looking. I'm wondering how I could use that data to navigate a computer screen. Basic controls like zooming or scrolling and how to integrate the C++ programme into processing</p>
]]></description>
   </item>
   </channel>
</rss>