srsran / zynq_timestamping

Open source Zynq timestamping implementation from Software Radio Systems (SRS)
https://srsran.github.io/zynq_timestamping/index.html
GNU Affero General Public License v3.0
55 stars 15 forks source link

ADALM-PLUTO Project Build Stuck in Ubuntu 20.04 #56

Closed chaohwa4 closed 1 year ago

chaohwa4 commented 1 year ago

I tried to build the ADALM-PLUTO project with Ubuntu 20.04. I used python3.10 to build the python tools. However, when I typed "/create_project.sh bitstream", the project was stuck with axi_ad9361 and I used Ctrl-C to exit the building process.

haohwa@chaohwa-ThinkPad-Edge-E540:~/zynq_timestamping/projects/pluto$ ./create_project.sh bitstream ###################################################################

In my Ubuntu 20.04, the cmake version is 3.16.3. The gcc version is 9.4.0.

However, I don't have any problem building the project in Ubuntu 18.04. So how should I fix it in Ubuntu 20,04?

ofontbach commented 1 year ago

Hi @chaohwa4, I've just tried building the ADALM-PLUTO project and it worked perfectly fine for me with the following versions:

chaohwa4 commented 1 year ago

So far the differences are Ubuntu and cmake. My versions are Ubuntu 20.04.6 and cmake 3.16.3.

chaohwa4 commented 1 year ago

Even if I upgrade cmake to 3.26.3. It is still stuck in building axi_ad9361 library. So I might as well converting Ubuntu to 20.04.3 and test there. At least Ubuntu 18.04.6 works.

chaohwa4 commented 1 year ago

How do you keep your OS version as 20.04.3? When I use software update to update the system, it will update to 20.04.6, which I don't want to do because building axi_ad9361 library is getting stuck again!

chaohwa4 commented 1 year ago

This is how it was stuck:

chaohwa@chaohwa-ThinkPad-Edge-E540:~/zynq_timestamping/projects/pluto$ more hdl/library/axi_ad9361/axi_ad9361_ip.log application-specific initialization failed: couldn't load file "librdi_commontasks.so": libtinfo.so.5: cannot open shared object file: No such file or directory %

chaohwa4 commented 1 year ago

After performing the following, the process started working:

cd /lib/x86_64-linux-gnu sudo ln -s libtinfo.so.6 libtinfo.so.5

chaohwa4 commented 1 year ago

In short, for Ubuntu 20.04 or 22.04, when stuck in building axi_ad9361 library after executing "./create_project.sh bitstream", do the following: cd /lib/x86_64-linux-gnu sudo ln -s libtinfo.so.6 libtinfo.so.5

It will solve the library stuck issue.

ofontbach commented 1 year ago

Thanks for the tip @chaohwa4!