Remote API linker errors

Typically: "How do I... ", "How can I... " questions
Post Reply
stubbybubby
Posts: 2
Joined: 06 Jun 2013, 04:43

Remote API linker errors

Post by stubbybubby » 07 Jun 2013, 01:25

Hi VREP Community!

I am doing my undergraduate engineering thesis on motion planning under uncertainty and am using the VREP robotic simulator as a testing platform :)

I have created a scene in VREP and am trying to create my own C++ project using the remote API. I am using CMake to build the project. It builds 100% but am getting the following error: "undefined reference to “simxLoadScene(char const*, char, int)"

My CMakeLists.txt file essentially reads the following:

include_directories (${VREP_DIR}

add_definitions (-DNON_MATLAB_PASSING)
add_library (VREPFunctions VREPFunctions.cpp ${VREP_REMOTEAPI_DIR}/extApi.o ${VREP_REMOTEAPI_DIR}/extApiPlatform.o)
target_link_libraries (VREPFunctions pthread)

VREP_DIR is the path to the root vrep directory.
VREPFunctions is the name of my C++ project
VREP_REMOTEAPI_DIR is the path vrep/programming/remoteApi

I have added both the extApi.o and extApiPlatform.o objects to the project so am not 100% sure why it isn't linking.

HELP ME PLZ

coppelia
Site Admin
Posts: 7225
Joined: 14 Dec 2012, 00:25

Re: Remote API linker errors

Post by coppelia » 07 Jun 2013, 10:06

Hello,

What version of V-REP are you using?
In the last version (3.0.3) you will have to add another preprocessor definition: MAX_EXT_API_CONNECTIONS=255
Could you try to check why only one function generates this error (simxLoadScene)?

Cheers

stubbybubby
Posts: 2
Joined: 06 Jun 2013, 04:43

Re: Remote API linker errors

Post by stubbybubby » 08 Jun 2013, 04:53

Thanks for the reply!

I am using version 3.0.2

currently I am only using "simxLoadScene" functionality. I do not believe it is a problem with this function call, rather a linker issue.

I have spent a bit more time on the problem and still have had no luck! Any more ideas??

Cheers.

coppelia
Site Admin
Posts: 7225
Joined: 14 Dec 2012, 00:25

Re: Remote API linker errors

Post by coppelia » 09 Jun 2013, 20:23

Hello,

I believe your issue is not directly linked to V-REP or the remote API, and we unfortunately have no large experience with CMake.
Have you tried building the BubbleRobClient application in the traditional way, to see if you don't have another issue?

Code: Select all

make -f bubbleRobClient_Makefile
Cheers

Roios
Posts: 2
Joined: 26 Jan 2018, 17:14

Re: Remote API linker errors

Post by Roios » 31 Jan 2018, 13:47

I have exactly the same problem.
Any solution?

Post Reply