Forum > Other

[SOLVED] Building Lazarus 2.2.0 with FreePascal 3.2.2 fails under OpenBSD

<< < (2/5) > >>

TCH:
Oh, i see...but if FPC should be rebuilt when that file has been changed, then why did it work with Lazarus 2.0.12 by simply modifying it?

TCH:
Using make is only yielding a ton of errors; gmake should be used.

TCH:
I've rebuilt FPC and this the result i got when i tried to build Lazarus:
--- Code: ---(1002) Target OS: OpenBSD for x86-64
(3104) Compiling fcllaz.pas
(10001) PPU Loading /usr/lib/fpc/3.2.2/units/x86_64-openbsd/fcl-db/db.ppu
(10011) PPU Source: db.pas not available
(10011) PPU Source: dataset.inc not available
(10011) PPU Source: fields.inc not available
(10011) PPU Source: datasource.inc not available
(10011) PPU Source: database.inc not available
(10011) PPU Source: dsparams.inc not available
(10028) Recompiling DB, checksum changed for /usr/local/lib/fpc/3.2.2/units/x86_64-openbsd/rtl/classes.ppu
/tmp/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit DB used by fcllaz
Fatal: (1018) Compilation aborted
gmake[1]: *** [Makefile:3294: fcllaz.ppu] Error 1
gmake[1]: Leaving directory '/tmp/lazarus/packager/registration'
gmake: *** [Makefile:3712: registration] Error 2
--- End code ---
I think it is the best if i publish the script i use to do this:
--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---#!/bin/sh if [ "$#" -lt 3 ];then        echo "Usage: install_lazarus_openbsd.sh <i386/x86_64> <fpc version> <lazarus version> [lazarus source revision]"        exit 0fi case "$1" in        "i386")                carch="386"        ;;        "x86_64")                carch="x64"        ;;        *)                echo "Invalid architecture."                exit 0        ;;esac pkg_add bashpkg_add gtk2mmpkg_add gmakepkg_add unzip cd /tmp if [ ! -f "/usr/bin/ppc""$carch" ];then        DNAME="fpc-""$2"".""$1""-openbsd"        ANAME="$DNAME"".tar"        ftp "ftp://ftp.hu.freepascal.org/pub/fpc/dist/""$2""/""$1""-openbsd/""$ANAME" -o "$ANAME"        if [ ! -f "$ANAME" ];        then                echo "Could not download FreePascal binaries."                exit 0        fi        tar -xvf "$ANAME"        rm "$ANAME"        cd "$DNAME"        echo "Install to /usr/ instead of /usr/local/"        ./install.sh        cd ..        rm -rf "$DNAME"fi cd /tmp if [ ! -f "/usr/share/fpcsrc/""$2""/Makefile" ];then        ANAME="fpc-""$2"".source.zip"        ftp "https://netcologne.dl.sourceforge.net/project/freepascal/Source/""$2""/""$ANAME" -o "$ANAME" -S dont        if [ ! -f "$ANAME" ];        then                echo "Could not download FreePascal sources."                exit 0        fi        unzip "$ANAME"        rm "$ANAME"        mkdir /usr/share/fpcsrc/        mv "fpc-""$2" "/usr/share/fpcsrc/""$2"        cd "/usr/share/fpcsrc/""$2"        sed -i "s/'cnetdb\.pp',\[linux,freebsd,solaris,android\]/'cnetdb\.pp',\[linux,freebsd,openbsd,dragonfly,solaris,android\]/" "packages/fcl-net/fpmake.pp"        gmake distclean        gmake distclean        gmake installfi cd /tmp if [ ! -f "/usr/local/lazarus/lazarus" ];then        mkdir /usr/local/lazarus        if [ ! -d "lazarus" ];        then                REV=""                if [ "$4" != "" ];                then                        REV="-""$4"                fi                ANAME="lazarus-""$3""$REV"".zip"                ftp "https://netix.dl.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20""$3""/""$ANAME" -o "$ANAME" -S dont                if [ ! -f "$ANAME" ];                then                        echo "Could not download Lazarus sources."                        exit 0                fi                unzip "$ANAME"                rm "$ANAME"        fi        cd lazarus        gmake clean bigide        if [ -f lazarus ];        then                gmake install        fi        cd ..        if [ -f "/usr/local/share/lazarus/lazarus" ];        then                rm -rf lazarus        fifi I call it with ./install_lazarus_openbsd.sh x86_64 3.2.2 2.2.0 0

TCH:
Up.

Any tips what i am doing wrong?

marcov:
Change to "make all install"

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version