all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* path error
@ 2018-02-26 20:52 Quiliro Ordonez Baca
  2018-02-26 20:58 ` Andreas Enge
  2018-02-26 23:05 ` path error Björn Höfling
  0 siblings, 2 replies; 6+ messages in thread
From: Quiliro Ordonez Baca @ 2018-02-26 20:52 UTC (permalink / raw)
  To: help-guix


I have downloaded OpenKinect. (Disclosure: I have not checked wether it
is has non-libre software yet.) I typed:

git clone https://github.com/OpenKinect/libfreenect
cd libfreenect
mkdir build
cd build
cmake -L ..

But I get an error on executing that command. Here is the output:

quiliro@portkomputilo ~/libfreenect/build$ cmake -L ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /home/quiliro/.guix-profile/bin/gcc
-- Check for working C compiler: /home/quiliro/.guix-profile/bin/gcc -- broken
CMake Error at /gnu/store/0wzyh3rfskcyprf9vd3w9680ly5bl42a-cmake-3.7.2/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
  The C compiler "/home/quiliro/.guix-profile/bin/gcc" is not able to compile
  a simple test program.

  It fails with the following output:

   Change Dir: /home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp

  

  Run Build Command:"/home/quiliro/.guix-profile/bin/make" "cmTC_42c45/fast"

  /home/quiliro/.guix-profile/bin/make -f
  CMakeFiles/cmTC_42c45.dir/build.make CMakeFiles/cmTC_42c45.dir/build

  make[1]: se entra en el directorio
  '/home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp'

  Building C object CMakeFiles/cmTC_42c45.dir/testCCompiler.c.o

  /home/quiliro/.guix-profile/bin/gcc -o
  CMakeFiles/cmTC_42c45.dir/testCCompiler.c.o -c
  /home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp/testCCompiler.c

  gcc: error trying to exec 'as': execvp: No existe el fichero o el
  directorio

  make[1]: *** [CMakeFiles/cmTC_42c45.dir/build.make:66:
  CMakeFiles/cmTC_42c45.dir/testCCompiler.c.o] Error 1

  make[1]: se sale del directorio
  '/home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp'

  make: *** [Makefile:126: cmTC_42c45/fast] Error 2

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:39 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/home/quiliro/libfreenect/build/CMakeFiles/CMakeOutput.log".
See also "/home/quiliro/libfreenect/build/CMakeFiles/CMakeError.log".
-- Cache values
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local


Please suggest possible solution. Thank you very much. :-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: path error
  2018-02-26 20:52 path error Quiliro Ordonez Baca
@ 2018-02-26 20:58 ` Andreas Enge
  2018-02-26 21:30   ` Quiliro Ordonez Baca
  2018-02-26 23:05 ` path error Björn Höfling
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Enge @ 2018-02-26 20:58 UTC (permalink / raw)
  To: Quiliro Ordonez Baca; +Cc: help-guix

Hello,

the solution lies probably here:

On Mon, Feb 26, 2018 at 03:52:54PM -0500, Quiliro Ordonez Baca wrote:
>   gcc: error trying to exec 'as': execvp: No existe el fichero o el
>   directorio

The "as" binary is part of the binutils package.
But I would recommend to install gcc-toolchain instead of gcc, it bundles
a few packages that are needed for development (see its description).

Andreas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: path error
  2018-02-26 20:58 ` Andreas Enge
@ 2018-02-26 21:30   ` Quiliro Ordonez Baca
  2018-02-26 21:53     ` Quiliro Ordonez Baca
  0 siblings, 1 reply; 6+ messages in thread
From: Quiliro Ordonez Baca @ 2018-02-26 21:30 UTC (permalink / raw)
  To: Andreas Enge; +Cc: help-guix

Andreas Enge <andreas@enge.fr> writes:

> Hello,
>
> the solution lies probably here:
>
> On Mon, Feb 26, 2018 at 03:52:54PM -0500, Quiliro Ordonez Baca wrote:
>>   gcc: error trying to exec 'as': execvp: No existe el fichero o el
>>   directorio
>
> The "as" binary is part of the binutils package.
> But I would recommend to install gcc-toolchain instead of gcc, it bundles
> a few packages that are needed for development (see its description).

Thank you very much, Andreas. I installed gcc-toolchain with:
guix package -i gcc-toolchain
Then I executed the command that output the error to test again. It gave
me new errors:
  ld: no se puede encontrar crt1.o: No existe el fichero o el directorio
  ld: no se puede encontrar crti.o: No existe el fichero o el directorio
  collect2: error: ld devolvió el estado de salida 1
This is the complete output:

quiliro@portkomputilo ~/libfreenect/build$ cmake -L ..
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /home/quiliro/.guix-profile/bin/gcc
-- Check for working C compiler: /home/quiliro/.guix-profile/bin/gcc -- broken
CMake Error at /gnu/store/0wzyh3rfskcyprf9vd3w9680ly5bl42a-cmake-3.7.2/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
  The C compiler "/home/quiliro/.guix-profile/bin/gcc" is not able to compile
  a simple test program.

  It fails with the following output:

   Change Dir: /home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp

  

  Run Build Command:"/home/quiliro/.guix-profile/bin/make" "cmTC_49d6e/fast"

  /home/quiliro/.guix-profile/bin/make -f
  CMakeFiles/cmTC_49d6e.dir/build.make CMakeFiles/cmTC_49d6e.dir/build

  make[1]: se entra en el directorio
  '/home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp'

  Building C object CMakeFiles/cmTC_49d6e.dir/testCCompiler.c.o

  /home/quiliro/.guix-profile/bin/gcc -o
  CMakeFiles/cmTC_49d6e.dir/testCCompiler.c.o -c
  /home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTC_49d6e

  /gnu/store/0wzyh3rfskcyprf9vd3w9680ly5bl42a-cmake-3.7.2/bin/cmake -E
  cmake_link_script CMakeFiles/cmTC_49d6e.dir/link.txt --verbose=1

  /home/quiliro/.guix-profile/bin/gcc
  CMakeFiles/cmTC_49d6e.dir/testCCompiler.c.o -o cmTC_49d6e -rdynamic

  ld: no se puede encontrar crt1.o: No existe el fichero o el directorio

  ld: no se puede encontrar crti.o: No existe el fichero o el directorio

  collect2: error: ld devolvió el estado de salida 1

  make[1]: *** [CMakeFiles/cmTC_49d6e.dir/build.make:98: cmTC_49d6e] Error 1

  make[1]: se sale del directorio
  '/home/quiliro/libfreenect/build/CMakeFiles/CMakeTmp'

  make: *** [Makefile:126: cmTC_49d6e/fast] Error 2

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:39 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/home/quiliro/libfreenect/build/CMakeFiles/CMakeOutput.log".
See also "/home/quiliro/libfreenect/build/CMakeFiles/CMakeError.log".
-- Cache values
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
quiliro@portkomputilo ~/libfreenect/build$ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: path error
  2018-02-26 21:30   ` Quiliro Ordonez Baca
@ 2018-02-26 21:53     ` Quiliro Ordonez Baca
  2018-02-26 22:42       ` 3D scanning Quiliro Ordonez Baca
  0 siblings, 1 reply; 6+ messages in thread
From: Quiliro Ordonez Baca @ 2018-02-26 21:53 UTC (permalink / raw)
  To: Andreas Enge; +Cc: help-guix

I suspect the error has to do with:

> -- Cache values
> CMAKE_BUILD_TYPE:STRING=
> CMAKE_INSTALL_PREFIX:PATH=/usr/local
> quiliro@portkomputilo ~/libfreenect/build$ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* 3D scanning
  2018-02-26 21:53     ` Quiliro Ordonez Baca
@ 2018-02-26 22:42       ` Quiliro Ordonez Baca
  0 siblings, 0 replies; 6+ messages in thread
From: Quiliro Ordonez Baca @ 2018-02-26 22:42 UTC (permalink / raw)
  To: Andreas Enge; +Cc: help-guix

What I am trying to do is to 3D scan. I could do it with fotos, video or
with Kinect version 1. Is there a good solution for this task available
in Guix?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: path error
  2018-02-26 20:52 path error Quiliro Ordonez Baca
  2018-02-26 20:58 ` Andreas Enge
@ 2018-02-26 23:05 ` Björn Höfling
  1 sibling, 0 replies; 6+ messages in thread
From: Björn Höfling @ 2018-02-26 23:05 UTC (permalink / raw)
  To: Quiliro Ordonez Baca; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1696 bytes --]

Hi Quiliro,

On Mon, 26 Feb 2018 15:52:54 -0500
Quiliro Ordonez Baca <quiliro@riseup.net> wrote:

> I have downloaded OpenKinect. (Disclosure: I have not checked wether
> it is has non-libre software yet.) I typed:

I haven't checked either. I just saw the keyword "firmwire", which
smells like binaries.


> 
> git clone https://github.com/OpenKinect/libfreenect
> cd libfreenect
> mkdir build
> cd build
> cmake -L ..
> 
> But I get an error on executing that command. Here is the output:
> 
> quiliro@portkomputilo ~/libfreenect/build$ cmake -L ..

[...]
 
>   gcc: error trying to exec 'as': execvp: No existe el fichero o el
>   directorio

[...]


> Please suggest possible solution. Thank you very much. :-)

There are problems with dependencies. I also found out it is not easy to
directly set up the environment for gcc or even worse cmake.

I would suggest to directly start writing a package definition (weather
or not it is free), like described here:

https://www.gnu.org/software/guix/manual/guix.html#Building-from-Git

In your case you need the cmake-build-system. Look through the source
code und gnu/packages/*.scm for examples.

When you then execute

./pre-inst-env guix build libfreenect

Guix will correctly prepare the cmake-environment for you.
Probably it will hit errors because you missed arguments or
dependencies, but at least the basic dependencies will be available.

Furthermore, you can keep the build directory under failure ("-K"):

./pre-inst-env guix build -K libfreenect

Then you can examine the build directory under /tmp/guix-build-... for
cmake log/error files.

Hope this helps,

Björn



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-26 23:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26 20:52 path error Quiliro Ordonez Baca
2018-02-26 20:58 ` Andreas Enge
2018-02-26 21:30   ` Quiliro Ordonez Baca
2018-02-26 21:53     ` Quiliro Ordonez Baca
2018-02-26 22:42       ` 3D scanning Quiliro Ordonez Baca
2018-02-26 23:05 ` path error Björn Höfling

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.