Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building Scopy: intl #747

Closed
bobgates opened this issue Dec 20, 2019 · 7 comments
Closed

Problem building Scopy: intl #747

bobgates opened this issue Dec 20, 2019 · 7 comments
Labels

Comments

@bobgates
Copy link

Environment:
macOs 10.13 on 2017 Macbook Pro

I'm trying to build Scopy for the Mac, following the instructions on:
https://github.com/analogdevicesinc/scopy/wiki/Building-Scopy-on-OS-X

Semi-resolved issues
There was a library needed (pkg-config) that wasn't specified in the instructions,but homebrew looked after, but I found it and all good.

There was also a fail in compiling network_analyzer.cpp - two calls to:
goertzel1->set_len(buffer_size);
failed because set_len is not defined for goertzel. I've commented the two lines out, don't yet know what the results of that will be.

Bug
My current roadblock is during linking of Scopy:
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Scopy.app/Contents/MacOS/Scopy] Error 1

I'm at a loss where to find the intl library, and why it isn't available to the Linker.

All help would be appreciated.

@bobgates bobgates added the bug label Dec 20, 2019
@adisuciu
Copy link
Contributor

Hello,
Are you using our branch of gnuradio ? You are supposed to use the scopy branch from our repository. This branch has the set_len method implemented.

https://github.com/analogdevicesinc/gnuradio/tree/scopy

According to the build guide on the wiki:

cd ~
git clone https://github.com/analogdevicesinc/gnuradio
cd gnuradio
git checkout scopy
mkdir build && cd build
cmake -DENABLE_INTERNAL_VOLK:​BOOL=OFF -DENABLE_GR_FEC:BOOL=OFF -DENABLE_GR_DIGITAL:BOOL=OFF -DENABLE_GR_DTV:BOOL=OFF -DENABLE_GR_ATSC:BOOL=OFF -DENABLE_GR_AUDIO:BOOL=OFF -DENABLE_GR_CHANNELS:BOOL=OFF -DENABLE_GR_NOAA:BOOL=OFF -DENABLE_GR_PAGER:​BOOL=OFF -DENABLE_GR_TRELLIS:​BOOL=OFF -DENABLE_GR_VOCODER:​BOOL=OFF ​..
make
sudo make install

-Adrian

@adisuciu
Copy link
Contributor

lintl package is part of the gettext package. You are supposed to install that as well
brew install gettext
We will update our build guide.
-Adrian

@bobgates
Copy link
Author

Yeah, please do! (update the guide)

I don't know if I installed gnuradio from your build, or perhaps just missed the git checkout scopy line. I'm busy reinstalling. Does that mean I should rebuild gr-iio as well? Because that linked okay, and I think it might have linked to a copy of gnuradio sitting somewhere else on my directory tree.

@adisuciu
Copy link
Contributor

Yes, you should rebuild gr-iio.

@bobgates
Copy link
Author

I've installed gettext with brew, but still got the same linker error.

It turns out this has happened before: EOSIO/eos#2028

I'm not sure how to read that, since I just installed gettext today, but somehow it didn't get linked properly. Anyway:
brew unlink gettext && brew link --force gettext
is the solution�.

I've also rebuilt everything from gnuradio onwards to get rid of old copies of things, I'm now running on the scopy branch, and that's working. I like the look of 1.1.1 - it seems a little ahead of whatever I was running!

@bobgates bobgates reopened this Dec 29, 2019
@bobgates
Copy link
Author

Note that the MacOs guide, https://wiki.analog.com/university/tools/m2k/scopy/build-osx, differs from the advice given by Adrian, above. Adrian has:

cd ~
git clone https://github.com/analogdevicesinc/gnuradio
cd gnuradio
git checkout scopy

whereas the MacOs guide has:
cd ~
git clone https://github.com/analogdevicesinc/gnuradio
cd gnuradio
git checkout signal_source_phase

That took some finding. Please can you update the guide?

Thanks,
Declan

@adisuciu
Copy link
Contributor

adisuciu commented Jan 7, 2020

Updated ! Thanks !

@adisuciu adisuciu closed this as completed Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants