Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* (no subject)
@ 2000-10-05  2:08 Bomshik Kim
  0 siblings, 0 replies; only message in thread
From: Bomshik Kim @ 2000-10-05  2:08 UTC (permalink / raw)
  To: caml-list


Hello.

I do programming with  both ocaml and camltk.
Compiling source code produces binary (with -custom option).

But the binary can't run on another machine which does not have
tcl, tk library.

The error message is like this

   Fatal error: uncaught exception Protocol.TkError
        ("Can't find a usable init.tcl
        in the following directories:
         /usr/local/lib/tcl7.6 ./lib/tcl7.6 ./tcl7.6/library ./library
        This probably means that Tcl wasn't installed properly.
        ")


Someone let me know that "-static" option may solve this problem.
but that also makes another error.

/usr/bin/ld: cannot open -lcurses: no such a file or directory
collect2: ld returned 1 exit status
Error while building custom runtime system
make: *** [system] Error 2

How can I make binary which runs well where tcl, tk are not installed?

I add linking command of Makefile.

Regard.

------------------------------------------------------------------------
system: rtp/rtp.cmo $(lpc) util.cmo $(phone_objects) $(gui_objects)
        $(CC) -custom -I $(camltklib) \
        -ccopt "-L/usr/X11R6/lib -L/usr/local/lib -L. -L$(camltklib)"\
        -cclib "-lcamltk41 -ltcl7.6 -ltk4.2 -ldl -lm -lSM -lICE -lX11
-lunix -static"\
        -o system tk41.cma unix.cma $(objects) liblpc10.a




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-10-05  5:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-05  2:08 Bomshik Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox