Build Fet in Fedora generate a big file app

Started by Bruns, May 22, 2009, 01:32:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bruns

Hello,  I'm  try  build the fet in fedora 10 and have success, but that generate a big file (more 100mb) size in release version, and I have remove the  "-g" option in the g++.conf.

Now, I have no idea  what I can do  :'(

 ;)

Liviu Lalescu

You must remove the -g option before compiling. If you haven't done so, please type "make distclean" and re-compile.

You don't need to compile completely FET to check that it compiles small. You just need to see the first g++ line in the compilation output. It must contain -O2 (maybe twice or even more times), but it must not contain -g. The first file to compile is fet.cpp. The usual size of it (on my hard disk) is about 80 kb. If it is something like 800 kb, then you are again compiling with -g.

Please let me know.

Bruns

thanks Liviu , I have remove the -g option,  but, maybe in another  .conf file  that include again the -g option,  now I must search the another .conf file.  >:(

;)
sorry my bad english,  because my native language is Portugues -Brazil

[bruns@servidor fet-5.9.3]$ qmake-qt4
[bruns@servidor fet-5.9.3]$ make
cd src/ && /usr/bin/qmake-qt4 src.pro -unix -o Makefile
cd src/ && make -f Makefile
make[1]: Entrando no diretório `/home/bruns/Desenvolvimento/fet-5.9.3/src'
cd interface/ && /usr/bin/qmake-qt4 interface.pro -unix -o Makefile
cd interface/ && make -f Makefile
make[2]: Entrando no diretório `/home/bruns/Desenvolvimento/fet-5.9.3/src/interface'
/usr/lib/qt4/bin/uic fetmainform_template.ui -o ../../tmp/ui_fetmainform_template.h
/usr/lib/qt4/bin/uic helpaboutform_template.ui -o ../../tmp/ui_helpaboutform_template.h
/usr/lib/qt4/bin/uic teachersstatisticsform_template.ui -o ../../tmp/ui_teachersstatisticsform_template.h
/usr/lib/qt4/bin/uic subjectsstatisticsform_template.ui -o ../../tmp/ui_subjectsstatisticsform_template.h
/usr/lib/qt4/bin/uic studentsstatisticsform_template.ui -o ../../tmp/ui_studentsstatisticsform_template.h
/usr/lib/qt4/bin/uic settingstimetablehtmllevelform_template.ui -o ../../tmp/ui_settingstimetablehtmllevelform_template.h
/usr/lib/qt4/bin/uic changeminndaysselectivelyform_template.ui -o ../../tmp/ui_changeminndaysselectivelyform_template.h
/usr/lib/qt4/bin/uic spreadminndaysconstraints5daysform_template.ui -o ../../tmp/ui_spreadminndaysconstraints5daysform_template.h
/usr/lib/qt4/bin/uic spreadconfirmationform_template.ui -o ../../tmp/ui_spreadconfirmationform_template.h
/usr/lib/qt4/bin/uic removeredundantform_template.ui -o ../../tmp/ui_removeredundantform_template.h
/usr/lib/qt4/bin/uic removeredundantconfirmationform_template.ui -o ../../tmp/ui_removeredundantconfirmationform_template.h
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/Qt3Support -I/usr/include -I../engine -I../../tmp -I../../tmp -o ../../tmp/fet.o fet.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/Qt3Support -I/usr/include -I../engine -I../../tmp -I../../tmp -o ../../tmp/helpaboutform.o helpaboutform.cpp
^Cmake[2]: ** Apagando arquivo `../../tmp/helpaboutform.o'
make[2]: *** [../../tmp/helpaboutform.o] Interrupção
make[1]: *** [sub-interface-make_default] Interrupção
make: *** [sub-src-make_default] Interrupção

Liviu Lalescu

Did you modify ../mkspecs/common/g++.conf? This is the only place you need to modify I think.

You can do other thing: modify fet-x.x.x/src/interface/Makefile, remove the "-g" from the CFLAGS and CXXFLAGS (at the beginning, on my computer these are lines 14 and 15). But if you type "make distclean", you'll lose these settings (the Makefile will be removed and then regenerated).

Bruns

Liviu,
 I have found where is  the  "-g" flag
the file is  /usr/lib/qt4/mkspecs/linux-g++/qmake.conf
in the option :
QMAKE_CFLAGS_RELEASE      += -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2  -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables
must be remove the -g flag

;)

Liviu Lalescu

OK, I'll add this in the README file. Please tell me, did you modify in 2 places (common/g++.conf and linux-g++/qmake.conf) ?