Tiny Core Extensions > TCE Corepure64

How to build -dev extensions?

<< < (2/4) > >>

Rich:
Hi flyingfishfinger
Yes, most files should wind up under /usr. Some extensions will however place config files under  /home/$USER/.
The  /usr/local/tce.installed  script is used in that case to check for the existence of those files and create them
if they are not there.

Juanito:
Most apps will create the files/folders they need in home/$USER and /var if they are not present.

A few apps will fail to start if they files/folders they need are not present.

Maybe the best thing to do is to try the extension without the files/folders in /home/tc and see what happens - if the app fails to start, then you can add a suitable start-up script.

Juanito:

--- Quote from: Rich on February 09, 2016, 10:03:28 PM ---The  dev  extensions contain the header files and static libraries (.h, .a, and .la files).

--- End quote ---

..and .m4, .pc, .vapi, .deps, etc  :)

flyingfishfinger:
Alright, I got them built, but the calling program still says it can't find them. The headers are definitely in /usr/local/include/___/, and I"m assuming that's a standard include path. So how can I check where the caller is looking and why it can't find them? :(
(The caller is qemu's ./configure with the --spice option)


--- Quote ---ERROR: User requested feature spice
       configure was not able to find it.
       Install spice-server(>=0.12.0) and spice-protocol(>=0.12.3) devel
--- End quote ---

The relevant section of configure is:

--- Quote ---if test "$spice" != "no" ; then
  cat > $TMPC << EOF
#include <spice.h>
int main(void) { spice_server_new(); return 0; }
EOF
  spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null)
  spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null)
  if $pkg_config --atleast-version=0.12.0 spice-server && \
     $pkg_config --atleast-version=0.12.3 spice-protocol && \
     compile_prog "$spice_cflags" "$spice_libs" ; then
    spice="yes"
    libs_softmmu="$libs_softmmu $spice_libs"
    QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
    spice_protocol_version=$($pkg_config --modversion spice-protocol)
    spice_server_version=$($pkg_config --modversion spice-server)
  else
    if test "$spice" = "yes" ; then
      feature_not_found "spice" \
          "Install spice-server(>=0.12.0) and spice-protocol(>=0.12.3) devel"
    fi
    spice="no"
  fi
fi

--- End quote ---

R

Juanito:
It's looking for the pkg-config files - /usr/local/lib/pkgconfig/*.pc - did you include these in your *-dev extension?

From the output below, the files would be named spice-server.pc and spice-protocol.pc

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version