google / earthenterprise

Google Earth Enterprise - Open Source
Apache License 2.0
2.67k stars 890 forks source link

scons: *** [build] Error 1 and Error 2 #1986

Open jestinpaul opened 2 years ago

jestinpaul commented 2 years ago

Describe the bug

I am trying to build the latest stable verion 5.3.8 of earthenterprise using command python2.7 /usr/bin/scons -j8 release=1 build

I am getting the following errors:

=============

NATIVE-REL-x86_64/third_party/skia/src/images/SkImageDecoder_libgif.cpp:17:21: fatal error: gif_lib.h: No such file or directory

include "gif_lib.h"

                 ^

compilation terminated. scons: *** [NATIVE-REL-x86_64/third_party/skia/src/images/SkImageDecoder_libgif.o] Error 1

==========

NATIVE-REL-x86_64/third_party/skia/src/gpu/SkGr.cpp: In function 'GrTexture GrLockAndRefCachedBitmapTexture(GrContext, const SkBitmap&, const GrTextureParams*)': NATIVE-REL-x86_64/third_party/skia/src/gpu/SkGr.cpp:186:34: warning: left operand of comma operator has no effect [-Wunused-value] bitmap.width(), bitmap.height()); ^ scons: building terminated because of errors. scons: *** [build] Error 2 scons: building terminated because of errors.

=================

To Reproduce

I have done clone of earthenterprise and running the build command from earthenterprise/earth_enterprise folder

Additional context

I am new to build and compilation procedure and following steps from website.

Attaching the output with error:

error_capture.txt

jestinpaul commented 2 years ago

We have solved this issue. Due to our inexperience in development, we were not knowing that it requires almost 80-100 additional rpms to be downloaded and installed on the RHEL7.9 server, with various dependencies of core, devel, lib, noarch rpms from Redhat/CentOS and rpm sites. At present, we have tested an offline server, without internet, with 5.3.8 source code. Somehow, It is showing 5.3.9 beta in the help about of fusion application.

youmeric commented 2 years ago

@jestinpaul Hello, how did you resolve this error?

jestinpaul commented 2 years ago

As mentioned earlier, due to our inexperience in development, we were not knowing the list of rpms required nor nobody given a comprehensive list of rpms.

We were collecting it from Redhat, CentOS and other rpm sites and installing one by one based on the error coming while running the build command. The dependency, prerequisites of each rpms their version difference -like 7, 7.9 between devel, lib, core, noarch rpms made it difficult. Some cases, we needed to uninstall existing rpm e.g. git 1.8.3 was uninstalled for git 2.x along with other related packages. Lack of expertise on yum commands also delayed things further.

If anyone wants to repeat this on a RHEL7.9, we can lead them. We are doing this for the first time and our running version is 5.1.2 which is changed now to 5.3.8 on test server

jestinpaul commented 2 years ago

Are you able to solve it?

On Wed, Mar 9, 2022 at 3:21 AM youmeric @.***> wrote:

I am currently doing this on RHEL 7.9 and be getting stuck with the same error as in the first post

— Reply to this email directly, view it on GitHub https://github.com/google/earthenterprise/issues/1986#issuecomment-1062363382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGE4IE23CORKKWK7EGNSETU67OG5ANCNFSM5PQVEWPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

jestinpaul commented 2 years ago

I am currently doing this on RHEL 7.9 and be getting stuck with the same error as in the first post

Are you able to do this installation? Do you want the list of rpms required?

edeles-navagis commented 2 years ago

@jestinpaul , can you share the list of the rpms you installed. We are installing on RHEL 8, maybe it can help.

jestinpaul commented 2 years ago

We are not successful on RHEL8 especially due to python3. The rpm list used for RHEL7.9 sent