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

测试的文件怎么编译成二进制文件 #156

Closed
zhuzhuaicoding opened this issue Jun 5, 2018 · 3 comments
Closed

测试的文件怎么编译成二进制文件 #156

zhuzhuaicoding opened this issue Jun 5, 2018 · 3 comments

Comments

@zhuzhuaicoding
Copy link

zhuzhuaicoding commented Jun 5, 2018

你好,
编译出来的的测试可执行文件有办法生成二进制的吗,现在是sh文件,没法debug到对应的源码文件

Reproduction Steps:

  1. cd test
  2. make
  3. ./test_string_render

LCUI version: master
OS and version: Ubuntu 18.04
Build tools: gcc

@lc-soft
Copy link
Owner

lc-soft commented Jun 5, 2018

二进制文件在 test/.libs 目录下,直接运行的话,可能会报错找到不到 .so 依赖库。

image

@zhuzhuaicoding
Copy link
Author

为什么你的可以找到.so文件,我运行会报错呢

@lc-soft
Copy link
Owner

lc-soft commented Jun 6, 2018

为什么你的可以找到.so文件,我运行会报错呢

@earlymeme 手动编译安装的库文件不会在标准库目录下,你需要手动修改环境变量,加上 /usr/local/lib,或者改用静态库。

具体方法可谷歌/百度搜索,也可咨询其他资深 Linux 程序员。

@lc-soft lc-soft closed this as completed Jun 11, 2018
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