Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-04 Thread Vivien Giraud
On 03/07/2012 20:23, st...@nixia.no wrote: >> I have already do the Makefile.am part, and it's create a good (I think, >> I hope) Makefile >> :( >> I don't understand because if I change my ./configure option line from >> ./configure --with-ft2232-lib=static --disable-werror (The one I use) to >> .

Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-04 Thread Vivien Giraud
On 03/07/2012 22:18, Peter Stuge wrote: > Vivien Giraud wrote: >> I need it to be have libftdi and libusb static > Just a side note: Keep in mind that libusb is licensed under LGPL, > and OpenOCD under GPL, so you can not legally distribute only a > statically linked binary. > > I assume that you a

Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-03 Thread Peter Stuge
Vivien Giraud wrote: > I need it to be have libftdi and libusb static Just a side note: Keep in mind that libusb is licensed under LGPL, and OpenOCD under GPL, so you can not legally distribute only a statically linked binary. I assume that you are working on making a custom tool for a custom deb

Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-03 Thread stian
> I have already do the Makefile.am part, and it's create a good (I think, > I hope) Makefile > :( > I don't understand because if I change my ./configure option line from > ./configure --with-ft2232-lib=static --disable-werror (The one I use) to > ./configure --enable-ft2232-lib --disable-werror (

Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-03 Thread Vivien Giraud
On 03/07/2012 18:12, st...@nixia.no wrote: >> I have add this in makefile : >> >> libopenocd_la-detection.lo: detection.c >> $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) >> --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) >> $(libopenocd_la_CPPFLAGS)

Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-03 Thread stian
> I have add this in makefile : > > libopenocd_la-detection.lo: detection.c > $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) > --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) > $(libopenocd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT >... You shou

Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-03 Thread stian
> Here is my error > > /bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 > -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra > -Wno-unused-parameter -Wbad-function-cast -Wcast-align > -Wredundant-decls -o openocd main.o libopenocd.la > ../jimtcl/lib

Re: [OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-03 Thread Vivien Giraud
On 03/07/2012 17:22, st...@nixia.no wrote: Here is my error /bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -o openocd ma

[OpenOCD-devel] Compilation problem while adding new functions from new file

2012-07-03 Thread Vivien Giraud
Hi, I'm adding new functions to some files and I have a problem when I compiling it, may I have to change something in makefile or other. Here is my error /bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wn