how to compile the cgru project from source code to release version (such as 2.2.2)

Manual project build issues.
Post Reply
wqlxx007
Posts: 3
Joined: Mon Jul 10, 2017 3:29 am

how to compile the cgru project from source code to release version (such as 2.2.2)

Post by wqlxx007 »

I have download the source code from github. But I am confused about how to compile or build the relaese version. It will be better someone can provide a detailed document about how to build a Translation environment on ubuntu or other Linux. Thx
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by timurhai »

First post(s) should be approved by moderator(s) to became visible.
Any site will became a porno site without such protection :)
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by timurhai »

Here is a small instruction:
http://cgru.info/installation#build_linux

It is really small, as to build Afanasy on Linux you should do only 2 things:
- install depend packages (libraries)
- run build script
To rebuild just run build script.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
wqlxx007
Posts: 3
Joined: Mon Jul 10, 2017 3:29 am

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by wqlxx007 »

timurhai wrote: Wed Jul 12, 2017 8:24 am First post(s) should be approved by moderator(s) to became visible.
Any site will became a porno site without such protection :)
Thx timurhai
wqlxx007
Posts: 3
Joined: Mon Jul 10, 2017 3:29 am

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by wqlxx007 »

timurhai wrote: Wed Jul 12, 2017 8:43 am Here is a small instruction:
http://cgru.info/installation#build_linux

It is really small, as to build Afanasy on Linux you should do only 2 things:
- install depend packages (libraries)
- run build script
To rebuild just run build script.
Ok I will try it
droidoid
Posts: 2
Joined: Wed Sep 18, 2019 7:32 am

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by droidoid »

Hi Timur, on Fedora 32, after successfully installing dependencies, and ./build.sh I get

Code: Select all

CGRU_VERSION 2.3.1 : '/home/render/Downloads/cgru.2.3.1'
CGRU_REVISION e77ad43e1cdddd19b148ddb2d43c9f3309054d1d
Detecting UNIX distribution...
Fedora 32 x86_64
Building on 'Fedora'
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR) (found
  version "12.3")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPostgreSQL.cmake:247 (find_package_handle_standard_args)
  CMakeLists.txt:23 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/render/Downloads/cgru.2.3.1/afanasy/src/project.cmake/CMakeFiles/CMakeOutput.log".
I am a 3D guy and I don't understand what I need in order to solve this.
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by timurhai »

Hi.
This is some cmake and PostgreSQL packages problem on Fedora 32.
Better to ask on Fedora forums.
For a temporary solution you can to use --nosql flag to build w/o PostgreSQL (statistics will be disabled).

btw
Why Fedora?
Most suitable distibution for CG is ubuntu-studio or any other ubuntu-debian based.
If you want some Red Hat benefits, use CentOS - it is Red Hat based, not Fedora.
Fedora is like a testing platform for a modern gadgets.
Especialy if you saing that you are "3D guy" and not developer, better not to use such modern distributives.

ps
I am developer. Version 3.0 is almost ready and tested. Now i writing documentation for it. You can compile 3.0 version and use it.
Soon i will try to compile new 3.0 version on a latest Fedora to create a release packages.
That time i will see modern Linux changes, that most probable soon will appear in other distibutives.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
droidoid
Posts: 2
Joined: Wed Sep 18, 2019 7:32 am

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by droidoid »

--nosql is helped me! Thank you.

About distros, Ubuntu and other deb-based derivates are not work properly with Autodesk rpm-products, Maya and MotionBuilder in my case. Freezes, unstable and other troubles.
Autodesk make inhouse Centos derivatives with ADSK Centos 7.4 name. But all Centos 7.x have a old glibc version without possibility updating. Centos give me nice Autodesk compatibility, but I can`t install other modern graphics software like awesome Cascadeur, who need more recent versions GCC then 3.4. And after this, I want to try Fedora on my main workstation, and do not touch Centos on my renderfarm nodes.

For 3.0 version, Timur, can you delete in afjob.py in #arnold section "-nocrashpopup" in linux version, it make "ERROR | [kick] Command line parameter “-nocrashpopup” not recognized". Solidangle want to fix it in last version but it is not exactly.
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by timurhai »

Now i see why Fedora!

I do not have Arnold by hand to test cgru scripts changes.
You can simple remove this line before compile and make packages.

Best way to collaborate is to perform changes on GitHub by users that uses soft.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: how to compile the cgru project from source code to release version (such as 2.2.2)

Post by timurhai »

Hi!

Building on a new Fedora fixed:
https://github.com/CGRU/cgru/commit/557 ... f44c7ff77a
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply