<div dir="ltr">Thanks. Trying ccache. (May also try the cross-compile...).<div><br></div><div>This is how I tried to set it up:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">sudo apt-get install ccache</font></div></blockquote><div>and put this at the end of my ~/.bashrc (perhaps not necessary for kstars?)</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">export PATH=/usr/lib/ccache:$PATH</font></div></blockquote><div><br></div><div>Then ran cmake on kstars with the following command:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo <span style="background-color:rgb(255,255,0)">-DCCACHE_SUPPORT=ON</span> ~/AstroRoot/kstars </font></div></blockquote><div>and finally</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">make -j6 kstars</font></div></blockquote><div><br></div><div>I let it run for a while and got:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">> ccache -s</font></div><div><font face="monospace">cache directory                     /home/pi/.ccache</font></div><div><font face="monospace">primary config                      /home/pi/.ccache/ccache.conf</font></div><div><font face="monospace">secondary config      (readonly)    /etc/ccache.conf</font></div><div><font face="monospace">stats updated                       Wed May 13 19:54:18 2020</font></div><div><font face="monospace">cache hit (direct)                     1</font></div><div><font face="monospace">cache hit (preprocessed)               0</font></div><div><font face="monospace">cache miss                            62</font></div><div><font face="monospace">cache hit rate                      1.59 %</font></div><div><font face="monospace">called for link                        8</font></div><div><font face="monospace">cleanups performed                     0</font></div><div><font face="monospace">files in cache                       131</font></div><div><font face="monospace">cache size                          65.4 MB</font></div><div><font face="monospace">max cache size                       5.0 GB</font></div></blockquote><div><br></div><div>then I ran 'make clean' and restarted 'make -j6 kstars' waited a little bit and got:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">> ccache -s</font></div><div><font face="monospace">cache directory                     /home/pi/.ccache</font></div><div><font face="monospace">primary config                      /home/pi/.ccache/ccache.conf</font></div><div><font face="monospace">secondary config      (readonly)    /etc/ccache.conf</font></div><div><font face="monospace">stats updated                       Wed May 13 19:57:17 2020</font></div><div><font face="monospace">cache hit (direct)                    58</font></div><div><font face="monospace">cache hit (preprocessed)               0</font></div><div><font face="monospace">cache miss                            62</font></div><div><font face="monospace">cache hit rate                     48.33 %</font></div><div><font face="monospace">called for link                       12</font></div><div><font face="monospace">cleanups performed                     0</font></div><div><font face="monospace">files in cache                       131</font></div><div><font face="monospace">cache size                          65.4 MB</font></div><div><font face="monospace">max cache size                       5.0 GB</font></div></blockquote><div><br></div><div>so seems to be working.</div><div><br></div><div>Hy</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 13, 2020 at 2:51 AM Jasem Mutlaq <<a href="mailto:mutlaqja@ikarustech.com">mutlaqja@ikarustech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Try to install ccache and enable it in CMake, it helps reduce compilation times.<div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div>--</div><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 13, 2020 at 5:56 AM Hy Murveit <<a href="mailto:murveit@gmail.com" target="_blank">murveit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><b>TL;DR</b> KStars makefiles seem to recompile everything (or a lot anyway) when seemingly small 'git pulls' come in. Wondering if there's something wrong with the setup. I'm not a cmake wizard.</div><div><br></div><b>Background:</b> I compile/test KStars mostly on my MacbookPro, and I find the compile times very reasonable there. However, when I am ready to test something with a telescope, I compile and run on my 4Gb RPi4. There it takes about 40 minutes for me to completely build the system (I run 'make -j6 kstars' and am compiling RelWithDebInfo) and for some reason, it often seems to build most of the system.<div><br></div><div><b>Gripe: </b>When I change a single .cpp in an Ekos module, yes, it seems to work fine, just recompile that file, then build the library, then build the binary. However, often I seem relatively small updates come in, and I notice very long compiles.  Do others notice this? I wish I could give concrete examples. Does anyone know how to analyze? E.g. is there a command to see what would be compiled (and why) before running the make? Is there a way to improve this?</div><div><br></div><div>Thanks,</div><div>Hy</div><div><br><div><br></div><div><br></div><div><br></div></div></div>
</blockquote></div>
</blockquote></div>