[etherlab-dev] Compiling ethercat out of tree

Niklas Claesson nicke.claesson at gmail.com
Tue Jun 2 12:45:42 CEST 2015


Thanks!

I can verify that it worked! For the record, I had to run autoreconf also.

Cheers
- Niklas


2015-06-02 9:47 GMT+02:00 Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>:
> Hello Niklas
>
> The following does the trick to me, in order to build out of tree
>
> diff --git a/lib/Makefile.am b/lib/Makefile.am
> index e8b2285..7c40e5a 100644
> --- a/lib/Makefile.am
> +++ b/lib/Makefile.am
> @@ -50,7 +50,7 @@ noinst_HEADERS = \
>   slave_config.h \
>   voe_handler.h
>
> -libethercat_la_CFLAGS = -fno-strict-aliasing -Wall
> +libethercat_la_CFLAGS = -fno-strict-aliasing -Wall -I$(top_srcdir)
>  libethercat_la_LDFLAGS = -version-info 1:0:0
>
>  Regards!
>
> On Thu, May 28, 2015 at 5:34 PM, Niklas Claesson
> <nicke.claesson at gmail.com> wrote:
>> Hi,
>>
>> I'm trying to compile ethercat in another directory like this:
>>
>> mkdir test
>> ../ethercat-1.5.2/configure --with-pic --enable-generic --disable8139too
>> make
>>
>> and I get the following error:
>>
>> In file included from ../../ethercat-1.5.2/lib/common.c:41:0:
>> ../../ethercat-1.5.2/lib/ioctl.h:44:26: fatal error: master/ioctl.h:
>> No such file or directory
>> #include "master/ioctl.h"
>>
>> It works if I compile it in the same tree as the sources are in. Am I
>> doing something wrong?
>>
>> Cheers
>> - Niklas
>> _______________________________________________
>> etherlab-dev mailing list
>> etherlab-dev at etherlab.org
>> http://lists.etherlab.org/mailman/listinfo/etherlab-dev
>
>
>
> --
> Ricardo Ribalda


More information about the etherlab-dev mailing list