Closed RangerMauve closed 4 years ago
@RangerMauve The error looks like you're missing pkg-config
which is listed in install-build-deps.sh
, could you check if you have that installed successfully in your system?
Thank you for the quick follow-up! Not sure why install-build-deps didn't install it when I ran. I installed it manually and the build seems to be progressing. π
Now I'm getting an error which seems to be saying that I'm missing openssl-sys
:
Manually installing libssl-dev like the stack trace said helped.
Currently continuing building. π
Getting another error now saying gperf is not found.
Installed the package and am restarting the build.
Normally these should all be taken care of by running install-build-deps
, maybe it doesn't support the distribution you're using well, were there any notable error output?
https://chromium.googlesource.com/chromium/src/+/master/docs/linux/build_instructions.md
There are some instructions for some other distributions but I didn't see yours listed, I only use ubuntu for building it in linux so not sure what's the best thing to do here either.
Woot! Looks like it built. Thank you for the help!
I could take a look later and see if I can figure out what went wrong there. Hopefully anybody else having issues on Pop OS will see this thread in the meantime. π
Here's the output I get from install-build-deps:
Description
I'm working on fixing an issue in IPFS-Companion where brave browsers arent able to discover each other over MDNS. To test the fix, I'm going to beed to build brave from source and modify some of the chromium code with a patch.
Sadly I'm getting errors when trying to build brave from the current master branch on Linux.
I'm using System76's Pop OS which is basically like Debian. Running on a 64bit Intel processor
Steps to Reproduce
npm run build
Actual result:
Errors out close to the start of installing
`npm run build` Command output:
``` > brave@1.10.23 build /home/mauve/programming/brave-browser > node ./scripts/commands.js build Recursing through GRD to find GRDP files... Done recursing through GRD to find GRDP files. touch original files overridden by chromium_src... touch original vector icon files overridden by brave/vector_icons... update branding... building brave... Widevine cdm host verification is disabled /home/mauve/programming/brave-browser/src: gn gen /home/mauve/programming/brave-browser/src/out/Component --args="fieldtrial_testing_like_official_build=true safe_browsing_mode=1 brave_services_key=\"\" root_extra_deps=[\"//brave\"] is_component_build=true proprietary_codecs=true ffmpeg_branding=\"Chrome\" enable_nacl=false enable_widevine=true target_cpu=\"x64\" is_official_build=false is_debug=false dcheck_always_on=true brave_channel=\"development\" google_api_key=\"AIzaSyAH90V94EcZBP5oH7oc-mXQrSKgASVxER8\" brave_google_api_key=\"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q\" brave_google_api_endpoint=\"https://www.googleapis.com/geolocation/v1/geolocate?key=\" brave_infura_project_id=\"\" binance_client_id=\"\" brave_product_name=\"Brave\" brave_project_name=\"brave\" brave_version_major=\"1\" brave_version_minor=\"10\" brave_version_build=\"23\" chrome_version_string=\"81.0.4044.129\" chrome_version_major=\"81\" safebrowsing_api_endpoint=\"safebrowsing.brave.com\" webcompat_report_api_endpoint=\"https://webcompat.brave.com/1/webcompat\" brave_referrals_api_key=\"\" enable_hangout_services_extension=true enable_cdm_host_verification=false skip_signing=true use_vaapi=true cc_wrapper=\"/home/mauve/programming/brave-browser/src/brave/script/redirect-cc.py\" " ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code. pkgresult = exec_script(pkg_config_script, args, "value") ^---------- Current dir: /home/mauve/programming/brave-browser/src/out/Component/ Command: python /home/mauve/programming/brave-browser/src/build/config/linux/pkg-config.py -s /home/mauve/programming/brave-browser/src/build/linux/debian_sid_amd64-sysroot -a x64 nss -v -lssl3 Returned 1. stderr: Traceback (most recent call last): File "/home/mauve/programming/brave-browser/src/build/config/linux/pkg-config.py", line 248, inExpected result:
Expected it to compile without error
Reproduces how often:
Every time
Brave version (brave://version info)
The latest version of the master branch. Specifically this commit: fc3448470053445bb1a3e1367e2807120566fd7b
Version/Channel Information:
N/A
Other Additional Information:
N/A
Miscellaneous Information:
I'm also getting the following popping up when running
./src/build/install-build-deps.sh
. I wasn't sure what to do since the packages looked like they were installed and the output didn't seem to mention them.