LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2013, 02:10 AM   #1
nyk.mat
LQ Newbie
 
Registered: Mar 2013
Posts: 14

Rep: Reputation: Disabled
cross compilation of CUPS on ARM in Linux Environment


Hi all,

I am new in embedded systems and I am sorry for not knowing a more about
embedded systems and this is my first project.

I am also trying to add a USB printer support in Linux Kernel ver 2.6.30.

I want to cross compile CUPS ver 1.6.2 for ARM board.

So Can someone please suggest some steps to cross-compile CUPS on Linux.

Thanks in advance for your suggestions.
 
Old 06-07-2013, 02:24 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
you would need much more info, but probably you can start here: https://www.linux.com/community/blog...piling-for-arm
 
Old 06-07-2013, 06:08 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
First, before assuming anything, I must ask do you have a cross toolchain for your target architecture? If no, you'll need to either get one or build one. I build mine with CrosstoolNG.

I gave it a quick spin, and I see that it depends on the gssapi_krb5, krb5, k5crypto, com_err, gnutls, gcrypt, pthread, and crypt libraries. You'll probably have to start by cross-building those.

--- rod.

Last edited by theNbomr; 06-07-2013 at 06:11 PM.
 
Old 06-10-2013, 12:29 AM   #4
nyk.mat
LQ Newbie
 
Registered: Mar 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks theNbomr,

I am using "Arm-none-linux-gnueabi-gcc" toolchain for my system.
I am not getting a proper direction to move forward.
Even google is not helpful.

Last edited by nyk.mat; 06-10-2013 at 12:35 AM.
 
Old 06-10-2013, 10:49 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The basic steps I use:
  • Add the bin directory of your toolchain to $PATH
  • Create a directory where you want the products of your build to go
  • Run the configure script for the package you want to build, providing it with the options to use a cross compiler and a non-standard output directory
    Code:
    ./configure --prefix=/your/chosen/output/directory --host=Arm-none-linux-gnueabi
  • Run make. When it inevitably fails, fix the problems (build missing libraries, etc)
  • Copy the resulting object code to your target host for testing
--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenGL cross compilation for ARM les sciences Linux - Software 1 10-23-2012 10:47 AM
Arm cross compilation shariefbe Linux - Software 1 12-18-2009 10:45 AM
ARM-Linux Cross compilation Toolkits 2.95 hazzyb Programming 3 02-06-2009 11:21 AM
Problem compiling BlueZ stack on ARM ( cross compilation from linux x86) shilpates Linux - Wireless Networking 1 08-20-2008 04:02 AM
Gcc 4.3.0 cross compilation for arm is failing bhagat_singh Linux - Software 2 07-10-2008 03:38 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration