Hi, I wrote a simple Makefile system for quickly rebuilding the latest GNUstep so I could hack on libs-back, rebuild over and over. I have some fixes coming for the wayland but for a big one I am blocked in the middle of one because I realize there must be a simple way to get NSDebugLog statements to show on the console when opening an app but I simply cannot find one.
Below is the relevant section of my Makefile I tried to make more presentable for this post that captures what I have tried. Am I missing something simple? Does NSdebugLog not print to console, only in a debugger? I've searched the git repos, the wiki, etc. I couldn't find any documentation around NSDebugLog and what I did find third party did not work. # Set working directory and CPU count WORKDIR=$(pwd) CPUS=$(nproc) # Set compiler flags for debugging export CFLAGS="-g -O0 -ggdb" export CXXFLAGS="-g -O0 -ggdb" export LDFLAGS="-g" export GNUSTEP_INSTALLATION_DOMAIN="SYSTEM" # Print configuration settings echo "CPUS is set to: $CPUS" echo "GNUSTEP_INSTALLATION_DOMAIN is set to: $GNUSTEP_INSTALLATION_DOMAIN" echo "WORKDIR is set to: $WORKDIR" echo "CFLAGS is set to: $CFLAGS" # Build and install GNUstep Make echo "Building GNUstep Make..." cd "$WORKDIR/tools-make" && ./configure \ --with-layout=gnustep \ --with-library-combo=ng-gnu-gnu \ --enable-debug-by-default || exit 1 gmake -j"$CPUS" || exit 1 gmake install || exit 1 # Source GNUstep environment . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh # Build and install libobjc2 echo "Building libobjc2..." mkdir -p "$WORKDIR/libobjc2/Build" cd "$WORKDIR/libobjc2/Build" || exit 1 cmake .. \ -DGNUSTEP_INSTALL_TYPE=SYSTEM \ -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_C_FLAGS="-g -O0 -ggdb" \ -DCMAKE_CXX_FLAGS="-g -O0 -ggdb" || exit 1 gmake -j"$CPUS" || exit 1 gmake install || exit 1 # Build and install GNUstep Base echo "Building GNUstep Base..." cd "$WORKDIR/libs-base" || exit 1 ./configure \ --with-installation-domain=SYSTEM \ CFLAGS="-g -O0 -ggdb" CXXFLAGS="-g -O0 -ggdb" LDFLAGS="-g" || exit 1 gmake -j"$CPUS" || exit 1 gmake install || exit 1 gmake clean # Build and install GNUstep GUI echo "Building GNUstep GUI..." cd "$WORKDIR/libs-gui" || exit 1 ./configure \ CFLAGS="-g -O0 -ggdb" CXXFLAGS="-g -O0 -ggdb" LDFLAGS="-g" || exit 1 gmake -j"$CPUS" || exit 1 gmake install || exit 1 gmake clean # Build and install GNUstep Back echo "Building GNUstep Back..." cd "$WORKDIR/libs-back" || exit 1 export fonts=no ./configure \ --enable-debug-by-default \ --enable-server=wayland \ CFLAGS="-g -O0 -ggdb" CXXFLAGS="-g -O0 -ggdb" LDFLAGS="-g" || exit 1 gmake -j"$CPUS" debug=yes || exit 1 gmake install debug=yes || exit 1gmake clean Joseph Maloney Sent with [Proton Mail](https://proton.me/mail/home) secure email.
