Re: 4a-hal-generic cmake failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Sitech,

The CMake infrastructure uses the PKG_CHECK_MODULES macro, which
relies on pkg-config

Thus, copying the library in the SDK is not enough, you are still missing the pkg-config file (likely a lua.pc or something like that)

Anyway, your SDK seems incomplete and that is a bug.
Could you please report a Jira , pointing out that the SDK for raspberry is missing lua ?

Meanwhile, maybe you could also investigate on your side, why your manual lua install is incomplete ?

Cheers,
Thierry

On 08/13/2018 03:24 PM, Sitech wrote:
Hi bultel,
Even though install lua-5.3.4 after source the sdk,i copy the liblua.a to the directory, still error, and here is mine:

albert@albert:/opt/poky-agl/5.99.2/sysroots/armv7vehf-neon-vfpv4-agl-linux-gnueabi/usr/lib$ find -name "*.a"
./libpthread_nonshared.a
./libQt5FontDatabaseSupport.a
./libQt5EventDispatcherSupport.a
./libQt5Bootstrap.a
./libQt5QmlDevTools.a
./liblua.a
./arm-agl-linux-gnueabi/7.2.0/libgcov.a
./arm-agl-linux-gnueabi/7.2.0/libgcc_eh.a
./arm-agl-linux-gnueabi/7.2.0/libgcc.a
./libQt5EglSupport.a
./libQt5FbSupport.a
./libQt5ThemeSupport.a
./libssp_nonshared.a
./libQt5InputSupport.a
./libQt5AccessibilitySupport.a
./libQt5UiTools.a
./libQt5PlatformCompositorSupport.a
./libvcard.a
./libQt5OpenGLExtensions.a
./libQt5DeviceDiscoverySupport.a
./libQt5ServiceSupport.a
./libc_nonshared.a


Cheers,
Sitech
------------------ Original ------------------
*From: * "thierry bultel"<thierry.bultel@xxxxxxx>;
*Date: * Mon, Aug 13, 2018 08:58 PM
*To: * "automotive-discussions"<automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx>;
*Subject: * Re:  4a-hal-generic cmake failed
You should not have to re-compile lua since it is provided by the SDK.

  From what I know, the static lua library is expected.
In my SDK, I have:
/opt/poky-agl/5.99.1+snapshot/sysroots/aarch64-agl-linux/usr/lib/liblua.a

Can you check in yours please ? That could be an SDK issue, tell us
Thierry

On 08/13/2018 02:40 PM, Sitech wrote:
 > Hi,
 > When i build 4a-hal-generic project, follow the README.md :
 > ```
 > mkdir build && cd build
 > source
> /opt/poky-agl/5.99.2/environment-setup-armv7vehf-neon-vfpv4-agl-linux-gnueabi
 > cmake ..
 > ```
 > And i get an error:
 > -- Checking for module 'lua-5.3>=5.3'
 > --   No package 'lua-5.3' found
 > And then, i download lua-5.3.4, compile and install, but still error.I
 > try to install lua-5.3.4 to SDK directory:
 > ```
 > sudo make install
 > INSTALL_TOP=/opt/poky-agl/5.99.2/sysroots/x86_64-aglsdk-linux/usr/bin/
 > ```
 > It doesn't work, i also try to disable lua module through modify the
 > CMakeList.txt:
 > ```
 > set(CONTROL_SUPPORT_LUA 0 CACHE BOOL "Active or not LUA Support")
 > ```
 > Still doesn't work. Does any friends meet this problem?
 >
 > albert@albert:~/files/agl/code/audio-4a/4a-hal-generic/build$ which lua
 > /opt/poky-agl/5.99.2/sysroots/x86_64-aglsdk-linux/usr/bin/lua
 > albert@albert:~/files/agl/code/audio-4a/4a-hal-generic/build$ lua -v
 > Lua 5.3.4  Copyright (C) 1994-2017 Lua.org, PUC-Rio
 > albert@albert:~/files/agl/code/audio-4a/4a-hal-generic/build$ whereis lua
 > lua: /usr/bin/lua5.3 /usr/local/bin/lua /usr/local/lib/lua
 > /usr/include/lua5.3 /usr/include/lua5.2 /usr/share/lua5.3
 > /usr/share/lua5.2
 > /opt/poky-agl/5.99.2/sysroots/x86_64-aglsdk-linux/usr/bin/lua
 >
 >
 > _______________________________________________
 > automotive-discussions mailing list
 > automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
 > https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions
 >
_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions
_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux