Opened 11 years ago

Closed 11 years ago

#40640 closed update (fixed)

qucs: update to 0.0.17; use qt4-mac

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: rowue@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: cooljeanius (Eric Gallager)
Port: qucs

Description

qucs should be updated to 0.0.17:

$ port livecheck qucs
qucs seems to have been updated (port version: 0.0.16, new version: 0.0.17)

In addition, the port currently cannot be used because it depends on qt3-mac which cannot be built 64-bit nor on Lion or later; see #30679 and #27520. The qucs web site offers a pre-compiled binary of qucs for OS X built with Qt 4.8, so it seems to be possible to use Qt 4 now. So the port should switch to depending on qt4-mac now.

Attachments (7)

qucs-0.0.17.diff (9.0 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
the beginnings of a patch
patch-qucs-filter-qf_filter.cpp.diff (830 bytes) - added by rowue@… 11 years ago.
us-patch for qucs_filter.cpp
patch-asco-configure.diff (414 bytes) - added by rowue@… 11 years ago.
Patch to properly configure asco
qucs_0.0.17.diff (15.5 KB) - added by rowue@… 11 years ago.
Patch to get qucs-0.0.17 working
Sparam_qucs_initial.sch (2.5 KB) - added by guitorri@… 11 years ago.
Qucs only simulation file
Sparam_asco_optimize.sch (3.0 KB) - added by guitorri@… 11 years ago.
Qucs and ASCO simulation file
Bildschirmfoto 2013-10-13 um 16.15.39.png (352.0 KB) - added by rowue@… 11 years ago.
screenshot with asco

Download all attachments as: .zip

Change History (18)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: qucs-0.0.17.diff added

the beginnings of a patch

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

I've attached a patch that updates the portfile and patchfiles. Unfortunately it fails to build.

addition of default argument on redeclaration makes this constructor a default constructor

This sounds like a programming error so I've reported the bug to the developers.

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 11 years ago by rowue@…

With 10.8.5 and xcode 4.6.2 I run into the following error:

/usr/bin/clang -DPACKAGE_NAME=\"ASCO\" -DPACKAGE_TARNAME=\"asco\" -DPACKAGE_VERSION=\"0.4.8\" -DPACKAGE_STRING=\"ASCO\ 0.4.8\" -DPACKAGE_BUGREPORT=\"asco-bugs@lists.sourceforge.net\" -DPACKAGE_URL=\"\" -DNDEBUG=1 -DHAVE_LIBM=1 -I. -I./../auxfunc  -I/opt/local/include  -pipe -Os -arch x86_64 -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c
dosdir.c:349:3: error: use of undeclared identifier 'errno'
  errno = ENOENT;       /* no file found */
  ^
dosdir.c:349:11: error: use of undeclared identifier 'ENOENT'
  errno = ENOENT;       /* no file found */
          ^
2 errors generated.

Two questions:

  1. we allready include asco - should we circumvent the inclusion by qucs
  2. the error is related to missing UNIX define (-DUNIX) - wasn't it defined before (remember such thing)

add patch from us to ticket

Changed 11 years ago by rowue@…

us-patch for qucs_filter.cpp

comment:4 in reply to:  3 ; Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to rowue@…:

dosdir.c:349:3: error: use of undeclared identifier 'errno'

Yes, I already reported that to the developers as well and they've provided a fix which works for me. I don't remember where I was at when I left this port; I'll have to look through my working copy.

comment:5 in reply to:  4 Changed 11 years ago by rowue@…

Replying to ryandesign@…:

Replying to rowue@…:

dosdir.c:349:3: error: use of undeclared identifier 'errno'

Yes, I already reported that to the developers as well and they've provided a fix which works for me. I don't remember where I was at when I left this port; I'll have to look through my working copy.

From the attachments to this ticket you where left of before applying the other patch (" patch-qucs-filter-qf_filter.cpp.diff​"). Go on if you like, otherwise I'll give it a try this evening (CEST)

Changed 11 years ago by rowue@…

Attachment: patch-asco-configure.diff added

Patch to properly configure asco

comment:6 Changed 11 years ago by rowue@…

To work with the patch from upstream I had to use autoreconf. Attached a patch which simply works on configure. Got to "xinstall":

Creating MacOSX applications...
mkdir: /opt/local/bin/qucs.app: Operation not permitted
mkdir: /opt/local/bin/qucs.app: No such file or directory
mkdir: /opt/local/bin/qucsattenuator.app: Operation not permitted
mkdir: /opt/local/bin/qucsattenuator.app: No such file or directory
mkdir: /opt/local/bin/qucsfilter.app: Operation not permitted
mkdir: /opt/local/bin/qucsfilter.app: No such file or directory
mkdir: /opt/local/bin/qucshelp.app: Operation not permitted
mkdir: /opt/local/bin/qucshelp.app: No such file or directory
mkdir: /opt/local/bin/qucslib.app: Operation not permitted
mkdir: /opt/local/bin/qucslib.app: No such file or directory
mkdir: /opt/local/bin/qucsedit.app: Operation not permitted
mkdir: /opt/local/bin/qucsedit.app: No such file or directory
mkdir: /opt/local/bin/qucstrans.app: Operation not permitted
mkdir: /opt/local/bin/qucstrans.app: No such file or directory
make[3]: *** [mac-install-apps] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_Users_rowue_macports_dports_science_qucs/qucs/work/qucs-0.0.17'
make[2]: *** [install-exec-am] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_Users_rowue_macports_dports_science_qucs/qucs/work/qucs-0.0.17'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_Users_rowue_macports_dports_science_qucs/qucs/work/qucs-0.0.17'
make: *** [install-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_Users_rowue_macports_dports_science_qucs/qucs/work/qucs-0.0.17'
Command failed:  cd "/opt/local/var/macports/build/_Users_rowue_macports_dports_science_qucs/qucs/work/qucs-0.0.17" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_Users_rowue_macports_dports_science_qucs/qucs/work/destroot 
Exit code: 2

Changed 11 years ago by rowue@…

Attachment: qucs_0.0.17.diff added

Patch to get qucs-0.0.17 working

comment:7 Changed 11 years ago by rowue@…

Compiles, installs and runs with the applied diff. Didn't check a simulation (must search for some). Have to deactivate asco.

Q: (ryan) should we use asco from macports or the supplied one? I would recommend using the macports one.

Changed 11 years ago by guitorri@…

Attachment: Sparam_qucs_initial.sch added

Qucs only simulation file

Changed 11 years ago by guitorri@…

Attachment: Sparam_asco_optimize.sch added

Qucs and ASCO simulation file

comment:8 Changed 11 years ago by guitorri@…

Hi, I am the developer providing the patches.

I attached two simulation files. One only involving Qucs, and another making use of ASCO. There should be several other examples on the tarball, but I am not sure if they are set to be installed.

You might need to create a new project and add these files into it before running the simulations.

I am pretty sure you can use ASCO from MacPorts. The disadvantage is that we patched the version included on the tarball. We needed a unbuffered output in order to see line by line of the simulation output on our result monitor window.

Please let me know if I can help you guys further. Also note that there is a known bug on Mac OSX related to misplaced mouse cursors/decorators. It is ugly but harmless. We are working on it.

Regards, Guilherme

comment:9 in reply to:  8 Changed 11 years ago by rowue@…

Replying to guitorri@…:

Hi, I am the developer providing the patches.

Thanks for your support!

[Patchfiles, asco]

If tried a few old simulations of mine (not invoking spice) today and they worked like a charm. For asco - in general I would try to use the macports one - might get this working on the weekend.

Please let me know if I can help you guys further. Also note that there is a known bug on Mac OSX related to misplaced mouse cursors/decorators. It is ugly but harmless. We are working on it.

Have seen it - a little anoying at first, but harmless at all ;)

Regards, Guilherme

Cheers,

Rolf

PS: If you list us on the download page again, it would be nice to be listed with "MacPorts" and not "DarwinPorts" ;)

comment:10 Changed 11 years ago by rowue@…

Status: newassigned

Changed 11 years ago by rowue@…

screenshot with asco

comment:11 Changed 11 years ago by rowue@…

Resolution: fixed
Status: assignedclosed

updated to 0.0.17 by r112142 - asco is working - see screenshoot

Note: See TracTickets for help on using tickets.