LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-03-2011, 05:51 PM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
how to compile mysql for arm9 linux


hello
I want to compile mysql for arm9 linux box, I did not find any good resource. can any body help me to do it or does any body did it before?
 
Old 01-04-2011, 02:49 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

I think that we need more info to be able to help you. Do you mean "compile" or "cross-compile" ? and which version of mysql as from mysql-5.1.12 the build system has moved from autotools to cmake and that's not exactly the same commands.

Kind regards,

Oliv'
 
Old 01-08-2011, 03:50 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
I want cross compile mysql for arm9 but I dont know where to start just I know my needs.
I need to cross compile it with minimum memory usage maximum 30MB memory and I want to be able to add my own UDF's to it and I want it to work with my C program that I used mysql API's in it to contact to mysql DB. all of my DB's are innodb or memory and i want an easiest way.

Last edited by golden_boy615; 01-08-2011 at 03:52 AM.
 
Old 01-09-2011, 11:54 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
First, you need a cross toolchain for the target architecture. Do you have that? If not, do you even understand what I mean by that?
--- rod.
 
Old 01-09-2011, 11:46 PM   #5
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
yes I know what is that and I have it and I downloaded mysql source code too. so what is next?
 
Old 01-10-2011, 03:23 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Well you just have to know if your SQL version relies on cmake or autotools build system.
With autotools, it will be something like: ./configure --prefix=$prefix --host=$host --target=$target --other-options
With cmaje, it should be something like: cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake (and you have to create a toolchain.cmake file to specify which compiler use and some other things)

Regards
 
  


Reply



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
Linux kernel debugging on ARM9 LPC3250 Raydan Linux - Embedded & Single-board computer 1 08-11-2009 10:08 AM
Compiling linux-2.6.26 for ln2440sbc (ARM9 core) jituelect Linux - Embedded & Single-board computer 2 09-29-2008 10:46 PM
How to cross compile sqlite-3.2.7 for arm9 s3c2410? whepin Linux - General 0 09-27-2005 08:49 AM
Arm9 Linux.bsp ThatDude Linux - Hardware 0 07-22-2004 10:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:18 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
Open Source Consulting | Domain Registration