Changes between Version 10 and Version 11 of Packages/SQLite


Ignore:
Timestamp:
06/25/12 20:27:07 (12 years ago)
Author:
C Rempel
Comment:

/* Some quick notes */

Legend:

Unmodified
Added
Removed
Modified
  • Packages/SQLite

    v10 v11  
    3131 ~$ tar -acf sqlite.fossil.tar.bz2 sqlite
    3232
    33 close the fossil file
    34  ~$ cd sqlite
    35  ~/sqlite$ fossil close ../trunk.fossil
     33DO NOT close the fossil file! It will remove manifest.uuid and not compile!
     34=  Makefile.sqlite  =
     35
     36Just figured out how to get SQLite to compile!  First, install the rtems-graphics-toolkit/mman_kit
     37
     38Second, comment out the references to popen and pclose in rtems-addon-packages/sqlite/src/shell.c
     39
     40Third, copy the Makefile below into rtems-addon-packages/RTEMS_Makefiles/Makefile.sqlite
     41{{{
     42#
     43# Configure/build/install the sqlite library
     44# note: comment out the references to popen and pclose in src/shell.c
     45# until a reasonable substitution can be found
     46
     47include ../RTEMS_Makefiles/Makefile.common
     48
     49all:
     50        CFLAGS='-DPROT_READ=0x01 -DPROT_WRITE=0x02 -DMAP_SHARED=0x001 -DSQLITE_OMIT_ALTERTABLE=2 ' \
     51        LDFLAGS='-lmmap_kit' \
     52        ../sqlite/configure \
     53                --prefix=$(exec_prefix) \
     54                --build=i686-linux-gnu \
     55                --host=i386-rtems4.11 \
     56                --disable-largefile \
     57                --enable-cross-thread-connections \
     58                --disable-tcl \
     59                --disable-readline \
     60                --disable-amalgamation \
     61                --libdir=$(exec_prefix)/$(RTEMS_BSP)/lib \
     62                --includedir=$(exec_prefix)/$(RTEMS_BSP)/lib/include
     63        make
     64        make install
     65}}}
     66
    3667
    3768SQLite "Almalgamates" the source code before building, which can complicate finding required configuration changes, so using --disable-amalgamate seems to make it easier to find where needed changes are.