GAP-LAB-CUHK-SZ/gaustudio

bash: texrecon: command not found

ZhenWusi opened this issue · 4 comments

when i run texrecon ./images ./fused_mesh.ply ./results/textured_mesh --outlier_removal=gauss_clamping --data_term=area --no_intermediate_results happen that bash: texrecon: command not found
3

and i had run
git clone https://github.com/nmoehrle/mvs-texturing.git cd mvs-texturing mkdir build && cd build && cmake .. make (or make -j for parallel compilation)

It seems that the texrecon command is not found in your system's PATH environment variable. To resolve this issue, you need to add the directory containing the texrecon executable to your system's PATH environment variable. Here's how you can do it:

  1. Locate the directory where the texrecon executable is installed. If you followed the instructions you provided (git clone https://github.com/nmoehrle/mvs-texturing.git and make in the build directory), the texrecon executable should be in the build/bin directory of the mvs-texturing repository.

  2. Open your terminal and navigate to the mvs-texturing repository.

  3. Run the following command to add the build/bin directory to your PATH environment variable (this is a temporary change for the current terminal session):

    export PATH=$PATH:$(pwd)/build/bin
    

    Replace $(pwd) with the full path to the mvs-texturing repository if you're not currently in that directory.

  4. After running the above command, you should be able to run texrecon from any directory in the current terminal session.

Alternatively, you can permanently add the build/bin directory to your system's PATH environment variable by modifying your shell's configuration file (e.g., .bashrc for Bash, .zshrc for Zsh). Consult your shell's documentation for instructions on how to do this.

Once you've added the directory containing the texrecon executable to your PATH environment variable, you should be able to run the command without encountering the "command not found" error.

大佬你好,我也遇到了这种问题,而且我的mvs-texturing中好像没有遇到bin文件夹,我不清楚我是没有安装上mvs-texturing还是说目录进错了,能麻烦您帮忙看一下吗

mvs-texturing图片

Hi! @DYH200009

If you compile mvs-texturing successfully, maybe you can try finding texrecon in mvs-texturing/build/apps/texrecon directory.

感谢大佬指路,补充一下,添加路径的时候指令为export PATH=$PATH:$(pwd)/build/apps/texrecon