I use FX30 with WP76xx then I want to compiled sample app “httpServer”.
But I got error like below
+ CCFLAGS=-DDEBUG
+ ./autogen.sh
Can't locate strict.pm in @INC (you may need to install the strict module) (@INC contains: /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf //usr/lib/perl/site_perl/5.22.1 //usr/lib/perl/vendor_perl/5.22.1 //usr/lib/perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/site_perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/site_perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/vendor_perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/vendor_perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1 .) at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/Channels.pm line 70.
BEGIN failed--compilation aborted at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/Channels.pm line 70.
Compilation failed in require at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/ChannelDefs.pm line 19.
BEGIN failed--compilation aborted at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/ChannelDefs.pm line 19.
Compilation failed in require at /home/test/workspace/leaf-data/FX30-cat1/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/autoreconf line 39.
BEGIN failed--compilation aborted at /home/test/workspace/leaf-data/FX30-cat1/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/autoreconf line 39.
ninja: build stopped: subcommand failed.
Makefile:4: recipe for target 'wp76xx' failed
make: *** [wp76xx] Error 1
I use your sample code and modify target to WP76xx.
But I got the same error.
+ CCFLAGS=-DDEBUG
+ ./autogen.sh
Can't locate strict.pm in @INC (you may need to install the strict module) (@INC contains: /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf //usr/lib/perl/site_perl/5.22.1 //usr/lib/perl/vendor_perl/5.22.1 //usr/lib/perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/site_perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/site_perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/vendor_perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/vendor_perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1 .) at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/Channels.pm line 70.
BEGIN failed--compilation aborted at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/Channels.pm line 70.
Compilation failed in require at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/ChannelDefs.pm line 19.
BEGIN failed--compilation aborted at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/ChannelDefs.pm line 19.
Compilation failed in require at /home/test/workspace/leaf-data/FX30-cat1/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/autoreconf line 39.
BEGIN failed--compilation aborted at /home/test/workspace/leaf-data/FX30-cat1/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/autoreconf line 39.
ninja: build stopped: subcommand failed.
Makefile:37: recipe for target 'target' failed
make: *** [target] Error 1
(lsh:FX30-cat1) test@test-virtual-machine:~/workspace/leaf-data/current/fx30-cat1-legato/apps/sample/httpServer/Target_Legato_Debug$
I unzip your sample and put it into the app/sample as my app before, the I compiled your sample but I got error, the log is like below:
+ ./autogen.sh
Can't locate strict.pm in @INC (you may need to install the strict module) (@INC contains: /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf //usr/lib/perl/site_perl/5.22.1 //usr/lib/perl/vendor_perl/5.22.1 //usr/lib/perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/site_perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/site_perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/vendor_perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/vendor_perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1/ /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1 /opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/lib/perl/5.22.1 .) at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/Channels.pm line 70.
BEGIN failed--compilation aborted at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/Channels.pm line 70.
Compilation failed in require at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/ChannelDefs.pm line 19.
BEGIN failed--compilation aborted at /home/test/.leaf/wp76-toolchain_SWI9X07Y_02.18.06.00-linux64/sysroots/x86_64-pokysdk-linux/usr/share/autoconf/Autom4te/ChannelDefs.pm line 19.
Compilation failed in require at /home/test/workspace/leaf-data/FX30-cat1/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/autoreconf line 39.
BEGIN failed--compilation aborted at /home/test/workspace/leaf-data/FX30-cat1/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/autoreconf line 39.
ninja: build stopped: subcommand failed.
Makefile:37: recipe for target 'target' failed
make: *** [target] Error 1
So I have no idea to fix it.
I think the point is
+ ./autogen.sh
Can't locate strict.pm in @INC (you may need to install the strict module
me neither, no idea on this as i don’t see such problem. (other user is working fine with this httpserver sample)
But you have a working helloworld, you can port the code of httpserver to it line by line and see which line makes this error
I can compile both the original sample and yours after I set the symbolic link to /swi/opt , so I think root cause is that the lighthttpd set toolchain path is wrong.
I checked app status and I got the app is running, but I also got error log
root@fx30:~# app start httpServer
There was an error. Application 'httpServer' could not be started.
Check the system log for error messages.
the detail log like below
Aug 15 06:20:01 fx30 user.err Legato: =ERR= | supervisor[857]/supervisor T=main | app.c CreateFileLink() 1513 | '/legato/systems/current/apps/qmiAirVantage' is a directory.
Aug 15 06:20:01 fx30 user.err Legato: =ERR= | supervisor[857]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at '/legato/systems/current/apps/qmiAirVantage' in app 'httpServer'.
Aug 15 06:20:01 fx30 user.err Legato: =ERR= | supervisor[857]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.
Is that possible that the folder is created then return error ?