Hi Kaj,

For RFSoC as long as you are using Vivado <= 2020.2 you can still use System 
Generator with entry started using `./startsg`. Model Composer is replacing 
(really just wrapping) System Generator in future releases of Vivado/Vitis >= 
2021.

When setting up the RFSoC in the tools I know I tested it on Ubuntu 20.04, but 
I will admit I believe I may have gotten lucky by already having an Ubuntu 
environment I forced into working. It probably should have been tested from a 
fresh install with more information about what to do to start successfully.

Because your issue does seem familiar to me. I remember getting something very 
similar doing things with System Generator on an Ubuntu 20.04 machine before 
working on RFSoC. What I recall is that Vivado brings along with it in the 
installation a version `libgmp` that conflicts with what is distributed with 
base Ubuntu.

I would be curious to know what is returned if you run (from within your Matlab 
prompt)

`>> ! ldd /lib/x86_64-linux-gnu/libgnutls.so.30`

My suspicion is that you will get something returned where `libgnutls` is 
wanting to call something from `libgmp` that is being used from the Vivado 
installation that is the incorrect version, and subsequently fails out.

If this is the case then the way to go about fixing this is to move the 
offending libraries off the path, find the dependencies to replace them, and 
then install those. Obviously this comes at a risk of messing something up with 
your system, but if you are comfortable doing this sort of thing, you should be 
able to overcome it.

If I recall correctly, the missing dependencies are a set of the qt4 libraries, 
but Ubuntu 20.04 only qt5.

I may try to duplicate your problem to post the correct steps for RFSoC setup 
but if you would like to continue this let me know and we could work it out 
together.

Best,

Mitch

> On Feb 13, 2022, at 10:51 AM, Adam Isaacson <[email protected]> wrote:
> 
> Hi Kaj and Jack,
> 
> I am not sure if this helps or not. We use Ubuntu 18.04LTS, Vivado 2021.1 and 
> Matlab R2019a. Sys generator is no longer available. It now uses the Xilinx 
> add on Model Composer. Wesley created a "startmc" file to fix this. I know my 
> startsg did not work. Try our repo: www.github.com/ska-sa/mlib_devel 
> <http://www.github.com/ska-sa/mlib_devel> (alveo_u50) branch, I think.
> 
> Try it and let me know. Ask Wesley for help if not. If this has nothing to do 
> with the issue then my apologies and sorry for leading you astray.
> 
> Kind regards,
> 
> Adam
> 
> On Sat, 12 Feb 2022, 4:26 PM Kaj Wiik, <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi,
> 
> I installed kde-full but the error stays, maybe I should downgrade to 18.04...
> 
> On the other hand, if that Simulink window is good enough for you, then for 
> sure 
> it is good enough for me :-D! I guess that error message does not affect to 
> other functionalities...
> 
> Thanks,
> Kaj
> 
> 
> On 12/02/2022 15:28, Jack Hickish wrote:
> > I think that's pretty much what mine looks like..... :)
> > 
> > On Sat, 12 Feb 2022 at 13:08, Kaj Wiik <[email protected] 
> > <mailto:[email protected]> 
> > <mailto:[email protected] <mailto:[email protected]>>> wrote:
> > 
> >     Hi Jack,
> > 
> >     It indeed might be the fastest way to follow your setup. Screenshot of 
> > the
> >     'simulink' window I get is attached.
> > 
> >     Thanks,
> >     Kaj
> > 
> > 
> > 
> >     On 12/02/2022 14:47, Jack Hickish wrote:
> >      > Hi Kaj,
> >      >
> >      > Not sure whether it is at all relevant, but these days when faced 
> > with
> >     any sort
> >      > of probably OS/sysgen/MATLAB version combination issues I start
> >     by installing
> >      > the kde-full package.
> >      >
> >      > I'll also add that I'm running MATLAB 2019a / Vivado 2020.2 without 
> > issue on
> >      > Ubuntu 18.04.
> >      >
> >      > Cheers
> >      > Jack
> >      >
> >      > On Sat, 12 Feb 2022 at 12:23, Kaj Wiik <[email protected] 
> > <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>
> >      > <mailto:[email protected] <mailto:[email protected]> 
> > <mailto:[email protected] <mailto:[email protected]>>>> wrote:
> >      >
> >      >     Hmm, it seems that a window *is* opened but it is totally 
> > different
> >     than the
> >      >     normal Simulink window (looks oldfashioned with large fonts). 
> > Still,
> >     ideas how
> >      >     to get the 'correct' GUI window are welcomed.
> >      >
> >      >     Thanks,
> >      >     Kaj
> >      >
> >      >     On 12/02/2022 11:35, Kaj Wiik wrote:
> >      >      > Hi Casperites,
> >      >      >
> >      >      > I am trying to install the RFSoC toolchain following the
> >     instructions from
> >      >      >
> >      >
> >     
> > https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md
> >  
> > <https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md>
> >     
> > <https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md
> >  
> > <https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md>>
> >      >   
> >       
> > <https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md
> >  
> > <https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md>
> >  
> > <https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md
> >  
> > <https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md>>>
> >      >
> >      >      >
> >      >      >
> >      >      > I am using Ubuntu 20.04 LTS, Vivado 2020.2, and Matlab 2019a 
> > (with
> >     Simulink)
> >      >      >
> >      >      > The problem is that Simulink window appears if Matlab is 
> > started
> >     in normal
> >      >      > environment, in python3 venv but _not if Matlab is started by
> >     startsg_.
> >      >      >
> >      >      > The error message is:
> >      >      > 
> > ---------------------------------------------------------------------
> >      >      > Starting Vivado/Vitis Sysgen
> >      >      > Type xlDoc to open the Xilinx System Generator help 
> > documentation.
> >      >      > Type demo blockset xilinx to view the demos available for 
> > Xilinx
> >     System
> >      >     Generator.
> >      >      > Tip of the day: Learn more about Support for multiple clock 
> > domains.
> >      >      >
> >      >      >  >> simulink
> >      >      > Warning: MATLABWindow application failed to launch. Unable to
> >     launch the
> >      >      > MATLABWindow application
> >      >      >  > In sltemplate.ui.StartPage/showWithFallback
> >      >      >    In sltemplate.ui.StartPage.show
> >      >      >
> >      >      >  >> cd(matlabroot)
> >      >      >  >> ! bin/glnxa64/MATLABWindow
> >      >      > bin/glnxa64/MATLABWindow: symbol lookup error:
> >      >      > /lib/x86_64-linux-gnu/libgnutls.so.30: undefined symbol:
> >     __gmpz_limbs_write
> >      >      > 
> > ----------------------------------------------------------------------
> >      >      >
> >      >      > I have tried to play with different libgmp versions as 
> > suggested
> >     by some
> >      >      > Matlab/Xilings mailing lists but nothing has worked.
> >      >      >
> >      >      > I ask in this list because this seems to be a casper toolflow 
> > related
> >      >     problem.
> >      >      >
> >      >      > My startsg.local is
> >      >      > 
> > ----------------------------------------------------------------------
> >      >      > export XILINX_PATH=/opt/Xilinx/Vivado/2020.2
> >      >      > export MATLAB_PATH=/home/kjwiik/.local/MATLAB/R2019a
> >      >      > export PLATFORM=lin64
> >      >      > export JASPER_BACKEND=vitis
> >      >      > XLNX_DT_REPO_PATH=/home/kjwiik/sandbox/xilinx/device-tree-xlnx
> >      >      > #export
> >     LD_PRELOAD=${LD_PRELOAD}:"/usr/lib/x86_64-linux-gnu/libexpat.so"
> >      >      > export 
> > CASPER_PYTHON_VENV_ON_START=/home/kjwiik/sandbox/casper-venv
> >      >      > 
> > ----------------------------------------------------------------------
> >      >      >
> >      >      > Any suggestions?
> >      >      >
> >      >      > Thanks,
> >      >      > Kaj
> >      >      >
> >      >
> >      >     --
> >      >     You received this message because you are subscribed to the 
> > Google Groups
> >      >     "[email protected] <mailto:[email protected]> 
> > <mailto:[email protected] <mailto:[email protected]>>
> >     <mailto:[email protected] <mailto:[email protected]> 
> > <mailto:[email protected] <mailto:[email protected]>>>" 
> > group.
> >      >     To unsubscribe from this group and stop receiving emails from 
> > it, send an
> >      >     email to [email protected] 
> > <mailto:casper%[email protected]>
> >     <mailto:casper%[email protected] 
> > <mailto:casper%[email protected]>>
> >      >     <mailto:casper%[email protected] 
> > <mailto:casper%[email protected]>
> >     <mailto:casper%[email protected] 
> > <mailto:casper%[email protected]>>>.
> >      >     To view this discussion on the web visit
> >      >
> >     
> > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi>
> >     
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi>>
> >      >   
> >       
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi>
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/9327c4a5-dbd7-5434-2ed9-325a560fcde9%40utu.fi>>>.
> >      >
> >      > --
> >      > You received this message because you are subscribed to the Google 
> > Groups
> >      > "[email protected] <mailto:[email protected]> 
> > <mailto:[email protected] <mailto:[email protected]>>" 
> > group.
> >      > To unsubscribe from this group and stop receiving emails from it, 
> > send an
> >     email
> >      > to [email protected] 
> > <mailto:casper%[email protected]>
> >     <mailto:casper%[email protected] 
> > <mailto:casper%[email protected]>>
> >      > <mailto:[email protected] 
> > <mailto:casper%[email protected]>
> >     <mailto:casper%[email protected] 
> > <mailto:casper%[email protected]>>>.
> >      > To view this discussion on the web visit
> >      >
> >     
> > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com>
> >     
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com>>
> > 
> >      >
> >     
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com?utm_medium=email&utm_source=footer
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> >     
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com?utm_medium=email&utm_source=footer
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKS%3DeNxJHy4a%2BdBfQ5PtvT%3DHiwKRcFb2jsoSi8Gi6DcNavA%40mail.gmail.com?utm_medium=email&utm_source=footer>>>.
> > 
> >     -- 
> >     You received this message because you are subscribed to the Google 
> > Groups
> >     "[email protected] <mailto:[email protected]> 
> > <mailto:[email protected] <mailto:[email protected]>>" 
> > group.
> >     To unsubscribe from this group and stop receiving emails from it, send 
> > an
> >     email to [email protected] 
> > <mailto:casper%[email protected]>
> >     <mailto:casper%[email protected] 
> > <mailto:casper%[email protected]>>.
> >     To view this discussion on the web visit
> >     
> > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/ace401c1-3881-d857-8ad8-487b371a8e23%40utu.fi
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/ace401c1-3881-d857-8ad8-487b371a8e23%40utu.fi>
> >     
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/ace401c1-3881-d857-8ad8-487b371a8e23%40utu.fi
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/ace401c1-3881-d857-8ad8-487b371a8e23%40utu.fi>>.
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "[email protected] <mailto:[email protected]>" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email 
> > to [email protected] 
> > <mailto:casper%[email protected]> 
> > <mailto:[email protected] 
> > <mailto:casper%[email protected]>>.
> > To view this discussion on the web visit 
> > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSnihseUPwY1hbaG%3DtRHxtXGfMefBfAYfV9uV7yVpan10Q%40mail.gmail.com
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSnihseUPwY1hbaG%3DtRHxtXGfMefBfAYfV9uV7yVpan10Q%40mail.gmail.com>
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSnihseUPwY1hbaG%3DtRHxtXGfMefBfAYfV9uV7yVpan10Q%40mail.gmail.com?utm_medium=email&utm_source=footer
> >  
> > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSnihseUPwY1hbaG%3DtRHxtXGfMefBfAYfV9uV7yVpan10Q%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "[email protected] <mailto:[email protected]>" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:casper%[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/e6678105-47b1-dae7-8c2a-87d5bd51569f%40utu.fi
>  
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/e6678105-47b1-dae7-8c2a-87d5bd51569f%40utu.fi>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "[email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnHkK0KnKAYHdhq03NPq_mcv8G16ZHvL-WjQ5R_DsFTH4A%40mail.gmail.com
>  
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnHkK0KnKAYHdhq03NPq_mcv8G16ZHvL-WjQ5R_DsFTH4A%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/D875EC31-BDC0-49F4-99B1-775B5F2C4A6E%40gmail.com.

Reply via email to