Qucs / qucs

Qucs Project official mirror
http://qucs.sourceforge.net/
GNU General Public License v2.0
1.16k stars 213 forks source link

G++ error #915

Closed jagadeeswaran22495 closed 5 years ago

jagadeeswaran22495 commented 5 years ago

"g++: error: digi.cc: No such file or directory g++: fatal error: no input files compilation terminated. g++: error: digi.main.cc: No such file or directory g++: fatal error: no input files compilation terminated. g++: error: digi.main.o: No such file or directory g++: error: digi.o: No such file or directory 'digi.exe' is not recognized as an internal or external command, operable program or batch file". How to resolve this? I get this only during Digital Simulation.

Also I downloaded and installed MinGw and also changed path in System properties, Kindly help?.

guitorri commented 5 years ago

What version are you using?

If you must use VHDL on Windows, I suggest you get the last stable 0.019 from here: https://sourceforge.net/projects/qucs/files/qucs-binary/0.0.19/

It can be tricky o get the compiler and freehdl to cooperate. Note that freehdl is abandoned and will be replaced by ghdl in the future.

If you can work with Verilog, installing icarus-verilog might be easier.

avimar commented 4 years ago

I think I'm getting the same error when trying to run a digital simulation (DC simulation worked fine). I'm using windows 10 and the latest binary release of 0.0.19

Digital simulation is throwing these errors.

'g++' is not recognized as an internal or external command, operable program or batch file.
'g++' is not recognized as an internal or external command, operable program or batch file.
'g++' is not recognized as an internal or external command, operable program or batch file.
'digi.exe' is not recognized as an internal or external command, operable program or batch file.

Progress showed this, if that helps display where it ran into issues:

running C++ conversion...
compiling functions...
compiling main...
linking...
simulating...
running VCD conversion...
avimar commented 4 years ago

Looks like they had similar issues here and it was a path issue: https://sourceforge.net/p/qucs/mailman/message/36302161/

I don't see what path to change. It says in qucs.bat:

set MINGWDIR=C:\mingw32
set PATH=%MINGWDIR%\bin;%PATH%

But I don't see a bundled MINGW anywhere. Am I supposed to install that separately? Also, I can't find a digi.exe, but perhaps we just need to add the self folder to the path?

guitorri commented 4 years ago

Yes, the compiler needs to be installed. See link [2] or [3] on the readme: https://github.com/Qucs/qucs/blob/develop/contrib/windows/portable/README.md

avimar commented 4 years ago

Ah, great! I installed [3] directly to C:\mingw32 like it has in the .bat file and digital simulation works fine now.

I hadn't read closely enough to realize I needed to install something else.

[3] https://sourceforge.net/projects/qucs/files/extra/mingw-w64-i686-4.8.2-release-posix-dwarf-rt_v3-rev3-setup.exe