{ "id": "170241", "key": "AC-5351", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-11-30T21:41:38.000+0000", "created": "2017-11-07T10:01:02.000+0000", "labels": [ "hyperloop" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-30T21:41:38.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15000", "name": "Hyperloop" } ], "description": "I'm working on a iOS and Android DVR app with remote controls.\r\nI need to use a third-party library for network communication and video encoding, via hyperloop programming.\r\n\r\nAt the moment I tried importing the iOS version libraries.\r\nThe library consists of a static file libDVR_NET_SDK.a and a \"include\" folder with several .h header files inside.\r\n\r\nI followed the official documentation ad copy the files into folder /app/platform/ios without creating the appc.js file (documentation report that is deprecated).\r\n\r\nI can not understand how to call the external library from javascript code, at the moment I tried:\r\n\r\n var libDVR_NET_SDK = require(\"libDVR_NET_SDK\");\r\n\r\nBut the following error is generated with simulator:\r\n\r\n [ERROR] : Script Error Couldn't find module: libDVR_NET_SDK for architecture: x86_64\r\n\r\nOr on device:\r\n\r\n [ERROR] : Script Error Couldn't find module: libDVR_NET_SDK for architecture: arm64\r\n", "attachment": [], "flagged": false, "summary": "Load external libraries and SDK with appcelerator hyperloop", "creator": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.12.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 6.10.3\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.2.2.GA", "comment": { "comments": [ { "id": "430217", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~sandrolain],\r\nThanks for sharing with us. Check [Modules inTitanium |https://docs.appcelerator.com/platform/latest/#!/guide/CommonJS_Modules_in_Titanium]. Please make sure the module is included in the tiapp.xml and to be rebuilt with 64-bit support. Please follow the steps, test in latest SDK and let us know how it goes.\r\n\r\n \r\n\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-07T11:54:32.000+0000", "updated": "2017-11-07T11:54:32.000+0000" }, { "id": "430218", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello\r\nWhat I'm trying to import is not a titanium module but a pre-compiled native library given by our vendor hrough hyperloop.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-11-07T12:50:29.000+0000", "updated": "2017-11-07T12:50:53.000+0000" }, { "id": "430223", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You need to require the actual headers, not the static library itself. Also, it looks like a C++ library, which types are not fully supported in Hyperloop, yet. In that case, you may want to wrap the API's using a native module (create a new one with {{appc ti create -t module}}).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-07T15:34:01.000+0000", "updated": "2017-11-07T15:34:01.000+0000" }, { "id": "430279", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "[~sandrolain], Did you manage to follow [~hknoechel] 's instructions?", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-08T08:20:27.000+0000", "updated": "2017-11-08T08:20:27.000+0000" }, { "id": "430284", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "I'm trying to create a module that incorporates the code and native libraries I have been provided, but I do not have much experience with creating native modules.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-11-08T13:21:09.000+0000", "updated": "2017-11-08T13:21:09.000+0000" }, { "id": "430306", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, you need to build a module to support your C++ library with Appcelerator. Currently, hyperloop does not fully support that. There is a guide on how to get started with Android module in Appcelerator, http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Project. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-08T19:36:25.000+0000", "updated": "2017-11-08T19:36:25.000+0000" }, { "id": "430459", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~sandrolain], I just wanted to follow up here. Did you manage to follow the instructions provided earlier? Let us know if you still experience any issue. We would be happy to assist you.\r\nBest Regards!", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-12T08:57:45.000+0000", "updated": "2017-11-12T08:57:45.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }