What am I doing wrong?

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

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

Re: What am I doing wrong?

#16 Post by Dilvish »

pycodestyle should just be an optional component not actually needed for building FO. It should probably be at least mentioned in our build instructions though, since the cmake output like you got could make it look like a missing requirement. Per https://github.com/freeorion/freeorion/ ... /README.md, you should be able to install pycodestyle via

Code: Select all

pip install flake8-putty
(you might need to add a sudo at the beginning of that command line.

doxygen is pretty standard, I'm a bit surprised you don't already have it, but it should be easy enough for you to install via apt (which was maybe still apt-get in 14.04) or via your package manager GUI. I also would expect it to be optional.

So, it seems like you are only missing optional components and your final cmake line indicated that it had written out the build files-- have you tried proceeding to

Code: Select all

make
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: What am I doing wrong?

#17 Post by godel »

Thanks that worked!

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

Re: What am I doing wrong?

#18 Post by godel »

It did work, the compile. I got version 0.4.5 not 4.7
however having gone through it I will try to destroy anything not 4.7 and try again, with hope of success.
Thanks again

User avatar
Oberlus
Cosmic Dragon
Posts: 5704
Joined: Mon Apr 10, 2017 4:25 pm

Re: What am I doing wrong?

#19 Post by Oberlus »

Intriguing.

Have you tried to purge previous FO installations? I would try that, apt-get purge freeorion (and anything related and unneeded, so do autoremove afterwards), and delete every freeorion folder (just in case), then start from scratch with the compilation instructions (download source from github, etc.).

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

Re: What am I doing wrong?

#20 Post by godel »

sean@seanlap ~/src-tarball $ mkdir freeorion_build
sean@seanlap ~/src-tarball $ cd freeorion_build
sean@seanlap ~/src-tarball/freeorion_build $ cmake ../freeorion
CMake Error: The source directory "/home/sean/src-tarball/freeorion" does not exist.


please note that carefully following instructions results in no cmake. I had to change it to cmake ..

Specify --help for usage, or press the help button on the CMake GUI.
sean@seanlap ~/src-tarball/freeorion_build $ cmake ..
-- Setting build type to 'Release' as none was specified.
-- Build type CMAKE_BUILD_TYPE set to Release
-- 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/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- 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")
-- Found cppcheck: /usr/bin/cppcheck (found version "1.72")
-- Could NOT find pycodestyle (missing: PYCODESTYLE_EXECUTABLE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sean/src-tarball/freeorion_build
sean@seanlap ~/src-tarball/freeorion_build $ make

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

Re: What am I doing wrong?

#21 Post by Dilvish »

godel wrote:sean@seanlap ~/src-tarball $ mkdir freeorion_build
sean@seanlap ~/src-tarball $ cd freeorion_build
sean@seanlap ~/src-tarball/freeorion_build $ cmake ../freeorion
CMake Error: The source directory "/home/sean/src-tarball/freeorion" does not exist.

please note that carefully following instructions results in no cmake. I had to change it to cmake ..
Ah, no, I'm afraid It does not really look to me like you had carefully followed the instructions. You overlooked an extremely important note just before that set of steps: " So if starting in the directory within which the 'freeorion' source tree resides, then the commands would be"

I've now added italics to that line of the instructions so that people will hopefully be less likely to overlook it.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

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

Re: What am I doing wrong?

#22 Post by Dilvish »

godel wrote: I had to change it to cmake ..
But I should note, this line fits just fine with the slightly different folder structure that our new build instructions recommend, (and is the cmake line used in those instructions) so it sounds like you are still just fine. remember to add your softlink to the default folder, and then you would make and execute freeorion from within that same freeorion_build folder.

I suppose I should probably try to get around to doing a bigger edit on that page to mostly just refer to the new main build instructions, rather than leaving two slightly different instruction sets in place. Either one works fine, but mixing portions of the instructions can cause problems since they called for different placements of the build folder.
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: What am I doing wrong?

#23 Post by godel »

started out with a tar that self labelled as 0.4.7, got 0.4.5 when compile was done.
what do I have to do to get 0.4.7?

details from that make:

[100%] Linking CXX executable freeorion
[100%] Built target freeorion
sean@seanlap ~/src-tarball/freeorion_build $ freeorion
The program 'freeorion' is currently not installed. You can install it by typing:
sudo apt install freeorion
sean@seanlap ~/src-tarball/freeorion_build $ ^C
sean@seanlap ~/src-tarball/freeorion_build $ sudo apt install freeorion
[sudo] password for sean:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
freeorion
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,856 kB of archives.
After this operation, 21.6 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 freeorion amd64 0.4.5-1build1 [4,856 kB]
Fetched 4,856 kB in 1s (2,857 kB/s)
Selecting previously unselected package freeorion.
(Reading database ... 340646 files and directories currently installed.)
Preparing to unpack .../freeorion_0.4.5-1build1_amd64.deb ...
Unpacking freeorion (0.4.5-1build1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22+linuxmint1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up freeorion (0.4.5-1build1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
sean@seanlap ~/src-tarball/freeorion_build $ freeorion
CWD: /usr/share/games/freeorion
sean@seanlap ~/src-tarball/freeorion_build $

Where did
0.4.5-1build1_amd64.deb
come from? I can not find it using 2 search engines.

User avatar
Vezzra
Release Manager, Design
Posts: 6090
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: What am I doing wrong?

#24 Post by Vezzra »

godel wrote:started out with a tar that self labelled as 0.4.7, got 0.4.5 when compile was done.
what do I have to do to get 0.4.7?
Things go wrong here:

Code: Select all

sean@seanlap ~/src-tarball/freeorion_build $ freeorion
The program 'freeorion' is currently not installed. You can install it by typing:
sudo apt install freeorion
On Unix, when you type the name of an executable on the command line, only the directories in the environment variable PATH are searched for that executable, not the current directory! This behaviour is quite confusing for people who are used to the behaviour e.g. of the Windows command line shell, which searches the current directory first.

Which means, if you want to execute an executable which resides in the current directory, you need to type:

Code: Select all

$ ./<name-of-executable>
In your case:

Code: Select all

sean@seanlap ~/src-tarball/freeorion_build $ ./freeorion
Because the shell can't find "freeorion", it suggests installing it via "apt install", which pulls and installs the FO version maintained in the repo. Which happens to be 0.4.5. If you do this (which you did), any subsequent execution of "freeorion" by just typing "freeorion" then executes that 0.4.5 version that has just been installed.

So, the answer to your question:
Where did
0.4.5-1build1_amd64.deb
come from? I can not find it using 2 search engines.
...is: from the repo.

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

Re: What am I doing wrong?

#25 Post by Dilvish »

Just to add slightly to Vezzra's thorough explanation, if you go back to your build directory and try to execute freeorion there using the command line structure that Vezzra gave you, I think you will probably find FreeOrion 0.4.7 firing up for you just fine
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: What am I doing wrong?

#26 Post by godel »

Oberlus wrote:Intriguing.

Have you tried to purge previous FO installations? I would try that, apt-get purge freeorion (and anything related and unneeded, so do autoremove afterwards), and delete every freeorion folder (just in case), then start from scratch with the compilation instructions (download source from github, etc.).
I will do this if the current try fails.

BTW, there are surprising errors noted by make. Are any of these as fatal as they say they are? Just search this following for the word 'fatal'

AI CMakeLists.txt freeorion parse universe
appveyor.yml combat freeorion_build python util
ChangeLog.md CONTRIBUTING.md freeorion.desktop README.md
check default FreeOrion.ico server
client doc GG test
cmake Empire network UI
sean@seanlap ~/src-tarball $ cd freeorion_build
sean@seanlap ~/src-tarball/freeorion_build $ cmake ../freeorion
CMake Error: The source directory "/home/sean/src-tarball/freeorion" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
sean@seanlap ~/src-tarball/freeorion_build $ cmake .,
CMake Error: The source directory "/home/sean/src-tarball/freeorion_build/.," does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
sean@seanlap ~/src-tarball/freeorion_build $ cmake ..
-- Setting build type to 'Release' as none was specified.
-- Build type CMAKE_BUILD_TYPE set to Release
-- The C compiler identification is GN[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of th[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of th[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommon
Scanning dependencies of target freeorioncommone parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommone parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommon
Scanning dependencies of target freeorioncommonU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- 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[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommon
-- 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[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommon
-- atomic
-- log_setup
-- Found GLEW: /usr/include
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54")
-- Found cppcheck: /usr/bin/cppcheck (found version "1.72")
-- Could NOT find pycodestyle (missing: PYCODESTYLE_EXECUTABLE)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sean/src-tarball/freeorion_build
sean@seanlap ~/src-tarball/freeorion_build $ make
Scanning dependencies of target freeorionparseobj
[ 0%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/AlignmentsParser.cpp.o
[ 1%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/BuildingsParser.cpp.o
[ 1%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/CommonParamsParser.cpp.o
[ 2%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser1.cpp.o
[ 2%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser2.cpp.o
[ 2%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser3.cpp.o
[ 3%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser4.cpp.o
[ 3%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser5.cpp.o
[ 4%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser6.cpp.o
[ 4%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser7.cpp.o
[ 4%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ConditionParser.cpp.o
[ 5%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/DoubleComplexValueRefParser.cpp.o
[ 5%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/DoubleValueRefParser.cpp.o
[ 6%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EffectParser1.cpp.o
[ 6%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EffectParser2.cpp.o
[ 6%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EffectParser3.cpp.o
[ 7%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EffectParser4.cpp.o
[ 7%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/Effec[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommon
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommontParser5.cpp.o
[ 8%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EffectParser.cpp.o
[ 8%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EmpireStatsParser.cpp.o
[ 8%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EncyclopediaParser.cpp.o
[ 9%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/EnumParser.cpp.o
[ 9%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/FieldsParser.cpp.o
[ 9%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/FleetPlansParser.cpp.o
[ 10%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/IntComplexValueRefParser.cpp.o
[ 10%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/IntValueRefParser.cpp.o
[ 11%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ItemsParser.cpp.o
[ 11%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/KeymapParser.cpp.o
[ 11%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/Lexer.cpp.o
[ 12%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/MonsterFleetPlansParser.cpp.o
[ 12%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/Parse.cpp.o
[ 13%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/PlanetEnvironmentValueRefParser.cpp.o
[ 13%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/PlanetSizeValueRefParser.cpp.o
[ 13%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/PlanetTypeValueRefParser.cpp.o
[ 14%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ReportParseError.cpp.o
[ 14%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ShipDesignsParser.cpp.o
[ 15%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ShipHullsParser.cpp.o
[ 15%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ShipPartsParser.cpp.o
[ 15%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/SpecialsParser.cpp.o
[ 16%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/SpeciesParser.cpp.o
[ 16%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/StarTypeValueRefParser.cpp.o
[ 17%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/StringComplexValueRefParser.cpp.o
[ 17%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/StringValueRefParser.cpp.o
[ 17%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/TechsParser.cpp.o
[ 18%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/Tokens.cpp.o
[ 18%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/UniverseObjectTypeValueRefParser.cpp.o
[ 19%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ValueRefParserImpl.cpp.o
[ 19%] Built target freeorionparseobj
Scanning dependencies of target freeorionparse
[ 19%] Linking CXX shared library libfreeorionparse.so
[ 19%] Built target freeorionparse
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
[ 19%] Built target freeorionversion
Scanning dependencies of target freeorioncommon
[ 19%] Building CXX object CMakeFiles/freeorioncommon.dir/combat/CombatEvent.cpp.o
[ 20%] Building CXX object CMakeFiles/freeorioncommon.dir/combat/CombatEvents.cpp.o
[ 20%] Building CXX object CMakeFiles/freeorioncommon.dir/combat/CombatLogManager.cpp.o
[ 21%] Building CXX object CMakeFiles/freeorioncommon.dir/Empire/Diplomacy.cpp.o
[ 21%] Building CXX object CMakeFiles/freeorioncommon.dir/Empire/Empire.cpp.o
/home/sean/src-tarball/Empire/Empire.cpp:1395:29: warning: ‘const {anonymous}::AlignmentManager& {anonymous}::GetAlignmentManager()’ defined but not used [-Wunused-function]
const AlignmentManager& GetAlignmentManager() {
^
[ 21%] Building CXX object CMakeFiles/freeorioncommon.dir/Empire/EmpireManager.cpp.o
[ 22%] Building CXX object CMakeFiles/freeorioncommon.dir/Empire/ResourcePool.cpp.o
[ 22%] Building CXX object CMakeFiles/freeorioncommon.dir/Empire/Supply.cpp.o
[ 23%] Building CXX object CMakeFiles/freeorioncommon.dir/network/Message.cpp.o
[ 23%] Building CXX object CMakeFiles/freeorioncommon.dir/network/MessageQueue.cpp.o
[ 23%] Building CXX object CMakeFiles/freeorioncommon.dir/network/Networking.cpp.o
/home/sean/src-tarball/network/Networking.cpp:10:10: warning: ‘{anonymous}::temp_bool’ defined but not used [-Wunused-variable]
bool temp_bool = RegisterOptions(&AddOptions);
^
[ 24%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Building.cpp.o
[ 24%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Condition.cpp.o
[ 25%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/EffectAccounting.cpp.o
[ 25%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Effect.cpp.o
/home/sean/src-tarball/universe/Effect.cpp: In member function ‘virtual void Effect::Conditional::Execute(const ScriptingContext&, const TargetSet&) const’:
/home/sean/src-tarball/universe/Effect.cpp:3371:90: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ct::TargetSet& match_targets = *reinterpret_cast<Effect::TargetSet*>(&matches);
^
/home/sean/src-tarball/universe/Effect.cpp:3378:98: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
etSet& non_match_targets = *reinterpret_cast<Effect::TargetSet*>(&non_matches);
^
/home/sean/src-tarball/universe/Effect.cpp: In member function ‘void Effect::Conditional::Execute(const ScriptingContext&, const TargetSet&, Effect::AccountingMap*, bool, bool, bool, bool) const’:
/home/sean/src-tarball/universe/Effect.cpp:3432:90: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ct::TargetSet& match_targets = *reinterpret_cast<Effect::TargetSet*>(&matches);
^
/home/sean/src-tarball/universe/Effect.cpp:3446:98: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
etSet& non_match_targets = *reinterpret_cast<Effect::TargetSet*>(&non_matches);
^
/home/sean/src-tarball/universe/Effect.cpp: In member function ‘virtual void Effect::Conditional::Execute(const TargetsCauses&, Effect::AccountingMap*, bool, bool, bool, bool) const’:
/home/sean/src-tarball/universe/Effect.cpp:3480:145: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
nterpret_cast<const Condition::ObjectSet*>(&(targets_entry.second.target_set));
^
/home/sean/src-tarball/universe/Effect.cpp:3488:94: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ct::TargetSet& match_targets = *reinterpret_cast<Effect::TargetSet*>(&matches);
^
/home/sean/src-tarball/universe/Effect.cpp:3502:102: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
etSet& non_match_targets = *reinterpret_cast<Effect::TargetSet*>(&non_matches);
^
[ 25%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Encyclopedia.cpp.o
[ 26%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Enums.cpp.o
[ 26%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Field.cpp.o
[ 27%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Fighter.cpp.o
[ 27%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Fleet.cpp.o
[ 27%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Meter.cpp.o
[ 28%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/ObjectMap.cpp.o
[ 28%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Planet.cpp.o
[ 29%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/PopCenter.cpp.o
[ 29%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Predicates.cpp.o
[ 29%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/ResourceCenter.cpp.o
[ 30%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Ship.cpp.o
[ 30%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/ShipDesign.cpp.o
[ 30%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Special.cpp.o
[ 31%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Species.cpp.o
[ 31%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/System.cpp.o
[ 32%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Tech.cpp.o
[ 32%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Universe.cpp.o
/home/sean/src-tarball/universe/Universe.cpp: In function ‘void {anonymous}::ShareVisbilitiesBetweenAllies(Universe::EmpireObjectVisibilityMap&, Universe::EmpireObjectSpecialsMap&)’:
/home/sean/src-tarball/universe/Universe.cpp:2285:46: warning: unused variable ‘allied_obj_specials_map’ [-Wunused-variable]
Universe::ObjectSpecialsMap& allied_obj_specials_map = input_eovs_copy[allied_empire_id
^
/home/sean/src-tarball/universe/Universe.cpp:2275:42: warning: unused variable ‘obj_specials_map’ [-Wunused-variable]
Universe::ObjectSpecialsMap& obj_specials_map = empire_object_visible_specials[empire_id];
^
src-tarball
/home/sean/src-tarball/universe/Universe.cpp: At global scope:
/home/sean/src-tarball/universe/Universe.cpp:53:10: warning: ‘{anonymous}::temp_bool’ defined but not used [-Wunused-variable]
bool temp_bool = RegisterOptions(&AddOptions);
^
[ 32%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/Pathfinder.cpp.o
[ 33%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/UniverseObject.cpp.o
[ 33%] Building CXX object CMakeFiles/freeorioncommon.dir/universe/ValueRef.cpp.o

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

Re: What am I doing wrong?

#27 Post by Dilvish »

godel wrote:BTW, there are surprising errors noted by make. Are any of these as fatal as they say they are? Just search this following for the word 'fatal'
...
Scanning dependencies of target freeorionversion
fatal: Not a git repository (or any of the parent directories): .git
WARNING: git not installed or not setup correctly
WARNING: Can't determine git commit!
Writing file: util/Version.cpp
Building v0.4.7.1 build ???
...
That doesn't look surprising to me at all, it's just because you got your source from a tarball rather than via git, and so the script can't figure out the 'right' version name and simply falls back to
"v0.4.7.1 build ???"

It would be better if that were reported as a plain 'error' rather than 'fatal', but it's no big deal, just to be expected here.

But once you have this built and know you can go through the process, I'd really highly recommend you use git to download the current test source into a new location, and then build the current test version there. just go to your home directory, and then start with our current build instructions from there.
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: What am I doing wrong?

#28 Post by godel »

I plan to cycle through all the above suggestions to get things right.
Thanks

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

Re: What am I doing wrong?

#29 Post by godel »

Dilvish wrote:
godel wrote:sean@seanlap ~/src-tarball $ mkdir freeorion_build
sean@seanlap ~/src-tarball $ cd freeorion_build
sean@seanlap ~/src-tarball/freeorion_build $ cmake ../freeorion
CMake Error: The source directory "/home/sean/src-tarball/freeorion" does not exist.

please note that carefully following instructions results in no cmake. I had to change it to cmake ..
Ah, no, I'm afraid It does not really look to me like you had carefully followed the instructions. You overlooked an extremely important note just before that set of steps: " So if starting in the directory within which the 'freeorion' source tree resides, then the commands would be"
{I am taking the comments one at a time as I find them.
I have already taken your advice on purge. }
I've now added italics to that line of the instructions so that people will hopefully be less likely to overlook it.
That directory would be src-tarball?
That directory has all the subdirectories and no other does.
But that is exactly the directory from which I have done a mkdir freeorion_build etc.
What did you mean?

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

Re: What am I doing wrong?

#30 Post by godel »

Vezzra wrote:
godel wrote:started out with a tar that self labelled as 0.4.7, got 0.4.5 when compile was done.
what do I have to do to get 0.4.7?
Things go wrong here:

Code: Select all

sean@seanlap ~/src-tarball/freeorion_build $ freeorion
The program 'freeorion' is currently not installed. You can install it by typing:
sudo apt install freeorion
On Unix, when you type the name of an executable on the command line, only the directories in the environment variable PATH are searched for that executable, not the current directory! This behaviour is quite confusing for people who are used to the behaviour e.g. of the Windows command line shell, which searches the current directory first.

Which means, if you want to execute an executable which resides in the current directory, you need to type:

Code: Select all

$ ./<name-of-executable>
In your case:

Code: Select all

sean@seanlap ~/src-tarball/freeorion_build $ ./freeorion
Because the shell can't find "freeorion", it suggests installing it via "apt install", which pulls and installs the FO version maintained in the repo. Which happens to be 0.4.5. If you do this (which you did), any subsequent execution of "freeorion" by just typing "freeorion" then executes that 0.4.5 version that has just been installed.

So, the answer to your question:
Where did
0.4.5-1build1_amd64.deb
come from? I can not find it using 2 search engines.
...is: from the repo.
Wow, thanks. I have some hope.
and it worked and I am done and have 0.4.7
Thanks for all the help.

Post Reply