Wednesday, August 27, 2014

Re: [Discuss-gnuradio] Custom Blocks - Windows

Hi Luke,

you should cmake that module on windows, like you cmade it on linux, because CMake is the only one who can find out where all the libraries, compilers and tools are that are needed to build this thing for windows.
Doing that shouldn't be horribly complicated -- get the gcc (mingw) toolchain, cmake, build gnuradio (and its prerequisites) on windows and install it, then build your module.

A linux .so is not a windows .dll and thus you can't simply use the same binaries -- if you could always use the same binaries on windows and linux, these two operating systems would be API-compatible, meaning that they were but two implementations of the same OS...

Greetings,
Marcus

On 27.08.2014 11:19, PEEL Luke wrote:
Hi,    I am in the process of creating a custom block for GRC - I have managed to write the C++, compile and install it all on Linux, but I was hoping that it would be simple to port that over to Windows (Maybe just place the right files in the right places). When I did 'sudo make install' in the build directory of my new module, it printed the following:      Install the project...  -- Install configuration: "Release"  -- Installing: /usr/local/lib/cmake/custom/customConfig.cmake  -- Installing: /usr/local/include/custom/api.h  -- Installing: /usr/local/include/custom/myMod.h  -- Installing: /usr/local/lib/libgnuradio-custom.so  -- Installing: /usr/local/lib/python2.7/dist-packages/custom/_custom_swig.so  -- Removed runtime path from "/usr/local/lib/python2.7/dist-packages/custom/_custom_swig.so"  -- Installing: /usr/local/lib/python2.7/dist-packages/custom/custom_swig.py  -- Installing: /usr/local/lib/python2.7/dist-packages/custom/custom_swig.pyc  -- Installing: /usr/local/lib/python2.7/dist-packages/custom/custom_swig.pyo  -- Installing: /usr/local/include/custom/custom/swig/custom_swig.i  -- Installing: /usr/local/include/custom/custom/swig/custom_swig_doc.i  -- Installing: /usr/local/lib/python2.7/dist-packages/custom/__init__.py  -- Installing: /usr/local/lib/python2.7/dist-packages/custom/__init__.pyc  -- Installing: /usr/local/lib/python2.7/dist-packages/custom/__init__.pyo  -- Installing: /usr/local/share/gnuradio/grc/blocks/custom_ myMod.xml      Is it possible to map the file paths from Linux to the file paths in Windows and just copy the files? Or is there some other method used to install a new block in Windows.    Apologies if this has been asked before, but the threads I found didn't match what I was looking for.    Thank you,  Luke    


_______________________________________________  Discuss-gnuradio mailing list  Discuss-gnuradio@gnu.org  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio  

No comments:

Post a Comment