×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

kstars build from git error /usr/bin/ld: cannot find -lsecret-1

  • Posts: 1009
  • Thank you received: 133
Have you compiled successfully before? Installed all dependencies (See INSTALL)?
Just built latest git on my machine, no problems/changes to before.
4 years 8 months ago #42334

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

  • Posts: 969
  • Thank you received: 94
Hi
Yes, I've built kstars several times before. All the dependencies are installed as per INSTALL.
Never had the missing libraries before...????
4 years 8 months ago #42337

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

  • Posts: 1009
  • Thank you received: 133
Strange. Are you compiling in a separate build subdirectory? If not, try that, and/or remove any CMakeCache.txt files before calling cmake
4 years 8 months ago #42338

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

  • Posts: 969
  • Thank you received: 94
I'm following this (from INSTALL. TIA.
Building KStars

$ mkdir ~/Projects/build/kstars
$ cd ~/Projects
$ git clone git://anongit.kde.org/kstars.git
$ cd build/kstars
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/kstars
$ make
$ sudo make install
4 years 8 months ago #42339

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

  • Posts: 1009
  • Thank you received: 133
Just to be sure: Directory ~/Projects/build/kstars did not exist before? If it still has old cache files things go wrong. I'd use a
$ rm -rf ~/Projects/build/kstars
as first line. Other than that, I'm out of ideas :(
4 years 8 months ago #42340

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

  • Posts: 1957
  • Thank you received: 420
You can do a

make clean

as well before calling

make

again.


Wouter
4 years 8 months ago #42342

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

sudo apt-get -y install qt5keychain-dev libsecret-1-dev
4 years 8 months ago #42346

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

  • Posts: 152
  • Thank you received: 20
I tried to build on my new laptop running Mint 19.1 using the details in this post:
indilib.org/forum/general/210-howto-buil...st-libindi-ekos.html

Results were the same as alacant:
[ 96%] Linking CXX executable kstars
/usr/bin/ld: cannot find -lsecret-1
collect2: error: ld returned 1 exit status
kstars/CMakeFiles/kstars.dir/build.make:224: recipe for target 'kstars/kstars' failed
make[2]: *** [kstars/kstars] Error 1
CMakeFiles/Makefile2:393: recipe for target 'kstars/CMakeFiles/kstars.dir/all' failed
make[1]: *** [kstars/CMakeFiles/kstars.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2



Confirmed this *did* solve the problem for me:
4 years 8 months ago #42349

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

  • Posts: 1009
  • Thank you received: 133
Interesting. While I do have libsecret installed, it's not used for kstars at all (nor is it mentioned anywhere in the kstars sources). So it seems to be a sub-dependence from another lib. And it obviously is distribution-dependent (or *buntu specific)
4 years 8 months ago #42350

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

  • Posts: 969
  • Thank you received: 94
Fixes it for me on Ubuntu 18.04
Thanks
4 years 8 months ago #42353

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

  • Posts: 1957
  • Thank you received: 420

Note that libsecret is a different package than libsercret-dev.
4 years 8 months ago #42364

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

  • Posts: 1009
  • Thank you received: 133

Of course it is. One is the actual library, the other the header files and .so link. And without the .so link the compiler will not find the library to link. But the point is that on openSUSE it does not try to link that library in at all.
Any Arch or Fedora people around? Would be curious to know if they need it.
4 years 8 months ago #42366

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

Time to create page: 0.921 seconds