Questions tagged [djinni]

djinni is a tool by the Dropbox team to simplify cross platform development for mobile devices. Typical usage is a c++ core library which interfaces with native Objective-C or Java code for iOS and Android devices.

38 questions
1
vote
0 answers

Package djinni has been ignored because it contains invalid configuration

I have djinni installed in my react native project. I try to run my react native project, but i got this warning in my terminal Package djinni has been ignored because it contains invalid configuration. after that i got this error. Deprecated…
1
vote
0 answers

How to map passing objects by value in the IDL file for Djinni

I'm trying to generate the wrapping classes for an existing c++ Library (with source code) to be used in ObjectiveC, I need to know how to write the idl interface for the methods that takes the same class as an argument for example: In C++ header…
Soha Adel
  • 31
  • 3
1
vote
2 answers

C++ Djinni return record. Undefined reference to djinni_generated

I try to use Djinni to implement shared Business-Logic for Android and iOS. I keep getting an error for a method that returns a custom record. I use following IDL-Definition and implementation. audio_book.djinni audio_book = record { id: i32; …
Artur Schens
  • 116
  • 4
1
vote
0 answers

A simple hello-world with djinni is stuck at building djinni. What could be the reason for this?

I am new to djinni and I was checking how it works and wanted to do some hello-world stuff. So from their github repo, I copied the following snippet: # Multi-line comments can be added here. This comment will be propagated # to each generated…
Paul Alto
  • 11
  • 1
1
vote
1 answer

Troubleshooting an iOS Native module loading issue with react native

I'm trying to make sense of an iOS native module whose code is generated by djinni. According to the React Native doc, you must include the RCT_EXPORT_MODULE() macro in your code. This working sample does not. Later in the documentation it is said…
anon
1
vote
1 answer

No implementation found for com.djinnius.HelloWorld$CppProxy

I'm working on a React Native project that uses djinni to use cross platform native C++. I already looked at this question, but it seems a different problem. The project build successfully but fails almost immediately on run. adb logcat shows the…
anon
1
vote
1 answer

Line code works in lldb `p`, code fails in hosted unit test

I've found numerous post about the NSArray element failed to match the Swift Array Element type error. However, I still can't get this to work. I suspect the problem is related to the objective C framework binding I made and is not a casting issue.…
nuKs
  • 134
  • 1
  • 1
  • 10
1
vote
1 answer

Can Djinni generate necessary code from C++ global functions?

I'm researching using libbitcoin for a project I'm going to work on, and interested in using Djinni to create the glue code for ObjC/Java for iOS and Android, respectively. It appears there are many global functions in libbitcoin, inside a…
BJ Miller
  • 1,536
  • 12
  • 16
1
vote
1 answer

What classes and methods do I have to use to call Java from C++?

I'm currently working with Djinni and would like to call Java methods from C++. I have the following interface description file: ExampleSO = interface +j { PerformAddition(a: i32, b: i32): i32; } It generates these…
Nepho
  • 1,074
  • 1
  • 11
  • 32
1
vote
1 answer

Can Dropbox Djinni be used with C++98

I am trying to evaluate Djinni, for generating Java and Obj-C wrappers from our C++ code. We currently use SWIG and are evaluating other tools for wrapper generation. Due to some restriction at my work place our C++ code is in C++-98. We cannot…
Ganesh kudva
  • 990
  • 3
  • 13
  • 34
1
vote
1 answer

Djinni swift project link error

[Your First Cross-Platform Djinni App: Part 2, iOS][1] I follow this guidline and everything works well if I create the new project with Object-C project. However, I want to use Swift project, so I changed the project language and create a bridge…
yeyimilk
  • 614
  • 2
  • 8
  • 18
1
vote
2 answers

Error compiling Djinni under windows

I am trying to compile Dropbox's Djinni, under windows using cygwin to try: https://github.com/dropbox/djinni What is causing this error even though sbt-launch.jar is there under the right folder. $ make ./example/run_djinni.sh Building…
JustinT
  • 11
  • 1
0
votes
0 answers

Unable to build C++ Class in JavaScript using Emscripten with generated Djinni Wrapper

I'm trying to generate an extremely simple WebAssembly module from a C++ class with an add function. Here is the source c++ class and the respective djinni file // ***src/MathUtils.cpp*** #include "MathUtils.hpp" class MathUtils_ : public MathUtils…
0
votes
0 answers

Android Studio debugger doesn't work in C++ code

I don't have much prior experience in Android Studio. I'm trying to debug a problem in C++ code. Djinni and ninja are used in the product. I know that the same setup with zero additional tweaks is debuggable at another machine. But on mine, the…
Gene
  • 1
  • 1
0
votes
1 answer

"use of undeclared identifier" 'noreturn' when using djinni in xcode

I am using a library called djinni, it connects to my iOS code and allows me to run the same c++ code in both iOS and Android. the issue I am having is I have attached it to an old xcode project I am working on and I get errors in the djinni code. I…
saxford
  • 23
  • 5