Qucs / qucs

Qucs Project official mirror

Home Page:http://qucs.sourceforge.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Qucs modular build initially failed (for strange reason)

GerryHickman opened this issue · comments

Starting at this page
https://github.com/Qucs/qucs
I first built and installed 'ADMS' and 'qucsator', and tested them using command line.
I then switch to branch "qucs/modular", install Qt5 deps, and build using autotools.
The build nearly completed, but failed at the link stage
../src/.libs/libqucs.so: undefined reference to istream_t::ctob()'`
It was complaining about one tiny missing function. This func is borrowed from the 'gnucap' project.

include/ap.h (declaration here)
ap_convert.cc (defined here in 'gnucap'
src/io.cpp (not defined here, strange?)

I created a dummy definition of it, and the build completed. I was able to run
main/qucs
and the Qucs QMainWindow appeared on the screen with the component tray on the left and the schematic editor on the right, I was able to import a schematic and run a simulation.

commented

It's odd that you don't get the linker error on Debian, unless your linker either doesn't check for undefined symbols, or your code is different. Your dummy version looks similar to mine, so should work.

I'm confused about 'qucsator' vs 'Gnucsator'; which one should we be using with Qucs modular?

commented

I agree about the inline func, could explain diffs.

I actually found inconsistencies between 'qucsator' and 'qucs/modular', one minute it was clang++ and then it was gcc, and then then it wanted to add 'O0' to the debug build, and then the default was non-debug. On RHEL most packages are built with debug 'on' and then symbols get stripped during packaging. I'll need to test it more carefully.

Thanks for clarification about different simulators and how they can be "plugged in".

commented

Hello all,

I am on Debian 11 and have succefully compiled qucs modular branch!!!

Running main/qucs I get a lot of:

incomplete:io.cpp:379:warn
parse warning /Component>: no match
error 1 >>>>>
error 1 >>>>> <.ID -26 13 D>
error 1 >>>>> <.PortSym -30 0 1 0>
error 1 >>>>> <.PortSym 30 0 2 180>
error 3 no proto ><@@#
@@@
incomplete:io.cpp:379:warn
parse warning Component: no match
error 1 >>>>>
error 1 >>>>>
@@#
@@@

but finally the main window appears.

My project are visible on the left panel but I can not open any of them with double click.

Also the "Tools" menu on the menubar does not open.

The output of "make check" gives the following result:

==================================================================
Testsuite summary for qucs 0.1.0

TOTAL: 51
PASS: 50
SKIP: 0
XFAIL: 1
FAIL: 0
XPASS: 0
ERROR: 0

Question: Although I issue "git submodule init" and "update", I think nothing happens!!! Is this a git config problem?

Keep up the good work!!

commented