Intel® Edge Software Hub
Get answers from community peers to your questions about building Edge Software Hub solutions for edge compute node.
Announcements
Welcome to the Intel Community! If you like the answer to your question, please mark it as 'Accepted Solution' to help others.

The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.
408 Discussions

eci-ld-ethercat ld /usr/bin/ld ld run timessss

junjuns
Novice
614 Views

eci ld ethercat : /usr/bin/ld : cannot find -lethercat:NO such file or directory 

 

-L /lib/x86_64-linux-gun -wl -rapth,/lib/x86_64-linux-gun \

not find ethercat.so lib 

Labels (1)
0 Kudos
1 Solution
junjuns
Novice
608 Views

CC = gcc
CFLAGS = -Wall -O3 -g -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables
LIBS = -lm -lrt -lpthread -lethercat -Wl,--no-as-needed -L/usr/lib

TARGET = test
SRCS = $(wildcard *.c)

OBJS = $(SRCS:.c=.o)

$(TARGET):$(OBJS)
$(CC) -o $@ $^ $(LIBS)

clean:
rm -rf $(TARGET) $(OBJS)

%.o:%.c
$(CC) $(CFLAGS) -o $@ -c $<

 

Is there a sample project file for this demo, app link to ethercat for development

View solution in original post

0 Kudos
4 Replies
junjuns
Novice
609 Views

CC = gcc
CFLAGS = -Wall -O3 -g -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables
LIBS = -lm -lrt -lpthread -lethercat -Wl,--no-as-needed -L/usr/lib

TARGET = test
SRCS = $(wildcard *.c)

OBJS = $(SRCS:.c=.o)

$(TARGET):$(OBJS)
$(CC) -o $@ $^ $(LIBS)

clean:
rm -rf $(TARGET) $(OBJS)

%.o:%.c
$(CC) $(CFLAGS) -o $@ -c $<

 

Is there a sample project file for this demo, app link to ethercat for development

0 Kudos
junjuns
Novice
515 Views

Recompile ethercat lib to ethercat.so Ethercat.so.1 Ethercat.1.0.0

sudo cp ethercat.so /lib/x86.. /

0 Kudos
Iffa_Intel
Moderator
483 Views

Hi,

 

these documents might help regarding the EthercCAT use case:

1. IgH EtherCat Master Stack

2. Real Time Data Agent

 

 

Cordially,

Iffa

0 Kudos
Iffa_Intel
Moderator
13 Views

Hi,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question. 



Cordially,

Iffa


0 Kudos
Reply