close

1.  mkdir nano-X/SimulationEnvironment    
    tar zxvf fltk-1.1.9-source.tar.gz  
    tar zxvf microwindows-full-0.91.tar.gz  
    tar zxvf nxlib-0.45.tar.gz 
  
2. Compiler nxlib-0.45  
    2-1. Modify nxlib-0.45/Makefile
       11    MWIN=/home/nano-X/SimulationEnvironment/microwindows-0.91/src
       24    SHAREDLIB=N
       28    CFLAGS += -DXCONST=_Xconst
       64    AllocColor.o ParseColor.o QueryColor.o Colormap.o Colorname.o Selection.o


    2-2. addition below source to stub.c
     int XOpenDevice() { printf("XOpenDevice called\n"); return 0; }
     int XSelectExtensionEvent() { printf("XSelectExtensionEvent called\n"); return 0; }
     int XListInputDevices () { printf("XListInputDevices called\n"); return 0; }
     int XFreeDeviceList () { printf("XFreeDeviceList called\n"); return 0; }
     int Xutf8LookupString() { printf("Xutf8LookupString called\n"); return 0; }
     int XChangeKeyboardControl(){printf("XChangeKeyboardControl called\n");return 0;}
    2-3. make
    2-4. copy libnx11.a to microwindows-0.91/src/lib
    
3. Compiler microwindows-0.91
    3.1  modify config
          56    VERBOSE    = Y
          67    SHAREDLIBS = N
        260    X11 = Y
        264    SCREEN_WIDTH = 800
        265    SCREEN_HEIGHT = 600
        266    SCREEN_DEPTH  = 8
        314    GPMMOUSE = N
        315    SERMOUSE = Y        
    3.2 make
    
4. Compiler fltk1.1.9
    4-1. modify configure   
       757   program_prefix=/home/nano-X/SimulationEnvironment/microwindows-0.91/src
       765   x_includes=/usr/include/X11
       766   x_libraries=/home/nano-X/SimulationEnvironment/microwindows-0.91/src/lib
       10546   LIBS="$LIBS -lnx11 -lnano-X $X_EXTRA_LIBS"
    4-2. ./configure --with-x
    4-3. make

5. Run FLTK sample result:

  5.1  ./microiwndows-0.91/src/bin/nano-X&

  5.2  ./microwindows-0.91/src/bin/nanowm& (會產生類似windows樣式的外框)

  5.3  ./fltk1.1.9/test/hello

                       有執行nanowm所產生的結果                                     

 photo1.png

                      沒有執行nanowm所產生的結果

photo2.png

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 yunjuihuang 的頭像
    yunjuihuang

    瑞の資訊備忘錄

    yunjuihuang 發表在 痞客邦 留言(0) 人氣()