Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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@…

i have continued playing with this for some reason qucsdigi is not getting the environment PATH so I have included lines :

PATH="$PATH:$BINDIR"
export PATH
PKG_CONFIG_PATH="/opt/local/lib/pkgconfig"
export PKG_CONFIG_PATH

All necessary to get to this command

libtool --quiet --mode=link $CXX $NAME._main_.o $NAME.o $LIBS $IEEELIBS -o $NAME

why "libtool" != "$LIBS" is beyond my understanding so I changed it then

-n linking...
 done.
simulating..

and error

/opt/local/bin/qucsdigi: ./digi: /opt/local/bin/vvp: bad interpreter: No such file or directory

what is vvp meant to be?

I can't find it and whatever referrences I do find seem unrelated this is where I really do run into a brick wall but I suppose it's now a freedhl issue.

I'll now check out what is happening with verilog model

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

comment:5 Changed 16 years ago by rowue@…

Resolution: fixed
Status: assignedclosed
  • Fixed PATH, iverilog by r48739
  • libtool" != "$LIBS": libtool is the program, $LIBS are the libraries linked to

Thanks!

rowue

comment:6 in reply to:  5 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.

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.