LAMW JNI folder lazarus / 43-Android ---------------------------------------------------------------------- CRJ · 2020-11-14 13:31 Is it possible to store source files for a LAMW project outside of the JNI folder? When I try to include source files from a different folder, I get a linker error. ---------------------------------------------------------------------- jmpessoa · 2020-11-14 23:15 Hi, CRJ! Welcome! You can try: Lazarus IDE menu: Project --> Project Options Compiler Options --> Paths --> "other units files(-Fu)" ---------------------------------------------------------------------- CRJ · 2020-11-15 11:03 Hi jmpessoa, It's a weird one. I add the path as  you suggest, but I'm still stuck. The compile phase is fine, the problem arises when the linker kicks in ... controls.lpr (660,15) Error: Error while linking The line of code is:   gjAppName:= 'org.jackson.cycling'; As a hacky workaround, If I create symlinks in the jni folder to the necessary units, everything is fine. I'm on Ubuntu 20.04 Thanks. ---------------------------------------------------------------------- Segator · 2020-11-15 16:23 why just not copy al things to the jni folder? ---------------------------------------------------------------------- CRJ · 2020-11-15 22:46 Because I want to share a library of units across many projects; both LAMW based projects and regular Lazarus projects. I also don't want duplicate copies of the same units scattered around. Thanks. ---------------------------------------------------------------------- Manlio · 2020-11-19 16:08 I wanted to do something similar, and this is what worked for me. 1. The files controls.lpi and controls.lpr contain code that is managed and updated automatically by LAMW, so they must be in the jni folder, or nothing will work. 2. All other source files (forms, units, etc.) can be anywhere you want. Just make sure that you include the path, as explained above: Lazarus IDE menu: Project --> Project Options Compiler Options --> Paths --> "other units files(-Fu)"