How to install p7zip-full in MangOH Red board which is having WP7702 module?

Is your command working in console with absolute path?

in my side, I don’t see problem to put this in my legato application:
system("/home/root/7za a /tmp/test.7z /legato/systems/current/apps/hello6/read-only/usr/share/sounds/0-to-9.wav\n");

I can see /tmp/test.7z

yes it works with absolute path, may be I am trying to create a .7z file in a read-only folder!! Also why le_fs_Exists("/legato/systems/current/apps/CompressFile/read-only/test.csv") is not showing that the file exists? will it show only files created using le_fs interface?

maybe you can try to create one by API and see where it is located.

I tried copying the test.csv in /tmp/ folder and tried calling system(/home/root/7za a /tmp/test.7z /tmp/test.csv"), file is getting compressed but my application getting aborted and getting following error.
Jan 6 00:43:01 | compressfile1[10258] | | 7-Zip (a) [32] 16.02 : Copyright © 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,32 bits,1 CPU LE) Scanning the drive: 1 file, 101187 bytes (99 KiB)
Jan 6 00:43:01 | compressfile1[10258] | | z Items to compress: 1 Files read from disk: 1 Archive size: 25932 bytes (26 KiB)
Jan 6 00:43:01 | compressfile1[10258] | | Everything is Ok
Jan 6 00:43:01 | compressfile1[10258] | | *** Error in `compressfile1’: realloc(): invalid next size: 0x7f582e18 ***
Jan 6 00:43:01 | compressfile1[10258] | | PROCESS: 10258 ,TID 10258
Jan 6 00:43:01 | compressfile1[10258] | | SIGNAL: 6, ADDR (nil), AT 0xb6ce45cc SI_CODE 0xfffffffa
Jan 6 00:43:01 | compressfile1[10258] | | ABORT
Jan 6 00:43:01 | compressfile1[10258] | | LEGATO VERSION
Jan 6 00:43:01 | compressfile1[10258] | | 18.09.2_2a5c6ae47c6da6f1483bc7eac5d48fa1_modified
Jan 6 00:43:01 | compressfile1[10258] | |
Jan 6 00:43:01 | compressfile1[10258] | | PROCESS COMMAND LINE
Jan 6 00:43:01 | compressfile1[10258] | | compressfile1
Jan 6 00:43:01 | compressfile1[10258] | |
Jan 6 00:43:01 | compressfile1[10258] | | PROCESS MAP
Jan 6 00:43:01 | compressfile1[10258] | | 7f555000-7f556000 r-xp 00000000 ec:01 73943 /legato/apps/b45559f4a64d0ba784c856cb4380f02f/read-only/bin/compressfile1
Jan 6 00:43:01 | compressfile1[10258] | | 7f566000-7f567000 rw-p 00001000 ec:01 73943 /legato/apps/b45559f4a64d0ba784c856cb4380f02f/read-only/bin/compressfile1
Jan 6 00:43:01 | compressfile1[10258] | | 7f567000-7f588000 rw-p 00000000 00:00 0 [heap]
Jan 6 00:43:01 | compressfile1[10258] | | b6b00000-b6b21000 rw-p 00000000 00:00 0
Jan 6 00:43:01 | compressfile1[10258] | | b6b21000-b6c00000 —p 00000000 00:00 0
Jan 6 00:43:01 | compressfile1[10258] | | b6c8c000-b6ca8000 r-xp 00000000 fe:00 879 /lib/libgcc_s.so.1
Jan 6 00:43:01 | compressfile1[10258] | | b6ca8000-b6cb7000 —p 0001c000 fe:00 879 /lib/libgcc_s.so.1
Jan 6 00:43:01 | compressfile1[10258] | | b6cb7000-b6cb8000 rw-p 0001b000 fe:00 879 /lib/libgcc_s.so.1
Jan 6 00:43:01 | compressfile1[10258] | | b6cb8000-b6de0000 r-xp 00000000 fe:00 871 /lib/libc-2.24.so



Jan 6 00:43:01 | compressfile1[10258] | | be867f70: 65727275 612f746e 2f737070 706d6f43 73736572 656c6946 65722f31 6f2d6461
Jan 6 00:43:01 | compressfile1[10258] | | be867f90: 2f796c6e 3a6e6962 7273752f 636f6c2f 622f6c61 2f3a6e69 2f727375 3a6e6962
Jan 6 00:43:01 | compressfile1[10258] | | be867fb0: 6e69622f 656c2f00 6f746167 7379732f 736d6574 7275632f 746e6572 7070612f
Jan 6 00:43:01 | compressfile1[10258] | | be867fd0: 6f432f73 6572706d 69467373 2f31656c 64616572 6c6e6f2d 69622f79 6f632f6e
Jan 6 00:43:01 | compressfile1[10258] | | […]
Jan 6 00:43:01 | compressfile1[10258] | | Abort while dumping the stack
Jan 6 00:43:01 | compressfile1[10258] | | DONE
Jan 6 00:43:01 | supervisor[1018]/supervisor T=main | proc.c proc_SigChildHandler() 2064 | Process ‘compressfile1’ (PID: 10258) has exited due to signal 6 (Aborted).
Jan 6 00:43:01 | avcDaemon[1079]/avcDaemon T=main | assetData.c RegUpdateTimerHandler() 3262 | RegUpdate timer expired; reporting REG_UPDATE
Jan 6 00:43:01 | avcDaemon[1079]/avcDaemon T=main | assetData.c assetData_RegistrationUpdate() 1946 | unsupported function called.
Jan 6 00:43:01 | supervisor[1018]/supervisor T=main | app.c app_SigChildHandler() 3972 | Process ‘compressfile1’ in app ‘CompressFile1’ faulted: Ignored.
Jan 6 00:43:01 | supervisor[1018]/supervisor T=main | app.c app_StopComplete() 4643 | app ‘CompressFile1’ has stopped.
Jan 6 00:43:01 | supervisor[1018]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘CompressFile1’ has stopped.

maybe you can use my app as example.
hello6.rar (358.0 KB)