Skip to content

Stuck in "Configuring build ..." #415

@dimitre

Description

@dimitre

I'm now building two targets, the first is the OF as static library
the second is OF project

I notice it works if I point to the library folder directly, or even use ar variable ${ar:OF}
but once I use ${externalBuild:OF} variable it seems to get stuck in an infinite loop

Configuring build     . . . 

sample yml: (issue is in line 57)

name: OF
version: 0.3.3
variables:
  generator: ofGen v0.5.6
  addons: ProjectSourceFiles_Empty
  platform: macos
  ofPath: ../../..
abstracts:*:
  language: C++
  language[toolchain:apple-llvm]: Objective-C++
  settings:Cxx:
    cppStandard: c++20
    warningsPreset: minimal
    runtimeTypeInformation: true
    threads: true
    exceptions: true
    defines:
      - __MACOSX_CORE__
    defines[:debug]:
      - DEBUG
    compileOptions[:macos]:
      - -fobjc-arc
    includeDirs:
      - ${var:ofPath}/libs/openFrameworks/**
      - ${var:ofPath}/libs/{${var:platform}}/include
    appleFrameworks:
      - Accelerate
      - AGL
      - ApplicationServices
      - AVFoundation
      - IOKit
      - Cocoa
      - CoreAudio
      - CoreMedia
      - OpenGL
      - QuartzCore
targets:
  OF:
    kind: staticLibrary
    files:
      include:
        - ${var:ofPath}/libs/openFrameworks/{3d,communication,events,gl,graphics,math,sound,types,utils,video}/*.cpp
        - ${var:ofPath}/libs/openFrameworks/app/{ofBaseApp,ofMainLoop,ofAppRunner,ofAppGLFWWindow}.cpp
      include[:macos]:
        - ${var:ofPath}/libs/openFrameworks/**.{mm,m}
      exclude[:macos]:
        - ${var:ofPath}/libs/openFrameworks/video/ofDirectShowPlayer.cpp
        - ${var:ofPath}/libs/openFrameworks/video/{ofGstVideoGrabber,ofGstVideoPlayer,ofGstUtils,ofMediaFoundationPlayer,ofDirectShowGrabber}.cpp
        - ${var:ofPath}/libs/openFrameworks/sound/{ofMediaFoundationSoundPlayer}.cpp
  Empty:
    kind: executable
    settings:Cxx:
      staticLinks:
        # THIS WORKS
        - build/arm64-apple-darwin_Release/ext.OFLib/${ar:OF}
        # THIS DOESNT
        - ${externalBuild:OF}${ar:OF}
      staticLinks[:linux]:
        - ${var:ofPath}/libs/${var:platform}/lib/libglm.a
        - ${var:ofPath}/libs/${var:platform}/lib/libtess2.a
        - ${var:ofPath}/libs/${var:platform}/lib/libkissfft-float.a
      staticLinks[:macos]:
        - ${var:ofPath}/libs/${var:platform}/lib/libglew.a
        - ${var:ofPath}/libs/${var:platform}/lib/libglfw3.a
        - ${var:ofPath}/libs/${var:platform}/lib/libtess2.a
        - ${var:ofPath}/libs/${var:platform}/lib/libFreeImage.a
        - ${var:ofPath}/libs/${var:platform}/lib/libpng16.a
        - ${var:ofPath}/libs/${var:platform}/lib/libglm.a
        - ${var:ofPath}/libs/${var:platform}/lib/libfreetype.a
        - ${var:ofPath}/libs/${var:platform}/lib/libbrotlidec.a
        - ${var:ofPath}/libs/${var:platform}/lib/libbrotlicommon.a
        - ${var:ofPath}/libs/${var:platform}/lib/liburiparser.a
        - ${var:ofPath}/libs/${var:platform}/lib/libpugixml.a
        - ${var:ofPath}/libs/${var:platform}/lib/librtaudio.a
      includeDirs:
        - ${var:ofPath}/libs/openFrameworks/**
        - ${var:ofPath}/libs/openFrameworks
        - src
    files:
      include:
        - src/main.cpp
        - src/ofApp.cpp
      exclude:
        - .DS_Store
        - .settings
        - .vscode
    copyFilesOnRun[:macos]: ${var:path}/bin/data
distribution:
  Empty:
    kind: bundle
    buildTargets: "*"
    exclude:
      - data/.gitkeep
    macosBundle:
      type: app
      icon: ${var:ofPath}/libs/openFrameworksCompiled/project/macos/of.icns
      infoPropertyList:
        CFBundleDevelopmentRegion: en-US
        CFBundleDisplayName: ${name}
        CFBundleExecutable: ${mainExecutable}
        CFBundleIconFile: ${icon}
        CFBundleIdentifier: com.developer.application
        CFBundleInfoDictionaryVersion: 6.0
        CFBundleName: ${bundleName}
        CFBundlePackageType: APPL
        CFBundleShortVersionString: 1.0.0
        CFBundleVersion: 1.0.0
        CFBundleSignature: ????
        LSMinimumSystemVersion: 10.8
        NSHighResolutionCapable: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdoneThe issue has been fixed and all related changes have been committed

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions