View previous topic :: View next topic |
Author |
Message |
ConnClark n00b
Joined: 15 Aug 2007 Posts: 57
|
Posted: Thu Mar 14, 2013 7:10 pm Post subject: New QT4 port of QUCS |
|
|
Hi all,
I'm trying to build the brand new qt4 port of QUCS. After finally figuring out that the snv checkout command on the sourceforge site was wrong to get the qt4 version I figured out the right command. it builds right up until its time to link then it can't find the libraries for QT.
Steps to reproduce
svn checkout svn://svn.code.sf.net/p/qucs/code/branches/qucs-qt4 qucs-code
cd qucs-code/qucs
./autogen.sh
make
Output of crash
g++ -g -O2 -pipe -fno-exceptions -fno-check-new -W -Wall -Lnonexistent/lib -o qucs node.o element.o qucsdoc.o wire.o mouseactions.o qucs.o main.o wirelabel.o qucs_init.o qucs_actions.o viewpainter.o mnemo.o schematic.o schematic_element.o textdoc.o schematic_file.o syntax.o module.o octave_window.o qucs.moc.o schematic.moc.o textdoc.moc.o octave_window.moc.o components/libcomponents.a diagrams/libdiagrams.a paintings/libpaintings.a dialogs/libdialogs.a -lSM -lICE -lX11 -lQtCore -lQtGui -lQtXml -lQt3Support
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtCore
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtGui
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtXml
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQt3Support
collect2: error: ld returned 1 exit status
make[3]: *** [qucs] Error 1
make[3]: Leaving directory `/root/qucs/qucs-code/qucs/qucs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/qucs/qucs-code/qucs/qucs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/qucs/qucs-code/qucs'
make: *** [all] Error 2
Any body have any ideas on how to get past this? _________________ In formal computer science advances are made by standing on the shoulders of giants. Linux has shown that, if there are enough of you, you can advance just as far by stepping on each others toes. |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Mar 14, 2013 7:53 pm Post subject: |
|
|
you need to point the libs path to the location of the qt libs, it should be as follows -L/path/to/libs
add it to LDFLAGS _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
ConnClark n00b
Joined: 15 Aug 2007 Posts: 57
|
Posted: Thu Mar 14, 2013 8:20 pm Post subject: |
|
|
Thanks,
I just found I could make it work by editing the configure.ac file.
I moved /usr/lib64/qt4 to the front of the list to search on the line
paths="blah blah blah /usr/lib64/qt4"
to change it to
paths="/usr/lib64/qt4 blah blah blah"
The editor now compiles and installs and runs
I'm now fighting with getting the qucs-core directory to build _________________ In formal computer science advances are made by standing on the shoulders of giants. Linux has shown that, if there are enough of you, you can advance just as far by stepping on each others toes. |
|
Back to top |
|
|
ConnClark n00b
Joined: 15 Aug 2007 Posts: 57
|
Posted: Fri Mar 15, 2013 10:32 pm Post subject: |
|
|
Okay.
I now have the qucs core built and working.
I had to first emerge dev-perl/GD
to build it do the following
cd qucs-core
./autogen.sh
cd adms
./autogen_lin.sh
cd ..
make
make install _________________ In formal computer science advances are made by standing on the shoulders of giants. Linux has shown that, if there are enough of you, you can advance just as far by stepping on each others toes. |
|
Back to top |
|
|
|