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 about shuhong Gao decoding #428

Open
freelyyu opened this issue Mar 11, 2020 · 3 comments
Open

problem about shuhong Gao decoding #428

freelyyu opened this issue Mar 11, 2020 · 3 comments

Comments

@freelyyu
Copy link

Hi,
Thanks a lot for your excellent work for providing such a good library. I am new with reed-solomon codes, recently, I have read Shuhong Gao algorithm Gao, I saw that @rahulgovind have implement this algorithm and pull it. I want to run gao's algorithm. After many failures I still can't install docker on my laptop. it seems that gao's algorithm was written in c++ and invoked in python file for testing. I wonder if it is possible not to install the entire library if I just want to run gao's algorithm. I am sorry to trouble you.

Looking forward to your reply.

Best Regards!

@amiller
Copy link
Contributor

amiller commented Mar 11, 2020

You should be able to install all of the libraries directly. Think of the dockerfile as a documentation on how to set up your local environment - docker itself isn't necessary. This will work best if you start with Ubuntu on your laptop, otherwise some differences may be needed

@rahulgovind
Copy link
Contributor

If you want to just use Gao's algorithm in C++, you can directly use the code from rsdecode_impl.h. You will have to setup NTL separately and read up on NTL documentation to see how to instantiate ZZ_p objects.

You can run the following to setup and install NTL

wget -qO- https://www.shoup.net/ntl/ntl-11.3.2.tar.gz | tar xzvf - \
         &&  cd ntl-11.3.2/src \
         && ./configure CXXFLAGS="-g -O2 -fPIC -march=native -pthread -std=c++11" \
         && make -j4 \
         && make install

@freelyyu
Copy link
Author

Thanks for your tips. I have installed NTL successfully and I know how to use ZZ_p and so on. I usually use c++. I am not familar with python and gao's algorithm before. I will try to understand his algorithm and try to implement a c++ file to call the function in rsdecode_impl.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants