Comments (9)
from dab-cmdline.
from dab-cmdline.
I was thinking of replacing the input with I/Q data to STDin, don't know if I can do that
from dab-cmdline.
from dab-cmdline.
Thanks will dig into example 2
from dab-cmdline.
from dab-cmdline.
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
-
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 MinGW32wget 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) -
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
-
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 -
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 -
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.
from dab-cmdline.
Thanks for great explanation, now I just need to fix it 😄
from dab-cmdline.
Related Issues (20)
- Problem with main.cpp building example-3 HOT 4
- programDataHandler does not trigger HOT 3
- mot-object: does not save object to filesystem HOT 3
- AAC_OUT: it seems AAC LC format changed to AAC SBR HOT 10
- Use newer SSE2NEON for more intrinsics with Arm/Aarch64 fastpath HOT 1
- Stack corruption in reedSolomon::decode_rs HOT 4
- [Win32] crash in FULL_SPIRAL_sse() HOT 11
- streamInit() failed in python-example HOT 3
- Random "Sorry cannot handle service" HOT 14
- no audio out with Raspberry Pi OS Lite HOT 5
- Library for python HOT 2
- Example 1 - dataOutHandler question HOT 7
- Audio-device for cmdline.py HOT 2
- Example 3 crashes HOT 13
- dab-library within MPD plugin HOT 7
- semaphore.h clashes with system semaphore.h HOT 1
- tii_data_t doesn't include userData parameter HOT 4
- Main TII of 0x16 decodes as 0xff HOT 20
- Problem in example 1 HOT 5
- Formal things HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dab-cmdline.