New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue while building the code in mac os mojave #23015
Comments
same issue encounter, any solution? |
I have the same problem. MacOS Mojave 10.14.3 |
I'm on macOS Mojave 10.14.3 with
|
I installed gstreamer libraries freshly through brew, they are of latest version.😄, my mojave version is also 10.14.3 |
How about checking with
and also try to run this locally with a python script import subprocess
print subprocess.call(["pkg-config", "gstreamer-1.0 >= 1.12"]) It should print servo/python/servo/bootstrap.py Lines 48 to 50 in 34fda66
|
I'm getting 1.14.4
The script prints 1 with no exceptions I'm also having this issue on MacOS 10.14.3. Let me know if I can provide any other information to get this issue resolved. |
@josephhutch I just updated the python script snippet to not use |
@CYBAI Still getting 1 |
@josephhutch Hmm, sorry, could you run it again? I think this would print the error 🤔 import subprocess
print subprocess.check_call(["pkg-config", "gstreamer-1.0 >= 1.12"])
print subprocess.check_output(["pkg-config", "gstreamer-1.0 >= 1.12"]) |
On running this script i got the following output
|
Could someone try to apply this patch and see if it will pass the build? 🤔 Thanks. diff --git a/python/servo/bootstrap.py b/python/servo/bootstrap.py
index c7060b3888..1243d6a0a3 100644
--- a/python/servo/bootstrap.py
+++ b/python/servo/bootstrap.py
@@ -46,8 +46,7 @@ def install_trusty_deps(force):
def check_gstreamer_lib():
- return subprocess.call(["pkg-config", "gstreamer-1.0 >= 1.12"],
- stdout=PIPE, stderr=PIPE) == 0
+ return subprocess.check_output('pkg-config --modversion gstreamer-1.0') >= 1.12
def run_as_root(command, force=False): |
For me, the build is now successfully initiated. Edit: Ok, I seem to have an issue with libffi and gobject, but this is probably unrelated. |
Compare gstreamer version via `pkg-config --modversion` in bootstrap python script Not sure why calling `["pkg-config", "gstreamer-1.0 >= 1.12"]` did not work for some people on Mojave. (Btw, I'm also on Mojave but checking version with `gstreamer-1.0 >= 1.12` works fine for me 🤔) I'd like to send this PR and ask bors to try to see if this will also work for other platform. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23015 - [x] These changes do not require tests because it tries to fix building issue <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23069) <!-- Reviewable:end -->
@josephhutch @Feliix42 Could you help me try if this patch also works for you? Thanks! Btw, maybe it's good to diff --git a/python/servo/bootstrap.py b/python/servo/bootstrap.py
index c7060b3888..6456f1a075 100644
--- a/python/servo/bootstrap.py
+++ b/python/servo/bootstrap.py
@@ -46,7 +46,7 @@ def install_trusty_deps(force):
def check_gstreamer_lib():
- return subprocess.call(["pkg-config", "gstreamer-1.0 >= 1.12"],
+ return subprocess.call(["pkg-config", "--atleast-version=1.12", "gstreamer-1.0"],
stdout=PIPE, stderr=PIPE) == 0 |
This patch also works, but only if I It might be a good idea to include a note for this in the readme. |
Interesting. I just checked my Maybe setting Also, thanks for helping to check the patch works. |
Compare gstreamer version via `pkg-config --modversion` in bootstrap python script Not sure why calling `["pkg-config", "gstreamer-1.0 >= 1.12"]` did not work for some people on Mojave. (Btw, I'm also on Mojave but checking version with `gstreamer-1.0 >= 1.12` works fine for me 🤔) I'd like to send this PR and ask bors to try to see if this will also work for other platform. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23015 - [x] These changes do not require tests because it tries to fix building issue <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23069) <!-- Reviewable:end -->
Compare gstreamer version via `pkg-config --modversion` in bootstrap python script Not sure why calling `["pkg-config", "gstreamer-1.0 >= 1.12"]` did not work for some people on Mojave. (Btw, I'm also on Mojave but checking version with `gstreamer-1.0 >= 1.12` works fine for me 🤔) I'd like to send this PR and ask bors to try to see if this will also work for other platform. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23015 - [x] These changes do not require tests because it tries to fix building issue <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23069) <!-- Reviewable:end -->
Compare gstreamer version via `pkg-config --modversion` in bootstrap python script Not sure why calling `["pkg-config", "gstreamer-1.0 >= 1.12"]` did not work for some people on Mojave. (Btw, I'm also on Mojave but checking version with `gstreamer-1.0 >= 1.12` works fine for me 🤔) I'd like to send this PR and ask bors to try to see if this will also work for other platform. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23015 - [x] These changes do not require tests because it tries to fix building issue <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23069) <!-- Reviewable:end -->
I just pulled the master, still have this problem. |
Could you check if there's any set |
It's empty. So I did |
Yes. It's required. |
Add a note to indicate PKG_CONFIG_PATH required I just got the error messages like #23015 again and then I think the root cause should be about `PKG_CONFIG_PATH`. After following #23015 (comment) said, I can build Servo successfully. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because this just updates README. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23175) <!-- Reviewable:end -->
I also had to do the |
I had to |
Fwiw I just ran into the same issue, and did what @mrwonko suggested. It allowed me to start the build but I ran into an other error:
I then did what the Gstreamer install documentation says and it worked. The path they provide is the following:
|
./mach build -d
Exception: Your system's GStreamer libraries are out of date (we need at least 1.12). If you're unable to install them, let us know by filing a bug!
File "/Users/ramakrishna.chilaka/Desktop/servo/python/servo/build_commands.py", line 303, in build
env = self.build_env(target=target, is_build=True)
File "/Users/ramakrishna.chilaka/Desktop/servo/python/servo/command_base.py", line 612, in build_env
if self.needs_gstreamer_env(target):
File "/Users/ramakrishna.chilaka/Desktop/servo/python/servo/command_base.py", line 560, in needs_gstreamer_env
install them, let us know by filing a bug!")
I installed GStreamer libraries through brew and manually downloading from GStreamer website. installed OpenSSL from brew. Still, I am not able to build. Kindly, please help, if anyone faced the same issue before.
The text was updated successfully, but these errors were encountered: