Install GiGi with checkinstall ?

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
p_schott
Space Krill
Posts: 2
Joined: Mon Mar 10, 2008 7:38 pm

Install GiGi with checkinstall ?

#1 Post by p_schott »

GiGi svn-632 on Ubuntu 7.10. Compilation seems ok :

Code: Select all

pascal@bureau:~/Paquets/freeorion/FreeOrion/GG$ scons
scons: Reading SConscript files ...
Using previous successful configuration; if you want to re-run the configuration step, run "scons configure".
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/BrowseInfoWnd.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/BrowseInfoWnd.cpp
g++ -o src/Button.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/Button.cpp
g++ -o src/DropDownList.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/DropDownList.cpp
g++ -o src/GUI.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/GUI.cpp
g++ -o src/ListBox.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/ListBox.cpp
g++ -o src/Menu.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/Menu.cpp
g++ -o src/MultiEdit.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/MultiEdit.cpp
g++ -o src/PluginInterface.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/PluginInterface.cpp
g++ -o src/Scroll.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/Scroll.cpp
g++ -o src/Slider.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/Slider.cpp
g++ -o src/StyleFactory.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/StyleFactory.cpp
g++ -o src/TabWnd.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/TabWnd.cpp
g++ -o src/dialogs/ColorDlg.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/dialogs/ColorDlg.cpp
g++ -o src/dialogs/FileDlg.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/dialogs/FileDlg.cpp
g++ -o src/dialogs/ThreeButtonDlg.os -c -pthread -Wall -O2 -fPIC -I/usr/include/freetype2 -I. -Ilibltdl src/dialogs/ThreeButtonDlg.cpp
g++ -o libGiGi.so -pthread -shared src/AlignmentFlags.os src/Base.os src/BrowseInfoWnd.os src/Button.os src/Clr.os src/Control.os src/Cursor.os src/DrawUtil.os src/DropDownList.os src/DynamicGraphic.os src/Edit.os src/EventPump.os src/Font.os src/GUI.os src/Layout.os src/ListBox.os src/Menu.os src/MultiEdit.os src/PluginInterface.os src/PtRect.os src/Scroll.os src/Slider.os src/StaticGraphic.os src/StyleFactory.os src/TabWnd.os src/TextControl.os src/Texture.os src/Timer.os src/Wnd.os src/WndEditor.os src/WndEvent.os src/ZList.os src/_vsnprintf.os src/dialogs/ColorDlg.os src/dialogs/FileDlg.os src/dialogs/ThreeButtonDlg.os libltdl/ltdl.os -lboost_signals -lboost_filesystem -lboost_thread -lGL -lGLU -lfreetype -lz -lfreetype -lIL -lILU
g++ -o libGiGiSDL.so -pthread -shared src/SDL/SDLGUI.os -L/usr/lib -lboost_signals -lboost_filesystem -lboost_thread -lGL -lGLU -lz -lfreetype -lIL -lILU -lSDL
g++ -o libGiGiOgre.so -pthread -shared src/Ogre/OgreGUI.os -L/usr/local/lib -lboost_signals -lboost_filesystem -lboost_thread -lGL -lGLU -lz -lfreetype -lIL -lILU -lOgreMain -lOgreMain
g++ -o libGiGiOgrePlugin_OIS.so -pthread -shared src/Ogre/Plugins/OgreGUIInputPlugin.os src/Ogre/Plugins/OISInput.os -L/usr/local/lib -lboost_signals -lboost_filesystem -lboost_thread -lGL -lGLU -lz -lfreetype -lIL -lILU -lOgreMain -lOIS
scons: done building targets.
but when I try :

Code: Select all

pascal@bureau:~/Paquets/freeorion/FreeOrion/GG$ sudo checkinstall scons install
I obtain :

Code: Select all

(...)
Installing with scons install...
========================= Installation results ===========================
scons: Reading SConscript files ...
Using previous successful configuration; if you want to re-run the configuration step, run "scons configure".
scons: done reading SConscript files.
scons: Building targets ...
Install file: "GG/gen_signals.py" as "/usr/local/include/GG/gen_signals.py"
Install file: "GG/Signal0.h" as "/usr/local/include/GG/Signal0.h"
Install file: "GG/Signal1.h" as "/usr/local/include/GG/Signal1.h"
Install file: "GG/Exception.h" as "/usr/local/include/GG/Exception.h"
Install file: "GG/Signal2.h" as "/usr/local/include/GG/Signal2.h"
Install file: "GG/WndEditor.h" as "/usr/local/include/GG/WndEditor.h"
Install file: "GG/Signal3.h" as "/usr/local/include/GG/Signal3.h"
Install file: "GG/MultiEdit.h" as "/usr/local/include/GG/MultiEdit.h"
Install file: "GG/Signal4.h" as "/usr/local/include/GG/Signal4.h"
Install file: "GG/PtRect.h" as "/usr/local/include/GG/PtRect.h"
Install file: "GG/Signal5.h" as "/usr/local/include/GG/Signal5.h"
Install file: "GG/Signal6.h" as "/usr/local/include/GG/Signal6.h"
Install file: "GG/Menu.h" as "/usr/local/include/GG/Menu.h"
Install file: "GG/Signal7.h" as "/usr/local/include/GG/Signal7.h"
Install file: "GG/Signal8.h" as "/usr/local/include/GG/Signal8.h"
Install file: "GG/SignalsAndSlots.h" as "/usr/local/include/GG/SignalsAndSlots.h"
Install file: "GG/Layout.h" as "/usr/local/include/GG/Layout.h"
Install file: "GG/Cursor.h" as "/usr/local/include/GG/Cursor.h"
Install file: "GG/TabWnd.h" as "/usr/local/include/GG/TabWnd.h"
Install file: "GG/Timer.h" as "/usr/local/include/GG/Timer.h"
Install file: "GG/Slider.h" as "/usr/local/include/GG/Slider.h"
Install file: "GG/EventPump.h" as "/usr/local/include/GG/EventPump.h"
Install file: "GG/ListBox.h" as "/usr/local/include/GG/ListBox.h"
Install file: "GG/GUI.h" as "/usr/local/include/GG/GUI.h"
Install file: "GG/Edit.h" as "/usr/local/include/GG/Edit.h"
Install file: "GG/BrowseInfoWnd.h" as "/usr/local/include/GG/BrowseInfoWnd.h"
Install file: "GG/WndEvent.h" as "/usr/local/include/GG/WndEvent.h"
Install file: "GG/AlignmentFlags.h" as "/usr/local/include/GG/AlignmentFlags.h"
Install file: "GG/DrawUtil.h" as "/usr/local/include/GG/DrawUtil.h"
Install file: "GG/Flags.h" as "/usr/local/include/GG/Flags.h"
Install file: "GG/Scroll.h" as "/usr/local/include/GG/Scroll.h"
Install file: "GG/Texture.h" as "/usr/local/include/GG/Texture.h"
Install file: "GG/Enum.h" as "/usr/local/include/GG/Enum.h"
Install file: "GG/ZList.h" as "/usr/local/include/GG/ZList.h"
Install file: "GG/Font.h" as "/usr/local/include/GG/Font.h"
Install file: "GG/SignalTemplate.h" as "/usr/local/include/GG/SignalTemplate.h"
Install file: "GG/Spin.h" as "/usr/local/include/GG/Spin.h"
Install file: "GG/Base.h" as "/usr/local/include/GG/Base.h"
Install file: "GG/Button.h" as "/usr/local/include/GG/Button.h"
Install file: "GG/PluginInterface.h" as "/usr/local/include/GG/PluginInterface.h"
Install file: "GG/Clr.h" as "/usr/local/include/GG/Clr.h"
Install file: "GG/Control.h" as "/usr/local/include/GG/Control.h"
Install file: "GG/DynamicGraphic.h" as "/usr/local/include/GG/DynamicGraphic.h"
Install file: "GG/glext.h" as "/usr/local/include/GG/glext.h"
Install file: "GG/StaticGraphic.h" as "/usr/local/include/GG/StaticGraphic.h"
Install file: "GG/TextControl.h" as "/usr/local/include/GG/TextControl.h"
Install file: "GG/DropDownList.h" as "/usr/local/include/GG/DropDownList.h"
Install file: "GG/StyleFactory.h" as "/usr/local/include/GG/StyleFactory.h"
Install file: "GG/Wnd.h" as "/usr/local/include/GG/Wnd.h"
Install file: "GG/ltdl.h" as "/usr/local/include/GG/ltdl.h"
Install file: "GG/ltdl_config.h" as "/usr/local/include/GG/ltdl_config.h"
Install file: "GG/SDL/SDLGUI.h" as "/usr/local/include/GG/SDL/SDLGUI.h"
Install file: "GG/dialogs/ThreeButtonDlg.h" as "/usr/local/include/GG/dialogs/ThreeButtonDlg.h"
Install file: "GG/dialogs/ColorDlg.h" as "/usr/local/include/GG/dialogs/ColorDlg.h"
Install file: "GG/dialogs/FileDlg.h" as "/usr/local/include/GG/dialogs/FileDlg.h"
Install file: "GG/Ogre/OgreGUI.h" as "/usr/local/include/GG/Ogre/OgreGUI.h"
Install file: "libGiGi.so" as "/usr/local/lib/libGiGi.so.0.6.0"
ln -s /usr/local/lib/libGiGi.so.0.6.0 /usr/local/lib/libGiGi.so
ln: creating symbolic link `/usr/local/lib/libGiGi.so' to `/usr/local/lib/libGiGi.so.0.6.0': File exists
scons: *** [/usr/local/lib/libGiGi.so] Error 1
scons: building terminated because of errors.

****  Installation failed. Aborting package creation.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Install GiGi with checkinstall ?

#2 Post by kroddn »

Seems that you have installed GiGi before using "scons install" without checkinstall. The symlink already exists and therefore cannot be overwritten. I am not quite sure if this can be seen as a bug.

Try "scons uninstall" or delete /usr/local/lib/libGiGi* and /usr/local/include/GG/, then run checkinstall twice to see if it works.

p_schott
Space Krill
Posts: 2
Joined: Mon Mar 10, 2008 7:38 pm

Re: Install GiGi with checkinstall ?

#3 Post by p_schott »

It worked, thank you very much.

Post Reply