Git Product home page Git Product logo

Comments (9)

JvanKatwijk avatar JvanKatwijk commented on June 23, 2024 1

from dab-cmdline.

JvanKatwijk avatar JvanKatwijk commented on June 23, 2024

from dab-cmdline.

veso266 avatar veso266 commented on June 23, 2024

I was thinking of replacing the input with I/Q data to STDin, don't know if I can do that

from dab-cmdline.

JvanKatwijk avatar JvanKatwijk commented on June 23, 2024

from dab-cmdline.

veso266 avatar veso266 commented on June 23, 2024

Thanks will dig into example 2

from dab-cmdline.

JvanKatwijk avatar JvanKatwijk commented on June 23, 2024

from dab-cmdline.

veso266 avatar veso266 commented on June 23, 2024

Is it OK to track my progress (regarding fighting with compiling this) on here?
I gave example-7 a go, but first I tried to compile it with mingw32 (its included in msys2)
after fighting with libraries and writing instructions along the way
here they are

  1. Download Precompiled FFTW: http://fftw.org/install/windows.html (ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll32.zip)
    copy .h files to mingw32/include
    rename libfftw-3 to libfftw
    rename *.dll to *.dll.a
    Copy *.dll.a files to msys64/mingw32/lib
    Compiling FFTW with MinGW32

    wget ftp://ftp.fftw.org/pub/fftw/fftw-3.3.8.tar.gz
    tar -xvz fftw-3.3.8.tar.gz
    cd fftw-3.3.8
    ./configure
    make -j5 (to use all CPU cores it compiles faster)

  2. Build libfaad

get libfaad2.dll somewhere?? (dream install dir)
rename libfaad2.dll to libfaad2.dll.a and copy to msys64/mingw32/lib
copy faad.h and neaacdec.h to mingw32/include

  1. Build libsamplerate
    git clone https://github.com/erikd/libsamplerate.git
    cd libsamplerate
    ./configure
    make -j5 (to use all CPU cores it compiles faster)

    copy C:\msys64\tobuild\DAB\dab-cmdline-master\libs\libsamplerate\libsamplerate-master\src.libs to mingw32/lib
    copy C:\msys64\tobuild\DAB\dab-cmdline-master\libs\libsamplerate\libsamplerate-master\src*.h to mingw32/include

  2. Building portAudio
    read here: https://app.assembla.com/wiki/show/portaudio/Notes_about_building_PortAudio_with_MinGW
    wget http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
    tar -xvz pa_stable_v190600_20161030.tgz
    cd portaudio
    ./configure
    make -j5 (to use all CPU cores it compiles faster)
    cd lib/.libs
    copy libportaudio.dll.a to mingw32/lib
    copy include/. to mingw32/include

  3. Building example-7
    git clone https://github.com/JvanKatwijk/dab-cmdline.git
    cd dab-cmdline/example-7
    mkdir build
    cd build
    cmake ../ -G "MSYS Makefiles"

I finaly went to compiling example-7
not sure how are you compiling that, did you tried doing it on windows?

after deleting /usr/include because it had some wierd stuff going in there (probably fuckt up something earlier)

I need to define some PIs because windows does not have them

	#ifndef M_PI
	#define M_PI 3.14159265358979323846
	#endif

	dab-cmdline-master/library/src/ofdm/phasetable.cpp:179:15
	dab-cmdline-master/library/src/dab-processor.cpp:227:42
	dab-cmdline-master/library/src/ofdm/sample-reader.cpp:52:42
	just put it in some header file that every one of this includes

OK I am stuck again 😄

$ make -j5
Scanning dependencies of target dab_cmdline-7
[  2%] Building CXX object CMakeFiles/dab_cmdline-7.dir/C_/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/devices/stdin-handler/stdin-handler.cpp.obj
[  4%] Building CXX object CMakeFiles/dab_cmdline-7.dir/main.cpp.obj
[  6%] Building CXX object CMakeFiles/dab_cmdline-7.dir/audio-base.cpp.obj
[  8%] Building CXX object CMakeFiles/dab_cmdline-7.dir/audiosink.cpp.obj
[ 10%] Building CXX object CMakeFiles/dab_cmdline-7.dir/filesink.cpp.obj
[ 13%] Building CXX object CMakeFiles/dab_cmdline-7.dir/newconverter.cpp.obj
[ 15%] Building CXX object CMakeFiles/dab_cmdline-7.dir/band-handler.cpp.obj
[ 17%] Building CXX object CMakeFiles/dab_cmdline-7.dir/C_/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/devices/device-handler.cpp.obj
[ 19%] Building CXX object CMakeFiles/dab_cmdline-7.dir/C_/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/dab-api.cpp.obj
[ 21%] Building CXX object CMakeFiles/dab_cmdline-7.dir/C_/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/dab-processor.cpp.obj
[ 23%] Building CXX object CMakeFiles/dab_cmdline-7.dir/C_/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/ofdm/ofdm-decoder.cpp.obj
[ 26%] Building CXX object CMakeFiles/dab_cmdline-7.dir/C_/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/ofdm/phasereference.cpp.obj
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/example-7/main.cpp: In function 'int main(int, char**)':
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/example-7/main.cpp:228:18: error: aggregate 'main(int, char**)::sigaction sigact' has incomplete type and cannot be defined
 struct sigaction sigact;
                  ^~~~~~
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/example-7/main.cpp:298:2: error: 'sigemptyset' was not declared in this scope
  sigemptyset(&sigact.sa_mask);
  ^~~~~~~~~~~
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/example-7/main.cpp:211:10: warning: unused variable 'ppmCorrection' [-Wunused-variable]
 int16_t  ppmCorrection = 0;
          ^~~~~~~~~~~~~
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/example-7/main.cpp:212:6: warning: unused variable 'deviceGain' [-Wunused-variable]
 int  deviceGain = 45; // scale = 0 .. 100
      ^~~~~~~~~~
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/example-7/main.cpp:226:7: warning: unused variable 'autogain' [-Wunused-variable]
 bool  autogain = false;
       ^~~~~~~~
make[2]: *** [CMakeFiles/dab_cmdline-7.dir/build.make:87: CMakeFiles/dab_cmdline-7.dir/main.cpp.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/dab-processor.cpp: In member function 'virtual void dabProcessor::run()':
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/dab-processor.cpp:243:11: warning: unused variable 'sum2' [-Wunused-variable]
     float sum2 = myReader. get_sLevel ();
           ^~~~
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/ofdm/ofdm-decoder.cpp: In member function 'void ofdmDecoder::decode(std::complex<float>*, int32_t, int16_t*)':
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/ofdm/ofdm-decoder.cpp:88:1: warning: label 'fftlabel' defined but not used [-Wunused-label]
 fftlabel:
 ^~~~~~~~
C:/msys64/tobuild/DAB/dab-cmdline-master/dab-cmdline-master/library/src/ofdm/ofdm-decoder.cpp:98:1: warning: label 'toBitsLabel' defined but not used [-Wunused-label]
 toBitsLabel:
 ^~~~~~~~~~~
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/dab_cmdline-7.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

didn't ever thought that building on windows would be so hard 😄, that should be the easy part

from dab-cmdline.

JvanKatwijk avatar JvanKatwijk commented on June 23, 2024

from dab-cmdline.

veso266 avatar veso266 commented on June 23, 2024

Thanks for great explanation, now I just need to fix it 😄

from dab-cmdline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.