This might be an Android specific question, I don't know.
I have a .a file that is the result of build (The V8 build to be specific). From here, I thought that .a files were 'archives' and thus contained the relevant bits from the object files. Since I assumed they were archives, I moved them to another machine for my Android specific build. However, when I attempt to build an android native library, I get the following error:
error: cannot open /data/v8_3_26/out/android_arm.release/obj.target/v8_base.arm/src/api.o: No such file or directory
If I explicitly copy the .o files (and put them in the hard-coded path shown above) my Android build works fine. So I have a few questions.
- Is this just an Android specific thing, or do .a files just reference .o files in general?
- Can I create a .a file that actually contains the relative bits from the .o files?
- If not, do I really have to put the .o files in the same place they were on the build machine, or can this be specified during the linking step?