LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2006, 08:49 AM   #1
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
problem cross compile samba


Hi all,

i am trying to cross compile samba to my Compact Flash (CF) card. i use samba 2.2.12
i managed to compile and install it on my host (OpenSuse10.1):
Code:
# CC=i386-linux-gcc ./configure --disable-cups \
> --prefix=/mnt/cf/usr/local/samba \
> --x-includes=/mnt/cf/usr/X11R6/include \
> --x-libraries=/mnt/cf/usr/X11R6/lib
# make
# make installbin
then make the smb.conf under /mnt/cf/usr/local/samba/lib.
but i have some problem during runtime. it seems that the path used is still the same with the one in my host. so it would search for file under: /mnt/cf/usr/local/...

so have can i solve this? i read the help from configure samba. is it true that it means i have to set the other directoy configurations also just as the default PREFIX=/usr/local/samba points to? e.g.:
Code:
# CC=i386-linux-gcc ./configure --disable-cups \
> --prefix=/mnt/cf/usr/local/samba \
> --x-includes=/mnt/cf/usr/X11R6/include \
> --x-libraries=/mnt/cf/usr/X11R6/lib
> --bindir=/usr/local/samba/bin \
> --sbindir=/usr/local/samba/sbin \
etc..
thanks for any hint.

Last edited by lbdgwgt; 12-14-2006 at 05:41 AM.
 
Old 12-14-2006, 05:35 AM   #2
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi all,

i finally made it. so what to do in configure is:

[CODE]
# CC=i386-linux-gcc ./configure --disable-cups \
> --prefix=/mnt/cf/usr/local/samba \
> --x-includes=/mnt/cf/usr/X11R6/include \
> --x-libraries=/mnt/cf/usr/X11R6/lib
> --with-configdir=/etc \
> --with-codepagedir=/usr/local/samba/lib/codepages \
etc..


but since i use a read only file system on the compact flash, some directories like the lock and pid dir, the private dir should be put on a writeable one. since i use ramdisk, i locate them there. hopefully it helps for somebody.

regards,
 
  


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
Problem with gcc powerpc cross compile !! rohya_joshi Linux - Software 2 02-07-2006 12:44 AM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
cross compile PATH problem karfei00 Linux - Newbie 1 06-16-2004 07:39 AM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 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