swig Questions

2

Solved

I am trying to wrap this library (https://github.com/lemire/EWAHBoolArray) in Go using SWIG, but I'm having a lot of problems since I upgraded to 1.4 I had successfully gotten everything to work u...
Chrysostom asked 14/5, 2015 at 22:6

3

Solved

I have a faiss index and want to use some of the embeddings in my python script. Selection of Embeddings should be done by id. As faiss is written in C++, swig is used as an API. I guess the functi...
Lochner asked 7/1, 2022 at 16:53

3

Solved

I'm trying to write a SWIG wrapper for a C library that uses pointers to functions in its structs. I can't figure out how to handle structs that contain function pointers. A simplified example foll...
Granados asked 17/10, 2009 at 21:36

2

Solved

I'm writing a portable C++ library with bindings to other languages (java, C#, python). I'm making those bindings with help of SWIG. I have a class written in C++: class MyClass { public: const ...
Displacement asked 25/5, 2013 at 13:8

3

Solved

I want to know if there is any way to expose a C++ class to Python but without building an intermediate shared library. Here is my desirable scenario. For example I have following C++ class: class ...
Luxurious asked 26/8, 2013 at 10:53

2

Given this initial graph: import networkx as nx G=nx.MultiGraph() fromnodes=[0,0,1,1,1,1,1,2,3,4,5,5,5,7,8,9,10] tonodes=[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] dupedgeind=0 for x,y in zip(from...
Towbin asked 24/2, 2016 at 19:0

4

Solved

I wanted to test out Pocketsphinx in Node.JS. It says I need to install Swig version 3.0.7 or above. I think I installed all the other dependencies correctly. I can even type Swig commands in the T...
Shepperd asked 22/1, 2018 at 13:4

4

Solved

Noob question ahead... I'm trying to install SWIG on Windows. According to the INSTALL document, I have to cd to the directory containing the package's source code and type ./configure to confi...
Remorseful asked 16/9, 2011 at 10:7

21

Solved

Is there someone who had experience with this error? java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.swig.simple-2/base.apk"],nativeLibraryDirect...
Lauritz asked 28/11, 2014 at 10:30

4

Solved

I am looking for a simple way to expose a C++ class instance to a python embedded interpreter. I have a C++ library. This library is wrapped (using swig for the moment) and I am able to use it fro...
Barbera asked 22/11, 2011 at 11:19

3

How do I use SWIG to generate a C# interface (or at least a C# mock-able base class) from C++ using SWIG? Given: C++: class IWidget { public: virtual void Flob() = 0; }; class Widget : public...
Tarrel asked 8/9, 2014 at 23:31

3

Solved

Firstly, my thanks to all of you for trying to resolve this doubt of mine. I am working on converting a minimal C++ project to be used in Python. The real reason behind this effort is for speed. I ...
Slosh asked 24/9, 2017 at 9:51

2

SWIG generates two wrapping layers for Python module: the C wrapper code and Python wrapper code. And, as I understand, both are agnostic to the specific subversion of Python 3.x (3.1-3.6 currently...
Bodice asked 15/2, 2017 at 0:32

10

Solved

I installed BreakoutDetection the module in Anaconda environment. When I tried to import the module using import breakout_detection in jupyter notebook, I get the below error ---------------------...
Manno asked 21/9, 2017 at 21:10

4

I am using SWIG to access C++ code from Python. How do I elegantly wrap a function that returns values in variables passed by reference like void set(double&a) { a = 42.; } I could not find...
Lunseth asked 12/8, 2010 at 18:6

5

Solved

I try to install Box2D on python but I get the error log: C:\>pip3 install Box2D Collecting Box2D Using cached https://files.pythonhosted.org/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e...
Clegg asked 18/1, 2019 at 11:13

6

Solved

After installing OpenSSL, downloading the pre-built Swig executable, and ensuring the openssl libraries are located in the default c:\pkg, pip install m2crypto results in: ... C:\Program Files (x8...
Sabian asked 4/8, 2014 at 1:46

4

Solved

I have an EventDispatcher class that implements the publish-subscribe pattern. It's interface looks something like this (simplified): class EventDispatcher { public: void publish(const std::strin...
Odor asked 29/12, 2014 at 18:5

2

I have a project written in C++ where I'm using swig to generate some C# wrappers as well. The C++ code uses Doxygen style comments to annotate the classes and functions. Is it possible to get Swig...
Importance asked 13/6, 2016 at 0:7

12

Solved

I'm getting something like this. Can anyone please tell me how to fix this. C:\Users\krush\Documents\ML using Python>pip install pocketsphinx Collecting pocketsphinx Using cached pocketsphinx-...
Concepcion asked 12/6, 2017 at 16:59

3

I've observed that when one types help in the Python repl, one gets Type help() for interactive help, ... and when one types help() one gets kicked into help mode. I'm pretty sure this is ...
Bioluminescence asked 21/2, 2013 at 23:5

2

Solved

I have a C++ class Collection that manages a std::vector<Element> (a private member of the class). From C++ I can iterate through the vector using the begin() and end() iterators (which are ...
Utmost asked 9/2, 2016 at 11:36

3

I am able to call C++ code from Java using SWIG but I can't find any documentation on how to do the reverse (call Java from C++). The official SWIG documentation says (http://www.swig.org/Doc1.3/...
Poachy asked 6/7, 2010 at 21:59

10

Solved

I'm trying to install the Python M2Crypto package into a virtualenv on an x86_64 RHEL 6.1 machine. This process invokes swig, which fails with the following error: $ virtualenv -q --no-site-packa...
Austerlitz asked 14/10, 2011 at 20:4

2

Solved

I'm trying to convert a C++ function with std::string reference to C#. My API looks like this: void GetStringDemo(std::string& str); Ideally I would like to see something like this from C#...
Disembark asked 23/10, 2012 at 0:39

© 2022 - 2024 — McMap. All rights reserved.