o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.89k stars 2.22k forks source link

Deb package o3de_2111_1.deb install failing on Ubuntu 20.04 #6161

Open rathken opened 3 years ago

rathken commented 3 years ago

from https://o3de.org/docs/welcome-guide/setup/installing-linux/

nrathke@proteus1:~/Downloads$ cat /etc/issue Ubuntu 20.04.3 LTS \n \l Linux proteus1 5.11.0-41-generic #45~20.04.1-Ubuntu SMP Wed Nov 10 10:20:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux cmake version 3.21.0-rc3

nrathke@proteus1:~/Downloads$ sha256sum o3de_2111_1.deb c3b3df32b0a09ac4a67a27f6c0848c55000d3097461ccbfdcb4eced47e6cca7c o3de_2111_1.deb

nrathke@proteus1:~/Downloads$ sudo apt install ./o3de_2111_1.deb Reading package lists... Done Building dependency tree
Reading state information... Done Note, selecting 'o3de' instead of './o3de_2111_1.deb' The following NEW packages will be installed: o3de 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/4,503 MB of archives. After this operation, 18.2 GB of additional disk space will be used. Get:1 /home/nrathke/Downloads/o3de_2111_1.deb o3de amd64 21.11 [4,503 MB] Selecting previously unselected package o3de. (Reading database ... 396075 files and directories currently installed.) Preparing to unpack .../Downloads/o3de_2111_1.deb ... Unpacking o3de (21.11) ... Setting up o3de (21.11) ... dpkg: error processing package o3de (--configure): installed o3de package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: o3de E: Sub-process /usr/bin/dpkg returned an error code (1)

nrathke@proteus1:~/Downloads$ sudo dpkg -l | grep -i o3de iF o3de 21.11 amd64 Installation Tool

nrathke@proteus1:~$ cd /opt/O3DE/2111_1/bin/Linux/profile/Default bash: cd: /opt/O3DE/2111_1/bin/Linux/profile/Default/o3de: No such file or directory nrathke@proteus1:~$ cd /opt/O3DE/21.11/bin/Linux/profile/Default/ <--works but but o3de bin fails

Zaya6 commented 3 years ago

The first time I installed it, it worked fine. The second time fails. Would it be better just to supply an appimage so it works on multiple desktops?

OancaAndrei commented 2 years ago

Not sure if it helps but I had a similar issue while trying to install O3DE myself on Ubuntu 21.04. I solved my incomplete install of O3DE by upgrading CMake to version 3.22.0 (as shown in the docs).

rathken commented 2 years ago

IMHO Appimage would be great.. build doc has cmake > 3.20.5 so going to try 3.22.0 as suggested..

rathken commented 2 years ago

Still getting the error but with cmake 3.22.0 I got the project manager to run... editor doesn;t run yet but I think that is unrelated to the deb install issue.

MaciejKucia commented 2 years ago

Seems the post installation script require specific cmake version.

$ sudo apt install ./o3de_2111_1.deb
...
Setting up o3de (21.11) ...
dpkg: error processing package o3de (--configure):
 installed o3de package post-installation script subprocess returned error exit status 1
$ export LY_CMAKE_PATH=/usr/bin
# modified script not to hide output
$ bash o3de.postinst 
/opt/O3DE/21.11 ~/Downloads
Using cmake located at: /usr/bin/cmake
cmake version 3.16.3 CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMake Error at python/get_python.cmake:16 (cmake_minimum_required):
  CMake 3.20 or higher is required.  You are running version 3.16.3
$ cat /opt/O3DE/21.11/python/get_python.cmake  | grep 3.20
cmake_minimum_required(VERSION 3.20)

It would be great if the .deb package could have dependency on correct cmake version.

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
$ sudo apt list --installed 2>/dev/null | grep cmake 
cmake-data/focal,focal,now 3.16.3-1ubuntu1 all [installed,automatic]
cmake/focal,now 3.16.3-1ubuntu1 amd64 [installed]
lemonade-dm commented 2 years ago

We should update the postinst.in script to NOT fail on the first failure. Furthermore we should have it output why it would fail.

henriquelalves commented 1 year ago

I had to compile cmake, and have a compatible openssl version installed (1.1.1b); it still throwing this same error to me when installing the .deb package:

dpkg: error processing package o3de (--configure):
 installed o3de package post-installation script subprocess returned error exit 
status 1
Errors were encountered while processing:
 o3de
N: Download is performed unsandboxed as root as file '/home/peronio/Downloads/o3de_2210_0.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Sub-process /usr/bin/dpkg returned an error code (1)

When trying to run the o3de binary, I get:

./o3de: symbol lookup error: /opt/O3DE/22.10.0/bin/Linux/profile/Default/libAzQtComponents.so: undefined symbol: _ZN16QStyleSheetStyle16staticMetaObjectE, version Qt_5_PRIVATE_API

EDIT: Forgot to add info about my system. I'm using Pop_OS (22.04 LTS)