Monday, August 28, 2017

Re: [Discuss-gnuradio] gr-lte make error

You most prominently need to *link* against libvolk. That requires you
to add an appropriate target_link_libraries entry in lib/CMakeLists.txt


On 08/28/2017 10:10 AM, Johannes Demel wrote:
> Hi all,
>
> I'm uncertain how to integrate VOLK into the 'gr-lte' CMakeLists file.
> I've just looked at some other modules. I ended up just adding the
> line 'find_package(Volk)'. This ends up in a 'works for me'. CMake
> finds 'VOLK' and I could just compile 'gr-lte' from a new github
> clone. Though, I can't find a line where the library or include dir
> are actually added to the corresponding lists.
> Also, it seems like there is no 'findVOLK.cmake' file in
> 'cmake/modules' (not only in gr-lte. It's also missing in other OOT
> modules). Could someone point me in the right direction where I can
> find some more infos on this whole 'find_package' CMake magic?
> So far I've pushed my change to a new branch 'cmake-volk-fix'.
>
> Johannes
>
> On 27.08.2017 21:37, Marcus Müller wrote:
>> Oh, I missed that. Not cool, considering I think I've inherently become
>> one of gr-lte's maintainers :/ Thanks!
>>
>> Best regards,
>> Marcus
>>
>> On 27.08.2017 21:20, Michael Dickens wrote:
>>> The issue is that gr-lte requires Volk but does not check for it --
>>> nor use its API / headers correctly nor use its ABI / libraries
>>> correctly -- in the CMakeLists.txt scripts. This is a simple fix,
>>> which you can copy from other OOT modules.
>>>
>>> Related: Are you trying to use MacPorts to do the install? I've
>>> thought about adding gr-lte into MP for a while. Would not be
>>> difficult for me to do so, along with patching this issue, so that
>>> installing it is as simple as "sudo port install gr-lte" ... - MLD
>>>
>>> On Sun, Aug 27, 2017, at 03:34 AM, w xd wrote:
>>>> Environment: Mac os 10.12.6
>>>>
>>>> I want to install gr-lte and learn something about LTE. And I follow
>>>> the instruction from https://github.com/kit-cel/gr-lte.
>>>>
>>>> when the go to the command "make -jX", it go wrong.
>>>>
>>>> The error message:
>>>>
>>>> Linking CXX shared library libgnuradio-lte.dylib
>>>> Undefined symbols for architecture x86_64:
>>>> "_volk_32f_accumulator_s32f_a", referenced from:
>>>> gr::lte::pcfich.....
>>>>
>>>> Have someone met this problem? Thanks very much.
>>>
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

No comments:

Post a Comment