Install Torch7
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dear all,
I'm quite new to Yocto, I've successfully built qemu and ran helloworld example on it. Now I'm trying to install Torch 7 (https://github.com/torch/torch7) library. What I did is:
- devtool add torch https://github.com/torch/torch7.git
- devtool build torch
But the build exits with error, in the attachment I share the log file with you.
My host machine runs Ubuntu 16.04 LTS, and Torch7 is successfully running on it. The installation of Torch first requires to run the 'bash install-deps' command on Ubuntu. My rough estimation is that Yocto seems like cannot build those dependencies automatically.
Could someone give any help on it? Installing Torch7 is very important to my project now, thank you in advance.
Best,
Abayiz
Quoted 8 lines · Abayiz
Dear all,
I'm quite new to Yocto, I've successfully built qemu and ran helloworld example on it. Now I'm trying to install Torch 7 (https://github.com/torch/torch7) library. What I did is:
devtool add torch https://github.com/torch/torch7.git
devtool build torch
Quoted 8 lines
But the build exits with error, in the attachment I share the log file with you. My host machine runs Ubuntu 16.04 LTS, and Torch7 is successfully running on it. The installation of Torch first requires to run the 'bash install-deps' command on Ubuntu. My rough estimation is that Yocto seems like cannot build those dependencies automatically.
Could someone give any help on it? Installing Torch7 is very important to my project now, thank you in advance.
Do you try "devtool edit-recipe torch" to add dependencies to the recipe and configure "cache variables" approprietly?
Quoted 3 lines
Best,
Abayiz
Dear Fabien,
Thank you very much for your reply.
No, I didn't try 'devtool edit-recipe torch' to add dependencies. Actually I didn't know how to add them. Is there any way to directly call that .sh file there??Could you give me a minimal example to illustrate it?
Thank you.
On Thursday, May 18, 2017 10:17 AM, Fabien Lahoudere <[email protected]> wrote:
Quoted 8 lines · Abayiz
Dear all,
I'm quite new to Yocto, I've successfully built qemu and ran helloworld example on it. Now I'm trying to install Torch 7 (https://github.com/torch/torch7) library. What I did is:
devtool add torch https://github.com/torch/torch7.git
devtool build torch
Quoted 8 lines
But the build exits with error, in the attachment I share the log file with you. My host machine runs Ubuntu 16.04 LTS, and Torch7 is successfully running on it. The installation of Torch first requires to run the 'bash install-deps' command on Ubuntu. My rough estimation is that Yocto seems like cannot build those dependencies automatically.
Could someone give any help on it? Installing Torch7 is very important to my project now, thank you in advance.
Do you try "devtool edit-recipe torch" to add dependencies to the recipe and configure "cache variables" approprietly?
Quoted 3 lines
Best,
Abayiz
Signature · 4 lines
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Quoted 1 line · Abayiz
No, I didn't try 'devtool edit-recipe torch' to add dependencies.
Actually I didn't know how to add them. Is there any way to directly call that .sh file there??
That shell script is very specific to a handful of distros. It will only help you as a reference.
For the cache variables even the shell script wouldn't help: the project just won't cross-compile on any distro unless you set those by hand. I assume something like this in the recipe should help:
EXTRA_OECMAKE = "-D<variable>=<value> -D<another_variable>=<value>"
Experiment with one of the variables and see if you can make one of the errors go away.
After that you will have to ensure each dependency is available at build/run time as needed: Some of them will just require you to set DEPENDS or RDEPENDS correctly, some may require you to write a recipe for the dependency first.
Quoted 1 line
Could you give me a minimal example to illustrate it?
The documentation is extensive, I suggest you read the 5.3 section of the dev-manual, especially 5.3.10. Dependencies:
http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-dependencies
and get back with specific questions if that doesn't help.
Based on a quick look I'd expect Torch to be quite tricky to package, be prepared for new problems on the way.
Jussi
Quoted 6 lines · Abayiz
Dear Fabien,
Thank you very much for your reply.
No, I didn't try 'devtool edit-recipe torch' to add dependencies. Actually I didn't know how to add them. Is there any way to directly call that .sh file there??
Could you give me a minimal example to illustrate it?
Usually we add build dependencies with DEPENDS = "..." and runtime dependencies with RDEPENDS = "..."
So you need to check dependencies installed by "bash install-deps".
Can you list them? Maybe recipes exists in which case you have to add them to the variable described above.
Quoted 43 lines
Thank you.
On Thursday, May 18, 2017 10:17 AM, Fabien Lahoudere <[email protected]> wrote:
Quoted 10 lines · Abayiz
Dear all,
I'm quite new to Yocto, I've successfully built qemu and ran helloworld example on it. Now I'm trying to install Torch 7 (https://github.com/torch/torch7) library. What I did is:
devtool add torch https://github.com/torch/torch7.git
devtool build torch
But the build exits with error, in the attachment I share the log file with you. My host machine runs Ubuntu 16.04 LTS, and Torch7 is successfully running on it. Theinstallation
Quoted 6 lines
of Torch first requires to run the 'bash install-deps' command on Ubuntu. My rough estimation is that Yocto seems like cannot build those dependencies automatically.
Could someone give any help on it? Installing Torch7 is very important to my project now, thank you in advance.Do you try "devtool edit-recipe torch" to add dependencies to the recipe and configure "cache variables" approprietly?
Quoted 4 lines
Best,
Abayiz--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Dear Fabien and Jussi,
Thank you very much for your time and concern.
After your suggestion I tried to find out all those packages installed by "bash install-deps". However I found that these deps are required to build JIT version of Lua, as mentioned on the official Torch website. So instead I used Lua 5.2 instead of JIT, which does not require to run "bash install-deps" first. And this time after I generated Torch recipe using devtool and tried to build it, the compilation proceeded to nearly 96%, then thows an error saying:
Could NOT find Wget (missing: WGET_EXECUTABLE)
| -- Could NOT find MD5 (missing: MD5_EXECUTABLE) | -- curl found instead of wget :/home/abayiz/trunk/poky/build-hello/tmp/work/i586-poky-linux/torch/2.1devel+git999-r0/recipe-sysroot-native/usr/bin/curl | CMake Error at exe/luajit-rocks/luarocks/CMakeLists.txt:77 (MESSAGE): | MD5 checker not found
However in the 'devtool' generated recipe file, I found this line:
# NOTE: unable to map the following CMake package dependencies: CUDA CUDNN BLAS ARM Torch SSE MD5 MAGMA LAPACK Readline DEPENDS = "wget jpeg ncurses libpng"
Seems like wget is already set as built-time dependency but the system doesn't see it, as well as MD5. Do you have any suggestion for that?Thank you again. Best.
On Thursday, May 18, 2017 4:17 PM, Fabien Lahoudere <[email protected]> wrote:
Quoted 6 lines · Abayiz
Dear Fabien,
Thank you very much for your reply.
No, I didn't try 'devtool edit-recipe torch' to add dependencies. Actually I didn't know how to add them. Is there any way to directly call that .sh file there??
Could you give me a minimal example to illustrate it?
Usually we add build dependencies with DEPENDS = "..." and runtime dependencies with RDEPENDS = "..."
So you need to check dependencies installed by "bash install-deps".
Can you list them? Maybe recipes exists in which case you have to add them to the variable described above.
Quoted 43 lines
Thank you.
On Thursday, May 18, 2017 10:17 AM, Fabien Lahoudere <[email protected]> wrote:
Quoted 10 lines · Abayiz
Dear all,
I'm quite new to Yocto, I've successfully built qemu and ran helloworld example on it. Now I'm trying to install Torch 7 (https://github.com/torch/torch7) library. What I did is:
devtool add torch https://github.com/torch/torch7.git
devtool build torch
But the build exits with error, in the attachment I share the log file with you. My host machine runs Ubuntu 16.04 LTS, and Torch7 is successfully running on it. Theinstallation
Quoted 6 lines
of Torch first requires to run the 'bash install-deps' command on Ubuntu. My rough estimation is that Yocto seems like cannot build those dependencies automatically.
Could someone give any help on it? Installing Torch7 is very important to my project now, thank you in advance.Do you try "devtool edit-recipe torch" to add dependencies to the recipe and configure "cache variables" approprietly?
Quoted 4 lines
Best,
Abayiz--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 6 lines · Abayiz
Dear Fabien and Jussi,
Thank you very much for your time and concern.
After your suggestion I tried to find out all those packages installed by "bash install-deps". However I found that these deps are required to build JIT version of Lua, as mentioned on the official Torch website.
good
Quoted 11 lines
So instead I used Lua 5.2 instead of JIT, which does not require to run "bash install-deps" first. And this time after I generated Torch recipe using devtool and tried to build it, the compilation proceeded to nearly 96%, then thows an error saying:
Could NOT find Wget (missing:
WGET_EXECUTABLE)
| -- Could NOT find MD5 (missing:MD5_EXECUTABLE)
| -- curl found instead of wget :/home/abayiz/trunk/poky/build-hello/tmp/work/i586-poky- linux/torch/2.1devel+git999-r0/recipe-sysroot-native/usr/bin/curl
| CMake Error atexe/luajit-rocks/luarocks/CMakeLists.txt:77(MESSAGE):
| MD5 checker not found
Quoted 6 lines
However in the 'devtool' generated recipe file, I found this line:
# NOTE: unable to map the following CMake package dependencies: CUDA CUDNN BLAS ARM Torch SSE MD5 MAGMA LAPACK Readline
Seems like wget is already set as built-time dependency but the system doesn't see it, as well as MD5. Do you have any suggestion for that?
maybe wget is needed for host and not target. As they expect "EXECUTABLE", I think it is more a RDEPENDS needed. Maybe your soft is not cross compilable as is nad should be patches. You need to understand why tools are necessary and fix accordingly.
Quoted 72 lines
Thank you again.
Best.On Thursday, May 18, 2017 4:17 PM, Fabien Lahoudere <[email protected]> wrote:
Quoted 6 lines · Abayiz
Dear Fabien,
Thank you very much for your reply.
No, I didn't try 'devtool edit-recipe torch' to add dependencies. Actually I didn't know how to add them. Is there any way to directly call that .sh file there??
Could you give me a minimal example to illustrate it?Usually we add build dependencies with DEPENDS = "..." and runtime dependencies with RDEPENDS = "..."
So you need to check dependencies installed by "bash install-deps".
Can you list them? Maybe recipes exists in which case you have to add them to the variable described
above.Quoted 19 lines
Thank you.
On Thursday, May 18, 2017 10:17 AM, Fabien Lahoudere <[email protected]> wrote:Quoted 10 lines · Abayiz
Dear all,
I'm quite new to Yocto, I've successfully built qemu and ran helloworld example on it. Now I'm trying to install Torch 7 (https://github.com/torch/torch7) library. What I did is:
devtool add torch https://github.com/torch/torch7.git
devtool build torch
But the build exits with error, in the attachment I share the log file with you. My host machine runs Ubuntu 16.04 LTS, and Torch7 is successfully running on it. TheQuoted 2 lines
installation
Quoted 1 line
of Torch first requires to run the 'bash install-deps' command on Ubuntu. My rough estimation
is
Quoted 3 lines
Quoted 3 lines
that Yocto seems like cannot build those dependencies automatically.
Could someone give any help on it? Installing Torch7 is very important to my project now,thank
Quoted 19 lines
Quoted 2 lines
you in advance.
Do you try "devtool edit-recipe torch" to add dependencies to the recipe and configure "cache variables" approprietly?Quoted 2 lines
Best,
AbayizQuoted 1 line
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto