No serial library Processing for smartphone. Help

finally a full guide to install libraries on apde

  • Installation Steps
  • If the library is in a ZIP or other type of compressed file, then extract it.
  • Copy the extracted folder to the libraries folder in the Sketchbook folder and rename it to the desired name of the library., e.g. “path/to/Sketchbook/libraries/Ketai/”.
  • Ensure that the library JAR file is located in the “library” folder in the library’s folder with the same name as the enclosing folder, e.g. “Ketai/library/Ketai.jar”. Copy any additional JAR files to this folder.
  • Optionally, ensure that the library’s examples are located in the “examples” folder in the library’s folder, e.g. “Ketai/examples/”.
  • Optionally, ensure that the “library.properties” file is located at the root of the library’s folder, e.g. “Ketai/library.properties”.
  • Create a new folder at the same level as the “library” folder with the name “library-dex”, e.g. “Ketai/library-dex/”.
  • Open APDE and navigate to (action overflow) > Tools > Import Library > Manage Libraries > (action overflow) > DX Dexer. Note: The library should already appear in the list, but it has not been fully installed yet.
  • In the “Input File” text box, enter the path to the library JAR file, e.g. “path/to/Sketchbook/libraries/Ketai/library/Ketai.jar”. You may use the file select button to aid in locating this file.
  • In the “Output File” text box, enter the same path as above, but change the “library” folder to “library-dex” and change the library JAR file to “libraryName-dex.jar”, e.g. “path/to/Sketchbook/libraries/Ketai/library-dex/Ketai-dex.jar”.
  • Press the “Dex” button. Wait for the dexing process to complete.
  • Repeat steps 7 through 10 for any additional library JAR files.
  • When the dialog closes, the library has been fully installed. It will now be automatically added to any sketch with the import statements at the top.

I havent tested all of these yet but I have attempted the traditional way and couldnt get them to load.

There have been many problems reported with adding libraries to apde

So I’ve managed to successfully install the jcomms library after a few failed attempts here are the steps I followed

then

and select

  • 6 install the library manually using the following steps

in your sketchBook folder create a new libraries folder. Here add a new folder with the name of your library (they must match), in that folder create a new folder called library, and in that folder add your jar file.

This will now allow you to be install them using the apde add library process

2 Likes