WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to build -dev extensions?  (Read 5876 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: How to build -dev extensions?
« Reply #15 on: February 10, 2016, 02:04:21 AM »
If /usr/local/include/spice exists, symlink that file into it.

If /usr/local/include/spice doesn't exist, symlink the folder /usr/local/include/spice-protocol/spice to /usr/local/include/spice

Offline flyingfishfinger

  • Jr. Member
  • **
  • Posts: 74
Re: How to build -dev extensions?
« Reply #16 on: February 10, 2016, 02:13:45 AM »
Had a wrong directory in the extension. Fixed it, still breaks at the same place though.
Now we are here:

Quote
/usr/local/bin/ld: cannot find -lspice-server
collect2: error: ld returned 1 exit status
[/s]

IT BUILT! ....I didn't install the non-dev extension properly.

Ugh, I've got a bunch of dangling extensions with different names (how do you unload an extension properly if I updated it).

Thank you. I now know how to make -dev extensions as well as a lot of things I didn't want to know. I'll carry on in the qemu thread.

R
« Last Edit: February 10, 2016, 02:20:22 AM by flyingfishfinger »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: How to build -dev extensions?
« Reply #17 on: February 10, 2016, 02:20:25 AM »
either /usr/local/lib/spice-server.so is not present or you need to issue the command "sudo ldconfig".

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: How to build -dev extensions?
« Reply #18 on: February 10, 2016, 02:26:03 AM »
how do you unload an extension properly if I updated it

You can't unload an extension, but you can overwrite it with something different - note that in most cases "sudo make install" will overwrite an existing loaded extension.

Note also, that if you place your updated extension in, for example, /mnt/sdb1/tce/optional/upgrade, it will replace your existing extension on the next reboot.