An installation problem with zmqRemoteAPI for Python Clients

Typically: "How do I... ", "How can I... " questions
Post Reply
speedhawk
Posts: 7
Joined: 16 Jun 2021, 10:37

An installation problem with zmqRemoteAPI for Python Clients

Post by speedhawk »

Hi All, I hope to use ZMQRemoteAPI to connect my Python program to my 4.4.0 rev0 CoppeliaSim for robot simulations on win10. However, when I install it according to the introduction on Github, I found that I cannot correctly execute the commands with "cmake" although I have correctly installed Cmake.
This is the processes for installation:

Code: Select all

git clone --recursive https://github.com/CoppeliaRobotics/zmqRemoteApi
cd zmqRemoteApi
git checkout coppeliasim-v4.5.0-rev0
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
cmake --install .
Here, as reminding, I have modified the version number with my actual CoppeliaSim version. after I executed the third command, the terminal returned:

Code: Select all

D:\Program Files\CoppeliaPlugins\zmqRemoteApi>git checkout coppeliasim-v4.4.0-rev0
HEAD is now at bf518d3 updated auto-generated cpp code

But after executing the first command with cmake, it returned an error:

Code: Select all

D:\Program Files\CoppeliaPlugins\zmqRemoteApi\build>cmake -DCMAKE_BUILD_TYPE=Release ..
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
CMake Error at CMakeLists.txt:15 (find_package):
  By not providing "FindCoppeliaSim.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "CoppeliaSim", but CMake did not find one.

  Could not find a package configuration file provided by "CoppeliaSim"
  (requested version 4.3.0.0) with any of the following names:

    CoppeliaSimConfig.cmake
    coppeliasim-config.cmake

  Add the installation prefix of "CoppeliaSim" to CMAKE_PREFIX_PATH or set
  "CoppeliaSim_DIR" to a directory containing one of the above files.  If
  "CoppeliaSim" provides a separate development package or SDK, be sure it
  has been installed.
I am a newer of Cmake and don't know how to fix this problem as the error reminding. I hope anyone can help me to deal with it! Many thanks!!

fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: An installation problem with zmqRemoteAPI for Python Clients

Post by fferri »

As for building plugins, you have to set COPPELIASIM_ROOT_DIR environment variable to point to the CoppeliaSim resources directory (parent of 'programming' dir).

speedhawk
Posts: 7
Joined: 16 Jun 2021, 10:37

Re: An installation problem with zmqRemoteAPI for Python Clients

Post by speedhawk »

fferri wrote: 27 Mar 2023, 09:50 As for building plugins, you have to set COPPELIASIM_ROOT_DIR environment variable to point to the CoppeliaSim resources directory (parent of 'programming' dir).
Hi fferri, many thanks for reply! My concurrent system is win10 and I have set both the systemic and user environment veriable . But when I executed it, another error was returned T.T:

Code: Select all

CMake Error at D:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR regex)
Call Stack (most recent call first):
  D:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  D:/Program Files/CMake/share/cmake-3.26/Modules/FindBoost.cmake:2377 (find_package_handle_standard_args)
  D:/Program Files/CoppeliaRobotics/CoppeliaSimEdu/programming/libPlugin/cmake/FindCoppeliaSim.cmake:315 (find_package)
  CMakeLists.txt:15 (find_package)


-- Configuring incomplete, errors occurred!
It seems I still missed some packages or files. Hope you can help me to fix it. Thanks a million!!

fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: An installation problem with zmqRemoteAPI for Python Clients

Post by fferri »

Boost is required to compile most of the plugins.

speedhawk
Posts: 7
Joined: 16 Jun 2021, 10:37

Re: An installation problem with zmqRemoteAPI for Python Clients

Post by speedhawk »

fferri wrote: 27 Mar 2023, 14:20 Boost is required to compile most of the plugins.
Thank you for your advice. Does that mean I should install Boost in my computer beforehand?


speedhawk
Posts: 7
Joined: 16 Jun 2021, 10:37

Re: An installation problem with zmqRemoteAPI for Python Clients

Post by speedhawk »

fferri wrote: 28 Mar 2023, 09:15Yes
Thanks for answer!

Cheers!

Post Reply