WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: How to build -dev extensions?
« Reply #15 on: February 09, 2016, 11:04:21 PM »
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 09, 2016, 11:13:45 PM »
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 09, 2016, 11:20:22 PM by flyingfishfinger »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: How to build -dev extensions?
« Reply #17 on: February 09, 2016, 11:20:25 PM »
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: 14579
Re: How to build -dev extensions?
« Reply #18 on: February 09, 2016, 11:26:03 PM »
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.