From: gfine <gle...@gm...> - 2007-12-13 16:14:04
|
Miklos Szeredi wrote: > >> I realize this is more a ./configure question than a fuse question. I am >> trying to get fuse and ntfs-3g to compile for an embedded target. I >> first >> compiled it under the RHEL 4 system to test it out. Builds, compiles, >> and >> works great. I can mount a NTFS formatted USB drive without a hitch. >> >> Then I try to build it for the embedded platform. Assume that >> $EMBEDDED_DIR >> points to the build directory and $EMBEDDED_CPU=i386. Actually it is a >> Geode GX2. >> >> When I run >> ./configure --prefix=$EMBEDDED_DIR/usr >> --with-linux=$EMBEDDED_DIR/usr/src/linux --with-kernel-support >> --build=$EMBEDDED_CPU >> then on the target system I get fuse.ko complaining >> "fuse:version magic 2.6.9.5-EL i686 REGPARM 4KSTACKS gcc-3.4. should be >> 2.6.13.4 preempt GEODEGX1 gcc-3.4" >> >> This tells me that it compiled using the RHEL paths and not the >> $EMBEDDED_DIR >> >> I look at the config.log and the top of it looks like >> hostname = localhost.localdomain >> uname -m = i686 >> uname -r = 2.6.9-5.EL >> uname -s = Linux >> uname -v = #1 Wed Jan 5 19:22:18 EST 2005 >> >> and then there are paths that look as if they are pointing to the RHEL >> build >> rather than $EMBEDDED_DIR >> >> Is there a way to override the ./configure with options that force it to >> look at $EMBEDDED_DIR ? >> Any hints, clues, etc. for one as clueless as myself would be >> appreciated... > > I'm not an expert on cross-building, and it may not be trivial to do > for the kernel module. I'm sure there are readers of this list who > can explain much better than me. > > But a couple of observations: > > - setting the install prefix with '--prefix=' doesn't affect the seach > path for the build utilities > > - try '--with-kernel=' instead of '--with-linux' > > - likewise '--enable-kernel-module' instead of '--with-kernel-support' > > Miklos > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel > > The following created a fuse.ko binary that loads on the target without an error. ./configure --prefix=$EMBEDDED_DIR/usr --build=$EMBEDDED_CPU-linux-gnubc --enable-kernel-module --with-kernel=$EMBEDDED_DIR/usr/src/linux It created Makefile(s) that properly used the kernel and libraries within the embedded build environment, and not the RHEL host. Thank you !!! Miklos.. Glen -- View this message in context: http://www.nabble.com/Noob%3AQuick-Question-on-.-configure-tp14305459p14319007.html Sent from the Fuse - Dev mailing list archive at Nabble.com. |