Thanks Ross, Protocol Buffer README file says:
*** Note for cross-compiling *** * * * The makefiles normally invoke the protoc executable that they just* * built in order to build tests. When cross-compiling, the protoc* * executable may not be executable on the host machine. In this case,* * you must build a copy of protoc for the host machine first, then use* * the --with-protoc option to tell configure to use it instead. For* * example:* * * * ./configure --with-protoc=protoc* * * * This will use the installed protoc (found in your $PATH) instead of* * trying to execute the one built during the build process. You can* * also use an executable that hasn't been installed. For example, if* * you built the protobuf package for your host machine in ../host,* * you might do:* * * * ./configure --with-protoc=../host/src/protoc* * * I think I have to use this last option and point to the executable into the i696-linux sysroot.. Can I do this overriding do_configure task? Like this: *do_configure() {* * ./configure --with-protoc=/path/to/sysroot/i686-linux/usr/bin/protoc* *}* * * I tried this way but I got a "permission denied" error.. */bin/bash: line 8: ../-libtool: Permission denied* *| make[3]: *** [install-libLTLIBRARIES] Error 126* How can I solve this error? Thanks Giovanni -- Dott. Ing. Giovanni Foiani Cell: +39-349-3577515 Phone: +39-0532-97-4106 mail: giovanni.foi...@unife.it CenTec - Corso Guercino, 47 - 44042 Cento (FE) On Wed, Jul 25, 2012 at 11:49 AM, Burton, Ross <ross.bur...@intel.com>wrote: > On 25 July 2012 10:47, Giovanni Foiani <fno...@unife.it> wrote: > > The native library builds properly but it populates the wrong sysroot..I > can > > find protoc executable into tmp/sysroots/i686-linux but not into imx53qsb > > sysroot, hence rebuilding the protobuf library it can't find the > > executable.. > > That's what you want -- you want a protoc in the native sysroot. I > guess you need to patch the makefile to use the sysroot protoc instead > of the one it just built. > > Ross > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto >
_______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto