May 24, 2010

How to install GCC on the Nokia N900

苹果版|咪乐|直播app 市委书记蔡奇讲话。

I finally got around to installing GCC on my Nokia N900 today (using Maemo 5). I found it more challenging than I expected so I figured it would be nice to share how I did it.
First, you'll need root on the device. If it's not installed it already, see the instructions for installing and using rootsh.

Next, download the packages required for GCC. These can be found with a bit of searching on the Maemo repositories page. The fremantle and maemo5.0 repositories seem to be the same. For gcc you'll need these packages:

For g++, you'll also need these packages:

I downloaded these packages onto my computer and copied them to my N900 via mass storage mode. If downloading them directly to your N900 is easier, you could do that.

Once you have all the packages, you can install them by logging in as root (sudo gainroot) and then running dpkg -i <package> for each package. You should be able to do this in the order listed above.

The last two g++ packages (libstdc++6-4.2-dev and g++-4.2) depend on themselves so the procedure isn't quite as easy (you can't dpkg -i one and then the other). First, unpack each of the packages by running dpkg --unpack <package>. Then run dpkg --configure -a. This will configure both packages at the same time. If they're not installed yet, you can run dpkg -i <package> for each of them.

At this point, you should have gcc and (optionally) g++ installed. To invoke them, run gcc-4.2 and g++-4.2. If you like, you can add your own symlinks to run them as just gcc and g++.

After installing GCC, I compiled some trivial C and C++ applications, which ran fine. You may need to install more libraries to compile more complicated applications. You should be able to find such libraries by browsing the fremantle repository.

I've tried adding http://repository.maemo.org.dwanabrams.com/ as a repository in "App. manager", but it failed to find packages, which is why I installed them manually as described above. If you know of a way to make that method work, let me know; it would be much cleaner.

Also let me know If I missed any required packages or have the dependencies out of order.

I could have installed the Maemo SDK on my computer using these instructions, but I prefer to have my development environment right on the device so it is always available when I have my device. To use a nicer keyboard, I can SSH into my N900 from any computer with a full-sized keyboard (not just one with the Maemo SDK installed).

Now that GCC is installed, it's time to compile tangoGPS, my favorite GPS tracing tool, for Maemo 5. Hopefully I'll have some results to post soon.


本博原创,如转载请注明出处:http://blog-vfocus-net.dwanabrams.com,谢谢。

本文的引用网址:
http://www.vfocus.net.dwanabrams.com/blog/mt-tb.cgi/450

Posted by vitter at May 24, 2010 11:57 AM | 引用
评论

___ ___ _______ _______ ________ _____ _______ ____ ______ _____ (______ _______
_____) _ _____ (____) ____ __ ___ __ _______ ______ ____ ___ ______ _______.
_______ ______ ____ ________ ___ __ _____ 1379 _____
______ ________ ______ ___ __ _____ ____.
____ ___ _ __ ___ ___ __ ____
_______ ________ _____ ____ ___ ________ ____ _____ ______ ____ ______ ____
______ __ ______ ______ (__ ____
_______ ___ __ __________) _______ ____
____ _____ _____ _______
____ ___. __ ______ __ ___ __ 63.4 ____ __ ______
_______ ______ ______ _____ _____ _ ________ ________ __ ______ __ _____ _____ _____ ______ 1.9 ____ __ _____ ___ __
__ _____ _________. ____ _____ _____ _______ ___ ____ _____ _____ ___ ________ _______ ___ __ ________ ____ ____
_________ ___ ___ _____ _ ____ _______ ___.

_______ ____ ___ ________ _______ ________ ______ _____ __ _______ __ _______ _____ ______ _____ _____ ________ _ __ ____ ____ __ _____ _______ ___ 玙_____
______ __ ____ ________?__ ___________ _____.

Posted by: Dailyvaping.splashthat.com at September 4, 2021 01:04 AM
发表评论













记住个人信息?






百度