> WADE-s-iMac:ktechlab $ sh build-simple.sh > +++ readlink -f build-simple.sh > readlink: illegal option -- f > usage: readlink [-n] [file ...]
I guess this is OS X specific . This is a useful data point. On my system: $ readlink --help Usage: readlink [OPTION]... FILE... Print value of a symbolic link or canonical file name -f, --canonicalize canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist $ readlink --version readlink (GNU coreutils) 8.25 Copyright (C) 2016 Free Software Foundation, Inc. > /Users//ktechlabLatest/ktechlab/src/ktechlab.cpp:72:10: fatal error: 'ktlconfig.h' file not found > #include <ktlconfig.h> > ^~~~~~~~~~~~~ > 2 warnings and 1 error generated. > make[2]: *** [src/CMakeFiles/test_ktechlab.dir/ktechlab.cpp.o] Error 1 This is a similar, but different issue, build-simple.sh contains the work-around for it: In the _ build _ directory run first: make -C src/core and only after that make This build-simple file should work for you, too; run it from the root source directory (directory which contains README, ... ) $ cat build-simple-osx-v1.sh #!/bin/sh set -e set -x # this line should work on osx, too; script needs to be run from the source directory SCRIPTDIR=. LOGFILE="$SCRIPTDIR/build-simple.log" log_cmd() { "$@" 2>&1 | tee -a "$LOGFILE" } log_cmd echo "== starting build at $( date ) == " ( mkdir -p "$SCRIPTDIR/build-simple/" cd "$SCRIPTDIR/build-simple/" if [ -f "$SCRIPTDIR/build-simple/CMakeCache.txt" ] ; then echo "buildsystem generated, using it" else echo "buildsystem being generated" log_cmd cmake -DCMAKE_INSTALL_PREFIX="$SCRIPTDIR/inst-simple/" "$SCRIPTDIR" fi # bug in buildsystem: generated header files are not always built; work it around UI_HEADERS_TO_GENERATE=" ./src/gui/ui_contexthelpwidget.h ./src/gui/ui_generaloptionswidget.h ./src/gui/ui_linkeroptionswidget.h ./src/gui/ui_processingoptionswidget.h ./src/gui/ui_programmerwidget.h ./src/gui/ui_gpasmsettingswidget.h ./src/gui/ui_newprojectwidget.h ./src/gui/ui_newfilewidget.h ./src/gui/ui_outputmethodwidget.h ./src/gui/ui_scopescreenwidget.h ./src/gui/ui_createsubprojectwidget.h ./src/gui/ui_asmformattingwidget.h ./src/gui/ui_oscilloscopewidget.h ./src/gui/ui_microsettingswidget.h ./src/gui/ui_newpinmappingwidget.h ./src/gui/ui_logicwidget.h ./src/gui/ui_sdccoptionswidget.h ./src/gui/ui_picprogrammerconfigwidget.h ./src/gui/ui_gplinksettingswidget.h " for HEADER in $UI_HEADERS_TO_GENERATE ; do make -f src/gui/CMakeFiles/gui.dir/build.make "$HEADER" done # work around the bug: core directory has to be built first # ./src/core/ktlconfig.h log_cmd make -C "$SCRIPTDIR/build-simple/src/core" log_cmd make install -j2 ) WADE MAXFIELD <wade.maxfi...@4gwireline.com> ezt írta (időpont: 2018. okt. 11., Cs, 20:43): > found instructions on the web on cloning a branch, cloned that branch, > and ran into the same problem(s) > > build-simple.sh does not work > > > sh build-simple.sh > +++ readlink -f build-simple.sh > readlink: illegal option -- f > usage: readlink [-n] [file ...] > ++ dirname > usage: dirname path > + SCRIPTDIR= > > > manual build > > */opt/local/include/KDE4/ktexteditor/range.h:572:12: **warning: **reference > cannot be bound to dereferenced null pointer in well-defined C++ code; > pointer may be* > * assumed to always convert to true [-Wundefined-bool-conversion]* > if (&range) > * ~~ ^~~~~* > */Users/maxfield/ktechlabLatest/ktechlab/src/ktechlab.cpp:72:10: **fatal > error: **'ktlconfig.h' file not found* > #include <ktlconfig.h> > * ^~~~~~~~~~~~~* > 2 warnings and 1 error generated. > make[2]: *** [src/CMakeFiles/test_ktechlab.dir/ktechlab.cpp.o] Error 1 > make[1]: *** [src/CMakeFiles/test_ktechlab.dir/all] Error 2 > > > > On Oct 11, 2018, at 10:08 AM, Zoltan Padrah <zoltan.pad...@gmail.com> > wrote: > > fix-osx-build-v2 > > >
_______________________________________________ Ktechlab-devel mailing list Ktechlab-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ktechlab-devel