<div dir="ltr">Hi Dirk,<br><div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
</span>In general, please do not cross post. If you decide this is the better venue,<br>
maybe delete the post on SO?<br></blockquote><div><br></div><div>Just deleted the post on SO.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
| standard directory to /home/thenoob/tmp/RInside/src_cmake. Create a separate<br>
| build directory /home/thenoob/tmp/RInside/build and run cmake ../src_cmake/<br>
| cmake . This runs without any error. Then run make. This spits out a bunch of<br>
| warnings, but builds the executable.<br>
|<br>
| <code><br>
<br>
</span>[... snip ...]<br>
<br>
Those look like harmless compiler warnings.<br></blockquote><div><br></div><div>I see. I was surprised that these warnings do not show up when I used the provided Makefile. That build finished without any warnings. Even though that's the only way that's supported, I'm hoping someone here uses cmake successfully to use RInside, and will be kind enough to help :)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">| However, as soon as I run the executable, it throws a segmentation fault. I<br>
| should mention that my R_HOME variable is not set and my LD_LIBRARY_PATH<br>
| contains /statdev/ext/r/current/lib64/R/lib:/statdev/ext/r/current/lib64/R/<br>
| library/RInside/lib.<br>
<br>
</span>Your non-standard locations are the like source of trouble.<br>
<span class=""><br>
| Any pointers would be great.<br>
<br>
</span>You can try to study what happens with the Makefile, and try to to make the<br>
CMake file do the same.<br>
<br>
In general, try to remain with the assumptions, eg see the these lines at the<br>
top of GNUmakefile:<br>
<br>
## comment this out if you need a different version of R,<br>
## and set set R_HOME accordingly as an environment variable<br>
R_HOME :=               $(shell R RHOME)<br>
<br>
<br>
That would appear to apply to your situation.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Thanks Dirk. I'll try to go down this path and post a solution on this list if I find one.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br></div></div></div>