<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>> WADE-s-iMac:ktechlab $ sh build-simple.sh</div><div>> +++ readlink -f build-simple.sh</div><div>> readlink: illegal option -- f</div><div>> usage: readlink [-n] [file ...]</div><div><br></div><div>I guess this is OS X specific . This is a useful data point. On my system:</div><div><br></div><div>$ readlink --help<br>Usage: readlink [OPTION]... FILE...<br>Print value of a symbolic link or canonical file name<br><br>  -f, --canonicalize            canonicalize by following every symlink in<br>                                every component of the given name recursively;<br>                                all but the last component must exist<br></div><div><br></div><div>$ readlink --version<br>readlink (GNU coreutils) 8.25<br>Copyright (C) 2016 Free Software Foundation, Inc.<br></div><div><br></div><div><br></div><div><br></div><div>> /Users//ktechlabLatest/ktechlab/src/ktechlab.cpp:72:10: fatal error: 'ktlconfig.h' file not found<br>
> #include <ktlconfig.h><br>>          ^~~~~~~~~~~~~<br>
> 2 warnings and 1 error generated.<br>> make[2]: *** [src/CMakeFiles/test_ktechlab.dir/ktechlab.cpp.o] Error 1<div class="gmail-yj6qo gmail-ajU"><div id="gmail-:go" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div>This is a similar, but different issue, build-simple.sh contains the work-around for it:</div><div><br></div><div>In the _ build _ directory run first:<br></div><div><br></div><div> make -C src/core<br></div><div><br></div><div>and only after that <br></div><div><br></div><div>make<br></div><div><br></div><div><br></div><div><br></div><div>This build-simple file should work for you, too; run it from the root source directory (directory which contains README, ... )</div><div><br></div><div>$ cat build-simple-osx-v1.sh <br></div>#!/bin/sh<br>set -e<br>set -x<br></div><div dir="ltr"><br></div><div># this line should work on osx, too; script needs to be run from the source directory<br></div><div dir="ltr">SCRIPTDIR=.<br><br>LOGFILE="$SCRIPTDIR/build-simple.log"<br><br>log_cmd() {<br>    "$@" 2>&1  | tee -a "$LOGFILE"<br>}<br><br>log_cmd echo "== starting build at $( date ) == "<br><br>(<br>    mkdir -p "$SCRIPTDIR/build-simple/"<br>    cd "$SCRIPTDIR/build-simple/"<br><br>    if [ -f "$SCRIPTDIR/build-simple/CMakeCache.txt" ] ; then<br>        echo "buildsystem generated, using it"<br>    else<br>        echo "buildsystem being generated"<br><br>        log_cmd cmake -DCMAKE_INSTALL_PREFIX="$SCRIPTDIR/inst-simple/" "$SCRIPTDIR"<br>    fi<br><br>    # bug in buildsystem: generated header files are not always built; work it around<br><br>    UI_HEADERS_TO_GENERATE="<br>        ./src/gui/ui_contexthelpwidget.h<br>        ./src/gui/ui_generaloptionswidget.h<br>        ./src/gui/ui_linkeroptionswidget.h<br>        ./src/gui/ui_processingoptionswidget.h<br>        ./src/gui/ui_programmerwidget.h<br>        ./src/gui/ui_gpasmsettingswidget.h<br>        ./src/gui/ui_newprojectwidget.h<br>        ./src/gui/ui_newfilewidget.h<br>        ./src/gui/ui_outputmethodwidget.h<br>        ./src/gui/ui_scopescreenwidget.h<br>        ./src/gui/ui_createsubprojectwidget.h<br>        ./src/gui/ui_asmformattingwidget.h<br>        ./src/gui/ui_oscilloscopewidget.h<br>        ./src/gui/ui_microsettingswidget.h<br>        ./src/gui/ui_newpinmappingwidget.h<br>        ./src/gui/ui_logicwidget.h<br>        ./src/gui/ui_sdccoptionswidget.h<br>        ./src/gui/ui_picprogrammerconfigwidget.h<br>        ./src/gui/ui_gplinksettingswidget.h<br>        "<br>    for HEADER in $UI_HEADERS_TO_GENERATE ; do<br>        make -f src/gui/CMakeFiles/gui.dir/build.make "$HEADER"<br>    done<br><br>    # work around the bug: core directory has to be built first<br>    # ./src/core/ktlconfig.h<br>    log_cmd make -C "$SCRIPTDIR/build-simple/src/core"<br><br>    log_cmd make install -j2<br>)<div><br></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">WADE MAXFIELD <<a href="mailto:wade.maxfield@4gwireline.com">wade.maxfield@4gwireline.com</a>> ezt írta (időpont: 2018. okt. 11., Cs, 20:43):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>  found instructions on the web on cloning a branch, cloned that branch, and ran into the same problem(s)</div><div><br></div><div> build-simple.sh does not work</div><div><br></div><div><br></div><div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">sh build-simple.sh </span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">+++ readlink -f build-simple.sh</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">readlink: illegal option -- f</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">usage: readlink [-n] [file ...]</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">++ dirname</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">usage: dirname path</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">+ SCRIPTDIR=</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">manual build</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><b>/opt/local/include/KDE4/ktexteditor/range.h:572:12: </b></span><span style="font-variant-ligatures:no-common-ligatures;color:#d53bd3"><b>warning: </b></span><span style="font-variant-ligatures:no-common-ligatures"><b>reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be</b></span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><b>      assumed to always convert to true [-Wundefined-bool-conversion]</b></span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">      if (&range)</span></div><div style="margin:0px;line-height:normal;color:rgb(52,188,38)"><span style="font-variant-ligatures:no-common-ligatures"><b>      ~~   ^~~~~</b></span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><b>/Users/maxfield/ktechlabLatest/ktechlab/src/ktechlab.cpp:72:10: </b></span><span style="font-variant-ligatures:no-common-ligatures;color:#c33720"><b>fatal error: </b></span><span style="font-variant-ligatures:no-common-ligatures"><b>'ktlconfig.h' file not found</b></span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">#include <ktlconfig.h></span></div><div style="margin:0px;line-height:normal;color:rgb(52,188,38)"><span style="font-variant-ligatures:no-common-ligatures"><b>         ^~~~~~~~~~~~~</b></span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">2 warnings and 1 error generated.</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">make[2]: *** [src/CMakeFiles/test_ktechlab.dir/ktechlab.cpp.o] Error 1</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">make[1]: *** [src/CMakeFiles/test_ktechlab.dir/all] Error 2</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></span></div></div><div> </div><div><br><blockquote type="cite"><div>On Oct 11, 2018, at 10:08 AM, Zoltan Padrah <<a href="mailto:zoltan.padrah@gmail.com" target="_blank">zoltan.padrah@gmail.com</a>> wrote:</div><br class="m_5409671598863607751Apple-interchange-newline"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">fix-osx-build-v2</span></div></blockquote></div><br></div></blockquote></div>