For Cmoka you will have to download and build it from source, like so:<br><br>$wget  <a href="https://open.cryptomilk.org/attachments/download/7/cmocka-0.2.0.tar.gz">https://open.cryptomilk.org/attachments/download/7/cmocka-0.2.0.tar.gz</a><br>
$tar -xvf  cmocka-0.2.0.tar.gz<br>$mkdir build<br>$cd build/<br>$cmake ../cmocka-0.2.0/<br>$make<br><br>and then pass the options to cmake:<br><br>-DCMOCKA_LIBRARIES=/blah/build/src/libcmocka.so -DCMOCKA_INCLUDE_DIR=/blah/cmocka-0.2.0/include<br>
<br><br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 10:16 PM, Muljadi Budiman <span dir="ltr"><<a href="mailto:mul@radialogica.com" target="_blank">mul@radialogica.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi guys.<div><br></div><div>Just subscribed to the list, so greetings to everyone.</div><div><br></div><div>I have a question on how to set up a proper dev environment to build the desktop sync client.  Building for Windows is desirable, but willing to start from just building successfully in a Linux environment.</div>
<div><br></div><div>I'm following the instructions as defined here: <a href="http://doc.owncloud.org/desktop/1.2/building.html" target="_blank">http://doc.owncloud.org/desktop/1.2/building.html</a></div><div><br></div>
<div>I have set up a 32-bit OpenSuse 12.2 linux system as well as a 64-bit CentOS 6.3 system (both in VMs running in Parallels with OSX Mountain Lion as host).</div><div><br></div><div>I'm trying to follow the Generic Build Instructions (<a href="http://doc.owncloud.org/desktop/1.2/building.html#generic-build-instructions" target="_blank">http://doc.owncloud.org/desktop/1.2/building.html#generic-build-instructions</a>), managed to clone ocsync and mirall.  However, building csync fails with the following error:</div>
<div><br></div><div>In openSUSE, running the cmake command line shows the following:</div><div><div></div><blockquote type="cite"><div>-- Could NOT find CMocka (missing:  CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR) </div><div>-- Found SQLite3: /usr/lib/libsqlite3.so</div>
<div>CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):</div><div>  Could NOT find Iniparser (missing: INIPARSER_LIBRARIES</div><div>  INIPARSER_INCLUDE_DIRS)</div><div>Call Stack (most recent call first):</div>
<div>  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)</div><div>  cmake/Modules/FindIniparser.cmake:36 (find_package_handle_standard_args)</div><div>  src/CMakeLists.txt:14 (find_package)</div>
</blockquote><div><br></div></div><div>The documentation specifies I need for resolve some dependencies to sqlite3 and iniparser.  I can't seem to find any repo that has iniparser - Can't seem to find any repo that has cmocka as well.  So any help here would be appreciated.</div>
<div><br></div><div>In CentOS, running the cmake command line shows the following:</div><div><div></div><div><b style="font-family:Times"><blockquote type="cite"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">-- Could NOT find CMocka  (missing:  CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR)</span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">-- checking for module 'sqlite3'</span><br><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">--   package 'sqlite3' not found</span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">CMake Error at cmake/Modules/FindSQLite3.cmake:82 (message):</span><br><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">  Could not find SQLite3</span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Call Stack (most recent call first):</span><br><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">  src/CMakeLists.txt:13 (find_package)</span></blockquote>
</b></div><div><br></div></div><div>Again, cannot find where to install cmocka from.  However, it also complains that sqlite is not installed.  It seems to be installed though:</div><div><b style="font-family:Times"><blockquote type="cite">
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">[mbudiman@localhost ocsync-build]$ su -c 'yum install sqlite'</span><br><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Password:</span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Loaded plugins: fastestmirror, refresh-packagekit, security</span><br><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Loading mirror speeds from cached hostfile</span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> * base: <a href="http://mirror.trouble-free.net" target="_blank">mirror.trouble-free.net</a></span><br><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> * epel: <a href="http://mirror.metrocast.net" target="_blank">mirror.metrocast.net</a></span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> * extras: <a href="http://mirrors.advancedhosters.com" target="_blank">mirrors.advancedhosters.com</a></span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> * updates: <a href="http://centos.mirror.ndchost.com" target="_blank">centos.mirror.ndchost.com</a></span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">isv_ownCloud_devel                                   <span style="white-space:pre-wrap"> </span>| 1.3 kB <span style="white-space:pre-wrap">       </span>00:00<span style="white-space:pre-wrap">   </span> </span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Setting up Install Process</span><br><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Package sqlite-3.6.20-1.el6.x86_64 already installed and latest version</span><br>
<span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Nothing to do</span></blockquote></b></div><div><b style="font-family:Times"><span style="font-size:15px;font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><br>
</span></b></div><div><b style="font-family:Times"><span style="font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Any help to get compilation to work will be greatly appreciated.  I know enough about Linux, but my main expertise is in Windows development, so my apologies if my questions seem too beginner.</span></b></div>
<div><b style="font-family:Times"><span style="font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><br></span></b></div><div><b style="font-family:Times"><span style="font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Thanks.</span></b></div>
<span class="HOEnZb"><font color="#888888"><div><b style="font-family:Times"><span style="font-family:Arial;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Muljadi Budiman.</span></b></div></font></span></div>
<br>_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
<br></blockquote></div><br>