[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] OOT Block on Windows (barely feasible?)
From: |
Imre Biacsics |
Subject: |
Re: [Discuss-gnuradio] OOT Block on Windows (barely feasible?) |
Date: |
Sun, 23 Oct 2016 21:01:59 +0200 |
User-agent: |
Opera Mail/1.0 (Win32) |
Thanks again Geof, your hints realy helped me.
After some bumps in the table (From my head), and quite some hair laying around (Also from my head);
Cmake, configure, build and even install / uninstall ends with zero warnings & errors.
I'll send you a .zip file by direct mail. (Be aware, it's a mess)
The blocks are visible in GRC, but it still throws the: 'module' object has no attribute <blockname>
Snipping out the docs entries, installing does this: (something wierd happens in the middle)
1> -- Installing: C:/Program Files/GNURadio-3.7/lib/cmake/pager2/pager2Config.cmake
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/api.h
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/flex_frame.h
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/slicer_fb.h
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/flex_deinterleave.h
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/flex_parse.h
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/flex_sync.h
1> -- Installing: C:/Program Files/GNURadio-3.7/lib/gnuradio-pager2.lib
1> -- Installing: C:/Program Files/GNURadio-3.7/bin/gnuradio-pager2.dll
1> -- Installing: C:/Program Files/GNURadio-3.7/Lib/site-packages/pager2/_pager2_swig.pyd
1> -- Installing: C:/Program Files/GNURadio-3.7/Lib/site-packages/pager2/pager2_swig.py
1> -- Installing: C:/Program Files/GNURadio-3.7/Lib/site-packages/pager2/pager2_swig.pyc
1> -- Installing: C:/Program Files/GNURadio-3.7/Lib/site-packages/pager2/pager2_swig.pyo
-------------------- (Uh, /pager/pager/... ???)
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/pager2/swig/pager2_swig.i
1> -- Installing: C:/Program Files/GNURadio-3.7/include/pager2/pager2/swig/pager2_swig_doc.i
1> -- Installing: C:/Program Files/GNURadio-3.7/Lib/site-packages/pager2/__init__.py
1> -- Installing: C:/Program Files/GNURadio-3.7/Lib/site-packages/pager2/__init__.pyc
1> -- Installing: C:/Program Files/GNURadio-3.7/Lib/site-packages/pager2/__init__.pyo
1> -- Installing: C:/Program Files/GNURadio-3.7/share/gnuradio/grc/blocks/pager2_flex_deinterleave.xml
1> -- Installing: C:/Program Files/GNURadio-3.7/share/gnuradio/grc/blocks/pager2_flex_sync.xml
1> -- Installing: C:/Program Files/GNURadio-3.7/share/gnuradio/grc/blocks/pager2_slicer_fb.xml
Hmmm, got the feeling i'm so close.
Imre Biacsics
Thank you, -o- wise one.
In fact that was de only problem: Now i can build all projects and even build install.
But the module was not properly installed and threw the:
AttributeError: 'module' object has no attribute
In the GRC terminal.
I narrowed that down to the file /swig/pager2_swig.i (Forgot to use the gr_modtool add command)
After properly adding the block it looks like this:
/* -*- c++ -*- */
#define PAGER2_API
%include "gnuradio.i" // the common stuff
//load generated python docstrings
%include "pager2_swig_doc.i"
%{
#include "pager2/flex_deinterleave.h"
%}
%include "pager2/flex_deinterleave.h"
GR_SWIG_BLOCK_MAGIC2(pager2, flex_deinterleave);
Wich created new issues i do not understand:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "__declspec(dllimport) void __cdecl pmt::intrusive_ptr_release(class pmt::pmt_base *)" (address@hidden@@address@hidden@@Z) referenced in function "public: __cdecl boost::intrusive_ptr<class pmt::pmt_base>::~intrusive_ptr<class pmt::pmt_base>(void)" (address@hidden@pmt@@@boost@@address@hidden) _pager2_swig F:\grc\OOTmodules\gr-pager2\build\swig\pager2_swigPYTHON_wrap.obj 1
After commenting out like this:
%{
/* #include "pager2/flex_deinterleave.h" */
%}
/*
%include "pager2/flex_deinterleave.h"
GR_SWIG_BLOCK_MAGIC2(pager2, flex_deinterleave);
*/
It builds again, what am i missing....
Imre Biacsics
On Sat, 22 Oct 2016 03:54:38 +0200, Geof Nieboer <address@hidden> wrote:
Look in the cmake file(s) for something along the lines of:
COMMAND ""
If you find it, delete the double quotes. I searched and found one in cmake\Modules\UseSWIG.cmake, so I would start there.
Geof