# Creating a Binary File Plugin/ Cmake uncessfully

**URL:** https://discourse.paraview.org/t/creating-a-binary-file-plugin-cmake-uncessfully/11837
**Category:** ParaView Support
**Tags:** vtk
**Created:** [April 9, 2023, 1:00pm UTC](https://discourse.paraview.org/t/creating-a-binary-file-plugin-cmake-uncessfully/11837 "2023-04-09T13:00:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![1241doobieC](https://discourse.paraview.org/user_avatar/discourse.paraview.org/1241doobiec/32/11235_2.png) [@1241doobieC](https://discourse.paraview.org/u/1241doobieC)
#### Post date: [April 9, 2023, 1:00pm UTC](https://discourse.paraview.org/t/creating-a-binary-file-plugin-cmake-uncessfully/11837/1 "2023-04-09T13:00:39Z")

</div>

Hello all,

I am currently attempting to build my own ParaView plugin by following [ParaView/Plugin HowTo](https://kitware.github.io/paraview-docs/nightly/cxx/PluginHowto.html).

**Some info of my OS and** [Plugin](https://github.com/1241doobieC/ParaView-Plugin):  
OS: MacOS Ventura 13  
Chip: Apple M1  
Paraview version: 5.11.01

Plugin [file tree](https://tree.nathanfriend.io/?s=(%27options!(%27fancy3~fullPath!false~trailingSlash3~rootDot3)~4(%274%270-README.md-2-P60.cxx*0.h*2*paraview.p6r7s.xml*vtk0.cpp%27)~version!%271%27)*-5-%5Cn50BinR72CMakeLists.txt3!true4source!5%20%206lugin*7eader%017654320-*)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/19f6e46f150107ba3eccd8115ddf2491315914a1.png)

1. I built ParaView from source. The first problem I met is, when I ran command `cmake ..` in the directory `build` I received the following message:

```auto
CMake Error at CMakeLists.txt:6 (find_package):
  By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ParaView",
  but CMake did not find one.

  Could not find a package configuration file provided by "ParaView" with any
  of the following names:

    ParaViewConfig.cmake
    paraview-config.cmake

  Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
  "ParaView_DIR" to a directory containing one of the above files. If
  "ParaView" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!

```

As far as I know , this problem happens when CMake cannot find the ParaView package configuration file. However, I did built Paraview and set `ParavView_DIR` (I also installed ParaView with `brew install` command in Mac). It still failed.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/07bef2f944e4edd87a42aa447e6e674826d55d80.png)

Does anyone have idea how I could solve this problem?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 11, 2023, 9:21am UTC](https://discourse.paraview.org/t/creating-a-binary-file-plugin-cmake-uncessfully/11837/2 "2023-04-11T09:21:02Z")

</div>

using cmake, ccmake or cmake-gui to set user variable, do not set it in the CMakeLists.txt, and you should point to the right directory containing `ParaViewConfig.cmake`

eg:

`cmake -DParaView_DIR="/opt/homebrew/lib/cmake/paraview" ../`
