Re: [Openocd-development] ./configure --enable-maintainer-mode LIBS=-lfoo-1.0 not working?
On Thu, Jun 3, 2010 at 3:26 PM, Martin Zenzes wrote: > I'm sorry... my mistake... > > ./configure LDFLAGS=-L/opt/libftdi-1.0 --prefix=/opt/openocd > --enable-ft2232_libftdi --enable-maintainer-mode > > is enough to point configure to the right lib... everything is fine. and > I learned a lot about configure ;-) Be very careful about the installation of libftdi and libftdi-1.0. They conflict with each other and you may encounter different problems. The best is to only install one of them. Last time I had libftdi at /usr and libftdi-1.0 at /usr/local. Supposed that should work. Somehow it caused problem when building later version of libftdi-1.0's python bindings. Now I just remove libftdi all-together and use libftdi-1.0. But maybe your /opt directory used is better than the default /usr/local. -- Xiaofan http://mcuee.blogspot.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] ./configure --enable-maintainer-mode LIBS=-lfoo-1.0 not working?
I'm sorry... my mistake... ./configure LDFLAGS=-L/opt/libftdi-1.0 --prefix=/opt/openocd --enable-ft2232_libftdi --enable-maintainer-mode is enough to point configure to the right lib... everything is fine. and I learned a lot about configure ;-) sorry about the noise Martin Am Mittwoch, den 02.06.2010, 23:26 +0100 schrieb Spencer Oliver: > On 02/06/2010 17:35, Martin Zenzes wrote: > > Hi, > > > > when I do > > > > ./configure LDFLAGS=-L/opt/libftdi-1.0 LIBS=-lftdi-1.0 > > --enable-maintainer-mode > > > > Have you tried quoting the parameters, eg. > ./configure LDFLAGS="-L/opt/libftdi-1.0" LIBS="-lftdi-1.0" > --enable-maintainer-mode > > may also be worth attaching the config.log if you still get problems. > > Cheers > Spen ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] ./configure --enable-maintainer-mode LIBS=-lfoo-1.0 not working?
On 02/06/2010 17:35, Martin Zenzes wrote: Hi, when I do ./configure LDFLAGS=-L/opt/libftdi-1.0 LIBS=-lftdi-1.0 --enable-maintainer-mode Have you tried quoting the parameters, eg. ./configure LDFLAGS="-L/opt/libftdi-1.0" LIBS="-lftdi-1.0" --enable-maintainer-mode may also be worth attaching the config.log if you still get problems. Cheers Spen ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] ./configure --enable-maintainer-mode LIBS=-lfoo-1.0 not working?
Dne St 2. Ĩervna 2010 18:35:40 Martin Zenzes napsal(a): > Hi, > > when I do > > ./configure LDFLAGS=-L/opt/libftdi-1.0 LIBS=-lftdi-1.0 > --enable-maintainer-mode > > with recent git (d944a0b) , I'm getting an error: > > configure: error: C compiler cannot create executables > > after removing the "-1.0" part of LIBS, everything is fine, but openocd > selects the wrong version of the ftdi-library. > > I can compile openOCD with my custom libftdi-version by replacing > LIBS and LDFLAGS using sed in every Makefile after a normal run > of ./configure. > > This seems to be a bug in configure? Or maybe a bug in your autotools ? > > Greetings > Martin > > ___ > Openocd-development mailing list > Openocd-development@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/openocd-development ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
[Openocd-development] ./configure --enable-maintainer-mode LIBS=-lfoo-1.0 not working?
Hi, when I do ./configure LDFLAGS=-L/opt/libftdi-1.0 LIBS=-lftdi-1.0 --enable-maintainer-mode with recent git (d944a0b) , I'm getting an error: configure: error: C compiler cannot create executables after removing the "-1.0" part of LIBS, everything is fine, but openocd selects the wrong version of the ftdi-library. I can compile openOCD with my custom libftdi-version by replacing LIBS and LDFLAGS using sed in every Makefile after a normal run of ./configure. This seems to be a bug in configure? Greetings Martin ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development