BIPS/Getting Started/Building BIPS: Difference between revisions

From RidgeRun Developer Wiki
(Created page with "BIPS is a RidgeRun's professional product. You can purchase BIPS, with full source code, from the [LNKHERE RidgeRun Store] or using the Shopping Cart: <center> <html> <div id...")
 
No edit summary
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
BIPS is a RidgeRun's professional product. You can purchase BIPS, with full source code, from the [LNKHERE RidgeRun Store] or using the Shopping Cart:
<noinclude>
{{BIPS/Head|previous=Getting Started/Getting the Code|next=}}
</noinclude>


<center>
<seo title="Getting Started With Building BIPS | RidgeRun" titlemode="replace" metakeywords="GStreamer, NVIDIA, Jetson, TX1, TX2, Jetson AGX Xavier, Xavier, AI, Deep Learning, Machine Learning, Jetson TX1, Jetson TX2, Jetson Xavier, NVIDIA Jetson Xavier, NVIDIA Jetson Orin, Jetson Orin, Orin, NVIDIA Orin, NVIDIA Jetson AGX Orin, Jetson AGX Orin, Assembly Line, Assembly Line Activity, activity recognition, machine learning activity recognition, Exploratory Data Analysis, EDA" description="This RidgeRun wiki page provides more information on Buffer Interprocess Sharing (BIPS) and how to get started building BIPS."></seo>
<html>
<div id='product-component-11074b13486'></div>
    <script type="text/javascript">
    /*<![CDATA[*/


    (function () {
== Dependencies==
      var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
      if (window.ShopifyBuy) {
        if (window.ShopifyBuy.UI) {
          ShopifyBuyInit();
        } else {
          loadScript();
        }
      } else {
        loadScript();
      }


      function loadScript() {
BIPS has the following dependencies for building from source:
        var script = document.createElement('script');
        script.async = true;
        script.src = scriptURL;
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
        script.onload = ShopifyBuyInit;
      }


      function ShopifyBuyInit() {
* libboost-system
        var client = ShopifyBuy.buildClient({
* libspdlog
          domain: 'ridgerun1.myshopify.com',
          storefrontAccessToken: 'b0ca98633a82de5d2f63cd51f5af30ac',
        });


        ShopifyBuy.UI.onReady(client).then(function (ui) {
Info: You may need to have POSIX Shared Memory enabled in your kernel.  
          ui.createComponent('product', {
 
            id: [1684585742407],
=== Core ===
            node: document.getElementById('product-component-11074b13486'),
 
            moneyFormat: '%24%7B%7Bamount%7D%7D',
Please, install them using (in Debian-based systems):
            options: {
 
  "product": {
<syntaxhighlight lang=bash>
     "variantId": "all",
sudo apt install -y     \
     "width": "240px",
     libboost-system-dev \
     "contents": {
     libspdlog-dev      \
      "imgWithCarousel": false,
    python3-dev
      "variantTitle": false,
</syntaxhighlight>
      "description": false,
 
      "buttonWithQuantity": false,
=== Documentation (optional) ===
      "quantity": false
 
    },
For the documentation, consider the following dependencies:
    "text": {
 
      "button": "BUY NOW"
* doxygen
    },
* graphviz
    "styles": {
* java
      "product": {
 
        "@media (min-width: 601px)": {
Please, install them using (in Debian-based systems):
          "max-width": "100%",
 
          "margin-left": "0",
<syntaxhighlight lang=bash>
          "margin-bottom": "50px"
sudo apt install -y    \
        }
    doxygen            \
      },
    graphviz            \
      "button": {
    default-jre         \
        "background-color": "#007493",
    texlive-font-utils
         "font-size": "18px",
</syntaxhighlight>
        "padding-top": "17px",
 
        "padding-bottom": "17px",
=== Meson building system ===
        ":hover": {
 
          "background-color": "#006884"
At the building system level:
        },
 
        ":focus": {
* ninja-build
          "background-color": "#006884"
* python3-pip
        }
* pkg-config
      },
* meson
      "quantityInput": {
 
        "font-size": "18px",
Please, install them using (in Debian-based systems):
        "padding-top": "17px",
 
        "padding-bottom": "17px"
<syntaxhighlight lang=bash>
      },
sudo apt install -y \
      "compareAt": {
    python3        \
        "font-size": "12px"
    python3-pip    \
      }
    ninja-build    \
    }
    pkg-config
  },
</syntaxhighlight>
  "cart": {
 
    "contents": {
The process should be similar in other systems, not based on Debian.
      "button": true
 
    },
Then, install meson and other elements.
    "styles": {
 
      "button": {
<syntaxhighlight lang=bash>
        "background-color": "#007493",
sudo pip3 install meson      \
        "font-size": "18px",
                  pre-commit
        "padding-top": "17px",
pip3 install numpy
        "padding-bottom": "17px",
</syntaxhighlight>
        ":hover": {
 
          "background-color": "#006884"
== Building the project ==
        },
 
        ":focus": {
Once fulfilled the dependencies, you can run a default compilation with:
          "background-color": "#006884"
 
        }
<syntaxhighlight lang=bash>
      },
meson build -Dnvsci_lib=/usr/lib/$(uname -m)-linux-gnu
      "footer": {
ninja -C build
        "background-color": "#ffffff"
sudo ninja -C build install
      }
</syntaxhighlight>
    }
 
  },
For additional customization, you may refer to the following table of options:
  "modalProduct": {
 
    "contents": {
<center>`
      "img": false,
{| class="wikitable"
      "imgWithCarousel": true,
|-
      "variantTitle": false,
! Configure Option !! Description
      "buttonWithQuantity": true,
|-
      "button": false,
| -Denable-python=disabled || Skip the Python API compilation. Enabled by default.
      "quantity": false
|-
    },
| -Dwith-python-version=3.8 || Sets the Python version. It takes '3' by default.
    "styles": {
|-
      "product": {
| -Denable-docs=disabled || Skip documentation generation. Enabled by default.
        "@media (min-width: 601px)": {
|-
          "max-width": "100%",
| --prefix /usr || Set the installation path of the library
          "margin-left": "0px",
|}
          "margin-bottom": "0px"
<b>Table 1.</b> BIPS configuration options (Meson)</caption>
        }
      },
      "button": {
        "background-color": "#007493",
        "font-size": "18px",
        "padding-top": "17px",
        "padding-bottom": "17px",
        ":hover": {
          "background-color": "#006884"
        },
        ":focus": {
          "background-color": "#006884"
        }
      },
      "quantityInput": {
        "font-size": "18px",
        "padding-top": "17px",
        "padding-bottom": "17px"
      }
    }
  },
  "toggle": {
    "styles": {
      "toggle": {
        "background-color": "#007493",
        ":hover": {
          "background-color": "#006884"
        },
        ":focus": {
          "background-color": "#006884"
        }
      },
      "count": {
        "font-size": "18px"
      }
    }
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  }
}
          });
        });
      }
    })();
    /*]]>*/
    </script>
</html>
</center>
</center>
<br>
 
Examples are compiled in the <code>build</code> folder for testing purposes. You can run them in <code>build/src/examples</code>
 
<noinclude>
{{BIPS/Foot|Getting Started/Getting the Code|}}
</noinclude>

Latest revision as of 13:23, 28 August 2024



Previous: Getting Started/Getting the Code Index  






Dependencies

BIPS has the following dependencies for building from source:

  • libboost-system
  • libspdlog

Info: You may need to have POSIX Shared Memory enabled in your kernel.

Core

Please, install them using (in Debian-based systems):

sudo apt install -y     \
    libboost-system-dev \
    libspdlog-dev       \
    python3-dev

Documentation (optional)

For the documentation, consider the following dependencies:

  • doxygen
  • graphviz
  • java

Please, install them using (in Debian-based systems):

sudo apt install -y     \
    doxygen             \
    graphviz            \
    default-jre         \
    texlive-font-utils

Meson building system

At the building system level:

  • ninja-build
  • python3-pip
  • pkg-config
  • meson

Please, install them using (in Debian-based systems):

sudo apt install -y \
     python3        \
     python3-pip    \
     ninja-build    \
     pkg-config

The process should be similar in other systems, not based on Debian.

Then, install meson and other elements.

sudo pip3 install meson      \
                  pre-commit
pip3 install numpy

Building the project

Once fulfilled the dependencies, you can run a default compilation with:

meson build -Dnvsci_lib=/usr/lib/$(uname -m)-linux-gnu
ninja -C build
sudo ninja -C build install

For additional customization, you may refer to the following table of options:

`
Configure Option Description
-Denable-python=disabled Skip the Python API compilation. Enabled by default.
-Dwith-python-version=3.8 Sets the Python version. It takes '3' by default.
-Denable-docs=disabled Skip documentation generation. Enabled by default.
--prefix /usr Set the installation path of the library
Table 1. BIPS configuration options (Meson)

Examples are compiled in the build folder for testing purposes. You can run them in build/src/examples



Previous: Getting Started/Getting the Code Index