Skip to content

参照开源软件发布模式,构建你的软件,包括使用CMAKE搭建编译环境,objcopy分离出debug消息,checkinstall打包生成deb或者RPM包

Notifications You must be signed in to change notification settings

echopairs/how-to-build-toolchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux CPP build-toolchain

introduction

How to use

  1. modify your CMakeLists.txt*
  2. Run the script build.sh in the tools dir

test

1. $./tools/build.sh
2. $sudo dpkg -i jrpc_2.0.0-1_amd64.deb
3. $cd /opt/jrpc/bin && sudo chmod a+x demo
4. $gdb demo # no debug info
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from demo...(no debugging symbols found)...done.

5. cd - && sudo dpkg -i jrpc-debuginfo_2.0.0-1_amd64.deb
6. $cd /opt/jrpc/bin
7. $gdb demo # have debug info
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from demo...Reading symbols from /opt/jrpc/debug/demo.debuginfo...done.
done.

About

参照开源软件发布模式,构建你的软件,包括使用CMAKE搭建编译环境,objcopy分离出debug消息,checkinstall打包生成deb或者RPM包

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published