WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Shairport compile  (Read 5924 times)

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Shairport compile
« on: November 17, 2013, 02:53:02 PM »
Hello TC Forum  :)

I am new into the TC enviroment. I was hoping that i could get some help here ?

I am trying to compile the shairport "ontop" of Steen's Picoreplayer.
On the latest picoreplayer_108, Steen expanded the .img, so leaving place for such challenges !

I then created+reboot, and formatted+reboot, and finally mounted the newly partition.
Next i did the tce-setdrive -s /mnt/mmcblk0p2
Then tce-load -i -w compile-essentials.tcz

So far everything went fine!

Now i need to make some extensions myself, but i am having trouble finding documentation for the TC.
-I would really like to have some links, etc... where i can learn about the TC.

In this http://snippets.khromov.se/raspberry-pi-shairport-build-instructions/ one, can see shairports dep. etc...

// Jesper.

BTW : I pasted the df -h output, after succesfully loading the compile-essentials.

Quote
tc@box:/mnt/mmcblk0p2/build$ df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   242.7M         0    242.7M   0% /dev/shm
/dev/mmcblk0p1           37.3M     25.9M     11.4M  69% /mnt/mmcblk0p1
/dev/loop0              112.0K    112.0K         0 100% /tmp/tcloop/dropbear
/dev/loop1               32.0K     32.0K         0 100% /tmp/tcloop/firmware-ralinkwifi
/dev/loop2               12.0K     12.0K         0 100% /tmp/tcloop/libogg
/dev/loop3              104.0K    104.0K         0 100% /tmp/tcloop/speex
/dev/loop4              232.0K    232.0K         0 100% /tmp/tcloop/libvorbis
/dev/loop5                1.2M      1.2M         0 100% /tmp/tcloop/libiconv
/dev/loop6              316.0K    316.0K         0 100% /tmp/tcloop/flac
/dev/loop7              212.0K    212.0K         0 100% /tmp/tcloop/libsndfile
/dev/loop8                1.3M      1.3M         0 100% /tmp/tcloop/libsamplerate
/dev/loop9              348.0K    348.0K         0 100% /tmp/tcloop/libasound
/dev/loop10              40.0K     40.0K         0 100% /tmp/tcloop/alsa-plugins
/dev/loop11              12.0K     12.0K         0 100% /tmp/tcloop/ncurses-common
/dev/loop12             148.0K    148.0K         0 100% /tmp/tcloop/ncurses
/dev/loop13               1.0M      1.0M         0 100% /tmp/tcloop/alsa-utils
/dev/loop14              60.0K     60.0K         0 100% /tmp/tcloop/libasound-bin
/dev/loop15             384.0K    384.0K         0 100% /tmp/tcloop/alsa-modules-3.11.5-piCore+
/dev/loop16               4.0K      4.0K         0 100% /tmp/tcloop/alsa
/dev/loop17             204.0K    204.0K         0 100% /tmp/tcloop/firmware-rtlwifi
/dev/loop18             232.0K    232.0K         0 100% /tmp/tcloop/libnl
/dev/loop19               1.4M      1.4M         0 100% /tmp/tcloop/openssl-1.0.0
/dev/loop20               2.2M      2.2M         0 100% /tmp/tcloop/wireless-3.11.5-piCore+
/dev/loop21              16.0K     16.0K         0 100% /tmp/tcloop/libiw
/dev/loop22              52.0K     52.0K         0 100% /tmp/tcloop/wireless_tools
/dev/loop23             296.0K    296.0K         0 100% /tmp/tcloop/wpa_supplicant
/dev/loop24               8.0K      8.0K         0 100% /tmp/tcloop/wifi
/dev/loop25              60.0K     60.0K         0 100% /tmp/tcloop/libmad
/dev/mmcblk0p2            2.9G     48.3M      2.6G   2% /mnt/mmcblk0p2
/dev/loop26              68.0K     68.0K         0 100% /tmp/tcloop/patch
/dev/loop27              88.0K     88.0K         0 100% /tmp/tcloop/make
/dev/loop28              52.0K     52.0K         0 100% /tmp/tcloop/m4
/dev/loop29              16.0K     16.0K         0 100% /tmp/tcloop/libltdl
/dev/loop30             676.0K    676.0K         0 100% /tmp/tcloop/libtool
/dev/loop31             204.0K    204.0K         0 100% /tmp/tcloop/gmp
/dev/loop32             168.0K    168.0K         0 100% /tmp/tcloop/mpfr
/dev/loop33              36.0K     36.0K         0 100% /tmp/tcloop/mpc
/dev/loop34             396.0K    396.0K         0 100% /tmp/tcloop/isl
/dev/loop35              56.0K     56.0K         0 100% /tmp/tcloop/cloog
/dev/loop36               1.3M      1.3M         0 100% /tmp/tcloop/binutils
/dev/loop37             164.0K    164.0K         0 100% /tmp/tcloop/gcc_libs
/dev/loop38               1.4M      1.4M         0 100% /tmp/tcloop/gcc_libs-dev
/dev/loop39               3.1M      3.1M         0 100% /tmp/tcloop/gcc_base-dev
/dev/loop40              23.5M     23.5M         0 100% /tmp/tcloop/gcc
/dev/loop41             304.0K    304.0K         0 100% /tmp/tcloop/file
/dev/loop42               5.7M      5.7M         0 100% /tmp/tcloop/eglibc_base-dev
/dev/loop43             724.0K    724.0K         0 100% /tmp/tcloop/autoconf
/dev/loop44             512.0K    512.0K         0 100% /tmp/tcloop/automake
/dev/loop45               4.0K      4.0K         0 100% /tmp/tcloop/compile-essentials
/dev/loop46               5.2M      5.2M         0 100% /tmp/tcloop/git
tc@box:/mnt/mmcblk0p2/build$

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Shairport compile
« Reply #1 on: November 17, 2013, 03:24:20 PM »
Welcome on board. First read http://tinycorelinux.net/concepts.html to learn basic concept. Regarding extensions see WiKi article http://wiki.tinycorelinux.net/wiki:creating_extensions
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Shairport compile
« Reply #2 on: November 18, 2013, 01:13:52 PM »
Hey :) Moving on.... thanks for helping me!

I tried to install some dependencies (http://snippets.khromov.se/raspberry-pi-shairport-build-instructions/)...
But seems that i quickly run into some probs.

What i really wonder now, is -do i have to build all the missing packages myself+eventually theyre dependencies too ?

-Jesper


Quote
/dev/loop35 on /tmp/tcloop/cloog type squashfs (ro,relatime)
/dev/loop36 on /tmp/tcloop/binutils type squashfs (ro,relatime)
/dev/loop37 on /tmp/tcloop/gcc_libs type squashfs (ro,relatime)
/dev/loop38 on /tmp/tcloop/gcc_libs-dev type squashfs (ro,relatime)
/dev/loop39 on /tmp/tcloop/gcc_base-dev type squashfs (ro,relatime)
/dev/loop40 on /tmp/tcloop/gcc type squashfs (ro,relatime)
/dev/loop41 on /tmp/tcloop/file type squashfs (ro,relatime)
/dev/loop42 on /tmp/tcloop/eglibc_base-dev type squashfs (ro,relatime)
/dev/loop43 on /tmp/tcloop/autoconf type squashfs (ro,relatime)
/dev/loop44 on /tmp/tcloop/automake type squashfs (ro,relatime)
/dev/loop45 on /tmp/tcloop/compile-essentials type squashfs (ro,relatime)
/dev/loop46 on /tmp/tcloop/git type squashfs (ro,relatime)
/dev/loop47 on /tmp/tcloop/libao type squashfs (ro,relatime)
/dev/loop48 on /tmp/tcloop/libao-dev type squashfs (ro,relatime)
/dev/loop49 on /tmp/tcloop/openssl-1.0.0-dev type squashfs (ro,relatime)
tc@box:~/shairport$ ls
LICENSES            audio.h             common.c            mdns.c              player.h            tinysvcmdns.c
Makefile            audio_alsa.c        common.h            mdns.h              rtp.c               tinysvcmdns.h
README.md           audio_ao.c          configure           mdns_avahi.c        rtp.h
TODO                audio_dummy.c       daemon.c            mdns_dns_sd.c       rtsp.c
alac.c              audio_pipe.c        daemon.h            mdns_external.c     rtsp.h
alac.h              audio_pulse.c       getopt_long.c       mdns_tinysvcmdns.c  scripts/
audio.c             audio_sndio.c       getopt_long.h       player.c            shairport.c
tc@box:~/shairport$ ./configure
Configuring Shairport
OpenSSL or its dev package not found
Required package not found, cannot continue
tc@box:~/shairport$

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Shairport compile
« Reply #3 on: November 18, 2013, 01:20:35 PM »
Well, depends on, but if something is really missing and not a common package, faster to do it yourself than wait for someone is doing is.

But before starting, check repo. For example to resolve missing OpenSSL just type in a terminal

Code: [Select]
tce-install -i openssl-1.0.0-dev
Probably you will find other missing devs too.

« Last Edit: November 18, 2013, 01:22:41 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Shairport compile
« Reply #4 on: November 18, 2013, 01:24:28 PM »
I think i allready have that package installed ?

-Jesper...

Quote
openssl-1.0.0-dev.tcz
A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist S)earch P)rovides K)eywords or Q)uit:
 openssl-1.0.0-dev.tcz
A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist S)earch P)rovides K)eywords or Q)uit:
tc@box:~/shairport$ ./configure
Configuring Shairport
OpenSSL or its dev package not found
Required package not found, cannot continue
tc@box:~/shairport$

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Shairport compile
« Reply #5 on: November 18, 2013, 02:42:05 PM »
Either openssl-1.0.0-dev.tcz not installed, pkgconfig path not correct or the config script itself is buggy.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Shairport compile
« Reply #6 on: November 18, 2013, 02:52:43 PM »
I am starting from scratch, with the TC -linux now.

I have to learn some basics things, before moving on.
I find that i cannot use a lot of my linux experience...

-I find that i need to learn how the tce-load/install etc... is working (RAM, ondemand, optional etc...), before i can move on.

Thanks !  8)

// Jesper.