Editing Cross compile GNU Radio and install on target

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 22: Line 22:
  
 
<pre>$ gcc ../gr-vocoder/lib/codec2/generate_codebook.c -o ../gr-vocoder/lib/generate_codebook -lm
 
<pre>$ gcc ../gr-vocoder/lib/codec2/generate_codebook.c -o ../gr-vocoder/lib/generate_codebook -lm
$ echo "ADD_EXECUTABLE(generate_codebook IMPORTED)" > ../gr-vocoder/lib/generate_codebook.txt
+
$ echo &quot;ADD_EXECUTABLE(generate_codebook IMPORTED)&quot; &gt; ../gr-vocoder/lib/generate_codebook.txt
$ echo "SET_PROPERTY(TARGET generate_codebook APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)" >> ..//gr-vocoder/lib/generate_codebook.txt
+
$ echo &quot;SET_PROPERTY(TARGET generate_codebook APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)&quot; &gt;&gt; ..//gr-vocoder/lib/generate_codebook.txt
$ echo 'SET_TARGET_PROPERTIES(generate_codebook PROPERTIES IMPORTED_LOCATION_RELEASE "/home/balister/src/git/gnuradio/gr-vocoder/lib/generate_codebook")' >> ../gr-vocoder/lib/generate_codebook.txt</pre>
+
$ echo 'SET_TARGET_PROPERTIES(generate_codebook PROPERTIES IMPORTED_LOCATION_RELEASE &quot;/home/balister/src/git/gnuradio/gr-vocoder/lib/generate_codebook&quot;)' &gt;&gt; ../gr-vocoder/lib/generate_codebook.txt</pre>
 
After this the generate_codebook file looks like this:
 
After this the generate_codebook file looks like this:
  
 
<pre>ADD_EXECUTABLE(generate_codebook IMPORTED)
 
<pre>ADD_EXECUTABLE(generate_codebook IMPORTED)
 
SET_PROPERTY(TARGET generate_codebook APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
 
SET_PROPERTY(TARGET generate_codebook APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
SET_TARGET_PROPERTIES(generate_codebook PROPERTIES IMPORTED_LOCATION_RELEASE "/home/balister/src/git/gnuradio/gr-vocoder/lib/generate_codebook")</pre>
+
SET_TARGET_PROPERTIES(generate_codebook PROPERTIES IMPORTED_LOCATION_RELEASE &quot;/home/balister/src/git/gnuradio/gr-vocoder/lib/generate_codebook&quot;)</pre>
 
When you run cmake, add this option so it knows about the file you added (and remove the entry disabling GR_VOCODER):
 
When you run cmake, add this option so it knows about the file you added (and remove the entry disabling GR_VOCODER):
  

Please note that all contributions to GNU Radio are considered to be released under the Creative Commons Attribution-ShareAlike (see GNU Radio:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)