StanfordVL / egl_probe

A helpful module for listing available GPUs for EGL rendering.
MIT License
6 stars 6 forks source link

Command 'cmake ..; make -j' returned non-zero exit status 1. #3

Open roy86 opened 4 months ago

roy86 commented 4 months ago

I have attempted to install and whilst i've been able to solve for the Cmake not found issues, I cannot work out what this error is being triggered by while attempting to install using PIP.

subprocess.CalledProcessError: Command 'cmake ..; make -j' returned non-zero exit status 1.

System: Win11 using Git Bash

$ cmake --version cmake version 3.29.0-rc2 $ make --version GNU Make 4.4.1 $ python --version Python 3.12.1 $ pip -V pip 24.0

mengqiDK commented 2 months ago

subprocess.CalledProcessError: Command 'cmake ..; make -j' returned non-zero exit status 1.

I also encountered the same problem, how did you solve it? Is it not supported by windows?

roy86 commented 1 month ago

@mengqiDK Not solved. Following the setup process still fails on Windows.

mhandb commented 3 weeks ago

@roy86 I have opened a PR for windows support: https://github.com/StanfordVL/egl_probe/pull/5

You can try to install the branch waiting for it to be merged: pip install https://github.com/mhandb/egl_probe/archive/fix_windows_build.zip

roy86 commented 3 weeks ago

@roy86 I have opened a PR for windows support: #5

You can try to install the branch waiting for it to be merged: pip install https://github.com/mhandb/egl_probe/archive/fix_windows_build.zip

sure thing, i'll give it a test

csufangyu commented 1 week ago

hello, I get the same problem, but when I try to build from source(branch is fix_windows_build), when I run "make -j" , get the error: error: invalid conversion from 'PFNEGLGETPROCADDRESSPROC {aka void ( (attribute((stdcall)) )(const char))()}' to 'GLADloadfunc {aka void ( ()(const char))()}' [-fpermissive] can you hlep me?

mhandb commented 1 week ago

@csufangyu you are probably trying to build for x86, and it raised another issue as the current glad source code which does not handle properly the different convention call "stdcall vs cdecl (default in x86)". Do you want to target x86 (32bit) architecture?

Did you try to install it from source using this command bellow? pip install https://github.com/mhandb/egl_probe/archive/fix_windows_build.zip

zhiyuandaily commented 1 week ago

@mhandb I have tried to try to install it from the source using this command, but I still failed and got the same error: " Command 'cmake ..; make -j' returned non-zero exit status 1." Could you solve it?

mhandb commented 1 week ago

@mhandb I have tried to try to install it from the source using this command, but I still failed and got the same error: " Command 'cmake ..; make -j' returned non-zero exit status 1." Could you solve it?

This is interesting as I removed this command line cmake ..; make -j from setup.py in the fix_windows_build branche and replaced it with

        subprocess.check_call("cmake -S .. -B .", cwd=build_dir, shell=True)
        subprocess.check_call("cmake --build .", cwd=build_dir, shell=True)

Then I do not understand the error you have saying that cmake ..; make -j fails.

Maybe some cache issue?

zhiyuandaily commented 1 week ago

@mhandb thank you!!! I cleaned the cache and It works!