From: Holger V. <hol...@un...> - 2008-09-14 08:36:42
|
Hi all, I guess that the issue may be solved by modifying /src/makefile.am. When I configure ngspice without the --with-tcl flag, I get the following compilation protocol: /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/include -I../../../src/spicelib/devices -O2 -Wall -s -mwindows -MT cktfnode.lo -MD -MP -MF .deps/cktfnode.Tpo -c -o cktfnode.lo cktfnode.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/include -I../../../src/spicelib/devices -O2 -Wall -s -mwindows -MT cktfnode.lo -MD -MP -MF .deps/cktfnode.Tpo -c cktfnode.c -DDLL_EXPORT -DPIC -o .libs/cktfnode.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/include -I../../../src/spicelib/devices -O2 -Wall -s -mwindows -MT cktfnode.lo -MD -MP -MF .deps/cktfnode.Tpo -c cktfnode.c -o cktfnode.o >/dev/null 2>&1 mv -f .deps/cktfnode.Tpo .deps/cktfnode.Plo These protocol looks similar to the sample protocol from the autobook example, which I ran and which creates a dll. /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -MT hello.lo -MD -MP -MF .deps/hello.Tpo -c -o hello.lo hello.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -MT hello.lo -MD -MP -MF .deps/hello.Tpo -c hello.c -DDLL_EXPORT -DPIC -o .libs/hello.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -MT hello.lo -MD -MP -MF .deps/hello.Tpo -c hello.c -o hello.o >/dev/null 2>&1 mv -f .deps/hello.Tpo .deps/hello.Plo In /src a ngspice.exe is made with 15k size. When I click on it, ngspice pops up???!!! In fact, in /src/.libs I find the full ngspice.exe excutable, which runs on itself, but may also be called by src/ngspice.exe. If I configure with --with-tcl, I get the (excerpt) protocol: /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/include -I../../../src/spicelib/devices -I/mingw/include -O2 -Wall -s -I/mingw/include -mwindows -MT cktfnode.lo -MD -MP -MF .deps/cktfnode.Tpo -c -o cktfnode.lo cktfnode.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/include -I../../../src/spicelib/devices -I/mingw/include -O2 -Wall -s -I/mingw/include -mwindows -MT cktfnode.lo -MD -MP -MF .deps/cktfnode.Tpo -c cktfnode.c -o cktfnode.o mv -f .deps/cktfnode.Tpo .deps/cktfnode.Plo The line with compilation using the flags -DDLL_EXPORT -DPIC is missing, which may be the error source, resulting in the message reported below. Regards Holger Holger Vogt schrieb: > Hi Lionel, > > not yet successful, getting this error message: > > /bin/sh ../libtool --tag=CC --mode=link gcc -g -O0 -Wall > -I/mingw/include -mwindows -shared -Wl,--version-script=tclspice.map > -no-undefined -o libspice.la -rpath C:/Spice/lib ngspice.lo conf.lo > spice.lo frontend/libfte.la frontend/wdisp/libwindisp.la > frontend/plotting/libplotting.la > ... > maths/sparse/libsparse.la misc/libmisc.la tclspice.lo -lm -liberty > -lpsapi -lm -liberty -lpsapi > libtool: link: can not build a shared library > libtool: link: See the libtool documentation for more information. > libtool: link: Fatal configuration error. > > A static library will build. > > Regards > > Holger > |