Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while loading shared libraries in SConstruct #83

Open
fatalfeel opened this issue Nov 26, 2021 · 3 comments
Open

error while loading shared libraries in SConstruct #83

fatalfeel opened this issue Nov 26, 2021 · 3 comments

Comments

@fatalfeel
Copy link

fatalfeel commented Nov 26, 2021

root@unitedlinux:~/nt9832x/na51068_sdk_nand/gui/awtk-linux-fb# export LD_LIBRARY_PATH=/opt/ivot/arm-ca9-linux-gnueabihf-6.5/lib

root@unitedlinux:~/nt9832x/na51068_sdk_nand/gui/awtk-linux-fb# scons
scons: Reading SConscript files ...
with awtk so
scons: done reading SConscript files.
scons: Building targets ...
/opt/ivot/arm-ca9-linux-gnueabihf-6.5/bin/arm-ca9-linux-gnueabihf-gcc -o awtk-port/input_thread/input_dispatcher.o -c -std=gnu99 -Wall -Os -fno-strict-aliasing -DHAS_STD_MALLOC -DHAS_STDIO -DHAS_FAST_MEMCPY -DWITH_VGCANVAS -DWITH_UNICODE_BREAK -DLINUX -DLOAD_ASSET_WITH_MMAP=1 -DWITH_SOCKET=1 -DWITH_ASSET_LOADER -DWITH_FS_RES -DHAS_GET_TIME_US64=1 -DSTBTT_STATIC -DSTB_IMAGE_STATIC -DWITH_STB_IMAGE -DWITH_STB_FONT -DWITH_TEXT_BIDI=1 -DWITH_NANOVG_AGGE -DWITH_LINUX_FB -DWITH_IME_PINYIN -DLINUX -DHAS_PTHREAD -DENABLE_CURSOR -fPIC -DWITH_DATA_READER_WRITER=1 -DWITH_EVENT_RECORDER_PLAYER=1 -DWITH_WIDGET_TYPE_CHECK=1 -I/root/nt9832x/na51068_sdk_nand/gui/awtk -I/root/nt9832x/na51068_sdk_nand/gui/awtk/src -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd -Iawtk-port/lcd_linux -Iawtk-port/input_thread -I/root/nt9832x/na51068_sdk_nand/gui/awtk/src/ext_widgets -I/root/nt9832x/na51068_sdk_nand/gui/awtk/src/custom_widgets -I/root/nt9832x/na51068_sdk_nand/gui/awtk/tools -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/agge -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/agg/include -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/nanovg -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/nanovg/gl -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/nanovg/base -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/mbedtls/include -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/mbedtls/3rdparty/everest/include -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/fribidi -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/nanovg/base -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/libunibreak -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/gpinyin/include -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/gtest/googletest -I/root/nt9832x/na51068_sdk_nand/gui/awtk/3rd/gtest/googletest/include -I/root/nt9832x/na51068_sdk_nand/gui/awtk/res awtk-port/input_thread/input_dispatcher.c
/opt/ivot/arm-ca9-linux-gnueabihf-6.5/bin/../libexec/gcc/arm-ca9-linux-gnueabihf/6.5.0/cc1: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory
scons: *** [awtk-port/input_thread/input_dispatcher.o] Error 1
scons: building terminated because of errors.

@fatalfeel
Copy link
Author

fatalfeel commented Nov 26, 2021

because my compile need export LD_LIBRARY_PATH=/opt/ivot/arm-ca9-linux-gnueabihf-6.5/lib
and i set already so answer is

/root/nt9832x/na51068_sdk_nand/gui/awtk-linux-fb/SConstruct
env = DefaultEnvironment(
ENV = os.environ,
CCFLAGS = awtk.CCFLAGS + APP_CCFLAGS,
CFLAGS = awtk.CFLAGS,
CC=awtk.CC,
CXX=awtk.CXX,
LD=awtk.LD,
AR=awtk.AR,
RANLIB=awtk.RANLIB,
STRIP=awtk.STRIP,
LIBS = awtk.LIBS,
LIBPATH = awtk.LIBPATH,
CPPPATH = awtk.CPPPATH + [awtk.joinPath(awtk.TK_ROOT, 'res')],
LINKFLAGS = awtk.LINKFLAGS,
OS_SUBSYSTEM_CONSOLE=awtk.OS_SUBSYSTEM_CONSOLE,
OS_SUBSYSTEM_WINDOWS=awtk.OS_SUBSYSTEM_WINDOWS
)

add this ENV = os.environ,

refer to this
https://scons.org/doc/2.1.0/HTML/scons-user/x1750.html

@xianjimli
Copy link
Member

好的,谢谢

@fatalfeel
Copy link
Author

好的 不客氣 有寄coxid-x9 info 給您 但hotmai 會審查封信 要注意些

xianjimli added a commit that referenced this issue Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants