GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chewcw/baumer-neoapi-csharp-wrapper

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build_wrapper.sh
build_wrapper.sh
 
 
extra_handlers.cs
extra_handlers.cs
 
 
generate_interface.sh
generate_interface.sh
 
 

Repository files navigation

neoAPI C# Wrapper Generation for Linux

This project provides tools to generate a C# wrapper for the Baumer neoAPI SDK on Linux using SWIG.

Prerequisites

  • SWIG: Simplified Wrapper and Interface Generator (sudo apt install swig)
  • g++: GNU C++ compiler
  • Baumer neoAPI SDK: The SDK directory (e.g., Baumer_neoAPI_1.5.0_lin_x86_64_cpp) should be present or its path provided to the build script.

Step-by-Step Generation

1. Generate the SWIG Interface

Run the generate_interface.sh script to create the neoapi.i file. This script automatically adds ergonomic C# properties (like SerialNumber, ModelName, etc.) to the CamInfo class to match the Windows neoAPI implementation.

./generate_interface.sh [path_to_sdk]

2. Build the Wrapper

Run the build_wrapper.sh script to generate the C# source and the native shared library.

./build_wrapper.sh [path_to_sdk]

This will produce:

  • wrapper/neoAPI_linux.cs: Consolidated C# wrapper classes.
  • wrapper/libneoapi_csharp.so: Native library required for runtime.

Project Structure

  • generate_interface.sh: Script to generate the SWIG interface file (neoapi.i).
  • build_wrapper.sh: Script to run SWIG and compile the native wrapper library.
  • neoapi.i: The SWIG interface definition.
  • wrapper/: Directory containing the generated output and native library dependencies.
  • .gitignore: Configured to ignore intermediate build artifacts and native libraries.

Troubleshooting

  • SDK Path: If the SDK is not in the default directory, ensure you provide the absolute path as an argument to the scripts.
  • RPath: The generated native library uses $ORIGIN and $ORIGIN/lib in its RPath to find the neoAPI C++ libraries. Ensure the required .so files are available in the wrapper/lib directory.

About

No description or website provided.

Topics

baumerc-plus-plusdotnetindustrial-cameralinuxneoapiwrapper

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.