×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

build version not updated

  • Posts: 969
  • Thank you received: 94
Hi
If I build kstars from source and run it from the build folder, the build version is not updated in either kstars - help - about or in the logs.
This can be misleading.
To get it to update the version number I have to delete the build folders and start again from the git source.
Subsequent updates from git pull result in the same build version being recorded, even though the updated version is running.
Any ideas?
I'm not a Linux expert so there's very likely something simple I've missed...

Cheers,
Steve
Last edit: 4 years 2 months ago by alacant.
4 years 2 months ago #48003

Please Log in or Create an account to join the conversation.

  • Posts: 472
  • Thank you received: 165
The version string is generated when running CMake so rerunning it re-generates kstars/version.h where the string is, "cmake ." (cmake space period) in the build directory.
The following user(s) said Thank You: alacant
4 years 2 months ago #48004

Please Log in or Create an account to join the conversation.

  • Posts: 969
  • Thank you received: 94

Replied by alacant on topic build version not updated

Thanks.
OK, so say I'm updating a previous build, the events would be:
in Projects/kstars
git pull
in Projects/build/kstars
make clean
cmake .
make

Or should the cmake . call be as before:
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/kstars

?
TIA
Last edit: 4 years 2 months ago by alacant.
4 years 2 months ago #48005

Please Log in or Create an account to join the conversation.

  • Posts: 472
  • Thank you received: 165
Yes, if you already have run cmake once in the directory, "cmake ." is enough, it re-runs cmake with previously cached parameters.
The following user(s) said Thank You: alacant
Last edit: 4 years 2 months ago by Jarno Paananen.
4 years 2 months ago #48011

Please Log in or Create an account to join the conversation.

Time to create page: 0.402 seconds