#18991 closed defect (fixed)
qucs: digital simulations aren't working
Reported by: | janp@… | Owned by: | rowue@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | ||
Port: | qucs |
Description
I have been putting it through it's paces all the linear stuff seems to be working but the digital does not.
Error message I get with simulation model set to freehdl is
/opt/local/bin/qucsdigi: line 61: freehdl-config: command not found
i have included in the script to see what is going on:
echo "bindir = $BINDIR" echo "path = $PATH"
with result
creating netlist... done. bindir = /opt/local/bin/ path = /usr/bin:/bin:/usr/sbin:/sbin
Since /opt/local/bin where the files reside I edited the lines calling freehdl-config in the script to include $BINDIR thus:
CXX=`$BINDIR/freehdl-config --cxx` CXXFLAGS=`$BINDIR/freehdl-config --cxxflags` LIBS=`$BINDIR/freehdl-config --libtool` IEEELIBS=`$BINDIR/freehdl-config --ieee` LDFLAGS=`$BINDIR/freehdl-config --ldflags`
then I got this in the error window:
Package freehdl was not found in the pkg-config search path. Perhaps you should add the directory containing `freehdl.pc' to the PKG_CONFIG_PATH environment variable
repeated a number of times and adding
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig"
to /etc/profile or script made no difference. AT this point I don't know what else I can try.
Verilog model seems to have similar problems
Change History (7)
comment:1 Changed 16 years ago by janp@…
comment:2 Changed 16 years ago by janp@…
I have checked why verilog model didn't work
a) you need to add iverilog to qucs dependencies b) you need to add /opt/local/bin to the PATH in the qucsveri script or it won't find it.
I'm not sure why it does not get the environment from /etc/profile or even whether it should, but it doesn't but a simple . /etc/profile should fix it if that's preferable.
comment:3 Changed 16 years ago by raimue (Rainer Müller)
Owner: | changed from macports-tickets@… to rowue@… |
---|---|
Port: | qucs added |
comment:4 Changed 16 years ago by rowue@…
Status: | new → assigned |
---|
comment:5 follow-up: 6 Changed 16 years ago by rowue@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
- Fixed PATH, iverilog by r48739
- libtool" != "$LIBS": libtool is the program, $LIBS are the libraries linked to
Thanks!
rowue
comment:6 Changed 16 years ago by janp@…
Replying to rowue@…:
- Fixed PATH, iverilog by r48739
- libtool" != "$LIBS": libtool is the program, $LIBS are the libraries linked to
Thanks!
rowue
You are welcome.
verilog model works fine with those changes but VHDL still does not but I suspect that it's a VHDL problem so I'll create a new ticket for that. I'll definitely be out of my depth trying to sort that one out.
i have continued playing with this for some reason qucsdigi is not getting the environment PATH so I have included lines :
All necessary to get to this command
why "libtool" != "$LIBS" is beyond my understanding so I changed it then
what is vvp meant to be?
I'll now check out what is happening with verilog model