Compile last CGRU version for OSX

Manual project build issues.
Post Reply
tonton
Posts: 6
Joined: Wed Dec 13, 2017 9:59 am

Compile last CGRU version for OSX

Post by tonton » Wed Dec 13, 2017 10:09 am

Hi, sorry if i'm in the wrong place. I'm currently setting up Afanasy in a small production company which works with linux and mac.
I'm not a coder, just graphist enthusiastic :) I'm trying to get CGRU working on mac, i found this https://github.com/CGRU/cgru/issues/27 online and tried to make it works, but wrong version. I'm currently using version 2.2.3 . Is anyone out there has already compiled it ?
If not, do you have some tips and tricks to try it myself ? (i'm not an osx user, and not really familiar with compiling...)
Thanks to all, and again, thanks for this wonderfull tool ! :D

anmax
Posts: 3
Joined: Wed Dec 13, 2017 10:56 am

Re: Compile last CGRU version for OSX

Post by anmax » Wed Dec 13, 2017 12:30 pm

Hi, i have successfully compile ver 2.2.3 for the Mac 10.11.6. So you have to take a few steps
  • install Python 3.*, cmake, git, qt (for a server part you have to install ffmpeg, imagemagick in addition) packages with brew
  • clone a git repo and checking out to 2.2.3 branch

    Code: Select all

    git clone https://github.com/CGRU/cgru.git 
    git checkout 2.2.3
  • add prefix path in /cgru/afanasy/src/project.cmake/build.sh

    Code: Select all

    CMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.9.1/lib/cmake 
  • build in /cgru/afanasy/src/project.cmake/

    Code: Select all

    ./build.sh --nosql

P.S. Or you can just use binary by link ;)

tonton
Posts: 6
Joined: Wed Dec 13, 2017 9:59 am

Re: Compile last CGRU version for OSX

Post by tonton » Wed Dec 13, 2017 3:13 pm

Wow thanks for the step by step !
I followed it, but stucked on the last step because of qt install (on yosemite, i'm unable to install xcode.app which is required for qt, so impossible to compile...)
So i tried with the binary, i basically just pasted them in the cgru folder, seems to work but i have to setup cgru to be sure (and working on other things for now), i'll try later, but is it the right thing to do with these binaries files ? (sorry if it is a dumb question, really not familiar with all that...) and thank you again ! :D

anmax
Posts: 3
Joined: Wed Dec 13, 2017 10:56 am

Re: Compile last CGRU version for OSX

Post by anmax » Wed Dec 13, 2017 3:23 pm

yes, binaries just should to be copied in /cgru/afanasy/bin/ directory
Also you can try the how-to guide , to perform install Xcode comand line Tools

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests