Qucs / qucs

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

Compile error "g++: error: qrc_qucs.cpp: No such file or directory" #51

Closed borisov-r closed 10 years ago

borisov-r commented 10 years ago

I'm trying to compile QUCS from github repository according the instructions in the README.md file. The error that I get seems to me that qrc_qucs.cpp file is not generated accurately during the make process. I still can't understand the issue.

Here is the terminal output of the errors:

g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/Qt3Support -DQT_DEBUG -DQT3_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT -I../qucs-lib   -g -O2 -pipe -fno-exceptions -W -Wall -O0 -MT octave_window.o -MD -MP -MF .deps/octave_window.Tpo -c -o octave_window.o octave_window.cpp
octave_window.cpp:173:41: warning: unused parameter ‘obj’ [-Wunused-parameter]
 bool OctaveWindow::eventFilter(QObject *obj, QEvent *event) {
                                         ^
mv -f .deps/octave_window.Tpo .deps/octave_window.Po
: -o qrc_qucs.cpp qucs.qrc
g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/Qt3Support -DQT_DEBUG -DQT3_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT -I../qucs-lib   -g -O2 -pipe -fno-exceptions -W -Wall -O0 -MT qrc_qucs.o -MD -MP -MF .deps/qrc_qucs.Tpo -c -o qrc_qucs.o qrc_qucs.cpp
g++: error: qrc_qucs.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
Makefile:625: recipe for target 'qrc_qucs.o' failed
make[3]: *** [qrc_qucs.o] Error 1
make[3]: Leaving directory '/home/radoslavb/Home/git/qucs/qucs/qucs'
Makefile:876: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/radoslavb/Home/git/qucs/qucs/qucs'
Makefile:442: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/radoslavb/Home/git/qucs/qucs'
Makefile:382: recipe for target 'all' failed
make: *** [all] Error 2

Using the cmake build process I don't get any errors and QUCS builds.

Can anyone tell me where should I look for this error ?

guitorri commented 10 years ago

Which system are you using? The missing file is normally created by the Qt rcc compiler. The RCC variable is found by the configure.ac and used on the Makefile.am. Perhaps you can also take a look at the Travis build script: https://github.com/Qucs/qucs/blob/master/.travis.yml

borisov-r commented 10 years ago

I'm using Arch linux.

I was missing clang as compiler on my system, but the installation didn't fix the error. I had to create a symlink, because on my system the 'rcc' compiler was called 'rcc-qt4'. This fixed the error and now I'm able to compile source code without errors.

Probably my issue will be helpfull to others also. Thanks a lot.

guitorri commented 10 years ago

It should work with both, GCC and Clang. Other than symlink, you could also override the RCC variable to make. That is what the Arch package script is doing: https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/qucs

borisov-r commented 10 years ago

I see now.

I used qucs from the aur, but there is one more qucs-git, which didn't worked for me also. It is more convinient for me to use github and I would like to understand QUCS better and eventually help later on. I'm still learning.

Thanks.