Unable to compile plugin showing error missing separator

Typically: "How do I... ", "How can I... " questions
Post Reply
ravi
Posts: 85
Joined: 24 Oct 2016, 08:00

Unable to compile plugin showing error missing separator

Post by ravi »

Hi,

I am trying to write a plugin. So before starting plugin development, I tried to compile the existing plugin (v_repExtBubbleRob and v_repExtPluginSkeleton) and tried to see how they work. But it is showing following error-

Code: Select all

ravi@lab:~/V-REP_PRO_EDU_V3_3_2_64_Linux/programming/v_repExtBubbleRob$ make
makefile:13: *** missing separator.  Stop.
ravi@lab:~/V-REP_PRO_EDU_V3_3_2_64_Linux/programming/v_repExtBubbleRob$ uname -a
Linux ravi 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
ravi@lab:~/V-REP_PRO_EDU_V3_3_2_64_Linux/programming/v_repExtBubbleRob$ lua -v
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
ravi@lab:~/V-REP_PRO_EDU_V3_3_2_64_Linux/programming/v_repExtPluginSkeleton$ make
makefile:13: *** missing separator.  Stop.
I haven't touched the makefile. Below is the content of makefile-

Code: Select all

CFLAGS = -I../include -Wall -fPIC -static

OS = $(shell uname -s)
ifeq ($(OS), Linux)
    CFLAGS += -D__linux
    EXT = so
else
    CFLAGS += -D__APPLE__
    EXT = dylib
endif

all: 
    @rm -f lib/*.$(EXT)
    @rm -f *.o 
    g++ $(CFLAGS) -c v_repExtBubbleRob.cpp -o v_repExtBubbleRob.o
    g++ $(CFLAGS) -c ../common/scriptFunctionData.cpp -o scriptFunctionData.o
    g++ $(CFLAGS) -c ../common/scriptFunctionDataItem.cpp -o scriptFunctionDataItem.o
    g++ $(CFLAGS) -c ../common/v_repLib.cpp -o v_repLib.o
    @mkdir -p lib
    g++ scriptFunctionData.o scriptFunctionDataItem.o v_repExtBubbleRob.o v_repLib.o -o lib/libv_repExtBubbleRob.$(EXT) -lpthread -ldl -shared 
The makefile can be seen by clicking following link as well. https://dl.dropboxusercontent.com/u/51884474/makefile

I am able to open the scene file (bubbleRobExt.ttt) in V-Rep and it is working properly. But I am not able to compile the source code of plugin.
coppelia
Site Admin
Posts: 10747
Joined: 14 Dec 2012, 00:25

Re: Unable to compile plugin showing error missing separator

Post by coppelia »

Hello,

yes, you are right, we replaced all tabs by 4 space chars, but inadvertently also did this with makefiles. However in makefiles, tabs are important.
So simply replace 4 chars with a tab in those makefiles.

Cheers
ravi
Posts: 85
Joined: 24 Oct 2016, 08:00

Re: Unable to compile plugin showing error missing separator

Post by ravi »

Thank you very much. It is working now.
Post Reply