Closed aviasd closed 4 years ago
I recommend properly compiling and installing codec2 as described in https://github.com/drowe67/codec2#quickstart. The fact that you have only codec2/src/codec2.h
suggest that you have only downloaded the codec2 package. If you do that, you shouldn't need to worry about setting custom env variables.
The include is looking for codec2/codec2.h
, so you need to provide a path, where codec2/codec2.h
exists. For example, if you provide /home/ec2-user/SageMaker/codec2/src/
, then make sure /home/ec2-user/SageMaker/codec2/src/codec2/codec2.h
exists.
However, LD_LIBRARY_PATH
will not help here, because it only works for shared object files (files ending with .so
). Try C_INCLUDE_PATH
or CPATH
if necessary.
I'm closing this issue, because it's an issue with installing codec2 than with pycodec2 itself.
I tried to pip install
pycodec2
after buildingcodec2
from source. I got some error. This is how I installed:First I installed
codec2
:The git repo I used is https://github.com/aviasd/codec2.
It is the same as the original repo but I removed the
-no-pie
option (see comparison).It worked:
See Full Output
``` mkdir: cannot create directory ‘build_linux’: File exists -- The C compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- codec2 version: 0.9.2 -- freedv-gui current git hash: 20f24c15 -- Performing Test COMPILER_SUPPORTS_GNU11 -- Performing Test COMPILER_SUPPORTS_GNU11 - Success -- Performing Test COMPILER_SUPPORTS_GNU99 -- Performing Test COMPILER_SUPPORTS_GNU99 - Success -- Found Git: /usr/bin/git (found version "2.18.4") -- Codec2 current git hash: 20f24c15 -- Looking for include file stdlib.h -- Looking for include file stdlib.h - found -- Looking for include file string.h -- Looking for include file string.h - found -- Looking for __GNU_LIBRARY__ -- Looking for __GNU_LIBRARY__ - found -- Looking for floor -- Looking for floor - found -- Looking for ceil -- Looking for ceil - found -- Looking for pow -- Looking for pow - found -- Looking for sqrt -- Looking for sqrt - found -- Looking for sin -- Looking for sin - found -- Looking for cos -- Looking for cos - found -- Looking for atan2 -- Looking for atan2 - found -- Looking for log10 -- Looking for log10 - found -- Looking for round -- Looking for round - found -- Looking for getopt -- Looking for getopt - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Threads library flags: -lpthread -- Build type is: Debug -- Compiler Flags: -Wall -Wno-strict-overflow -std=gnu11 -fPIC-g -O2 -DDUMP -- Libraries linked: m -- Configuring done -- Generating done -- Build files have been written to: /home/ec2-user/SageMaker/codec2/build_linux Scanning dependencies of target fsk_mod_ext_vco [ 1%] Building C object src/CMakeFiles/fsk_mod_ext_vco.dir/fsk_mod_ext_vco.c.o [ 1%] Linking C executable fsk_mod_ext_vco [ 1%] Built target fsk_mod_ext_vco Scanning dependencies of target generate_codebook [ 2%] Building C object src/CMakeFiles/generate_codebook.dir/generate_codebook.c.o [ 2%] Linking C executable generate_codebook [ 2%] Built target generate_codebook [ 2%] Generating codebooknewamp2_energy.c [ 3%] Generating codebook.c [ 3%] Generating codebookd.c [ 3%] Generating codebookjvm.c [ 4%] Generating codebookge.c [ 4%] Generating codebooknewamp1.c [ 4%] Generating codebooknewamp1_energy.c [ 5%] Generating codebooknewamp2.c Scanning dependencies of target codec2 [ 5%] Building C object src/CMakeFiles/codec2.dir/dump.c.o [ 6%] Building C object src/CMakeFiles/codec2.dir/lpc.c.o [ 6%] Building C object src/CMakeFiles/codec2.dir/nlp.c.o [ 6%] Building C object src/CMakeFiles/codec2.dir/postfilter.c.o [ 7%] Building C object src/CMakeFiles/codec2.dir/sine.c.o [ 7%] Building C object src/CMakeFiles/codec2.dir/codec2.c.o [ 7%] Building C object src/CMakeFiles/codec2.dir/codec2_fft.c.o [ 8%] Building C object src/CMakeFiles/codec2.dir/cohpsk.c.o [ 8%] Building C object src/CMakeFiles/codec2.dir/codec2_fifo.c.o [ 8%] Building C object src/CMakeFiles/codec2.dir/fdmdv.c.o [ 9%] Building C object src/CMakeFiles/codec2.dir/fm.c.o [ 9%] Building C object src/CMakeFiles/codec2.dir/fsk.c.o [ 9%] Building C object src/CMakeFiles/codec2.dir/fmfsk.c.o [ 10%] Building C object src/CMakeFiles/codec2.dir/kiss_fft.c.o [ 10%] Building C object src/CMakeFiles/codec2.dir/kiss_fftr.c.o [ 10%] Building C object src/CMakeFiles/codec2.dir/linreg.c.o [ 11%] Building C object src/CMakeFiles/codec2.dir/interp.c.o [ 11%] Building C object src/CMakeFiles/codec2.dir/lsp.c.o [ 11%] Building C object src/CMakeFiles/codec2.dir/mbest.c.o [ 12%] Building C object src/CMakeFiles/codec2.dir/newamp1.c.o [ 12%] Building C object src/CMakeFiles/codec2.dir/newamp2.c.o [ 12%] Building C object src/CMakeFiles/codec2.dir/ofdm.c.o [ 13%] Building C object src/CMakeFiles/codec2.dir/ofdm_mode.c.o [ 13%] Building C object src/CMakeFiles/codec2.dir/phase.c.o [ 13%] Building C object src/CMakeFiles/codec2.dir/quantise.c.o [ 14%] Building C object src/CMakeFiles/codec2.dir/pack.c.o [ 14%] Building C object src/CMakeFiles/codec2.dir/codebook.c.o [ 14%] Building C object src/CMakeFiles/codec2.dir/codebookd.c.o [ 15%] Building C object src/CMakeFiles/codec2.dir/codebookjvm.c.o [ 15%] Building C object src/CMakeFiles/codec2.dir/codebookge.c.o [ 15%] Building C object src/CMakeFiles/codec2.dir/codebooknewamp1.c.o [ 15%] Building C object src/CMakeFiles/codec2.dir/codebooknewamp1_energy.c.o [ 16%] Building C object src/CMakeFiles/codec2.dir/codebooknewamp2.c.o [ 16%] Building C object src/CMakeFiles/codec2.dir/codebooknewamp2_energy.c.o [ 16%] Building C object src/CMakeFiles/codec2.dir/golay23.c.o [ 17%] Building C object src/CMakeFiles/codec2.dir/freedv_api.c.o [ 17%] Building C object src/CMakeFiles/codec2.dir/freedv_1600.c.o [ 17%] Building C object src/CMakeFiles/codec2.dir/freedv_700.c.o [ 18%] Building C object src/CMakeFiles/codec2.dir/freedv_2020.c.o [ 18%] Building C object src/CMakeFiles/codec2.dir/freedv_fsk.c.o [ 18%] Building C object src/CMakeFiles/codec2.dir/freedv_vhf_framing.c.o [ 19%] Building C object src/CMakeFiles/codec2.dir/freedv_data_channel.c.o [ 19%] Building C object src/CMakeFiles/codec2.dir/varicode.c.o [ 19%] Building C object src/CMakeFiles/codec2.dir/modem_stats.c.o [ 20%] Building C object src/CMakeFiles/codec2.dir/mpdecode_core.c.o [ 20%] Building C object src/CMakeFiles/codec2.dir/phi0.c.o [ 20%] Building C object src/CMakeFiles/codec2.dir/gp_interleaver.c.o [ 21%] Building C object src/CMakeFiles/codec2.dir/interldpc.c.o [ 21%] Building C object src/CMakeFiles/codec2.dir/filter.c.o [ 21%] Building C object src/CMakeFiles/codec2.dir/HRA_112_112.c.o [ 22%] Building C object src/CMakeFiles/codec2.dir/HRAb_396_504.c.o [ 22%] Building C object src/CMakeFiles/codec2.dir/H_256_768_22.c.o [ 22%] Building C object src/CMakeFiles/codec2.dir/H_256_512_4.c.o [ 23%] Building C object src/CMakeFiles/codec2.dir/HRAa_1536_512.c.o [ 23%] Building C object src/CMakeFiles/codec2.dir/H_128_256_5.c.o [ 23%] Building C object src/CMakeFiles/codec2.dir/ldpc_codes.c.o [ 24%] Building C object src/CMakeFiles/codec2.dir/lpcnet_freq.c.o [ 24%] Linking C shared library libcodec2.so [ 24%] Built target codec2 Scanning dependencies of target fmfsk_demod [ 24%] Building C object src/CMakeFiles/fmfsk_demod.dir/fmfsk_demod.c.o [ 25%] Building C object src/CMakeFiles/fmfsk_demod.dir/modem_probe.c.o [ 25%] Building C object src/CMakeFiles/fmfsk_demod.dir/octave.c.o [ 25%] Linking C executable fmfsk_demod [ 25%] Built target fmfsk_demod Scanning dependencies of target ldpc_enc [ 26%] Building C object src/CMakeFiles/ldpc_enc.dir/ldpc_enc.c.o [ 26%] Linking C executable ldpc_enc [ 26%] Built target ldpc_enc Scanning dependencies of target freedv_data_tx [ 26%] Building C object src/CMakeFiles/freedv_data_tx.dir/freedv_data_tx.c.o [ 26%] Linking C executable freedv_data_tx [ 26%] Built target freedv_data_tx Scanning dependencies of target freedv_mixed_tx [ 26%] Building C object src/CMakeFiles/freedv_mixed_tx.dir/freedv_mixed_tx.c.o [ 27%] Linking C executable freedv_mixed_tx [ 27%] Built target freedv_mixed_tx Scanning dependencies of target fdmdv_demod [ 27%] Building C object src/CMakeFiles/fdmdv_demod.dir/fdmdv_demod.c.o [ 27%] Building C object src/CMakeFiles/fdmdv_demod.dir/fdmdv.c.o [ 28%] Building C object src/CMakeFiles/fdmdv_demod.dir/kiss_fft.c.o [ 28%] Building C object src/CMakeFiles/fdmdv_demod.dir/octave.c.o [ 28%] Building C object src/CMakeFiles/fdmdv_demod.dir/modem_stats.c.o [ 29%] Building C object src/CMakeFiles/fdmdv_demod.dir/codec2_fft.c.o [ 29%] Building C object src/CMakeFiles/fdmdv_demod.dir/kiss_fftr.c.o [ 29%] Linking C executable fdmdv_demod [ 29%] Built target fdmdv_demod Scanning dependencies of target cohpsk_demod [ 29%] Building C object src/CMakeFiles/cohpsk_demod.dir/cohpsk_demod.c.o [ 29%] Building C object src/CMakeFiles/cohpsk_demod.dir/octave.c.o [ 30%] Linking C executable cohpsk_demod [ 30%] Built target cohpsk_demod Scanning dependencies of target freedv_data_raw_tx [ 31%] Building C object src/CMakeFiles/freedv_data_raw_tx.dir/freedv_data_raw_tx.c.o [ 31%] Linking C executable freedv_data_raw_tx [ 31%] Built target freedv_data_raw_tx Scanning dependencies of target freedv_tx [ 31%] Building C object src/CMakeFiles/freedv_tx.dir/freedv_tx.c.o [ 32%] Linking C executable freedv_tx [ 32%] Built target freedv_tx Scanning dependencies of target c2enc [ 32%] Building C object src/CMakeFiles/c2enc.dir/c2enc.c.o [ 33%] Linking C executable c2enc [ 33%] Built target c2enc Scanning dependencies of target c2dec [ 33%] Building C object src/CMakeFiles/c2dec.dir/c2dec.c.o /home/ec2-user/SageMaker/codec2/src/c2dec.c: In function ‘main’: /home/ec2-user/SageMaker/codec2/src/c2dec.c:258:10: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] while(ret) { ^ [ 33%] Linking C executable c2dec [ 33%] Built target c2dec Scanning dependencies of target cohpsk_ch [ 33%] Building C object src/CMakeFiles/cohpsk_ch.dir/cohpsk_ch.c.o [ 34%] Linking C executable cohpsk_ch [ 34%] Built target cohpsk_ch Scanning dependencies of target c2demo [ 35%] Building C object src/CMakeFiles/c2demo.dir/c2demo.c.o [ 35%] Linking C executable c2demo [ 35%] Built target c2demo Scanning dependencies of target c2sim [ 35%] Building C object src/CMakeFiles/c2sim.dir/c2sim.c.o [ 35%] Linking C executable c2sim [ 35%] Built target c2sim Scanning dependencies of target fdmdv_mod [ 35%] Building C object src/CMakeFiles/fdmdv_mod.dir/fdmdv_mod.c.o [ 36%] Building C object src/CMakeFiles/fdmdv_mod.dir/fdmdv.c.o [ 36%] Building C object src/CMakeFiles/fdmdv_mod.dir/kiss_fft.c.o [ 36%] Building C object src/CMakeFiles/fdmdv_mod.dir/codec2_fft.c.o [ 37%] Building C object src/CMakeFiles/fdmdv_mod.dir/kiss_fftr.c.o [ 37%] Linking C executable fdmdv_mod [ 37%] Built target fdmdv_mod Scanning dependencies of target cohpsk_mod [ 38%] Building C object src/CMakeFiles/cohpsk_mod.dir/cohpsk_mod.c.o [ 38%] Linking C executable cohpsk_mod [ 38%] Built target cohpsk_mod Scanning dependencies of target fmfsk_mod [ 39%] Building C object src/CMakeFiles/fmfsk_mod.dir/fmfsk_mod.c.o [ 39%] Linking C executable fmfsk_mod [ 39%] Built target fmfsk_mod Scanning dependencies of target fdmdv_put_test_bits [ 39%] Building C object src/CMakeFiles/fdmdv_put_test_bits.dir/fdmdv_put_test_bits.c.o [ 40%] Building C object src/CMakeFiles/fdmdv_put_test_bits.dir/fdmdv.c.o [ 40%] Building C object src/CMakeFiles/fdmdv_put_test_bits.dir/kiss_fft.c.o [ 40%] Building C object src/CMakeFiles/fdmdv_put_test_bits.dir/codec2_fft.c.o [ 41%] Building C object src/CMakeFiles/fdmdv_put_test_bits.dir/kiss_fftr.c.o [ 41%] Linking C executable fdmdv_put_test_bits [ 41%] Built target fdmdv_put_test_bits Scanning dependencies of target framer [ 41%] Building C object src/CMakeFiles/framer.dir/framer.c.o [ 42%] Linking C executable framer [ 42%] Built target framer Scanning dependencies of target insert_errors [ 42%] Building C object src/CMakeFiles/insert_errors.dir/insert_errors.c.o [ 43%] Linking C executable insert_errors [ 43%] Built target insert_errors Scanning dependencies of target ofdm_demod [ 44%] Building C object src/CMakeFiles/ofdm_demod.dir/ofdm_demod.c.o [ 44%] Building C object src/CMakeFiles/ofdm_demod.dir/octave.c.o [ 44%] Linking C executable ofdm_demod [ 44%] Built target ofdm_demod Scanning dependencies of target fsk_demod [ 44%] Building C object src/CMakeFiles/fsk_demod.dir/fsk_demod.c.o [ 44%] Building C object src/CMakeFiles/fsk_demod.dir/modem_probe.c.o [ 45%] Building C object src/CMakeFiles/fsk_demod.dir/octave.c.o [ 45%] Linking C executable fsk_demod [ 45%] Built target fsk_demod Scanning dependencies of target ofdm_get_test_bits [ 46%] Building C object src/CMakeFiles/ofdm_get_test_bits.dir/ofdm_get_test_bits.c.o [ 46%] Linking C executable ofdm_get_test_bits [ 46%] Built target ofdm_get_test_bits Scanning dependencies of target ofdm_mod [ 46%] Building C object src/CMakeFiles/ofdm_mod.dir/ofdm_mod.c.o [ 47%] Linking C executable ofdm_mod [ 47%] Built target ofdm_mod Scanning dependencies of target freedv_data_rx [ 47%] Building C object src/CMakeFiles/freedv_data_rx.dir/freedv_data_rx.c.o [ 48%] Linking C executable freedv_data_rx [ 48%] Built target freedv_data_rx Scanning dependencies of target fsk_get_test_bits [ 48%] Building C object src/CMakeFiles/fsk_get_test_bits.dir/fsk_get_test_bits.c.o [ 49%] Linking C executable fsk_get_test_bits [ 49%] Built target fsk_get_test_bits Scanning dependencies of target fm_demod [ 49%] Building C object src/CMakeFiles/fm_demod.dir/fm_demod.c.o [ 50%] Building C object src/CMakeFiles/fm_demod.dir/fm.c.o [ 50%] Linking C executable fm_demod [ 50%] Built target fm_demod Scanning dependencies of target ldpc_dec [ 50%] Building C object src/CMakeFiles/ldpc_dec.dir/ldpc_dec.c.o /home/ec2-user/SageMaker/codec2/src/ldpc_dec.c: In function ‘main’: /home/ec2-user/SageMaker/codec2/src/ldpc_dec.c:139:12: warning: ‘offset’ may be used uninitialized in this function [-Wmaybe-uninitialized] fprintf(stderr, "CodeLength: %d offset: %d\n", CodeLength, offset); ^ [ 50%] Linking C executable ldpc_dec [ 50%] Built target ldpc_dec Scanning dependencies of target freedv_data_raw_rx [ 50%] Building C object src/CMakeFiles/freedv_data_raw_rx.dir/freedv_data_raw_rx.c.o [ 50%] Linking C executable freedv_data_raw_rx [ 50%] Built target freedv_data_raw_rx Scanning dependencies of target fsk_put_test_bits [ 50%] Building C object src/CMakeFiles/fsk_put_test_bits.dir/fsk_put_test_bits.c.o [ 51%] Linking C executable fsk_put_test_bits [ 51%] Built target fsk_put_test_bits Scanning dependencies of target deframer [ 52%] Building C object src/CMakeFiles/deframer.dir/deframer.c.o /home/ec2-user/SageMaker/codec2/src/deframer.c: In function ‘main’: /home/ec2-user/SageMaker/codec2/src/deframer.c:101:9: warning: ‘best_location’ may be used uninitialized in this function [-Wmaybe-uninitialized] int best_location, errors; ^ [ 52%] Linking C executable deframer [ 52%] Built target deframer Scanning dependencies of target ofdm_put_test_bits [ 52%] Building C object src/CMakeFiles/ofdm_put_test_bits.dir/ofdm_put_test_bits.c.o [ 52%] Linking C executable ofdm_put_test_bits [ 52%] Built target ofdm_put_test_bits Scanning dependencies of target vhf_deframe_c2 [ 52%] Building C object src/CMakeFiles/vhf_deframe_c2.dir/vhf_deframe_c2.c.o [ 53%] Linking C executable vhf_deframe_c2 [ 53%] Built target vhf_deframe_c2 Scanning dependencies of target vhf_frame_c2 [ 53%] Building C object src/CMakeFiles/vhf_frame_c2.dir/vhf_frame_c2.c.o [ 53%] Linking C executable vhf_frame_c2 [ 53%] Built target vhf_frame_c2 Scanning dependencies of target cohpsk_get_test_bits [ 53%] Building C object src/CMakeFiles/cohpsk_get_test_bits.dir/cohpsk_get_test_bits.c.o [ 53%] Linking C executable cohpsk_get_test_bits [ 53%] Built target cohpsk_get_test_bits Scanning dependencies of target fdmdv_channel [ 54%] Building C object src/CMakeFiles/fdmdv_channel.dir/fdmdv_channel.c.o [ 54%] Linking C executable fdmdv_channel [ 54%] Built target fdmdv_channel Scanning dependencies of target fdmdv_get_test_bits [ 55%] Building C object src/CMakeFiles/fdmdv_get_test_bits.dir/fdmdv_get_test_bits.c.o [ 55%] Building C object src/CMakeFiles/fdmdv_get_test_bits.dir/fdmdv.c.o [ 55%] Building C object src/CMakeFiles/fdmdv_get_test_bits.dir/kiss_fft.c.o [ 56%] Building C object src/CMakeFiles/fdmdv_get_test_bits.dir/codec2_fft.c.o [ 56%] Building C object src/CMakeFiles/fdmdv_get_test_bits.dir/kiss_fftr.c.o [ 56%] Linking C executable fdmdv_get_test_bits [ 56%] Built target fdmdv_get_test_bits Scanning dependencies of target cohpsk_put_test_bits [ 56%] Building C object src/CMakeFiles/cohpsk_put_test_bits.dir/cohpsk_put_test_bits.c.o [ 57%] Building C object src/CMakeFiles/cohpsk_put_test_bits.dir/octave.c.o [ 57%] Linking C executable cohpsk_put_test_bits [ 57%] Built target cohpsk_put_test_bits Scanning dependencies of target freedv_rx [ 57%] Building C object src/CMakeFiles/freedv_rx.dir/freedv_rx.c.o [ 57%] Linking C executable freedv_rx [ 57%] Built target freedv_rx Scanning dependencies of target tollr [ 58%] Building C object src/CMakeFiles/tollr.dir/tollr.c.o [ 58%] Linking C executable tollr [ 58%] Built target tollr Scanning dependencies of target fsk_mod [ 58%] Building C object src/CMakeFiles/fsk_mod.dir/fsk_mod.c.o /home/ec2-user/SageMaker/codec2/src/fsk_mod.c: In function ‘main’: /home/ec2-user/SageMaker/codec2/src/fsk_mod.c:91:9: warning: ‘p’ may be used uninitialized in this function [-Wmaybe-uninitialized] fsk = fsk_create_hbr(Fs,Rs,M,p,FSK_DEFAULT_NSYM,f1,fs); ^ [ 58%] Linking C executable fsk_mod [ 58%] Built target fsk_mod Scanning dependencies of target ldpc_noise [ 58%] Building C object src/CMakeFiles/ldpc_noise.dir/ldpc_noise.c.o [ 59%] Linking C executable ldpc_noise [ 59%] Built target ldpc_noise Scanning dependencies of target freedv_mixed_rx [ 60%] Building C object src/CMakeFiles/freedv_mixed_rx.dir/freedv_mixed_rx.c.o [ 60%] Linking C executable freedv_mixed_rx [ 60%] Built target freedv_mixed_rx Scanning dependencies of target tqam16 [ 60%] Building C object unittest/CMakeFiles/tqam16.dir/tqam16.c.o [ 61%] Linking C executable tqam16 [ 61%] Built target tqam16 Scanning dependencies of target thash [ 61%] Building C object unittest/CMakeFiles/thash.dir/thash.c.o [ 62%] Linking C executable thash [ 62%] Built target thash Scanning dependencies of target tfifo [ 63%] Building C object unittest/CMakeFiles/tfifo.dir/tfifo.c.o [ 63%] Building C object unittest/CMakeFiles/tfifo.dir/__/src/codec2_fifo.c.o [ 63%] Linking C executable tfifo [ 63%] Built target tfifo Scanning dependencies of target tofdm [ 63%] Building C object unittest/CMakeFiles/tofdm.dir/tofdm.c.o [ 64%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/ofdm.c.o [ 64%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/octave.c.o [ 64%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/kiss_fft.c.o [ 65%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/modem_probe.c.o [ 65%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/mpdecode_core.c.o [ 65%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/phi0.c.o [ 66%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/filter.c.o [ 66%] Building C object unittest/CMakeFiles/tofdm.dir/__/src/HRA_112_112.c.o [ 66%] Linking C executable tofdm [ 66%] Built target tofdm Scanning dependencies of target tfmfsk [ 67%] Building C object unittest/CMakeFiles/tfmfsk.dir/tfmfsk.c.o [ 67%] Building C object unittest/CMakeFiles/tfmfsk.dir/__/src/octave.c.o [ 67%] Building C object unittest/CMakeFiles/tfmfsk.dir/__/src/modem_probe.c.o [ 68%] Linking C executable tfmfsk [ 68%] Built target tfmfsk Scanning dependencies of target function_trace [ 68%] Building C object unittest/CMakeFiles/function_trace.dir/function_trace.c.o [ 68%] Linking C static library libfunction_trace.a [ 68%] Built target function_trace Scanning dependencies of target ofdm_stack [ 69%] Building C object unittest/CMakeFiles/ofdm_stack.dir/ofdm_stack.c.o [ 69%] Building C object unittest/CMakeFiles/ofdm_stack.dir/__/src/ofdm.c.o [ 69%] Building C object unittest/CMakeFiles/ofdm_stack.dir/__/src/octave.c.o [ 69%] Building C object unittest/CMakeFiles/ofdm_stack.dir/__/src/kiss_fft.c.o [ 70%] Building C object unittest/CMakeFiles/ofdm_stack.dir/__/src/modem_probe.c.o [ 70%] Building C object unittest/CMakeFiles/ofdm_stack.dir/__/src/mpdecode_core.c.o [ 70%] Building C object unittest/CMakeFiles/ofdm_stack.dir/__/src/phi0.c.o [ 71%] Building C object unittest/CMakeFiles/ofdm_stack.dir/__/src/filter.c.o [ 71%] Linking C executable ofdm_stack [ 71%] Built target ofdm_stack Scanning dependencies of target compare_floats [ 71%] Building C object unittest/CMakeFiles/compare_floats.dir/compare_floats.c.o [ 72%] Linking C executable compare_floats [ 72%] Built target compare_floats Scanning dependencies of target tfreedv_data_channel [ 72%] Building C object unittest/CMakeFiles/tfreedv_data_channel.dir/tfreedv_data_channel.c.o [ 72%] Building C object unittest/CMakeFiles/tfreedv_data_channel.dir/__/src/freedv_data_channel.c.o [ 73%] Linking C executable tfreedv_data_channel [ 73%] Built target tfreedv_data_channel Scanning dependencies of target tst_codec2_fft_init [ 73%] Building C object unittest/CMakeFiles/tst_codec2_fft_init.dir/tst_codec2_fft_init.c.o [ 73%] Linking C executable tst_codec2_fft_init [ 73%] Built target tst_codec2_fft_init Scanning dependencies of target ofdm_mem [ 73%] Building C object unittest/CMakeFiles/ofdm_mem.dir/ofdm_mem.c.o [ 74%] Building C object unittest/CMakeFiles/ofdm_mem.dir/__/src/ofdm.c.o [ 74%] Building C object unittest/CMakeFiles/ofdm_mem.dir/__/src/octave.c.o [ 74%] Building C object unittest/CMakeFiles/ofdm_mem.dir/__/src/kiss_fft.c.o [ 75%] Building C object unittest/CMakeFiles/ofdm_mem.dir/__/src/modem_probe.c.o [ 75%] Building C object unittest/CMakeFiles/ofdm_mem.dir/__/src/mpdecode_core.c.o [ 75%] Building C object unittest/CMakeFiles/ofdm_mem.dir/__/src/phi0.c.o [ 76%] Building C object unittest/CMakeFiles/ofdm_mem.dir/__/src/filter.c.o [ 76%] Linking C executable ofdm_mem [ 76%] Built target ofdm_mem Scanning dependencies of target tdeframer [ 76%] Building C object unittest/CMakeFiles/tdeframer.dir/tdeframer.c.o [ 77%] Linking C executable tdeframer [ 77%] Built target tdeframer Scanning dependencies of target test_phi0 [ 77%] Building C object unittest/CMakeFiles/test_phi0.dir/test_phi0.c.o [ 77%] Building C object unittest/CMakeFiles/test_phi0.dir/__/src/phi0.c.o [ 78%] Linking C executable test_phi0 [ 78%] Built target test_phi0 Scanning dependencies of target tvq_mbest [ 79%] Building C object unittest/CMakeFiles/tvq_mbest.dir/tvq_mbest.c.o [ 79%] Linking C executable tvq_mbest [ 79%] Built target tvq_mbest Scanning dependencies of target fdmdv_mem [ 80%] Building C object unittest/CMakeFiles/fdmdv_mem.dir/fdmdv_mem.c.o [ 80%] Linking C executable fdmdv_mem [ 80%] Built target fdmdv_mem Scanning dependencies of target tfreedv_2400B_rawdata [ 81%] Building C object unittest/CMakeFiles/tfreedv_2400B_rawdata.dir/tfreedv_2400B_rawdata.c.o [ 81%] Linking C executable tfreedv_2400B_rawdata [ 81%] Built target tfreedv_2400B_rawdata Scanning dependencies of target tcohpsk [ 81%] Building C object unittest/CMakeFiles/tcohpsk.dir/tcohpsk.c.o [ 82%] Building C object unittest/CMakeFiles/tcohpsk.dir/__/src/cohpsk.c.o [ 82%] Building C object unittest/CMakeFiles/tcohpsk.dir/__/src/octave.c.o [ 82%] Linking C executable tcohpsk [ 82%] Built target tcohpsk Scanning dependencies of target tnewamp1 [ 82%] Building C object unittest/CMakeFiles/tnewamp1.dir/tnewamp1.c.o [ 83%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/quantise.c.o [ 83%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/newamp1.c.o [ 83%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/mbest.c.o [ 84%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/kiss_fft.c.o [ 84%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/sine.c.o [ 84%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/nlp.c.o [ 85%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/dump.c.o [ 85%] Building C object unittest/CMakeFiles/tnewamp1.dir/__/src/octave.c.o [ 85%] Linking C executable tnewamp1 [ 85%] Built target tnewamp1 Scanning dependencies of target tfdmdv [ 85%] Building C object unittest/CMakeFiles/tfdmdv.dir/tfdmdv.c.o [ 85%] Building C object unittest/CMakeFiles/tfdmdv.dir/__/src/fdmdv.c.o [ 86%] Building C object unittest/CMakeFiles/tfdmdv.dir/__/src/kiss_fft.c.o [ 86%] Building C object unittest/CMakeFiles/tfdmdv.dir/__/src/octave.c.o [ 86%] Linking C executable tfdmdv [ 86%] Built target tfdmdv Scanning dependencies of target compare_ints [ 86%] Building C object unittest/CMakeFiles/compare_ints.dir/compare_ints.c.o [ 86%] Linking C executable compare_ints [ 86%] Built target compare_ints Scanning dependencies of target tfreedv_800XA_rawdata [ 86%] Building C object unittest/CMakeFiles/tfreedv_800XA_rawdata.dir/tfreedv_800XA_rawdata.c.o [ 87%] Linking C executable tfreedv_800XA_rawdata [ 87%] Built target tfreedv_800XA_rawdata Scanning dependencies of target tfsk [ 87%] Building C object unittest/CMakeFiles/tfsk.dir/tfsk.c.o [ 87%] Building C object unittest/CMakeFiles/tfsk.dir/__/src/kiss_fft.c.o [ 87%] Building C object unittest/CMakeFiles/tfsk.dir/__/src/kiss_fftr.c.o [ 88%] Building C object unittest/CMakeFiles/tfsk.dir/__/src/octave.c.o [ 88%] Building C object unittest/CMakeFiles/tfsk.dir/__/src/modem_probe.c.o [ 88%] Linking C executable tfsk [ 88%] Built target tfsk Scanning dependencies of target tfreedv_2400A_rawdata [ 88%] Building C object unittest/CMakeFiles/tfreedv_2400A_rawdata.dir/tfreedv_2400A_rawdata.c.o [ 88%] Linking C executable tfreedv_2400A_rawdata [ 88%] Built target tfreedv_2400A_rawdata Scanning dependencies of target tfsk_llr [ 89%] Building C object unittest/CMakeFiles/tfsk_llr.dir/tfsk_llr.c.o [ 89%] Linking C executable tfsk_llr [ 89%] Built target tfsk_llr Scanning dependencies of target est_n0 [ 89%] Building C object misc/CMakeFiles/est_n0.dir/est_n0.c.o /home/ec2-user/SageMaker/codec2/misc/est_n0.c: In function ‘main’: /home/ec2-user/SageMaker/codec2/misc/est_n0.c:82:18: warning: ‘fdisp’ may be used uninitialized in this function [-Wmaybe-uninitialized] assert(fread(&disp, sizeof(MODEL), 1, fdisp) == 1); ^ [ 90%] Linking C executable est_n0 [ 90%] Built target est_n0 Scanning dependencies of target mksine [ 90%] Building C object misc/CMakeFiles/mksine.dir/mksine.c.o [ 90%] Linking C executable mksine [ 90%] Built target mksine Scanning dependencies of target t16_8 [ 91%] Building C object misc/CMakeFiles/t16_8.dir/t16_8.c.o [ 91%] Building C object misc/CMakeFiles/t16_8.dir/__/src/fdmdv.c.o [ 91%] Building C object misc/CMakeFiles/t16_8.dir/__/src/kiss_fft.c.o [ 92%] Linking C executable t16_8 [ 92%] Built target t16_8 Scanning dependencies of target extract [ 92%] Building C object misc/CMakeFiles/extract.dir/extract.c.o [ 92%] Linking C executable extract [ 92%] Built target extract Scanning dependencies of target tlininterp [ 93%] Building C object misc/CMakeFiles/tlininterp.dir/tlininterp.c.o [ 93%] Linking C executable tlininterp [ 93%] Built target tlininterp Scanning dependencies of target vqtrain [ 93%] Building C object misc/CMakeFiles/vqtrain.dir/vqtrain.c.o [ 94%] Linking C executable vqtrain [ 94%] Built target vqtrain Scanning dependencies of target t16_8_short [ 94%] Building C object misc/CMakeFiles/t16_8_short.dir/t16_8_short.c.o [ 94%] Building C object misc/CMakeFiles/t16_8_short.dir/__/src/fdmdv.c.o [ 95%] Building C object misc/CMakeFiles/t16_8_short.dir/__/src/kiss_fft.c.o [ 95%] Linking C executable t16_8_short [ 95%] Built target t16_8_short Scanning dependencies of target 16_8_short [ 95%] Building C object misc/CMakeFiles/16_8_short.dir/16_8_short.c.o [ 95%] Building C object misc/CMakeFiles/16_8_short.dir/__/src/fdmdv.c.o [ 95%] Building C object misc/CMakeFiles/16_8_short.dir/__/src/kiss_fft.c.o [ 96%] Linking C executable 16_8_short [ 96%] Built target 16_8_short Scanning dependencies of target timpulse [ 96%] Building C object misc/CMakeFiles/timpulse.dir/timpulse.c.o [ 96%] Linking C executable timpulse [ 96%] Built target timpulse Scanning dependencies of target raw2h [ 96%] Building C object misc/CMakeFiles/raw2h.dir/raw2h.c.o [ 96%] Linking C executable raw2h [ 96%] Built target raw2h Scanning dependencies of target vq_mbest [ 97%] Building C object misc/CMakeFiles/vq_mbest.dir/vq_mbest.c.o [ 97%] Linking C executable vq_mbest [ 97%] Built target vq_mbest Scanning dependencies of target tdec [ 98%] Building C object misc/CMakeFiles/tdec.dir/tdec.c.o [ 98%] Linking C executable tdec [ 98%] Built target tdec Scanning dependencies of target pre [ 98%] Building C object misc/CMakeFiles/pre.dir/pre.c.o [ 99%] Linking C executable pre [ 99%] Built target pre Scanning dependencies of target tnlp [100%] Building C object misc/CMakeFiles/tnlp.dir/tnlp.c.o [100%] Linking C executable tnlp [100%] Built target tnlp ```
Then, I tried to install pycodec2:
I got this error:
I tried to put some environment variables in place like I saw in here and here:
or
With no success.
I tried to add
/home/ec2-user/SageMaker/codec2/src
toLD_LIBRARY_PATH
, no success either.I think the problem is:
The file
codec2.h
is not insidecodec2
directory.It is inside
codec2/src
directory.This is the full path:
/home/ec2-user/SageMaker/codec2/src/codec2.h
.How can I make it work?
Thank you,