Skip to content
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

Linux examples do not build if spaces in path name #110

Open
MLuzTejada opened this issue May 18, 2020 · 2 comments
Open

Linux examples do not build if spaces in path name #110

MLuzTejada opened this issue May 18, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@MLuzTejada
Copy link

I am trying to build linux examples in Ubuntu 18.04
I don't know how to fix this.
And this is what I am getting in the output:

  • test 2 -gt 0

  • case "$1" in

  • BUILD_LINUX=1

  • shift

  • test 1 -gt 0

  • case "$1" in

  • BUILD_EXAMPLES=1

  • shift

  • test 0 -gt 0
    ++ uname -s

  • OS=Linux
    ++ uname -m

  • ARCH=x86_64

  • TAR=/usr/bin/tar

  • '[' Linux = Linux ']'
    ++ /usr/bin/nproc

  • CPUS=4

  • TAR=/bin/tar

  • source /etc/os-release
    ++ NAME=Ubuntu
    ++ VERSION='18.04.4 LTS (Bionic Beaver)'
    ++ ID=ubuntu
    ++ ID_LIKE=debian
    ++ PRETTY_NAME='Ubuntu 18.04.4 LTS'
    ++ VERSION_ID=18.04
    ++ HOME_URL=https://www.ubuntu.com/
    ++ SUPPORT_URL=https://help.ubuntu.com/
    ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
    ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
    ++ VERSION_CODENAME=bionic
    ++ UBUNTU_CODENAME=bionic

  • grep -qE '(Microsoft|WSL)' /proc/version

  • echo ''

  • '[' Linux = Windows ']'

  • '[' Linux = Darwin ']'

  • '[' Linux = Darwin ']'

  • '[' Linux = Linux ']'

  • '[' ']'

  • '[' ']'

  • '[' Linux = Linux ']'

  • '[' 1 ']'

  • type dpkg-query

  • check_package build-essential

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' build-essential
    ++ grep -q '^install ok installed$'

  • check_package cmake

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' cmake
    ++ grep -q '^install ok installed$'

  • check_package libjpeg-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libjpeg-dev
    ++ grep -q '^install ok installed$'

  • check_package libgl1-mesa-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libgl1-mesa-dev
    ++ grep -q '^install ok installed$'

  • check_package libsdl2-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libsdl2-dev
    ++ grep -q '^install ok installed$'

  • check_package libudev-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libudev-dev
    ++ grep -q '^install ok installed$'

  • check_package libv4l-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libv4l-dev
    ++ grep -q '^install ok installed$'

  • check_package libdc1394-22-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libdc1394-22-dev
    ++ grep -q '^install ok installed$'

  • check_package libgstreamer1.0-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libgstreamer1.0-dev
    ++ grep -q '^install ok installed$'

  • check_package libsqlite3-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libsqlite3-dev
    ++ grep -q '^install ok installed$'

  • check_package libcurl4-openssl-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libcurl4-openssl-dev
    ++ grep -q '^install ok installed$'

  • check_package libssl-dev

  • type dpkg-query
    ++ dpkg-query -W '-f=${Status}' libssl-dev
    ++ grep -q '^install ok installed$'

  • type dpkg-query

  • apt-cache --quiet=1 policy libopencv-dev

  • grep -E 'Installed: 3.'

  • apt-cache --quiet=1 policy libopencv-dev

  • grep -E 'Candidate: 3.'

  • echo 'Downloading prebuilt OpenCV'
    Downloading prebuilt OpenCV

  • '[' '!' -d depends/linux/include/opencv2 ']'

  • '[' '!' -d build-linux-x86_64 ']'

  • mkdir build-linux-x86_64

  • cd build-linux-x86_64

  • rm -f CMakeCache.txt

  • cmake .. -DCMAKE_BUILD_TYPE=Release
    -- The CXX compiler identification is GNU 7.5.0
    -- The C compiler identification is GNU 7.5.0
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Using single-configuration CMake generator.
    -- Found OpenCV: /home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_calib3d.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_features2d.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_flann.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_highgui.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_videoio.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_imgcodecs.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_video.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_imgproc.so;/home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib/libopencv_core.so
    -- Defined: ARX_TARGET_PLATFORM_LINUX=1
    -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
    -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    -- Found OpenGLES2: /usr/include
    /usr/usr/local/opt/local
    -- Found OpenGL3: GL
    -- Opting for desktop OpenGL. Set ARX_GL_PREFER_EMBEDDED to change.
    CMake Warning at ARX/CMakeLists.txt:80 (find_package):
    By not providing "FindGTSAM.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "GTSAM", but
    CMake did not find one.

    Could not find a package configuration file provided by "GTSAM" with any of
    the following names:

    GTSAMConfig.cmake
    gtsam-config.cmake

    Add the installation prefix of "GTSAM" to CMAKE_PREFIX_PATH or set
    "GTSAM_DIR" to a directory containing one of the above files. If "GTSAM"
    provides a separate development package or SDK, be sure it has been
    installed.

-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.58.0")
/usr/lib/x86_64-linux-gnu/libcurl.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'libudev'
-- Checking for one of the modules 'libdc1394-2'
-- Checking for one of the modules 'gstreamer-1.0'
-- Checking for one of the modules 'glib-2.0'
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found OpenGLES2: /usr/include
/usr/usr/local/opt/local
<FindSDL2.cmake>
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
</FindSDL2.cmake>
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so
<FindSDL2.cmake>
-- Could NOT find Threads (missing: Threads_FOUND)
</FindSDL2.cmake>
<FindSDL2.cmake>
-- Could NOT find Threads (missing: Threads_FOUND)
</FindSDL2.cmake>
CMAKE_SOURCE_DIR /home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source
<FindSDL2.cmake>
-- Could NOT find Threads (missing: Threads_FOUND)
</FindSDL2.cmake>
-- Configuring done
-- Generating done
-- Build files have been written to: /home/maria/Descargas/Nuevas versiones ARToolKit/artoolkitx-1.0.6.1/Source/build-linux-x86_64

  • make -j 4
    Scanning dependencies of target OCVT
    Scanning dependencies of target ARUtil
    Scanning dependencies of target AR2
    Scanning dependencies of target AR
    [ 1%] Building C object ARX/ARUtil/CMakeFiles/ARUtil.dir/log.c.o
    cc: error: versiones: No existe el archivo o el directorio
    cc: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    ARX/ARUtil/CMakeFiles/ARUtil.dir/build.make:62: recipe for target 'ARX/ARUtil/CMakeFiles/ARUtil.dir/log.c.o' failed
    make[2]: *** [ARX/ARUtil/CMakeFiles/ARUtil.dir/log.c.o] Error 1
    CMakeFiles/Makefile2:381: recipe for target 'ARX/ARUtil/CMakeFiles/ARUtil.dir/all' failed
    make[1]: *** [ARX/ARUtil/CMakeFiles/ARUtil.dir/all] Error 2
    make[1]: *** Se espera a que terminen otras tareas....
    [ 2%] Building C object ARX/AR2/CMakeFiles/AR2.dir/coord.c.o
    cc: error: versiones: No existe el archivo o el directorio
    cc: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    ARX/AR2/CMakeFiles/AR2.dir/build.make:62: recipe for target 'ARX/AR2/CMakeFiles/AR2.dir/coord.c.o' failed
    make[2]: *** [ARX/AR2/CMakeFiles/AR2.dir/coord.c.o] Error 1
    CMakeFiles/Makefile2:492: recipe for target 'ARX/AR2/CMakeFiles/AR2.dir/all' failed
    make[1]: *** [ARX/AR2/CMakeFiles/AR2.dir/all] Error 2
    [ 3%] Building CXX object ARX/OCVT/CMakeFiles/OCVT.dir/OCVConfig.cpp.o
    [ 3%] Building CXX object ARX/OCVT/CMakeFiles/OCVT.dir/HarrisDetector.cpp.o
    c++: error: versiones: No existe el archivo o el directorio
    c++: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    ARX/OCVT/CMakeFiles/OCVT.dir/build.make:62: recipe for target 'ARX/OCVT/CMakeFiles/OCVT.dir/OCVConfig.cpp.o' failed
    make[2]: *** [ARX/OCVT/CMakeFiles/OCVT.dir/OCVConfig.cpp.o] Error 1
    make[2]: *** Se espera a que terminen otras tareas....
    c++: error: versiones: No existe el archivo o el directorio
    c++: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    ARX/OCVT/CMakeFiles/OCVT.dir/build.make:86: recipe for target 'ARX/OCVT/CMakeFiles/OCVT.dir/HarrisDetector.cpp.o' failed
    make[2]: *** [ARX/OCVT/CMakeFiles/OCVT.dir/HarrisDetector.cpp.o] Error 1
    [ 4%] Building CXX object ARX/OCVT/CMakeFiles/OCVT.dir/OCVFeatureDetector.cpp.o
    c++: error: versiones: No existe el archivo o el directorio
    c++: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    ARX/OCVT/CMakeFiles/OCVT.dir/build.make:110: recipe for target 'ARX/OCVT/CMakeFiles/OCVT.dir/OCVFeatureDetector.cpp.o' failed
    make[2]: *** [ARX/OCVT/CMakeFiles/OCVT.dir/OCVFeatureDetector.cpp.o] Error 1
    CMakeFiles/Makefile2:602: recipe for target 'ARX/OCVT/CMakeFiles/OCVT.dir/all' failed
    make[1]: *** [ARX/OCVT/CMakeFiles/OCVT.dir/all] Error 2
    [ 4%] Building C object ARX/AR/CMakeFiles/AR.dir/ar3DUtil.c.o
    [ 4%] Building C object ARX/AR/CMakeFiles/AR.dir/ar3DCreateHandle.c.o
    [ 4%] Building C object ARX/AR/CMakeFiles/AR.dir/arDetectMarker.c.o
    cc: error: versiones: No existe el archivo o el directorio
    cc: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    [ 5%] Building C object ARX/AR/CMakeFiles/AR.dir/arCreateHandle.c.o
    ARX/AR/CMakeFiles/AR.dir/build.make:86: recipe for target 'ARX/AR/CMakeFiles/AR.dir/ar3DUtil.c.o' failed
    make[2]: *** [ARX/AR/CMakeFiles/AR.dir/ar3DUtil.c.o] Error 1
    make[2]: *** Se espera a que terminen otras tareas....
    cc: error: versiones: No existe el archivo o el directorio
    cc: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    cc: error: versiones: No existe el archivo o el directorio
    cc: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    ARX/AR/CMakeFiles/AR.dir/build.make:134: recipe for target 'ARX/AR/CMakeFiles/AR.dir/arDetectMarker.c.o' failed
    make[2]: *** [ARX/AR/CMakeFiles/AR.dir/arDetectMarker.c.o] Error 1
    ARX/AR/CMakeFiles/AR.dir/build.make:62: recipe for target 'ARX/AR/CMakeFiles/AR.dir/ar3DCreateHandle.c.o' failed
    make[2]: *** [ARX/AR/CMakeFiles/AR.dir/ar3DCreateHandle.c.o] Error 1
    cc: error: versiones: No existe el archivo o el directorio
    cc: error: ARToolKit/artoolkitx-1.0.6.1/Source/depends/linux/lib: No existe el archivo o el directorio
    ARX/AR/CMakeFiles/AR.dir/build.make:110: recipe for target 'ARX/AR/CMakeFiles/AR.dir/arCreateHandle.c.o' failed
    make[2]: *** [ARX/AR/CMakeFiles/AR.dir/arCreateHandle.c.o] Error 1
    CMakeFiles/Makefile2:166: recipe for target 'ARX/AR/CMakeFiles/AR.dir/all' failed
    make[1]: *** [ARX/AR/CMakeFiles/AR.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
@philip-lamb
Copy link
Member

This looks like something in the build script has failed to put quotes around the filepath, and it's failing because it's seeing the spaces in your path as argument separators.

As a workaround, try putting artoolkitX into a path without any spaces in it. A folder name with spaces in it like "Nuevas versiones ARToolKit" won't work.

@MLuzTejada
Copy link
Author

It worked! Thanks.
It was so simple after all

@philip-lamb philip-lamb changed the title I cannot build linux examples Linux examples do not build if spaces in path name May 19, 2020
@philip-lamb philip-lamb added the bug Something isn't working label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants