<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I'm trying to initalize a project with GLFW library but I' getting segmentation fault when I run <i>b</i> command.</div><div><br></div><div>I followed the documentation and, in my Linux environment, I end up writing this bash script: </div><div><br></div><div>  file init_glfw_project.sh</div></div></div></div></div>  #!/bin/bash<br><br>  proj=$1<br>  cdir=$PWD<br><br>  if [ -z $proj ]; then<br>      echo "no project name found"<br>      echo "try this: sh $0 project_name"<br>      exit 1;<br>  fi<br><br>  mkdir -p 3rdparty build<br><br>  git clone <a href="https://github.com/glfw/glfw">https://github.com/glfw/glfw</a> 3rdparty/glfw<br><br>  cd build<br>  cmake -DCMAKE_INSTALL_PREFIX=$cdir/unpkg-gcc $cdir/3rdparty/glfw<br>  make install<br><br>  cd $cdir<br>  bdep new -t exe -l c++ $proj<br><br>  cd $proj<br>  bdep init -C ../$proj-gcc @gcc cc config.cxx=g++ \<br>      config.cc.poptions=-I$cdir/unpkg-gcc/include \<br>      config.cc.loptions=-L$cdir/unpkg-gcc/lib64<br><br><div><div><div><div><div>  sed -i '1s/.*/import libs = GLFW%lib{glfw3}/' $proj/buildfile</div></div></div></div></div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><br></div><div>Relevant parts of this script are: first it installs GLFW in unpkg-gcc directory as a static library; then it creates an executable project and initializes its configuration; and, finally, it adds import libs = GLFW%lib{glfw3}  to the buildfile.</div><div><br></div><div>In terminal I typed:</div><div>$ ./init_glfw_project.sh myproj</div><div>$ cd myproj</div><div>$ b</div><div><br></div><div>and got:</div><div>[1]    5512 segmentation fault (core dumped)  b<br></div><div><br></div><div><br></div><div>What am I doing wrong?</div><div><br></div><div><br></div></div></div></div></div></div>