[owncloud-devel] owncloud-client 1.8 BUILD under OS X Yosemite

zendel fernandez zendel.fernandez at gmail.com
Wed Jun 10 05:42:29 GMT 2015


hi!

While making the own cloud client under OS-X (Yosemite)

1. As per the DOCO

brew install $(brew deps owncloud-client)


Step Fails to execute.

Hence Managed to install QT5, QTKEYCHAIN, OPENSSL using brew


2. cmake (Succeeds as below)


cmake -DCMAKE_BUILD_TYPE="Debug"
-DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2a-1
-DOPENSSL_LIBRARIES=/usr/local/Cellar/openssl/1.0.2a-1/lib ../client


[Succeeds as below]


O/P

----

-- The C compiler identification is AppleClang 6.1.0.6020053

-- The CXX compiler identification is AppleClang 6.1.0.6020053

-- Check for working C compiler:
/Library/Developer/CommandLineTools/usr/bin/cc

-- Check for working C compiler:
/Library/Developer/CommandLineTools/usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Check for working CXX compiler:
/Library/Developer/CommandLineTools/usr/bin/c++

-- Check for working CXX compiler:
/Library/Developer/CommandLineTools/usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Build of crashreporter disabled.

-- Found Qt5 core, checking for further dependencies...

-- Using Qt 5!

ee71024496d25e1392080a5ad2a17113bcd2e27a

-- GIT_SHA1 ee71024496d25e1392080a5ad2a17113bcd2e27a

-- Using Qt 5.4.x

-- We would not require Neon in this setup, compile without!

-- Found OpenSSL:
/usr/local/Cellar/openssl/1.0.2a-1/lib/libssl.dylib;/usr/local/Cellar/openssl/1.0.2a-1/lib/libcrypto.dylib
(found suitable version "1.0.2a", minimum required is "1.0.0")

-- Found Qt5Keychain: /usr/local/lib/libqt5keychain.dylib

-- Could NOT find Sparkle (missing:  SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)

-- Could NOT find INOTIFY (missing:  INOTIFY_INCLUDE_DIR)

-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE)

-- Could NOT find PdfLatex (missing:  PDFLATEX_EXECUTABLE)

-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")

-- checking for module 'sqlite3'

--   found sqlite3, version 3.8.5

-- Using own sqlite3 from /Users/admin/client/src/3rdparty/sqlite3

-- Performing Test WITH_FPIC

-- Performing Test WITH_FPIC - Success

-- Performing Test WITH_STACK_PROTECTOR

-- Performing Test WITH_STACK_PROTECTOR - Success

-- Looking for iconv.h

-- Looking for iconv.h - found

-- Looking for sys/iconv.h

-- Looking for sys/iconv.h - not found

-- Looking for iconv in libiconv.dylib

-- Looking for iconv in libiconv.dylib - found

-- Checking prototype iconv for HAVE_ICONV_CONST - False

-- Found Iconv: /usr/lib/libiconv.dylib

-- Using own sqlite3 from /Users/admin/client/src/3rdparty/sqlite3

-- Looking for argp.h

-- Looking for argp.h - not found

-- Looking for nanosleep in rt

-- Looking for nanosleep in rt - not found

-- Looking for clock_gettime in rt

-- Looking for clock_gettime in rt - not found

-- Looking for dlopen in dl

-- Looking for dlopen in dl - found

-- Looking for asprintf

-- Looking for asprintf - found

-- Looking for fnmatch

-- Looking for fnmatch - found

-- Looking for timegm

-- Looking for timegm - found

-- Looking for strerror_r

-- Looking for strerror_r - found

-- Looking for utimes

-- Looking for utimes - found

-- Looking for lstat

-- Looking for lstat - found

-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY

-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success

-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY

-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

-- Configuring done

CMake Error at src/gui/CMakeLists.txt:219 (add_executable):

  Cannot find source file:


    ../3rdparty/qtmacgoodies/src/macpreferenceswindow.mm


  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

  .hxx .in .txx



CMake Warning (dev):

  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake

  --help-policy CMP0042" for policy details.  Use the cmake_policy command
to

  set the policy and suppress this warning.


  MACOSX_RPATH is not specified for the following targets:


   ocsync

   owncloudync


This warning is for project developers.  Use -Wno-dev to suppress it.


-- Generating done

-- Build files have been written to: /Users/admin/client-build




3. make *(This FAILS)*

*Linking CXX executable ../../bin/owncloud.app/Contents/MacOS/owncloud*

Undefined symbols for architecture x86_64:

  "_main", referenced from:

     implicit entry/start for main executable

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see
invocation)



What's the reason for make to fail here. This error is cryptic.


Regds.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20150609/01f61e23/attachment-0001.html>


More information about the Devel mailing list