Compilação fazer o executável deste código fonte

Aqui substuiremos elementos gráficos pelos nossas logos.
Windows (cross-compile)

Due to the amount of dependencies that csync entails, building the client for Windows is currently only supported on openSUSE, by using the MinGW cross compiler. You can set up openSUSE 12.1, 12.2 or 13.1 in a virtual machine if you do not have it installed already.

In order to cross-compile, the following repositories need to be added via YaST or zypper ar (adjust when using openSUSE 12.2 or 13.1):
zypper ar
zypper ar

Next, install the cross-compiler packages and the cross-compiled dependencies:
zypper install cmake make mingw32-cross-binutils mingw32-cross-cpp mingw32-cross-gcc \
              mingw32-cross-gcc-c++ mingw32-cross-pkg-config mingw32-filesystem \
              mingw32-headers mingw32-runtime site-config mingw32-libqt4-sql \
              mingw32-libqt4-sql-sqlite mingw32-libsqlite-devel \
              mingw32-dlfcn-devel mingw32-libssh2-devel kdewin-png2ico \
              mingw32-libqt4 mingw32-libqt4-devel mingw32-libgcrypt \
              mingw32-libgnutls mingw32-libneon-openssl mingw32-libneon-devel \
              mingw32-libbeecrypt mingw32-libopenssl mingw32-openssl \
              mingw32-libpng-devel mingw32-libsqlite mingw32-qtkeychain \
              mingw32-qtkeychain-devel mingw32-dlfcn mingw32-libintl-devel \
              mingw32-libneon-devel mingw32-libopenssl-devel mingw32-libproxy-devel \
              mingw32-libxml2-devel mingw32-zlib-devel

For the installer, the NSIS installer package is also required:
zypper install mingw32-cross-nsis

You will also need to manually download and install the following files with rpm -ivh <package> (They will also work with openSUSE 12.2 and newer):
rpm -ihv
rpm -ihv

Now, follow the generic build instructions, but pay attention to the following differences:
For building libocsync, you need to use mingw32-cmake instead of cmake.
For building mirall, you need to use cmake again, but make sure to append the following parameter:
Also, you need to specify absolute pathes for CSYNC_LIBRARY_PATH and CSYNC_LIBRARY_PATH when running cmake on mirall.

Finally, just build by running make. Make package will produce an nsis-based installer, provided the nsis mingw32 packages are installed.
Generic Build Instructions¶

The ownCloud Client requires Mirall and CSync. Mirall is the GUI frontend, while CSync is responsible for handling the actual synchronization process.

At the moment, ownCloud Client requires a forked version of CSync. Both CMake and Mirall can be downloaded at ownCloud's Client Download Page.

If you want to build the leading edge version of the client, you should use the latest versions of Mirall and CSync via Git, like so:
git clone git:// ocsync
git clone git://

Next, create build directories:
mkdir ocsync-build
mkdir mirall-build

This guide assumes that all directories are residing next to each other. Next, make sure to check out the branch called 'ocsync' in the newly checked out ocsync directory:
cd ocsync
git checkout ocsync

The first package to build is CSync:
cd ocsync-build
cmake -DCMAKE_BUILD_TYPE="Debug" ../Ocsync

You probably have to satisfy some dependencies. Make sure to install all the needed development packages. You will need sqlite3 as well as neon for the ownCloud module.

Take special care about neon. If that is missing, the cmake run will succeed but silently not build the ownCloud module.

Libssh and libsmbclient are optional and not required for the client to work. If you want to install the client, run make install as a final step.

Next, we build mirall:
cd ../Mirall-build
cmake -DCMAKE_BUILD_TYPE="Debug" ../Mirall \
      -DCSYNC_BUILD_PATH=/path/to/ocsync-build \

Note that it is important to use absolute pathes for the include- and library directories. If this succeeds, call make. The owncloud binary should appear in the bin directory.

You can also run make install to install the client to /usr/local/bin.

To build an installer/app bundle (requires the mingw32-cross-nsis packages on Windows):
make package

Known cmake parameters:
WITH_DOC=TRUE: create doc and manpages via running make; also adds install statements to be able to install it via make install.
BUILD_WITH_QT4=OFF and CMAKE_PREFIX_PATH=/path/to/Qt5.2.0/5.2.0/yourarch/lib/cmake/ : Build with Qt5 instead of Qt4
QTKEYCHAIN_LIBRARY=/path/to/qtkeychain.dylib : Use QtKeychain for stored credentials

Category: Programación y Tecnología






Freelancers interesados

Publicado: Hace 4 años

Plazo: 6 días

Crea tu propio proyecto

¿Buscas un freelancer para realizar un proyecto similar? Crea tu propio proyecto y recibirás ofertas de los mejores freelancers.

Freelancers que ya aplicaron para este trabajo

Jeferson F. G. Determined to solve problems. Systems analysts not only as a profession but as a different way of looking at things Curious since childhood is interested in knowing how they worked from electronic equipment to c... + detalles