Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Howto] Build 1.7.0 for Mac #2490

Closed
scolebrook opened this issue Nov 12, 2014 · 21 comments
Closed

[Howto] Build 1.7.0 for Mac #2490

scolebrook opened this issue Nov 12, 2014 · 21 comments

Comments

@scolebrook
Copy link
Contributor

I've updated my build VM with brew update/upgrade, checked out 1.7.0 and can't build the Mac client successfully.

Here is the cmake command I'm using:
cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX=~/Desktop/mirall/install ~/Desktop/mirall/mirall

This is run from ~/Desktop/mirall/mirall-build. This part seems to work. The following make seems to compile successfully and mirall-build is full of stuff. But ../install is empty so the create_mac.sh script doesn't work.

Incidentally, the script says the install prefix dir comes first followed by build dir and the build documentation has it the other way around. I've tried both without success.
Unable to copy item at path '/Users/me/Desktop/mirall/mirall-build/../install/owncloud.app' because the item could not be found

I can see the correct path in mirall-build/cmake_install.cmake for CMAKE_INSTALL_PREFIX. But nothing gets copied to the install directory and the create_mac.sh clearly expects it to be populated with something.

Either something is missing in the documentation or this script has a bug of some kind.

@pierrejochem
Copy link

This helps me a lot to understand the build system and to build it successfully for all platforms:

https://github.com/owncloud/administration/tree/master/build-clients

@scolebrook
Copy link
Contributor Author

Thanks @pierrejochem . But those scripts are only up to 1.6.4 as far as I can tell. And the process with 1.7 for Mac is significantly different. Since I can't get it built by following the official instructions I can't help with updating these scripts either.

@pierrejochem
Copy link

You just need to add the hash key from 1.7.0 to the config file. What are you using as build system? There is also a daily build for OSX somewhere as far as i know.

@pierrejochem
Copy link

@scolebrook
Copy link
Contributor Author

@pierrejochem At a glance the scripts are written to generate a dmg, not an installer package which is a significant change in the build process for the Mac client with 1.7. So it's a lot more than just adding a hash.

My build environment is a 10.9.5 VM. I need to customize the update url as well as build numbers and version suffixes. If it wasn't for the need to customize I'd be happy with the official 1.7.0 from owncloud.org.

Dailies are definitely not suitable for a production environment like ours.

@gig13
Copy link

gig13 commented Nov 17, 2014

@dragotin @danimo
Any suggestions?

@kwillems
Copy link

Sorry, I was two weeks a bit 'out of business', but now I'm on top of it !
I plan to update my build scripts tomorrow after some thorough testing.

@dragotin
Copy link
Contributor

@kwillems mind to paste the link to your blog again here? Thanks a lot!

@kwillems
Copy link

@dragotin: indeed, i forgot. (it was caused becaused I knew @scolebrook and @pierrejochem know what I'm chatting about)
:-)

When I'm talking about the build scripts I mean these ones: http://owncloud.10557.n7.nabble.com/Build-scripts-desktop-clients-td13112.html

@kwillems
Copy link

The build scripts are updated https://github.com/owncloud/administration/tree/master/build-clients !
Have fun with it.

@scolebrook
Copy link
Contributor Author

@kwillems Thanks for your efforts. I'll be working on this again next week. I've had a quick read of the scripts and it looks like it will resolve all my issues and questions on both win and mac.

@anx-mr
Copy link

anx-mr commented Nov 26, 2014

Thanks for your update. I'm just trying to build the client on mac. Building and packaging seems to work, but I get a "Segmentation fault 11" or the output below after the client starts the sync process (after configuring server, user account and folders).

I'm on Yosemite.

Here is my build process: http://pastebin.com/i0Crc6uQ

Here is the application output: http://pastebin.com/FvYTmUKb

@kwillems
Copy link

@anx-mr This is a know issue at the moment. Therefore you should build the Mac client on Mavericks instead on Yosemite.
I expect this to be solved in future versions of Mirall.

@anx-mr
Copy link

anx-mr commented Nov 26, 2014

okay thanks for the info!

@anx-mr
Copy link

anx-mr commented Nov 27, 2014

When I build it on Mavericks it also works on Mavericks, but not on Yosemite. Is this also a known issue or should it work?

$ ./owncloud
SocketApi: server started, listening at "/Users/mrauter/Library/Caches/SyncStateHelper/ownCloud.socket"
==== added system ignore list to socketapi: "/Applications/owncloud.app/Contents/Resources/sync-exclude.lst"
==== added user defined ignore list to csync: "/Users/mrauter/Library/Application Support/ownCloud/sync-exclude.lst"
Illegal instruction: 4

Maybe this helps: http://pastebin.com/hnNTgMHW

@kwillems
Copy link

@anx-mr It should work on Yosemite. It does on my Mac.

@guruz Have any idea?

@anx-mr
Copy link

anx-mr commented Dec 11, 2014

I can't get it work on Yosemite :( I tried to build it on different Mavericks systems - but it only runs on Mavericks...

@kwillems
Copy link

Hum ... did you use a recent checkout of the build scripts ?

@kwillems kwillems reopened this Dec 11, 2014
@mrauter
Copy link

mrauter commented Dec 12, 2014

Yes, without any modifications.

Also yesterday on a clean Mavericks with the following steps:

  • Install XCode
  • Install brew
  • Checkout "build-clients"
  • ./makemac.sh -d

Install pkg on Mavericks -> working
Install pkg on Yosemite -> the error like above

@guruz guruz changed the title Build 1.7.0 for Mac [Howto] Build 1.7.0 for Mac Dec 16, 2014
@anx-mr
Copy link

anx-mr commented Jan 8, 2015

I cannot find the problem ...

@guruz
Copy link
Contributor

guruz commented Jan 9, 2015

@anx-mr @mrauter This commit might possibly help you: #2627 (comment)

@guruz guruz closed this as completed Mar 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants