game not showing up on mint main menu (18.3)

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
godel
Space Dragon
Posts: 267
Joined: Tue Mar 24, 2015 12:58 am

game not showing up on mint main menu (18.3)

#1 Post by godel »

I have ubuntu mint 18.3.
I have followed some compile instructions that ended with:

apt-get build-dep freeorion
cd freeorion-*
debuild -us -uc
You can tweak the variables in debian/rules and modify e.g. REV to change the revision of FreeOrion. Then run
debian/rules get-orig-source
to download a Debian compliant source tarball. You will have to install subversion.
http://debian-handbook.info/browse/stab ... aging.html

I can not find it on the Menu, nor on the menu search function.


As a second problem, I had 4.3 on my laptop, and tried to do something to get 4.7 there, and 4.3 disappeared from the menu. This might be similar as I have a Mint disto on that laptop.

I am not a sophisticated Linux user. I am doing copy/paste with the instructions, and it seemed that they worked or completed.

OK, maybe not, as this was a part of that:
obj.dir/parse/Lexer.cpp.o -c /home/sean/freeorion-0.4.7/parse/Lexer.cpp
/home/sean/freeorion-0.4.7/parse/Lexer.cpp: In constructor ‘parse::lexer::lexer()’:
/home/sean/freeorion-0.4.7/parse/Lexer.cpp:30:1: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
lexer::lexer() :
^
[ 12%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/MonsterFleetPlansParser.cpp.o


With this as prior:
Scanning dependencies of target freeorionparseobj
make[3]: Leaving directory '/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu'
make -f CMakeFiles/freeorionparseobj.dir/build.make CMakeFiles/freeorionparseobj.dir/build
make[3]: Entering directory '/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu'
[ 0%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/AlignmentsParser.cpp.o
/usr/bin/x86_64-linux-gnu-g++ -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LINK -DENABLE_BINRELOC -DFREEORION_BUILD_PARSE -DFREEORION_LINUX -DNDEBUG -isystem /home/sean/freeorion-0.4.7/GG -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DNDEBUG -fPIC -Wall -fvisibility=hidden -O3 -std=c++11 -o CMakeFiles/freeorionparseobj.dir/parse/AlignmentsParser.cpp.o -c /home/sean/freeorion-0.4.7/parse/AlignmentsParser.cpp
[ 1%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/BuildingsParser.cpp.o

godel
Space Dragon
Posts: 267
Joined: Tue Mar 24, 2015 12:58 am

Re: game not showing up on mint main menu (18.3)

#2 Post by godel »

The start of all that:

debuild -us -uc
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package freeorion
dpkg-buildpackage: source version 0.4.7-2~ppa1~xenial1
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by Markus Koschany <[email protected]>
dpkg-source --before-build freeorion-0.4.7
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean --max-parallel=1 --with python2
dh_testdir -O--max-parallel=1
dh_auto_clean -O--max-parallel=1
dh_clean -O--max-parallel=1
dpkg-source -b freeorion-0.4.7
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building freeorion using existing ./freeorion_0.4.7.orig.tar.gz
dpkg-source: info: building freeorion in freeorion_0.4.7-2~ppa1~xenial1.debian.tar.xz
dpkg-source: info: building freeorion in freeorion_0.4.7-2~ppa1~xenial1.dsc
debian/rules build
dh build --max-parallel=1 --with python2
dh_testdir -O--max-parallel=1
dh_update_autotools_config -O--max-parallel=1
debian/rules override_dh_auto_configure
make[1]: Entering directory '/home/sean/freeorion-0.4.7'
dh_auto_configure -- \
-DBUILD_DOCUMENTATION=off \
-DBUILD_TUTORIALS=off \
-DLIB_SUFFIX=/freeorion \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DBUILD_DOCUMENTATION=off -DBUILD_TUTORIALS=off -DLIB_SUFFIX=/freeorion -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- Build type CMAKE_BUILD_TYPE set to RelWithDebInfo
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/x86_64-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.7")
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- iostreams
-- locale
-- log
-- regex
-- serialization
-- python
-- signals
-- system
-- thread
-- log_setup
-- chrono
-- atomic
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDL2.so (found version "2.0.4")
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so
-- Found Ogg: /usr/lib/x86_64-linux-gnu/libogg.so
-- Found Vorbis: /usr/lib/x86_64-linux-gnu/libvorbis.so
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- regex
-- signals
-- system
-- thread
-- log
-- chrono
-- atomic
-- log_setup
-- Found GLEW: /usr/include
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54")
-- Could NOT find cppcheck (missing: CPPCHECK_EXECUTABLE)
-- Could NOT find pycodestyle (missing: PYCODESTYLE_EXECUTABLE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

BUILD_TUTORIALS
LIB_SUFFIX


-- Build files have been written to: /home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu
make[1]: Leaving directory '/home/sean/freeorion-0.4.7'
dh_auto_build -O--max-parallel=1
make -j1
make[1]: Entering directory '/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu'
/usr/bin/cmake -H/home/sean/freeorion-0.4.7 -B/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu/CMakeFiles /home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[2]: Entering directory '/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu'
make -f CMakeFiles/freeorionparseobj.dir/build.make CMakeFiles/freeorionparseobj.dir/depend
make[3]: Entering directory '/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu'
cd /home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/sean/freeorion-0.4.7 /home/sean/freeorion-0.4.7 /home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu /home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu /home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu/CMakeFiles/freeorionparseobj.dir/DependInfo.cmake --color=
Scanning dependencies of target freeorionparseobj
make[3]: Leaving directory '/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu'
make -f CMakeFiles/freeorionparseobj.dir/build.make CMakeFiles/freeorionparseobj.dir/build
make[3]: Entering directory '/home/sean/freeorion-0.4.7/obj-x86_64-linux-gnu'
[ 0%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/AlignmentsParser.cpp.o
/usr/bin/x86_64-linux-gnu-g++ -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LINK -DENABLE_BINRELOC -DFREEORION_BUILD_PARSE -DFREEORION_LINUX -DNDEBUG -isystem /home/sean/freeorion-0.4.7/GG -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DNDEBUG -fPIC -Wall -fvisibility=hidden -O3 -std=c++11 -o CMakeFiles/freeorionparseobj.dir/parse/AlignmentsParser.cpp.o -c /home/sean/freeorion-0.4.7/parse/AlignmentsParser.cpp
[ 1%] Building CXX object CMakeFil

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: game not showing up on mint main menu (18.3)

#3 Post by Dilvish »

Our regular compile process does not automatically add a menu entry for the game, since that's rather specific to each distribution.

You can simply open up a terminal to the location where you have built freeorion and then run it via

Code: Select all

./freeorion
Just running it from the terminal has the testing benefit of preserving various error messages that in some cases might get written to console but not be logged, especially in the case of crashes.

Or you can manually add it to your menu system, it should be fairly simple to do so.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

godel
Space Dragon
Posts: 267
Joined: Tue Mar 24, 2015 12:58 am

Re: game not showing up on mint main menu (18.3)

#4 Post by godel »

Thanks, it needed an install step.
All is well now.

Post Reply