Results 1 to 6 of 6
Discuss Gcc/Macport or at least curlftpfs at the AppleTV 1 - Hackint0sh.org; Hello! Because i am software developer and a friend of mine is an IT student, ...
  1. #1
    Rookie Array

    Join Date
    Feb 2009
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Gcc/Macport or at least curlftpfs

    Hello!

    Because i am software developer and a friend of mine is an IT student, i compiled svnserve to run at the ATV (he wants to use it).

    So i installed Mac OS 10.4 on my macbook to compile binaries!

    I compiled successfully svnserve and was able to use it!

    But now i want/need curlftpfs to mount the disc from my DVB receiver. So i decided to compile it at the macbook, but it didnt compile!

    So i decided to install macports and then curl! This worked fine for me and mac os 10.4.

    I followed this install guide: http://wiki.awkwardtv.org/wiki/Install_gcc
    and for macports: MacPorts - AwkwardTV
    I downloaded macports 1.4.0 and tried to compile it, but i get an error like this: "no compatible/illegal operand for 386 found" (after copying the tcl framework + headers to the atv + some binaries like sort, patch, cmp, basename, etc..)

    No my idea is, that i just copy the macports directory to the AppleTV directory? Will this work?

    Was someone able to compile MacPorts at the appletv?

    I really want to compile new things for the atv (i also did this for my Asus Wl-500gp Router, but ATV is more powerfull). And if it will not work, i want at least curlftpfs to mount my dvb-recorder!

    Best regards

    PS.: I have ATV 2.3 version!



  2. #2
    Senior Professional Array

    Join Date
    Mar 2007
    Posts
    205
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    18

    Default

    you need much more than just gcc installed to install MacPorts on the AppleTV. Try the entire Xcode development libraries for starters.

    here a trick, when making something in MacPorts to run under the AppleTV make it as a pkg. Then all dependencies will be included.

  3. #3
    Rookie Array

    Join Date
    Feb 2009
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Oha!
    That sounds great... How can i make it to a package?!

  4. #4
    Senior Professional Array

    Join Date
    Mar 2007
    Posts
    205
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    18

    Default

    port help pkg

    port pkg curlftpfs

  5. #5
    Rookie Array

    Join Date
    Feb 2009
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    The problem is, that it doesnt build it static or with dependencies

    And you have to modifiy the build script for macfuse! Otherwhise it doesnt compile..

    So i decided to copy the whole /opt/local/ directory to the ATV! The curlftpfs mounts the directory, but its not able to stream it..


  6. #6
    Advanced Array

    Join Date
    Feb 2008
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default xcode

    same time ago I was banging my head at the wall trying to get gcc will full xcode support, I didn't finished it, but if someone can finished it would be awesome.

    Code:
    #!/bin/bash
    if [ ! -d /Users/frontrow/GCC_temp/ ]; then
        mkdir /Users/frontrow/GCC_temp/
        cd /Users/frontrow/GCC_temp/
    else
        cd /Users/frontrow/GCC_temp/
    fi
    if [ ! -h /usr/include ]; then
    	if [ ! -d /usr/include ]; then
    		sudo mkdir /usr/include
    	fi
    	sudo mkdir -p /mnt/Scratch/root/usr/include/
    	sudo chown -R root:wheel /mnt/Scratch/root/usr/include/
    	if [ "$(ls -A /usr/include/)" ]; then
    		sudo cp -RHf /usr/include/ /mnt/Scratch/root/usr/include/
    	fi
    	sudo rm -rdf /usr/include/
    	sudo ln -s /mnt/Scratch/root/usr/include/ /usr/include
    fi
    
    #### 7za ####
    if [ ! -f /usr/bin/7za ]; then
    	echo -n "Downloading 7za: 1.1MB"
    	wget -q http://atvusb-creator.googlecode.com/svn-history/r121/trunk/atvusb-creator/atvusb-creator-1.0.b8/tools/osx/7za &
    	while ps |grep $! &>/dev/null; do
          	echo -n "."
            	sleep 2
    	done
    	chmod 755 7za
    	sudo mv -f 7za /usr/bin/
    	sudo chown root:wheel /usr/bin/7za
    fi
    
    #### XCODE ####
    wget http://www.msg.ucsf.edu/local/programs/MacOSX/xcode25.tgz
    tar -vzxf xcode25.tgz
    sudo hdiutil mount xcode25.dmg
    sudo rm -rdf rxcode25.{tgz,dmg}
    cd /
    sudo pax -r -z -f /Volumes/Xcode\ Tools/Packages/Packages/gcc4.0.pkg/Contents/Archive.pax.gz
    for A in bin/powerpc-apple-darwin8-g++-4.0.1 bin/powerpc-apple-darwin8-gcc-4.0.1 lib/gcc/powerpc-apple-darwin8 libexec/gcc/powerpc-apple-darwin8 share/man
    do
    	sudo rm -rdf /usr/$A
    done
    cd /Users/frontrow/GCC_temp/
    for P in DeveloperTools.pkg MacOSX10.4.Universal.pkg gcc4.0.pkg X11SDK.pkg BSDSDK.pkg DevSDK.pkg DeveloperToolsCLI.pkg
    do
       pax -r -z -f /Volumes/Xcode\ Tools/Packages/Packages/$P/Contents/Archive.pax.gz
    done
    Echo "Copying Files"
    sudo mkdir -p /usr/libexec/gcc/darwin/i386
    if [ ! -d /usr/include/ ]; then
        sudo mkdir /usr/include/
    fi
    sudo cp -Rf usr/include/* /usr/include/
    for B in  bin/as bin/ld bin/gnumake lib/bundle1.o lib/dylib1.o lib/crt1.o lib/gcrt1.o bin/ar bin/libtool
    do
    	sudo cp -f usr/$B /usr/$B
    done
    sudo ln -sf /usr/bin/gnumake /usr/bin/make
    sudo ln -sf /usr/bin/libtool /usr/bin/ranlib
    sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc
    sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/cc
    echo "Cleaning Up"
    for G in  ADC\ Reference\ Library Applications Developer Documentation Examples Extras Library System usr Headers Java Makefiles Palettes Private SDKs Tools About\ Xcode\ Tools.pdf
    do
    	sudo rm -rdf $G
    done
    echo "GCC Compiller have been Installed"
    sudo hdiutil unmount /Volumes/Xcode\ Tools/
    
    
    #### Tcl ####
    echo "Instaling Tcl"
    7za x -tbz2 tcl-20.root.tar.bz2
    tar xvf tcl-20.root.tar
    rm -rdf {System/Library/Frameworks/Tc.lframework/Versons/8.4/Resorces/Documentaion/,usr/share/man/}
    sudo chown -R root:wheel {usr,System}/
    sudo cp -RHf usr/* /usr/
    sudo cp -RHf System/* /System/
    sudo rm -rdf {usr,System,Developer}/
    
    #### curl ####
    echo "Instaling Curl"
    7za x -tbz2 curl-28.root.tar.bz2
    tar xvf curl-28.root.tar
    rm -rdf usr/share/man/
    sudo chown -R root:wheel usr/
    sudo cp -RHf usr/include/ /mnt/Scratch/local/include/
    sudo cp -RHf usr/{bin,lib,local,share} /usr/
    sudo rm -rdf usr/
    
    #### sort ####
    wget http://dafranca.fortunecity.com/sort.jpg
    chmod 755 sort.jpg
    sudo mv sort.jpg /usr/bin/sort
    sudo chown root:wheel /usr/bin/sort

 

 

Similar Threads

  1. Macport proble
    By nuvolare in forum Genuine Mac Support
    Replies: 0
    Last Post: 06-23-2009, 09:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:21 PM.
twitter, follow us!