incr Tcl 2.1 & BLT 2.1 
Author Message
 incr Tcl 2.1 & BLT 2.1

Hi Folks,

I would really appreciate some help on building incr Tcl version 2.1
together with Blt 2.1 on HP-UX 10.01. I first built both extensions,
then I copied the itk/tkAppInit.c to SupTclInit.c and added the Blt
extension. Lastly I cooked up a makefile. The make completes
successfully, but when I try and run the resulting executable I get the
following message: "application-specific initialization failed: can't
find package Iwidgets". This prevents me from using the megawidgets. I
would like to go on a also include other extensions like Tix.

What am I doing wrong?

My SupTclInit.c looks as follows:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Tcl_AppInit(interp)
    Tcl_Interp *interp;         /* Interpreter for application. */
{
    if (Tcl_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }
    if (Tk_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }

    /*
     * Call the init procedures for included packages.  Each call should
     * look like this:
     *
     * if (Mod_Init(interp) == TCL_ERROR) {
     *     return TCL_ERROR;
     * }
     *
     * where "Mod" is the name of the module.
     */
    if (Itcl_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }
    if (Itk_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }
    if (Tcl_PkgRequire(interp, "Iwidgets", (char*)NULL, 0) == NULL) {
        return TCL_ERROR;
    }
    if (Blt_Init(interp) == TCL_ERROR) {
        return TCL_ERROR;
    }

    /*
     * Call Tcl_CreateCommand for application-specific commands, if
     * they weren't already created by the init procedures called above.
     */

    /*
     * Specify a user-specific startup file to invoke if the application
     * is run interactively.  Typically the startup file is "~/.apprc"
     * where "app" is the name of the application.  If this line is
deleted
     * then no user-specific startup file will be run under any
conditions.
     */

    Tcl_SetVar(interp, "tcl_rcFileName", "~/.stclrc", TCL_GLOBAL_ONLY);
    return TCL_OK;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

My makefile looks as follows:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CC=/opt/ansic/bin/cc

XPATH=/usr
TCL_LIB = /opt/tcl/lib/itcl/libtcl.a
TK_LIB = /opt/tcl/lib/itcl/libtk.a
INCRTCL_LIB = /opt/tcl/lib/itcl/libitcl.a
INCRTK_LIB = /opt/tcl/lib/itcl/libitk.a
BLT_LIB = /opt/blt/lib/libBLT.a

INCS = -I$(XPATH)/include/X11R5 \
 -I/opt/blt/include -I/opt/tcl/include/itcl

CFLAGS = -g -Aa -O $(INCS)

LOCAL_LIBRARIES= $(BLT_LIB) $(TK_LIB) $(TCL_LIB) $(INCRTCL_LIB)
$(INCRTK_LIB) \
-L$(XPATH)/lib/X11R5 -lX11 -lm
.c.o:
        $(CC)  -c $(CFLAGS)   $*.c

stcl: SupTclInit.o
        $(CC) -o stcl SupTclInit.o $(LOCAL_LIBRARIES)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks in advance


Telkom SA
Pretoria
South Africa



Sun, 04 Apr 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Difficulties with BLT 2.1 and [incr Tcl 2.1]

2. Tcl v7.5/ [incr Tcl] 2.1 - Y2K

3. isa broken in [incr Tcl] 2.1?

4. Patch to TclX 7.5.2 to support Incr Tcl 2.1

5. BLT 2.1 drag&drop on Win95 problems

6. BLT 2.1 shared version AND tcl 7.6 - 8.0a2

7. BLT 2.1 for tcl 8.0 on Win95?

8. ANNOUNCE: BLT 2.1 (preliminary) patch for tcl/tk8.0a1

9. ANNOUNCE: BLT 2.1 (preliminary) patch for tcl/tk8.0a1

10. BLT 2.1 and Tcl 7.5p1/Tk 4.1p1

11. WorldView 2.1 vs Cosmo Player 2.1

12. Python 2.1 == Jython 2.1 != Python 2.2?

 

 
Powered by phpBB® Forum Software