Giter Club home page Giter Club logo

Comments (8)

rogernelson avatar rogernelson commented on September 21, 2024 1

Yes, there is a workaround to the path limit, but unfortunately is it opt-in (ie off by default) and not everyone knows it needs to be enabled. The other problem is a lot of the third-party dependencies still enforce the character limit since they pre-date Windows 10.

from openrv.

haggi avatar haggi commented on September 21, 2024 1

from openrv.

Shayen avatar Shayen commented on September 21, 2024

I think I fell into same situation.
I ran command cmake --trace-expand -B cmake-build -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -DRV_DEPS_WIN_PERL_ROOT=/c/Strawberry/perl/bin -DRV_DEPS_QT5_LOCATION=/e/Qt/5.15.2/msvc2019_64
in MSYS2 MINGW64 shell as described in document.
Here is verbose output log

E:/projects/programming/OpenRV/cmake/macros/rv_stage.cmake(402):  IF(NOT EXISTS E:/projects/programming/OpenRV/src/plugins/rv-packages/additional_nodes/PACKAGE )
E:/projects/programming/OpenRV/cmake/macros/rv_stage.cmake(406):  EXECUTE_PROCESS(COMMAND bash -c cat PACKAGE | grep version: | grep --only-matching -e '[0-9.]*' RESULT_VARIABLE _result OUTPUT_VARIABLE _pkg_version OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY WORKING_DIRECTORY E:/projects/programming/OpenRV/src/plugins/rv-packages/additional_nodes )
grep: unrecognized option: only-matching
BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) multi-call binary.

Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

Search for PATTERN in FILEs (or stdin)
  -n      Add 'line_no:' prefix
  -l      Show only names of files that match
  -L      Show only names of files that don't match
  -c      Show only count of matching lines
  -o      Show only the matching part of line
  -q Quiet. Return 0 if PATTERN is found, 1 otherwise
  -v      Select non-matching lines
  -s      Suppress open and read errors
  -r      Recurse
  -i      Ignore case
  -w      Match whole words only
  -x      Match whole lines only
  -F      PATTERN is a literal (not regexp)
  -E      PATTERN is an extended regexp
  -m N    Match up to N times per file
  -A N    Print N lines of trailing context
  -B N    Print N lines of leading context
  -C N    Same as '-A N -B N'
                                                                                                                                                                                                                        -e PTRN Pattern to match
                                                                                                                                                                                                                                                        -f FILE Read pattern from file
          CMake Error at cmake/macros/rv_stage.cmake:406 (EXECUTE_PROCESS):
  EXECUTE_PROCESS failed command indexes:

    1: "Child return code: 2"

Call Stack (most recent call first):
  src/plugins/rv-packages/additional_nodes/CMakeLists.txt:11 (RV_STAGE)


-- Configuring incomplete, errors occurred!
See also "E:/projects/programming/OpenRV/cmake-build/CMakeFiles/CMakeOutput.log".

hope this could help

from openrv.

Shayen avatar Shayen commented on September 21, 2024

Just recognize on my own log.
there is BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) multi-call binary. appear in the lines.
and grep command look different from normal grep in MSYS2 shell.

That mean WSL is enabled on my machine (this had been told in the doc already )
You might have to disable it ENTIRELY, that mean if your machine have wsl and wsl2 installed like me, you have to remove both.
then it will work.

recommend guide: https://www.elevenforum.com/t/uninstall-windows-subsystem-for-linux-wsl-in-windows-11.10802/

from openrv.

rogernelson avatar rogernelson commented on September 21, 2024

Hi @Shayen I was going to ask you the same thing. If you type which grep in the CMake shell it should tell you which it is using. You want the one from /usr/bin. You could also try listing that path in you PATH environment variable to make sure it becomes before any other grep that might be found on your machine.

Hi @haggi -- Is there any more information in the log file D:/UserDatenHaggi/Documents/coding/OpenRV/cmake-build/CMakeFiles/CMakeOutput.log?

One general tip that burned me a lot building on Windows is to use a path that is short as possible. Windows has a file path limit of 260 characters, and some of the pyside paths get quite long and once that is appended on to your build root, the paths can sometimes exceed 260 characters and all sort messages about files not being found will result.

Hope that helps!

from openrv.

Shayen avatar Shayen commented on September 21, 2024

@rogernelson I heard about disable Windows's path limit once ago.
But I never try it myself.
https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html

from openrv.

geffrak avatar geffrak commented on September 21, 2024

@haggi, by "now it works better", do you mean that we can close this issue?

from openrv.

haggi avatar haggi commented on September 21, 2024

Indeed, this issuse can be closed.

from openrv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.