Gnuradio using the Eclipse editor to record

Source: Internet
Author: User

Install Eclipse First

Download the website first, then unzip

CD Downlods

Tar zxvf ecli*********** (omitted here)

And then enter

Eclipse

Will prompt you to enter a string of apt-get input and hit enter

3. In order for Eclipse to attach to a process through GDB, the ptrace scope must be set to 0.

To check:

Cat/proc/sys/kernel/yama/ptrace_scope

If the above command returns ' 1 ', edit/etc/sysctl.d/10-ptrace.conf and set:

Kernel.yama.ptrace_scope = 0

You will need to restart to make this change effective.



1th Step-set environment variables.
:?/Work/gr_demo $ source/data/work/gr/setup_env.sh

Note that the path will depend on where the Gnuradio is installed. in the following description, the installed prefix is/data/work/gr/

At present this step did not succeed,,, did not find this setup_env.sh----> should be installed after the completion of Gnuradio automatically set up.

2nd Step-Create a build directory and run CMake.

Eclipse expects the build directory to be the sibling of the source directory (not the child). Therefore, the build directory should be set as follows:

mymodule/gr-module-source
mymodule/gr-module-debug
mymodule/gr-module-release

Suppose Gr-test_boost is already installed in the?/gr-test_boost/Medium:

:?/gr-test_boost$ mkdir gr-test_boost-debug
user @ machine:?/gr-test_boost$ mkdir Gr-test_boost-release
user @ machine:?/gr-test_boost$ cd Gr-test_boost-debug
user @ machine:?/
Gr-test_boost/gr-test_boost-debug $cmake-G "Eclipse Cdt4-unix makefiles"-D cmake_build_type=deb Ug.. /.. /gr-test_boost
:?/gr-test_boost$ CD. /gr-test_boost-release
user @ machine:?/gr-test_boost/gr-test_boost-release $ cmake-g "Eclipse Cdt4-unix makefiles". /Gr-test_boost
Important Two code:
" Eclipse Cdt4-unix makefiles " -D cmake_build_type=debug. /.. /gr-test_boost
" Eclipse Cdt4-unix makefiles " .. /.. /gr-test_boost
The above code is best to manually knock

The above command creates a debug and release version configuration for modules that can be imported into eclipse. Both can be imported into eclipse. Alternatively, only the debug configuration can be imported into eclipse and can be run manually from the Gr-test_boost-release directory when the module is ready for deployment.

When execution is complete
[email protected]:~/gr-test_boost/gr-test_boost-release$ c make:
Make
sudo  Make Install

and ready to open it.

[Email protected]:~/gr-test_boost/gr-test_boost-release$ CD.
[Email protected]:~/gr-test_boost$ cd gr-test_boost-debug/
[Email protected]:~/gr-test_boost/gr-test_boost-debug$ eclipse&





Gnuradio using the Eclipse editor to record

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.