help needed to build Mac client

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
42 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

Daniel Molkentin
Hi,

I have revised the build documentation.


Some general notes:

- The recommended way is using brew. You are on your own when using MacPorts.
- The add-on recipes are now hosted on ownCloud's gitHub repo, so the new syntax is "brew tap owncloud/owncloud". 
   Some recipes have been upstreamed.
- If you were using brew before, untab dschmidt/owncloud and danimo/owncloud

kwillems: Your brew issue comes from not adding the owncloud tap before trying to run install.

Please report any remaining issues that you may encounter.

Daniel

Am 16.05.2013 um 23:50 schrieb kwillems:

As far as I can see it can't be installed via Macports or Homebrew.
I tried ... sudo port install qtkeychain and brew install qtkeychain. The
can't find it.

--
www.owncloud.com - Your Data, Your Cloud, Your Way!

ownCloud GmbH, GF: Markus Rex, Holger Dyroff
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)


_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
Hi Daniel,

Are you sure it is 'brew install $(brew deps ocsync)'?
Thats giving these errors:
Error: class "Ocsync" expected but not found in ocsync.rb
Error: No available formula for ocsync
Error: No available formula for double-check

Koen
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

Daniel Molkentin
Yes, but there was a typo in the formula, please update (brew update), and try again.

Am 17.05.2013 um 20:39 schrieb kwillems:

Hi Daniel,

Are you sure it is 'brew install $(brew deps ocsync)'?
Thats giving these errors:
Error: class "Ocsync" expected but not found in ocsync.rb
Error: No available formula for ocsync
Error: No available formula for double-check

Koen



--
View this message in context: http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p9361.html
Sent from the ownCloud mailing list archive at Nabble.com.
_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud

--
www.owncloud.com - Your Data, Your Cloud, Your Way!

ownCloud GmbH, GF: Markus Rex, Holger Dyroff
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)


_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
That part is working now, but still errors occur on neon:

-- checking for module 'neon'
--   package 'neon' not found
-- Could NOT find Neon (missing:  NEON_INCLUDE_DIRS)
STATUS,neon-config could not be found.
-- checking for module 'sqlite3'
--   package 'sqlite3' not found

Yesterday, compiling it myself did the job, but I guess it should be working now with the repo you build.
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
Getting closer and closer.
Here's what I run now to build the dependencies:

brew tap owncloud/owncloud
brew install $(brew deps ocsync)
brew install $(brew deps mirall)
brew install iniparser pkgconfig cmocka doxygen libssh argp-standalone
brew link neon --force
brew link readline --force
brew link sqlite --force
brew install --HEAD qtkeychain

(libssh and argp-standalone aren't really needed).

This is leaving me with 6 errors:

ocsync-build:
-- latex command LATEX_COMPILER not found but usually required. You will probably get warnings and user inetraction on doxy run.
-- makeindex command MAKEINDEX_COMPILER not found but usually required.
-- dvips command DVIPS_CONVERTER not found but usually required.

mirall-build:
-- Could NOT find INOTIFY (missing:  INOTIFY_INCLUDE_DIR)
-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE)
-- Could NOT find PdfLatex (missing:  PDFLATEX_EXECUTABLE)

The first 3 and the last one can be solved by installing texlive-latex via macports like so:
sudo port install neon texlive-latex

So the INOTIFY- and SPHINX-errors stay.

I'm not sure if the latex-thingie is necessary.
Can someone confirm that?
And what about the INOTIFY- and SPHINX-errors?
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
It's

sudo port install texlive-latex

not

sudo port install neon texlive-latex

:-)
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

Daniel Molkentin
In reply to this post by kwillems
Inotify is linuy-only. LaTeX and sphinx are only needed to build documentation.

kwillems <[hidden email]> schrieb:

>Getting closer and closer.
>Here's what I run now to build the dependencies:
>
>brew tap owncloud/owncloud
>brew install $(brew deps ocsync)
>brew install $(brew deps mirall)
>brew install iniparser pkgconfig cmocka doxygen libssh argp-standalone
>brew link neon --force
>brew link readline --force
>brew link sqlite --force
>brew install --HEAD qtkeychain
>
>(libssh and argp-standalone aren't really needed).
>
>This is leaving me with 6 errors:
>
>ocsync-build:
>-- latex command LATEX_COMPILER not found but usually required. You will
>probably get warnings and user inetraction on doxy run.
>-- makeindex command MAKEINDEX_COMPILER not found but usually required.
>-- dvips command DVIPS_CONVERTER not found but usually required.
>
>mirall-build:
>-- Could NOT find INOTIFY (missing:  INOTIFY_INCLUDE_DIR)
>-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE)
>-- Could NOT find PdfLatex (missing:  PDFLATEX_EXECUTABLE)
>
>The first 3 and the last one can be solved by installing texlive-latex via
>macports like so:
>sudo port install neon texlive-latex
>
>So the INOTIFY- and SPHINX-errors stay.
>
>I'm not sure if the latex-thingie is necessary.
>Can someone confirm that?
>And what about the INOTIFY- and SPHINX-errors?
>
>
>
>--
>View this message in context: http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p9370.html
>Sent from the ownCloud mailing list archive at Nabble.com.
>_______________________________________________
>Owncloud mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
That's great news, since that means I've completed the Mac building process.

Thanx so much for your help Daniel and Jiun !!!
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

Michael
And now document it for us. :)


On Sat, May 18, 2013 at 1:40 PM, kwillems <[hidden email]> wrote:
That's great news, since that means I've completed the Mac building process.

Thanx so much for your help Daniel and Jiun !!!



--
View this message in context: http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p9374.html
Sent from the ownCloud mailing list archive at Nabble.com.
_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud


_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
This post was updated on .
This is what I did sofar on a clean installation of Mountain Lion or Lion (in those cases I use a virtual machine so nothing wil interfere my main system).

First install Homebrew, see http://mxcl.github.io/homebrew/

Than build all necessary libraries and dependencies with the following commands:

brew tap owncloud/owncloud
brew install $(brew deps ocsync)
brew install $(brew deps mirall)
brew install iniparser pkgconfig cmocka doxygen libssh argp-standalone
brew link neon --force
brew link readline --force
brew link sqlite --force
brew install --HEAD qtkeychain

(libssh argp-standalone aren't needed).

And now you follow http://doc.owncloud.org/desktop/1.2/building.html#generic-build-instructions

That's what I did.



Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

shadowq
This has been very helpful getting this up and going! A month or so ago I successfully built the Mac client (as well as windows client in SUSE). However, when trying to build the updated client (1.2.5), I get the following error-

ocsync/modules/csync_smb.c:401:27: error: incompatible pointer types passing 'struct timeval *' to parameter of
      type 'struct timeval *' [-Werror,-Wincompatible-pointer-types]

Plus a bunch of other warnings-

ocsync/modules/csync_owncloud_recursive_propfind.c:57:6: warning: no previous prototype for function
      'clear_propfind_recursive_cache' [-Wmissing-prototypes]

ocsync/src/httpbf/src/httpbf.c:257:91: warning: format specifies type 'long' but the argument has type 'off_t'
      (aka 'long long') [-Wformat]

ocsync/src/httpbf/src/httpbf.c:257:79: warning: format specifies type 'long' but the argument has type 'off_t'
      (aka 'long long') [-Wformat]

As far as I'm aware, I haven't changed anything related to the building of ownCloud (or any building!).

Any help would be muchly appreciated. Cheers.
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
Do you get this error too when you try to compile the current version (1.3.0 beta)?
Since I don't with a clean install of OS X Mountain Lion.
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

shadowq
Thanks for the reply. I get these warnings / errors when building ocsync. Building mirall seems to succeed without any errors.

Perhaps I should attempt the build on a clean install of OSX ML instead. What virtualisation software are you using?
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

kwillems
I'm using Parallels.
I don't know if that's the best one, but I was getting used to it.
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

shadowq
I do have a parallels license somewhere. I'll find that. Thanks.
I have updated XCode since the last build. I'm now using 4.6.2. Perhaps that is causing problems with the "make" process.


On Wed, May 29, 2013 at 8:47 AM, kwillems [via ownCloud] <[hidden email]> wrote:
I'm using Parallels.
I don't know if that's the best one, but I was getting used to it.



If you reply to this email, your message will be added to the discussion below:
http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p9535.html
To unsubscribe from help needed to build Mac client, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

shadowq
So the parallels license I have is for vs 6, which doesn't support ML. I'll get around to it another time. Unless there's another reason that the "make" process is playing up?
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

shadowq
This post was updated on .
I'm still struggling to successfully build ocsync. It seems to be a samba related hold up. I've followed the instructions posted above, and all dependencies are met. I've tried this on two different Macs, both with OSX ML.

Any help would be muchly appreciated!!

Error is:

/ocsync/modules/csync_smb.c:401:27: error: incompatible pointer
      types passing 'struct timeval *' to parameter of type 'struct timeval *'
      [-Werror,-Wincompatible-pointer-types]
  return smbc_utimes(uri, (struct timeval *) times);
                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libsmbclient.h:1745:50: note: passing argument to parameter 'tbuf'
      here
int smbc_utimes(const char *url, struct timeval *tbuf);
                                                                  ^
1 error generated.
make[2]: *** [modules/CMakeFiles/ocsync_smb.dir/csync_smb.c.o] Error 1
make[1]: *** [modules/CMakeFiles/ocsync_smb.dir/all] Error 2
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

Markus Goetz
In worst case just don't compile the samba module.
It is not related to ownCloud at all, it is just another part of csync.

On 12.07.13 15:34, shadowq wrote:

> I'm still struggling to successfully build ocsync. It seems to be a samba
> related hold up. I've followed the instructions posted above, and all
> dependencies are met. I've tried this on two different Macs, both with OSX
> ML.
>
> Any help would be muchly appreciated!!
>
> Error is:
>
> /ocsync/modules/csync_smb.c:401:27: error: incompatible pointer
>        types passing 'struct timeval *' to parameter of type 'struct timeval
> *'
>        [-Werror,-Wincompatible-pointer-types]
>    return smbc_utimes(uri, (struct timeval *) times);
>                            ^~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/libsmbclient.h:1745:50: note: passing argument to
> parameter 'tbuf'
>        here
> int smbc_utimes(const char *url, struct timeval *tbuf);
>                                                   ^
> 1 error generated.
> make[2]: *** [modules/CMakeFiles/ocsync_smb.dir/csync_smb.c.o] Error 1
> make[1]: *** [modules/CMakeFiles/ocsync_smb.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> --
> View this message in context: http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p10092.html
> Sent from the ownCloud mailing list archive at Nabble.com.
> _______________________________________________
> Owncloud mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/owncloud

_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
Reply | Threaded
Open this post in threaded view
|

Re: [Owncloud] help needed to build Mac client

shadowq
Oh thanks Markus. How do I disable the compiling of samba as part of ocsync?

On Saturday, July 13, 2013, Markus Goetz [via ownCloud] wrote:
In worst case just don't compile the samba module.
It is not related to ownCloud at all, it is just another part of csync.

On 12.07.13 15:34, shadowq wrote:

> I'm still struggling to successfully build ocsync. It seems to be a samba
> related hold up. I've followed the instructions posted above, and all
> dependencies are met. I've tried this on two different Macs, both with OSX
> ML.
>
> Any help would be muchly appreciated!!
>
> Error is:
>
> /ocsync/modules/csync_smb.c:401:27: error: incompatible pointer
>        types passing 'struct timeval *' to parameter of type 'struct timeval
> *'
>        [-Werror,-Wincompatible-pointer-types]
>    return smbc_utimes(uri, (struct timeval *) times);
>                            ^~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/libsmbclient.h:1745:50: note: passing argument to
> parameter 'tbuf'
>        here
> int smbc_utimes(const char *url, struct timeval *tbuf);
>                                                   ^
> 1 error generated.
> make[2]: *** [modules/CMakeFiles/ocsync_smb.dir/csync_smb.c.o] Error 1
> make[1]: *** [modules/CMakeFiles/ocsync_smb.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> --
> View this message in context: http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p10092.html
> Sent from the ownCloud mailing list archive at Nabble.com.
> _______________________________________________
> Owncloud mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/owncloud

_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud



If you reply to this email, your message will be added to the discussion below:
http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p10094.html
To unsubscribe from help needed to build Mac client, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: help needed to build Mac client

shadowq
Nevermind. I commented out the "find_package(Libsmbclient)" line in ./mirall/modules/CMakeLists.txt and it built without any errors. So the Samba client isn't needed in ocsync?

Thanks for your help.


On Sat, Jul 13, 2013 at 8:19 AM, shadowq <[hidden email]> wrote:
Oh thanks Markus. How do I disable the compiling of samba as part of ocsync?

On Saturday, July 13, 2013, Markus Goetz [via ownCloud] wrote:
In worst case just don't compile the samba module.
It is not related to ownCloud at all, it is just another part of csync.

On 12.07.13 15:34, shadowq wrote:

> I'm still struggling to successfully build ocsync. It seems to be a samba
> related hold up. I've followed the instructions posted above, and all
> dependencies are met. I've tried this on two different Macs, both with OSX
> ML.
>
> Any help would be muchly appreciated!!
>
> Error is:
>
> /ocsync/modules/csync_smb.c:401:27: error: incompatible pointer
>        types passing 'struct timeval *' to parameter of type 'struct timeval
> *'
>        [-Werror,-Wincompatible-pointer-types]
>    return smbc_utimes(uri, (struct timeval *) times);
>                            ^~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/libsmbclient.h:1745:50: note: passing argument to
> parameter 'tbuf'
>        here
> int smbc_utimes(const char *url, struct timeval *tbuf);
>                                                   ^
> 1 error generated.
> make[2]: *** [modules/CMakeFiles/ocsync_smb.dir/csync_smb.c.o] Error 1
> make[1]: *** [modules/CMakeFiles/ocsync_smb.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> --
> View this message in context: http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p10092.html
> Sent from the ownCloud mailing list archive at Nabble.com.
> _______________________________________________
> Owncloud mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/owncloud

_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud



If you reply to this email, your message will be added to the discussion below:
http://owncloud.10557.n7.nabble.com/help-needed-to-build-Mac-client-tp9221p10094.html
To unsubscribe from help needed to build Mac client, click here.
NAML


View this message in context: Re: [Owncloud] help needed to build Mac client

Sent from the ownCloud mailing list archive at Nabble.com.

_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud



_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
123