[casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Kaj Wiik

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

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 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/e8672aba-4d30-bd13-9b62-da004072b0de%40utu.fi.


Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Kaj Wiik
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 



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 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
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.


Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Jack Hickish
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  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
> >
> >
> > 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 "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> 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
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
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.


Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Jack Hickish
I think that's pretty much what mine looks like. :)

On Sat, 12 Feb 2022 at 13:08, Kaj Wiik  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  > > 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
> >
> >
> >  >
> >  >
> >  > 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
> > "casper@lists.berkeley.edu "
> group.
> > To unsubscribe from this group and stop receiving emails from it,
> send an
> > email to casper+unsubscr...@lists.berkeley.edu
> > .
> > 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
> >.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "casper@lists.berkeley.edu" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email
> > to casper+unsubscr...@lists.berkeley.edu
> > .
> > 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%3DHiwKRcFb2

Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Kaj Wiik

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 > 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 mailto:kaj.w...@utu.fi>
 > >> 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


 >   
  >

 >
 >      >
 >      >
 >      > 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
 >     "casper@lists.berkeley.edu 
>" 
group.
 >     To unsubscribe from this group and stop receiving emails from it, 
send an
 >     email to casper+unsubscr...@lis

Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-13 Thread Adam Isaacson
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 (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,  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  > > 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  > 
> >  > >> 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
> >>
> >  >
> >  >  >
> >  >  >
> >  >  > 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=/o

Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-14 Thread Mitchell Burnett
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  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 
>  (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,  > 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  >  
> > >> 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  > 
> > >
> >  >  
> >  >  >
> >  > 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
> >  
> > 
> > 
> > 

Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-21 Thread Kaj Wiik

Hi Mitch,

(cc: to our local ZCU111 group)

Many thanks for reply, unfortunately I had to switch tasks and missed your mail 
at first. Because of that I reinstalled Ubuntu 18.04 to find that while simulink 
windows show up correctly, jasper_library errored with endless Python version 
problems. Fortunately at that (desperate :-)) moment I noticed your reply and 
reinstalled Ubuntu 20.04.


There is certainly something going on with library versions because when Matlab 
is started directly, simulink window appears without any error message. As I 
mentioned, only when started from ./startsg, the error appears.


> 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`
>

>> ! ldd /lib/x86_64-linux-gnu/libgnutls.so.30
---
linux-vdso.so.1 (0x7fffddde3000)
libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 
(0x7f01e08fd000)
libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x7f01e08dc000)
libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 
(0x7f01e075a000)
libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 
(0x7f01e0744000)
libnettle.so.7 => /lib/x86_64-linux-gnu/libnettle.so.7 
(0x7f01e0708000)
libhogweed.so.5 => /lib/x86_64-linux-gnu/libhogweed.so.5 
(0x7f01e06d1000)
	libgmp.so.10 => /opt/Xilinx/Vivado/2020.2/lib/lnx64.o/Ubuntu/libgmp.so.10 
(0x7f01e0444000)

libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f01e0252000)
/lib64/ld-linux-x86-64.so.2 (0x7f01e0c2)
libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x7f01e0246000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f01e024)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7f01e021b000)
-

So yes, there is a reference libgmp.so.10 => 
/opt/Xilinx/Vivado/2020.2/lib/lnx64.o/Ubuntu/libgmp.so.10.


If I set

export LD_PRELOAD=${LD_PRELOAD}:"/lib/x86_64-linux-gnu/libgmp.so.10"

in startsg.local then it linked to the system libgmp but unfortunately the error 
stays.


Because simulink works when Matlab is started directly, I think the correct 
libraries are there somewhere. It could of course be that QT4 libraries are 
needed because of dependencies in Vivado(/Matlab)?


I'd be very grateful for any suggestions. It is very encouraging to know that 
someone has got this combo working!


I am running on top of LXD containers so messing up the system is not a worry.

We could continue in slack if you'd prefer, not to trash the mailing list. In 
any case I plan to publish the correct recipe somewhere.


Thanks,
Kaj

On 14/02/2022 19:20, Mitchell Burnett wrote:

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 > 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