profile
viewpoint

hsdk123/Light.vn 25

Light.vn(ライト・ヴィエン)ビジュアルノベル系エンジン

ianhorswill/MKULTRA 12

An experimental game

hsdk123/Soul-Engine 4

総合物語エンジン、Soul Engine。科学と魔法の共存を立証する、世界と魂の錬金術。

hsdk123/corrade 0

C++11/C++14 multiplatform utility library

hsdk123/FireEmblem-KR 0

Fire Emblem Knowledge Base and Reasoner

hsdk123/Light.vn-js- 0

Light.vn ノベルエンジンjs版

hsdk123/Light.vn-testproject 0

Light.vn test project for platform checks

hsdk123/Lua 0

CMake based build of Lua 5.3.3

issue commentSpriteStudio/SpriteStudio6-SDK

Testの追加

了解しました、Coverageがたとえ1%だけだとしても、とりあえずTest Frameworkの構築とCIとの連携が出来ていれば、バグ等が発生、或いは機能提案などしたい際にユーザー側からのPRも出しやすくなるので、Coverage率自体はさておいてインフラの構築だけでもまずお願いできればうれしいです・・!

hsdk123

comment created time in a day

issue openedSpriteStudio/SpriteStudio6-SDK

Testの追加

要望が多く申し訳ありません。Repoコードを見る際にもう一つ気になる点はテストの不在です。 SDKの内部が複雑化していくに連れ、動作保証をしてくれる・バグの原因を探りやすくするための、Google Testなどを用いたテストの追加を要望します。

その延長線で、テストによるCode Coverageの数値を示してくれるページもあれば、よりSDKの信頼性もあがると思います。(参考:https://codecov.io/gh/mosra/magnum)

created time in 6 days

issue commentSpriteStudio/SpriteStudio6-SDK

メモリー管理とc++11 以上の使用

スイッチできる形

了解しました、確かに両方へのサポートに対応するにはそうした方が一番確実だと感じます。 いろいろと大変でしょうけど、更新を楽しみにします! 着手できる日付まで残していただきありがとうございます。

hsdk123

comment created time in 6 days

issue openedfmtlib/fmt

Proper way to disable exceptions

Hi, I was wondering if setting FMT_EXCEPTIONS to 0 would be the way to go, or if there's something else. I also thought it might be useful to have a cmake option to configure this as well.

created time in 12 days

issue closedMaximeHerpin/modular_tree

All node parameters greyed out

Hi, it's my first time using the addon and I'm noticing that all the node options are greyed out - what would be the problem?

image

closed time in 15 days

hsdk123

issue commentMaximeHerpin/modular_tree

All node parameters greyed out

Ah, nvm, seems I first needed to add a name before being able to do anything.

hsdk123

comment created time in 15 days

issue openedMaximeHerpin/modular_tree

All node parameters greyed out

Hi, it's my first time using the addon and I'm noticing that all the node options are greyed out - what would be the problem?

image

created time in 15 days

issue commentcameron314/concurrentqueue

msvc 2019 warnings

You're right. If these are optimizations we can make though, seems worthwhile in doing so.

hsdk123

comment created time in 24 days

issue openedcameron314/concurrentqueue

msvc 2019 warnings

C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3588): warning C4127: conditional expression is constant
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3588): note: consider using 'if constexpr' statement instead
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3636): note: see reference to function template instantiation 'void moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::aligned_free<U>(void *)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::ProducerBase
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3636): note: see reference to function template instantiation 'void moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::aligned_free<U>(void *)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::ProducerBase
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(853): note: see reference to function template instantiation 'void moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::destroy<moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::ProducerBase>(U *)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::ProducerBase
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(853): note: see reference to function template instantiation 'void moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::destroy<moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::ProducerBase>(U *)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::ProducerBase
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(845): note: while compiling class template member function 'moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::~ConcurrentQueue(void)'
  ..\..\..\src\Editor\30.Windows\00_main\mainwindow_ctrl.cpp(39): note: see reference to function template instantiation 'moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::~ConcurrentQueue(void)' being compiled
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code/90.Utility/ConcurrentFuncQueue/ConcurrentFuncQueue.h(27): note: see reference to class template instantiation 'moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>' being compiled
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3574): warning C4127: conditional expression is constant
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3574): note: consider using 'if constexpr' statement instead
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3597): note: see reference to function template instantiation 'void *moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::aligned_malloc<U>(unsigned __int64)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::Block
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3597): note: see reference to function template instantiation 'void *moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::aligned_malloc<U>(unsigned __int64)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::Block
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3028): note: see reference to function template instantiation 'U *moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::create_array<moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::Block>(unsigned __int64)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::Block
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3028): note: see reference to function template instantiation 'U *moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::create_array<moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::Block>(unsigned __int64)' being compiled
          with
          [
              U=moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::Block
          ]
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(3021): note: while compiling class template member function 'void moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::populate_initial_block_list(unsigned __int64)'
  C:\Users\daego\Desktop\Projects\Light.vn-multi\core\src\Code\99.External\concurrentqueue\concurrentqueue.h(808): note: see reference to function template instantiation 'void moodycamel::ConcurrentQueue<CoreUtility::ConcurrentFuncQueue::LambdaFunction,moodycamel::ConcurrentQueueDefaultTraits>::populate_initial_block_list(unsigned __int64)' being compiled

Looks like most of these are about potential uses of if constexpr

created time in 24 days

issue openedSpriteStudio/SpriteStudio6-SDK

メモリー管理とc++11 以上の使用

内部コードを見ていく中で気になった点がありまして、新たなIssueを作りました。

https://github.com/SpriteStudio/SpriteStudio6-SDK/blob/develop/Common/Helper/IsshTexture.h#L26

を含め、コードベースの多くのところに new, deleteとリファレンスカウンティングの痕跡が見られますが、 これらをみるとメモリーリークの可能性を感じ心配になるところがあります。

c++11以上で提供されるunique_ptr / shared_ptrの使用をお願いしたいところですが、 何かしらの理由でc++11以上のサポートが難しい場合は、少なくともc++03のshared_ptrライブラリーの使用などをお願いできればと思っております。

ゲームエンジンなどに組み込む場合は数千以上の個体を生成・破壊することも多く、結果的にメモリーリークの可能性はかなり重要な項目として保守的なスタンスを取らざるを得ないところがありますので、ご検討お願いできればうれしいです。

それから、class, structのほぼすべてが現状だとnamespaceに囲まれていないことも将来の維持補修が多少気になるので、改善できる余地があれば是非お願いしたいです。

created time in 25 days

issue openedSpriteStudio/SpriteStudio6-SDK

SDK組み込みの流れとドキュメント

現状だとSDKを外部コードに組み込むための流れが記されているドキュメントが不在している為、SDKのBuildフォルダー内のサンプルコードをこちら側で解釈しながら組み込むしかないように見えます。

これだとミスが発生しやすく、また将来的なSDK更新の方向性と異なる形での独自実装になる可能性なども高いので、 http://esotericsoftware.com/spine-cpp こういった形などでの「外部コードにSDKを組み込む流れ」が規格化されたドキュメントの追加を要望します。

これがあればまたSDKの使用を検討している・または使用中のユーザーからのAPI改善案などもあげやすくなると思われます。

created time in a month

issue commentSpriteStudio/SpriteStudio6-SDK

CMake Buildの整備

a.こちらでlatestリリースビルドを確認しましたところ1秒後のダウンを確認できませんでしたので直近のdevelop更新の可能性がありますので確認させていただきます。

b. Zipへのパスの可能性もありますが、こちらも確認させていただきます。ただ後述する変更の予定がありますためBatではなくpoweshell(Windows標準のZIPコマンドへの差し替えとなります)

了解しました、こちらは修正後また確認しますー

(a)につきましてはデータのリンクを取らせていただくかリポジトリに置くのか検討中でございます。

どちらも長短あると思うので、まずどこかにさえ上がっていれば確認が容易になると思います!

(b)につきまいては、過去の成果物であったViewerや他ツールやPythonのバインダについて外部ライブラリの使用があり、それらがGithubリポジトリとして存在無く、ホームページ後悔からのURL指定のDLとなっていたのが頭の痛いところでありました。
こちらViewer2に一本化することによりGithubにリポジトリにないライブラリ等が無くなる予定です。
また、prepareで構築していたいくつかのコマンドが無くなるはずです。いくらか改善されるかと思います。

了解しました、Viewer1/2に分かれていたことも少し疑問にしていたので、それまわりが一緒に整理されるのであれば一層わかりやすくなるかと思います。また、最新のドキュメントにもQtへdependencyが記されてある点も若干気になったので、より手軽な構成を目指す場合は

https://github.com/ocornut/imgui

などの使用もいいかもしれません。

hsdk123

comment created time in a month

issue commentSpriteStudio/SpriteStudio6-SDK

CMake Buildの整備

確認しました。スクリプトを使ったビルド流れの自動化は確かに便利ですね。 バグなのかは定かではないのですが、いくつかの問題があったので報告します。

a. Viewer2のデバッグビルド後、Viewer2.exeを実行させて一秒後にプログラムが落ちる。

b. release_win.batを使いリリースビルドを行う場合、Toolsの方にzipファイルが格納されると書いてあるが、何もない。

それからこれは問題ではなく改善意見です:

(a) ビルド後、SDKの仕組みなどを理解するためにViewerなどの動作を確認したいですが、 こちらのrepo内にViewerの動作確認用としてすぐ使えるsspjファイルがないようなので、 Resources/フォルダーなどを追加し動作確認に使えられるファイルの追加をお願いできればうれしいです。

(b) 現状の.batスクリプトを利用する場合ビルドdependencyがchocolateyなどを通して マシーン全域に設置されているように見えるので、やはり可能であればCMakeのFetchContentなどを 使いできる限りマシーンへの影響をSDKフォルダー内に抑えれたら理想的です。

hsdk123

comment created time in a month

issue commentSpriteStudio/SpriteStudio6-SDK

CMake Buildの整備

要約すると、SDKのrepoをcloneし、一つのCMake configureで少なくともviewerくらいは一度に楽にビルドできるようにした方がSDKの採用や発展にも繋がるだろうなと思いまして提案してみます!

hsdk123

comment created time in a month

issue openedSpriteStudio/SpriteStudio6-SDK

CMake Buildの整備

現状のドキュメントによるとglew, glfw, anttweakbarをそれぞれ個別にダウンロード・ビルドした後やっとviewerのビルドができる形になっております。(https://www.webtech.co.jp/help/ja/spritestudio/guide/output6/sdk/#viewer_build)

それよりは、CMakeのFetchContent機能などを使い、SDKのCMake Configureを行う際に自動的に該当github repoなどからコードをダウンロードし、viewerがそれぞれのlibraryをdependencyとして登録させた方がSDKを初めて触れる側としても便利で、また開発dependencyのversion 統一もできるように思いましてIssueを開いてみます。

created time in a month

pull request commentmosra/magnum-ci

Update git checkout branch before build

@mosra How does this look?

hsdk123

comment created time in a month

PR opened mosra/magnum-ci

Update git checkout branch before build

Just making a PR for a bug I realised on the windows build when making the mac build.

+1 -1

0 comment

1 changed file

pr created time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 95c4f524858a8a7919a8391a84ce3d294f4fb2fb

Update git checkout branch before build

view details

push time in a month

delete branch hsdk123/magnum-ci

delete branch : angle

delete time in a month

Pull request review commentmosra/magnum-ci

Mac Angle

+name: Angle3++on: [push, pull_request]++jobs:+  build:+    name: ${{ matrix.target }}+    runs-on: macos-latest+    strategy:+      matrix:+        target: ["mac"]+    env:+      # "If you are a non-googler you need to set DEPOT_TOOLS_WIN_TOOLCHAIN=0"+      DEPOT_TOOLS_WIN_TOOLCHAIN: 0+      # Bump this to fetch a newer version+      ANGLE_VERSION: 4134+    steps:+    - uses: actions/checkout@v1+    - name: Clone+      run: |+        git clone --depth=1 --branch chromium/${{ env.ANGLE_VERSION }} https://chromium.googlesource.com/angle/angle+    - name: Set up Python 2.7+      uses: actions/setup-python@v1+      with:+        python-version: 2.7+    - name: Dependencies+      run: |+        Invoke-WebRequest https://storage.googleapis.com/chrome-infra/depot_tools.zip -O depot_tools.zip+        7z x depot_tools.zip -o${{ github.workspace }}/depot_tools+        echo "::add-path::${{ github.workspace }}\depot_tools"+    - name: Configure+      run: |+        mkdir angle\out+        mkdir angle\out\Release+        copy args-${{ matrix.target }}.gn angle\out\Release\args.gn+    - name: Generate+      run: |+        cd angle+        python scripts/bootstrap.py+        gclient.bat sync+        git checkout master+        gn gen out/Release+    - name: Build+      run: |+        cd angle+        autoninja -C out/Release libEGL libGLESv2+    - name: Install+      run: |+        mkdir install+        mkdir install\lib+        mkdir install\bin+        mkdir install\include++        copy angle\out\Release\d3dcompiler_47.dll install\bin\+        copy angle\out\Release\libGLESv2.dll.lib install\lib\libGLESv2.lib+        copy angle\out\Release\libGLESv2.dll install\bin\+        copy angle\out\Release\libEGL.dll.lib install\lib\libEGL.lib+        copy angle\out\Release\libEGL.dll install\bin\+        xcopy /e angle\include\* install\include\+    - name: Upload artifacts+      uses: actions/upload-artifact@v1+      with:+        name: angle-${{ env.ANGLE_VERSION }}-${{ matrix.target }}+        path: install

Would make sense, otherwise you could go around and steal people's CI minutes :D

Makes sense, although in that case, I'm not sure what I should be doing now. It seems the only way I can get a workflow to trigger on even my fork is to add the yml through the action tab, and if I do so, it only allows me to add the file in either the master branch, or a completely new branch, thus not the angle branch which we're working on.

This all seems terribly roundabout to me.

hsdk123

comment created time in a month

pull request commentmosra/magnum-ci

Mac Angle

On a side note, seems I've managed to get something up and running:

https://github.com/hsdk123/magnum-ci/runs/835679187?check_suite_focus=true

Seems like we now only need to figure out the weirdnesses of getting a workflow registered.

hsdk123

comment created time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 37ca6eb78cf2f798a986a5568f9ee144e2e96374

Update args-mac.gn

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 37a2215c295468ebad6e504c98af472dd62b7cc2

Update args-mac.gn

view details

push time in a month

Pull request review commentmosra/magnum-ci

Mac Angle

+name: Angle3++on: [push, pull_request]++jobs:+  build:+    name: ${{ matrix.target }}+    runs-on: macos-latest+    strategy:+      matrix:+        target: ["mac"]+    env:+      # "If you are a non-googler you need to set DEPOT_TOOLS_WIN_TOOLCHAIN=0"+      DEPOT_TOOLS_WIN_TOOLCHAIN: 0+      # Bump this to fetch a newer version+      ANGLE_VERSION: 4134+    steps:+    - uses: actions/checkout@v1+    - name: Clone+      run: |+        git clone --depth=1 --branch chromium/${{ env.ANGLE_VERSION }} https://chromium.googlesource.com/angle/angle+    - name: Set up Python 2.7+      uses: actions/setup-python@v1+      with:+        python-version: 2.7+    - name: Dependencies+      run: |+        Invoke-WebRequest https://storage.googleapis.com/chrome-infra/depot_tools.zip -O depot_tools.zip+        7z x depot_tools.zip -o${{ github.workspace }}/depot_tools+        echo "::add-path::${{ github.workspace }}\depot_tools"+    - name: Configure+      run: |+        mkdir angle\out+        mkdir angle\out\Release+        copy args-${{ matrix.target }}.gn angle\out\Release\args.gn+    - name: Generate+      run: |+        cd angle+        python scripts/bootstrap.py+        gclient.bat sync+        git checkout master+        gn gen out/Release+    - name: Build+      run: |+        cd angle+        autoninja -C out/Release libEGL libGLESv2+    - name: Install+      run: |+        mkdir install+        mkdir install\lib+        mkdir install\bin+        mkdir install\include++        copy angle\out\Release\d3dcompiler_47.dll install\bin\+        copy angle\out\Release\libGLESv2.dll.lib install\lib\libGLESv2.lib+        copy angle\out\Release\libGLESv2.dll install\bin\+        copy angle\out\Release\libEGL.dll.lib install\lib\libEGL.lib+        copy angle\out\Release\libEGL.dll install\bin\+        xcopy /e angle\include\* install\include\+    - name: Upload artifacts+      uses: actions/upload-artifact@v1+      with:+        name: angle-${{ env.ANGLE_VERSION }}-${{ matrix.target }}+        path: install

This might sound a bit weird, but it looks as if you need to

a. go into actions
b. create a new workflow file through there

to be able to start getting that workflow file to trigger. If you just upload a new .yml file to the repo, it seems it doesn't get registered.

Would you happen to be able to create a mac.yml file in the repo? I'll try just editing that file and see what happens.

hsdk123

comment created time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 602b857a59c4ae8134ad535091c23c3ee202d636

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 2c1541ea6b4aacdf8e01ac57b5f68591a4e2cc02

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 09e711bcd6f9d5e2b8776fa87f00f73cd991ea94

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha a097907e12290fbc2ea61a34180566c09688de4e

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha b85ab10f1e96e01ddad1350778a695eb14c4ce49

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 50ae42d82f4ab1b4975103e28505d0f0272799df

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 093371bd5b2dee3dcdedb4d1cbf9360a3a712fc8

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 98e720f6f5c9a4d03a0fa6fefc5fe3b0867cd546

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 5d557ad20a01591170b2b49d29648149ad1daae9

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 0ccab0015840e25e1d621ad71c990b5ca08d1e2c

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 39e48c8713dd83825256a319a90c807a44887768

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha c6ce4f0ac902069f8fd81e9166ef4986af74bb3b

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 2ac18623f851d230dab942e0821bab6de2e66c47

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 09e0413453f6bba247196b5d0b8f0e932c2a5597

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 942933288a80e08b94f3e187f42edece08913d33

Revert mac.yml workflow name to Angle

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 162af1662b643713768bb7a0347821e49ba2037a

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha ea5d263989174d06f50fd2ad6450ec1eeb765dd0

Create args-mac.gn

view details

push time in a month

Pull request review commentmosra/magnum-ci

Mac Angle

+name: Angle3++on: [push, pull_request]++jobs:+  build:+    name: ${{ matrix.target }}+    runs-on: macos-latest+    strategy:+      matrix:+        target: ["mac"]+    env:+      # "If you are a non-googler you need to set DEPOT_TOOLS_WIN_TOOLCHAIN=0"+      DEPOT_TOOLS_WIN_TOOLCHAIN: 0+      # Bump this to fetch a newer version+      ANGLE_VERSION: 4134+    steps:+    - uses: actions/checkout@v1+    - name: Clone+      run: |+        git clone --depth=1 --branch chromium/${{ env.ANGLE_VERSION }} https://chromium.googlesource.com/angle/angle+    - name: Set up Python 2.7+      uses: actions/setup-python@v1+      with:+        python-version: 2.7+    - name: Dependencies+      run: |+        Invoke-WebRequest https://storage.googleapis.com/chrome-infra/depot_tools.zip -O depot_tools.zip+        7z x depot_tools.zip -o${{ github.workspace }}/depot_tools+        echo "::add-path::${{ github.workspace }}\depot_tools"+    - name: Configure+      run: |+        mkdir angle\out+        mkdir angle\out\Release+        copy args-${{ matrix.target }}.gn angle\out\Release\args.gn+    - name: Generate+      run: |+        cd angle+        python scripts/bootstrap.py+        gclient.bat sync+        git checkout master+        gn gen out/Release+    - name: Build+      run: |+        cd angle+        autoninja -C out/Release libEGL libGLESv2+    - name: Install+      run: |+        mkdir install+        mkdir install\lib+        mkdir install\bin+        mkdir install\include++        copy angle\out\Release\d3dcompiler_47.dll install\bin\+        copy angle\out\Release\libGLESv2.dll.lib install\lib\libGLESv2.lib+        copy angle\out\Release\libGLESv2.dll install\bin\+        copy angle\out\Release\libEGL.dll.lib install\lib\libEGL.lib+        copy angle\out\Release\libEGL.dll install\bin\+        xcopy /e angle\include\* install\include\+    - name: Upload artifacts+      uses: actions/upload-artifact@v1+      with:+        name: angle-${{ env.ANGLE_VERSION }}-${{ matrix.target }}+        path: install

Hmm... I've tried updating the file to a more minimal version and I still can't seem to see it reflected in this PR...

hsdk123

comment created time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 047daef95d9ca99e9dcf15c5fee7409eda98de82

Update mac.xml to minimal

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha d07ae690a25143f32c4411445bca627eea1afce8

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha e0bdab3f7fc096f66829013c2b54f05f0268769b

Update mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 0837e0fcce31ab4d0d544ba02616b9e5cd4e1d7e

Create mac.yml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 8626a185a1f5a9325d7d08ad29cd1bf94ff78bc9

Update mac.xml

view details

push time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 50cc9ff931f572b1a9e38522dedc0bb46b931a5c

Create main.yml

view details

push time in a month

pull request commentmosra/magnum-ci

Mac Angle

Not quite understanding why Angle/windows and Angle/windows-uwp are showing up as defaults.

hsdk123

comment created time in a month

PR opened mosra/magnum-ci

Mac Angle
+64 -0

0 comment

1 changed file

pr created time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha e6a7a94afd24a86af7358362a720b6985e47ae5a

Update mac.xml

view details

push time in a month

PR closed mosra/magnum-ci

Mac Angle
+64 -0

1 comment

1 changed file

hsdk123

pr closed time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 12c9c60485082f95a993f7a9f027c8134ae0a0d7

Update mac.xml

view details

push time in a month

pull request commentmosra/magnum-ci

Mac Angle

Need to first figure out how to get a mac build to pop up on the CI list...

hsdk123

comment created time in a month

PR opened mosra/magnum-ci

Mac Angle
+136 -0

0 comment

4 changed files

pr created time in a month

push eventhsdk123/magnum-ci

hsdk123

commit sha 18bb309199a02e007de5a234ca162863ecddde3a

Create mac.xml

view details

push time in a month

fork hsdk123/magnum-ci

Various CI jobs for building Magnum and its dependencies.

fork in a month

issue commentmosra/magnum

Compile issues on osx

I'm asking only because I assume you already built ANGLE for Mac yourself so you already know the magic incantations :)

Yup, it wasn't too complicated - gotcha, why don't I start on something then, I might ask a ton of questions along the way though...

hsdk123

comment created time in a month

issue commentmosra/magnum

Compile issues on osx

You mean Mac + ANGLE

Exactly

contribute a GitHub Workflows setup https://github.com/mosra/magnum-ci/tree/angle

It doesn't look too complicated, but I'm sadly not familiar with Github Workflows - how would I build / test? (if those are even the appropriate terms)

hsdk123

comment created time in a month

issue commentmosra/magnum

Compile issues on osx

XCode is a pain...

I can confirm things build! I get the feeling adding a CI build for this particular setup might help things as we move forward.

hsdk123

comment created time in a month

issue closedmosra/magnum-plugins

Compile issues on osx

Errors: use of undeclared identifier CORRADE_INTERNAL_ASSERT_UNREACHABLE in StbImageConverter.cpp (line 108)

I've pulled from Corrade master and am getting these issues.

closed time in a month

hsdk123

issue commentmosra/magnum-plugins

Compile issues on osx

Seems this was a false error due to the other bug in the magnum repo, closing.

hsdk123

comment created time in a month

issue commentmosra/magnum

Compile issues on osx

If I add that, I now get:


Showing All Errors Only
make: *** No rule to make target `/Users/hkim809/Desktop/SoulEngineProject/Light.vn-multi/core/magnum/src/Magnum/Shaders/AbstractVector2D.vert', needed by `/Users/hkim809/Desktop/SoulEngineProject/Light.vn-multi/core/build/magnum/src/Magnum/Shaders/resource_MagnumShaders_RCS.cpp'.  Stop.
hsdk123

comment created time in a month

issue commentmosra/magnum

Compile issues on osx

Seems I might also need to update line 493 in TextureState.cpp - can you confirm?

hsdk123

comment created time in a month

issue commentmosra/magnum

Compile issues on osx

Seems to fix most of the original issues, now I'm getting

No member named 'bufferTextureBound' in 'Magnum::GL::Implementation::TextureState'

(Bufer.cpp line 560)

What's interesting is that if I add #define CORRADE_TARGET_GLES on line 552, the error goes way, hence I'm assuming that for whatsoever reason CORRADE_TARGET_GLES isn't getting passed into MagnumGLObjects

hsdk123

comment created time in a month

issue commentmosra/magnum-plugins

Compile issues on osx

Are you really really really sure it's not pulling in some old version of Assert.h? :)

That was my original guess as well, but xcode seems to be pointing to the file that has the declaration, so I'm not too sure what's happening...

I'll keep digging a bit more on my side as well

hsdk123

comment created time in a month

issue commentmosra/magnum

Compile issues on osx

Nice, I'm running against ANGLE : b

hsdk123

comment created time in a month

issue commentmosra/magnum

Compile issues on osx

It looks as if the ARB issues are coming from the fact that I'm trying to build against opengl es, and the ifdef doesn't seem to have been placed in TextureState.cpp

I'm unsure of the undefined template issue.

hsdk123

comment created time in a month

issue openedmosra/magnum

Compile issues on osx

Hi, I'm trying to compile on osx and am getting the following issues for master:

Implicit instantiation of undefined template 'Magnum::Math::BoolVector<80>' (TextureState.h)

No member named 'ARB' in namespace 'Magnum::GL::Extensions'; did you mean 'ARM'? (TextureState.cpp)

created time in a month

issue commentmosra/magnum-plugins

Compile issues on osx

Interesting thing is that even if I add #include <Corrade/Utility/Assert.h> manually, I still get the same compiler error. I'm assuming the macro isn't being properly declared.

hsdk123

comment created time in a month

issue openedmosra/magnum-plugins

Compile issues on osx

Errors: use of undeclared identifier CORRADE_INTERNAL_ASSERT_UNREACHABLE in StbImageConverter.cpp

too few arguments provided to function-like macro invocation CORRADE_ASSERT_UNREACHABLE() in AbstractObject.cpp (MagnumGLObjects)

created time in a month

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

Just for reference, I've been trying repeatedly over the last couple of weeks to get things to compile on msvc without the warnings, but it doesn't seem to happen without manually defining AL_LIBTYPE_STATIC.

I'm unsure as to why this is happening, but I understand that there might not be anything else possible through magnum automatically. I'll reopen this if I can maybe find a workaround, as of now, I can agree this might not be high priority.

hsdk123

comment created time in a month

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

What's more interesting is that if I do the explicit addition

warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library

This also goes away.

hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

What's interesting is that if I explicitly readd

add_compile_definitions(AL_LIBTYPE_STATIC)

then the LNK4217 warnings go away

hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

I get the following logs, but I can confirm that the build (with master) completes without the definition!

C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alGetString' defined in 'OpenAL32.lib(state.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl Magnum::Audio::Context::extensionStrings(void)const " (?extensionStrings@Context@Audio@Magnum@@QEBA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcCreateContext' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcMakeContextCurrent' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcDestroyContext' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcOpenDevice' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcCloseDevice' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcGetError' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcGetString' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Magnum::Audio::Context::deviceSpecifierString(void)const " (?deviceSpecifierString@Context@Audio@Magnum@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcGetIntegerv' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: enum Magnum::Audio::Context::HrtfStatus __cdecl Magnum::Audio::Context::hrtfStatus(void)const " (?hrtfStatus@Context@Audio@Magnum@@QEBA?AW4HrtfStatus@123@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alBufferiv' defined in 'OpenAL32.lib(buffer.cpp.obj)' is imported by 'MagnumAudio.lib(Buffer.cpp.obj)' in function '"public: class Magnum::Audio::Buffer & __cdecl Magnum::Audio::Buffer::setLoopPoints(int,int)" (?setLoopPoints@Buffer@Audio@Magnum@@QEAAAEAV123@HH@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alGetBufferi' defined in 'OpenAL32.lib(buffer.cpp.obj)' is imported by 'MagnumAudio.lib(Buffer.cpp.obj)' in function '"public: int __cdecl Magnum::Audio::Buffer::bitDepth(void)const " (?bitDepth@Buffer@Audio@Magnum@@QEBAHXZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourcei' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::setBuffer(class Magnum::Audio::Buffer *)" (?setBuffer@Source@Audio@Magnum@@QEAAAEAV123@PEAVBuffer@23@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alGetSourcei' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: unsigned __int64 __cdecl Magnum::Audio::Source::unqueueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?unqueueBuffers@Source@Audio@Magnum@@QEAA_KV?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourcePlayv' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::play(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?play@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceStopv' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::stop(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?stop@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceRewindv' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::rewind(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?rewind@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourcePausev' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::pause(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?pause@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceQueueBuffers' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::queueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?queueBuffers@Source@Audio@Magnum@@QEAAAEAV123@V?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceUnqueueBuffers' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: unsigned __int64 __cdecl Magnum::Audio::Source::unqueueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?unqueueBuffers@Source@Audio@Magnum@@QEAA_KV?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)'
  [347/349] Automatic MOC and UIC for target LightEditor
  [348/348] Linking CXX executable ..\..\..\bin-Windows-RelWithDebInfo8\LightEditor.exe
  LINK : ..\..\..\bin-Windows-RelWithDebInfo8\LightEditor.exe not found or not built by the last incremental link; performing full link
     Creating library ..\..\..\bin-Windows-RelWithDebInfo8\LightEditor.lib and object ..\..\..\bin-Windows-RelWithDebInfo8\LightEditor.exp
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LIBCMT.lib(initializers.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alGetString' defined in 'OpenAL32.lib(state.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl Magnum::Audio::Context::extensionStrings(void)const " (?extensionStrings@Context@Audio@Magnum@@QEBA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcCreateContext' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcMakeContextCurrent' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcDestroyContext' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcOpenDevice' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcCloseDevice' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcGetError' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcGetString' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Magnum::Audio::Context::deviceSpecifierString(void)const " (?deviceSpecifierString@Context@Audio@Magnum@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alcGetIntegerv' defined in 'OpenAL32.lib(alc.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: enum Magnum::Audio::Context::HrtfStatus __cdecl Magnum::Audio::Context::hrtfStatus(void)const " (?hrtfStatus@Context@Audio@Magnum@@QEBA?AW4HrtfStatus@123@XZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alBufferiv' defined in 'OpenAL32.lib(buffer.cpp.obj)' is imported by 'MagnumAudio.lib(Buffer.cpp.obj)' in function '"public: class Magnum::Audio::Buffer & __cdecl Magnum::Audio::Buffer::setLoopPoints(int,int)" (?setLoopPoints@Buffer@Audio@Magnum@@QEAAAEAV123@HH@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alGetBufferi' defined in 'OpenAL32.lib(buffer.cpp.obj)' is imported by 'MagnumAudio.lib(Buffer.cpp.obj)' in function '"public: int __cdecl Magnum::Audio::Buffer::bitDepth(void)const " (?bitDepth@Buffer@Audio@Magnum@@QEBAHXZ)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourcei' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::setBuffer(class Magnum::Audio::Buffer *)" (?setBuffer@Source@Audio@Magnum@@QEAAAEAV123@PEAVBuffer@23@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alGetSourcei' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: unsigned __int64 __cdecl Magnum::Audio::Source::unqueueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?unqueueBuffers@Source@Audio@Magnum@@QEAA_KV?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourcePlayv' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::play(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?play@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceStopv' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::stop(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?stop@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceRewindv' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::rewind(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?rewind@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourcePausev' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: static void __cdecl Magnum::Audio::Source::pause(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?pause@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceQueueBuffers' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::queueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?queueBuffers@Source@Audio@Magnum@@QEAAAEAV123@V?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)'
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alSourceUnqueueBuffers' defined in 'OpenAL32.lib(source.cpp.obj)' is imported by 'MagnumAudio.lib(Source.cpp.obj)' in function '"public: unsigned __int64 __cdecl Magnum::Audio::Source::unqueueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?unqueueBuffers@Source@Audio@Magnum@@QEAA_KV?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)'
hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

I don't seem to see the define inside here, but here are the 2 files: OpenALConfig.cmake

# Generated by CMake

if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
   message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------

# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)

# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget OpenAL::OpenAL)
  list(APPEND _expectedTargets ${_expectedTarget})
  if(NOT TARGET ${_expectedTarget})
    list(APPEND _targetsNotDefined ${_expectedTarget})
  endif()
  if(TARGET ${_expectedTarget})
    list(APPEND _targetsDefined ${_expectedTarget})
  endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
  unset(_targetsDefined)
  unset(_targetsNotDefined)
  unset(_expectedTargets)
  set(CMAKE_IMPORT_FILE_VERSION)
  cmake_policy(POP)
  return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
  message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)


# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
  set(_IMPORT_PREFIX "")
endif()

# Create imported target OpenAL::OpenAL
add_library(OpenAL::OpenAL STATIC IMPORTED)

set_target_properties(OpenAL::OpenAL PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include/AL"
  INTERFACE_LINK_LIBRARIES "C:/Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/WinMM.Lib"
)

if(CMAKE_VERSION VERSION_LESS 2.8.12)
  message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()

# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/OpenALConfig-*.cmake")
foreach(f ${CONFIG_FILES})
  include(${f})
endforeach()

# Cleanup temporary variables.
set(_IMPORT_PREFIX)

# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
  foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
    if(NOT EXISTS "${file}" )
      message(FATAL_ERROR "The imported target \"${target}\" references the file
   \"${file}\"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   \"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
    endif()
  endforeach()
  unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)

# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.

# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

OpenALConfig-relwithdebinfo.cmake

#----------------------------------------------------------------
# Generated CMake target import file for configuration "RelWithDebInfo".
#----------------------------------------------------------------

# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)

# Import target "OpenAL::OpenAL" for configuration "RelWithDebInfo"
set_property(TARGET OpenAL::OpenAL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELWITHDEBINFO)
set_target_properties(OpenAL::OpenAL PROPERTIES
  IMPORTED_LINK_INTERFACE_LANGUAGES_RELWITHDEBINFO "CXX"
  IMPORTED_LOCATION_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/OpenAL32.lib"
  )

list(APPEND _IMPORT_CHECK_TARGETS OpenAL::OpenAL )
list(APPEND _IMPORT_CHECK_FILES_FOR_OpenAL::OpenAL "${_IMPORT_PREFIX}/lib/OpenAL32.lib" )

# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

hsdk123

comment created time in 2 months

issue commentmosra/toolchains

Unable to import APK through Android Studio

Actually not really, Android Studio and Gradle were a pain and I couldn't even get things to build.... I did however spend about a week though looking through what should be happening, here are a couple of links I jotted down along the way:

  • Android Studio can't find dex. Reference implementation:
    https://github.com/floooh/fips/blob/master/tools/android-create-apk.py#L142

  • Android apk stucture:
    https://en.wikipedia.org/wiki/Android_application_package

  • Android manifest: https://developer.android.com/guide/topics/manifest/manifest-intro.html

  • Android appt doesn't allow non-ascii filenames to be packaged:
    https://stackoverflow.com/questions/10543713/mono-for-android-unicode-assets-file-names-cant-be-packaged https://elinux.org/Android_aapt

  • Check app2 at some point (might fix non-ascii filename problem)
    https://developer.android.com/studio/command-line/aapt2

  • Android apk building through cmake
    https://github.com/Discordia/android-cmake/blob/master/android.apk.cmake
    https://github.com/Discordia/android-cmake-example/tree/master/android
    https://github.com/PixelLightFoundation/pixellight/blob/master/cmake/Android/Apk.cmake
    https://github.com/hunter-packages/android-apk/blob/master/AndroidApk.cmake
    https://github.com/floooh/fips/blob/master/tools/android-create-apk.py

hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

The openal-soft maintainer got back super quick, it seems adding

add_compile_definitions(AL_LIBTYPE_STATIC)

fixes the build (and I could get rid of the extra target_link_dependency) - it looks as if magnum would need to add the compile option in the event we use a static build of openal.

hsdk123

comment created time in 2 months

issue commentkcat/openal-soft

Issue with linking static version of openal-soft to external projects

Nice, that worked! Might be nice to add that as a comment next to the libtype option

hsdk123

comment created time in 2 months

issue commentkcat/openal-soft

Issue with linking static version of openal-soft to external projects

Reference: https://github.com/mosra/magnum/issues/412

hsdk123

comment created time in 2 months

issue openedkcat/openal-soft

Issue with linking static version of openal-soft to external projects

Hi, I seem to see an issue with linking the static version of openal-soft to external projects. I get unresolved symbols like the below:

  [5/37] Linking CXX executable ..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.exe
  FAILED: ../../../bin-Windows-RelWithDebInfo8-cored/LightApp.exe 
  cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=src\App\CMakeFiles\LightApp.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\mt.exe --manifests ..\..\..\config\Windows.manifest -- C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\LightApp.rsp  /out:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.exe /implib:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.lib /pdb:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.pdb /version:0.0  /machine:x64 /debug /INCREMENTAL /subsystem:windows  && cmd.exe /C "cd /D C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\src\App && powershell -noprofile -executionpolicy Bypass -file C:/Users/daego/Desktop/DevTools/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary C:/Users/daego/Desktop/Projects/Light.vn-multi/core/bin-Windows-RelWithDebInfo8-cored/LightApp.exe -installedDir C:/Users/daego/Desktop/DevTools/vcpkg/installed/x64-windows/bin -OutVariable out""
  LINK Pass 1: command "C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\LightApp.rsp /out:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.exe /implib:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.lib /pdb:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:windows /MANIFEST /MANIFESTFILE:src\App\CMakeFiles\LightApp.dir/intermediate.manifest src\App\CMakeFiles\LightApp.dir/manifest.res" failed (exit code 1120) with the following output:
     Creating library ..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.lib and object ..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.exp
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(AudioMgr.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGenBuffers referenced in function "public: __cdecl Magnum::Audio::Buffer::Buffer(void)" (??0Buffer@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGenBuffers
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(AudioMgr.cpp.obj) : error LNK2019: unresolved external symbol __imp_alDeleteBuffers referenced in function "public: __cdecl Magnum::Audio::Buffer::~Buffer(void)" (??1Buffer@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alDeleteBuffers
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(AudioData.cpp.obj) : error LNK2019: unresolved external symbol __imp_alBufferData referenced in function "public: class Magnum::Audio::Buffer & __cdecl Magnum::Audio::Buffer::setData(enum Magnum::Audio::BufferFormat,class Corrade::Containers::ArrayView<void const >,int)" (?setData@Buffer@Audio@Magnum@@QEAAAEAV123@W4BufferFormat@23@V?$ArrayView@$$CBX@Containers@Corrade@@H@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alBufferData
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGenSources referenced in function "public: __cdecl Magnum::Audio::Source::Source(void)" (??0Source@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGenSources
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alDeleteSources referenced in function "public: __cdecl Magnum::Audio::Source::~Source(void)" (??1Source@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alDeleteSources
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcef referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::setGain(float)" (?setGain@Source@Audio@Magnum@@QEAAAEAV123@M@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alSourcef
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcei referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::setLooping(bool)" (?setLooping@Source@Audio@Magnum@@QEAAAEAV123@_N@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2001: unresolved external symbol __imp_alSourcei
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetSourcef referenced in function "public: float __cdecl Magnum::Audio::Source::gain(void)const " (?gain@Source@Audio@Magnum@@QEBAMXZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGetSourcef
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetSourcei referenced in function "public: bool __cdecl Magnum::Audio::Source::isLooping(void)const " (?isLooping@Source@Audio@Magnum@@QEBA_NXZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGetSourcei
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGetSourcei
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePlay referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::play(void)" (?play@Source@Audio@Magnum@@QEAAAEAV123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alSourcePlay
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceStop referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::stop(void)" (?stop@Source@Audio@Magnum@@QEAAAEAV123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePause referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::pause(void)" (?pause@Source@Audio@Magnum@@QEAAAEAV123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetString referenced in function "public: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl Magnum::Audio::Context::extensionStrings(void)const " (?extensionStrings@Context@Audio@Magnum@@QEBA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcCreateContext referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcMakeContextCurrent referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcDestroyContext referenced in function "public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcOpenDevice referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcCloseDevice referenced in function "public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcGetError referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcGetString referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Magnum::Audio::Context::deviceSpecifierString(void)const " (?deviceSpecifierString@Context@Audio@Magnum@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcGetIntegerv referenced in function "public: enum Magnum::Audio::Context::HrtfStatus __cdecl Magnum::Audio::Context::hrtfStatus(void)const " (?hrtfStatus@Context@Audio@Magnum@@QEBA?AW4HrtfStatus@123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Buffer.cpp.obj) : error LNK2019: unresolved external symbol __imp_alBufferiv referenced in function "public: class Magnum::Audio::Buffer & __cdecl Magnum::Audio::Buffer::setLoopPoints(int,int)" (?setLoopPoints@Buffer@Audio@Magnum@@QEAAAEAV123@HH@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Buffer.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetBufferi referenced in function "public: int __cdecl Magnum::Audio::Buffer::bitDepth(void)const " (?bitDepth@Buffer@Audio@Magnum@@QEBAHXZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePlayv referenced in function "public: static void __cdecl Magnum::Audio::Source::play(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?play@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceStopv referenced in function "public: static void __cdecl Magnum::Audio::Source::stop(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?stop@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceRewindv referenced in function "public: static void __cdecl Magnum::Audio::Source::rewind(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?rewind@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePausev referenced in function "public: static void __cdecl Magnum::Audio::Source::pause(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?pause@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceQueueBuffers referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::queueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?queueBuffers@Source@Audio@Magnum@@QEAAAEAV123@V?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceUnqueueBuffers referenced in function "public: unsigned __int64 __cdecl Magnum::Audio::Source::unqueueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?unqueueBuffers@Source@Audio@Magnum@@QEAA_KV?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\bin-Windows-RelWithDebInfo8-cored\LightApp.exe : fatal error LNK1120: 29 unresolved externals
  ninja: build stopped: subcommand failed.

Build All failed.

This does not happen when linking against the dynamic build, and I also notice vcpkg doing something peculiar depending on whether openal is built statically or not: https://github.com/microsoft/vcpkg/blob/master/ports/openal-soft/dont-export-symbols-in-static-build.patch

Would it be possible to get some feedback?

created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

Might potentially be faster to just ask the maintainer of openal soft, he (she?) seemed pretty fast with replies.

hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

hand-built static version Yup, I'm using the hand-built static version, and with the updated FindOpenAL. Not sure why vcpkg is coming up.

I can confirm that this finishes the cmake generate portion without problem, although I needed to copy the FindOpenAL.cmake inside magnum/modules into my top level modules/

find_package(OpenAL REQUIRED)
target_link_libraries(LightApp ... OpenAL::OpenAL)

However, even after doing this, and rebuilding, I still get the same unresolved symbol errors. I get the feeling the error's somewhere else

hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

(this is when I explicitly add OpenAL::OpenAL as a link dependency)

hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

Hmm, interesting... Would you be able to make sense of this?

1> [CMake] CMake Error at C:/Users/daego/Desktop/DevTools/vcpkg/scripts/buildsystems/vcpkg.cmake:188 (_add_executable):
1> [CMake]   Target "LightApp" links to target "OpenAL::OpenAL" but the target was not
1> [CMake]   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
1> [CMake]   an ALIAS target is missing?
hsdk123

comment created time in 2 months

issue commentmosra/magnum

Issues linking when linking against static version of OpenAL

Good to see we're pushing through this! I'm still getting the undefined symbols with the static build:

  FAILED: ../../../bin-Windows-RelWithDebInfo8-cored/LightApp.exe 
  cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=src\App\CMakeFiles\LightApp.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\mt.exe --manifests ..\..\..\config\Windows.manifest -- C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\LightApp.rsp  /out:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.exe /implib:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.lib /pdb:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.pdb /version:0.0  /machine:x64 /debug /INCREMENTAL /subsystem:windows  && cmd.exe /C "cd /D C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\src\App && powershell -noprofile -executionpolicy Bypass -file C:/Users/daego/Desktop/DevTools/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary C:/Users/daego/Desktop/Projects/Light.vn-multi/core/bin-Windows-RelWithDebInfo8-cored/LightApp.exe -installedDir C:/Users/daego/Desktop/DevTools/vcpkg/installed/x64-windows/bin -OutVariable out""
  LINK Pass 1: command "C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\LightApp.rsp /out:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.exe /implib:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.lib /pdb:..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:windows /MANIFEST /MANIFESTFILE:src\App\CMakeFiles\LightApp.dir/intermediate.manifest src\App\CMakeFiles\LightApp.dir/manifest.res" failed (exit code 1120) with the following output:
     Creating library ..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.lib and object ..\..\..\bin-Windows-RelWithDebInfo8-cored\LightApp.exp
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(AudioMgr.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGenBuffers referenced in function "public: __cdecl Magnum::Audio::Buffer::Buffer(void)" (??0Buffer@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGenBuffers
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(AudioMgr.cpp.obj) : error LNK2019: unresolved external symbol __imp_alDeleteBuffers referenced in function "public: __cdecl Magnum::Audio::Buffer::~Buffer(void)" (??1Buffer@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alDeleteBuffers
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(AudioData.cpp.obj) : error LNK2019: unresolved external symbol __imp_alBufferData referenced in function "public: class Magnum::Audio::Buffer & __cdecl Magnum::Audio::Buffer::setData(enum Magnum::Audio::BufferFormat,class Corrade::Containers::ArrayView<void const >,int)" (?setData@Buffer@Audio@Magnum@@QEAAAEAV123@W4BufferFormat@23@V?$ArrayView@$$CBX@Containers@Corrade@@H@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alBufferData
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGenSources referenced in function "public: __cdecl Magnum::Audio::Source::Source(void)" (??0Source@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGenSources
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alDeleteSources referenced in function "public: __cdecl Magnum::Audio::Source::~Source(void)" (??1Source@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alDeleteSources
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcef referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::setGain(float)" (?setGain@Source@Audio@Magnum@@QEAAAEAV123@M@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alSourcef
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcei referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::setLooping(bool)" (?setLooping@Source@Audio@Magnum@@QEAAAEAV123@_N@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2001: unresolved external symbol __imp_alSourcei
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetSourcef referenced in function "public: float __cdecl Magnum::Audio::Source::gain(void)const " (?gain@Source@Audio@Magnum@@QEBAMXZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGetSourcef
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetSourcei referenced in function "public: bool __cdecl Magnum::Audio::Source::isLooping(void)const " (?isLooping@Source@Audio@Magnum@@QEBA_NXZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGetSourcei
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2001: unresolved external symbol __imp_alGetSourcei
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePlay referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::play(void)" (?play@Source@Audio@Magnum@@QEAAAEAV123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(VideoBuffer.cpp.obj) : error LNK2001: unresolved external symbol __imp_alSourcePlay
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceStop referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::stop(void)" (?stop@Source@Audio@Magnum@@QEAAAEAV123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MyCore.lib(Sound.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePause referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::pause(void)" (?pause@Source@Audio@Magnum@@QEAAAEAV123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetString referenced in function "public: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl Magnum::Audio::Context::extensionStrings(void)const " (?extensionStrings@Context@Audio@Magnum@@QEBA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcCreateContext referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcMakeContextCurrent referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcDestroyContext referenced in function "public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcOpenDevice referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcCloseDevice referenced in function "public: __cdecl Magnum::Audio::Context::~Context(void)" (??1Context@Audio@Magnum@@QEAA@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcGetError referenced in function "public: bool __cdecl Magnum::Audio::Context::tryCreate(class Magnum::Audio::Context::Configuration const &)" (?tryCreate@Context@Audio@Magnum@@QEAA_NAEBVConfiguration@123@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcGetString referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Magnum::Audio::Context::deviceSpecifierString(void)const " (?deviceSpecifierString@Context@Audio@Magnum@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Context.cpp.obj) : error LNK2019: unresolved external symbol __imp_alcGetIntegerv referenced in function "public: enum Magnum::Audio::Context::HrtfStatus __cdecl Magnum::Audio::Context::hrtfStatus(void)const " (?hrtfStatus@Context@Audio@Magnum@@QEBA?AW4HrtfStatus@123@XZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Buffer.cpp.obj) : error LNK2019: unresolved external symbol __imp_alBufferiv referenced in function "public: class Magnum::Audio::Buffer & __cdecl Magnum::Audio::Buffer::setLoopPoints(int,int)" (?setLoopPoints@Buffer@Audio@Magnum@@QEAAAEAV123@HH@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Buffer.cpp.obj) : error LNK2019: unresolved external symbol __imp_alGetBufferi referenced in function "public: int __cdecl Magnum::Audio::Buffer::bitDepth(void)const " (?bitDepth@Buffer@Audio@Magnum@@QEBAHXZ)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePlayv referenced in function "public: static void __cdecl Magnum::Audio::Source::play(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?play@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceStopv referenced in function "public: static void __cdecl Magnum::Audio::Source::stop(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?stop@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceRewindv referenced in function "public: static void __cdecl Magnum::Audio::Source::rewind(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?rewind@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourcePausev referenced in function "public: static void __cdecl Magnum::Audio::Source::pause(class std::vector<class std::reference_wrapper<class Magnum::Audio::Source>,class std::allocator<class std::reference_wrapper<class Magnum::Audio::Source> > > const &)" (?pause@Source@Audio@Magnum@@SAXAEBV?$vector@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@V?$allocator@V?$reference_wrapper@VSource@Audio@Magnum@@@std@@@2@@std@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceQueueBuffers referenced in function "public: class Magnum::Audio::Source & __cdecl Magnum::Audio::Source::queueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?queueBuffers@Source@Audio@Magnum@@QEAAAEAV123@V?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release-Cored\MagnumAudio.lib(Source.cpp.obj) : error LNK2019: unresolved external symbol __imp_alSourceUnqueueBuffers referenced in function "public: unsigned __int64 __cdecl Magnum::Audio::Source::unqueueBuffers(class Corrade::Containers::ArrayView<class Corrade::Containers::Reference<class Magnum::Audio::Buffer> >)" (?unqueueBuffers@Source@Audio@Magnum@@QEAA_KV?$ArrayView@V?$Reference@VBuffer@Audio@Magnum@@@Containers@Corrade@@@Containers@Corrade@@@Z)
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\bin-Windows-RelWithDebInfo8-cored\LightApp.exe : fatal error LNK1120: 29 unresolved externals
  ninja: build stopped: subcommand failed.

Build All failed.
hsdk123

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

OpenALConfig.cmake:

# Generated by CMake

if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
   message(FATAL_ERROR "CMake >= 2.6.0 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------

# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)

# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
foreach(_expectedTarget OpenAL::OpenAL)
  list(APPEND _expectedTargets ${_expectedTarget})
  if(NOT TARGET ${_expectedTarget})
    list(APPEND _targetsNotDefined ${_expectedTarget})
  endif()
  if(TARGET ${_expectedTarget})
    list(APPEND _targetsDefined ${_expectedTarget})
  endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
  unset(_targetsDefined)
  unset(_targetsNotDefined)
  unset(_expectedTargets)
  set(CMAKE_IMPORT_FILE_VERSION)
  cmake_policy(POP)
  return()
endif()
if(NOT "${_targetsDefined}" STREQUAL "")
  message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
endif()
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)


# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
  set(_IMPORT_PREFIX "")
endif()

# Create imported target OpenAL::OpenAL
add_library(OpenAL::OpenAL SHARED IMPORTED)

set_target_properties(OpenAL::OpenAL PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include/AL"
)

# Load information for each installed configuration.
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
file(GLOB CONFIG_FILES "${_DIR}/OpenALConfig-*.cmake")
foreach(f ${CONFIG_FILES})
  include(${f})
endforeach()

# Cleanup temporary variables.
set(_IMPORT_PREFIX)

# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
  foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
    if(NOT EXISTS "${file}" )
      message(FATAL_ERROR "The imported target \"${target}\" references the file
   \"${file}\"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   \"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
    endif()
  endforeach()
  unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()
unset(_IMPORT_CHECK_TARGETS)

# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.

# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

OpenALConfig-relwithdebinfo.cmake

#----------------------------------------------------------------
# Generated CMake target import file for configuration "RelWithDebInfo".
#----------------------------------------------------------------

# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)

# Import target "OpenAL::OpenAL" for configuration "RelWithDebInfo"
set_property(TARGET OpenAL::OpenAL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELWITHDEBINFO)
set_target_properties(OpenAL::OpenAL PROPERTIES
  IMPORTED_IMPLIB_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/OpenAL32.lib"
  IMPORTED_LOCATION_RELWITHDEBINFO "${_IMPORT_PREFIX}/bin/OpenAL32.dll"
  )

list(APPEND _IMPORT_CHECK_TARGETS OpenAL::OpenAL )
list(APPEND _IMPORT_CHECK_FILES_FOR_OpenAL::OpenAL "${_IMPORT_PREFIX}/lib/OpenAL32.lib" "${_IMPORT_PREFIX}/bin/OpenAL32.dll" )

# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

I think I've found the reason. It looks as if the cmake file is hitting here https://github.com/mosra/magnum/blob/master/modules/FindOpenAL.cmake#L89

and just returning, never reaching the dll find logic.

mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

Oh wait, nvm....

mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

Wait a sec... so it seems that the FindOpenAL.cmake file bundled in magnum/modules isn't being used at all, do I need to copy it in to my local modules/?

mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

extlibs/
    install-<custom_name depending on bits>/
        bin/OpenAL32.dll
        lib/OpenAL32.lib
        cmake/
        include/
        share/
mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

Using the repo here: https://github.com/kcat/openal-soft

mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

I've tried the NAMES OpenAL32.dll soft_oal.dll change, it seems it doesn't work.

OpenAL Soft

Yup! To give a bit more info, I've renamed the output directory to be a custom name, and I'm building it by hand through the cmakelists the repo provides, I'm guessing the latter would be the issue?

mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

It looks as if OPENAL_DLL_RELEASE doesn't get populated with my current flow.

mosra

comment created time in 2 months

issue commentmosra/magnum

Rewrite FindOpenAL so it works with add_subdirectory'd OpenAL Soft sources

Nice to see progress on this! It seems to fail with my current setup. I add the paths to openal32.dll and openal32.lib to CMAKE_PREFIX_PATH, and while cmakelists succeeds to find the .lib, it doesn't copy the .dll into the output directory automatically.

mosra

comment created time in 2 months

push eventhsdk123/magnum-plugins

Squareys

commit sha a710ecd37bf7e5dbbaa0b54f398406a4647650e8

TinyGltfImporter: Support texture UV layers in materials Signed-off-by: Squareys <squareys@googlemail.com>

view details

Squareys

commit sha 4afa57c97397aaf9960c0497a4ba43a89204dbf9

AssimpImporter: Support texture UV layers in materials Signed-off-by: Squareys <squareys@googlemail.com>

view details

Vladimír Vondruš

commit sha 98254ab4a966fbbf3d4b6f72d675fe151ea0a481

AssimpImporter: minor.

view details

Vladimír Vondruš

commit sha cd7ea48c78ddb38f0e3491c8a41087e95be9a289

doc: updated changelog.

view details

Vladimír Vondruš

commit sha ae11734a204fbbbead5d55101407e6c2d167b572

doc: forgot to list this dependency.

view details

Vladimír Vondruš

commit sha fda6db4159cb342760c83c186c4030e96564e2b1

modules: update FindMagnum.cmake.

view details

Vladimír Vondruš

commit sha 0cbc47088964d3107685241f70d3a30be4ac7883

modules: prepare FindMagnumPlugins for scene converters.

view details

Vladimír Vondruš

commit sha 485ca938a7c944e9e2d69f4de2b434df29c4113f

New StanfordSceneConverter plugin for writing PLY files.

view details

Vladimír Vondruš

commit sha 2e374419f25f1fcc37c76d6c515c8478c2478664

PrimitiveImporter: exclude an unreachable line from coverage.

view details

Vladimír Vondruš

commit sha d6bf0500bfec46e4c25139e39bcc0112bd4b8d21

doc: unify behavior/limitations docs for all plugins. Done for the new File Formats tables.

view details

sheerluck

commit sha 2de167fd848848df658b848930ae5322f6c7065c

package/gentoo: properly install plugin binaries.

view details

Vladimír Vondruš

commit sha 975e2d326c08ddb5dfa1c753531b2e3b2276f56f

doc: update changelog and credits.

view details

Vladimír Vondruš

commit sha 908595bb127aa678c6a1132091bffe0349018190

StanfordSceneConverter: MSTF WVC!

view details

Vladimír Vondruš

commit sha 8e21c2f87a8492ba016b289b1d08c88f971223e9

StlImporter,StanfordImporter: avoid an extra copy when opening files. With current importer interfaces we can't assume anything about lifetime of views passed to doOpenData() and thus have to make a copy. But not for files -- until now, this was taken care of by the base implementation, which called into doOpenData() with full contents of the loaded file (and then the plugins made a copy). With doOpenFile() implemented on the plugin side we can avoid that copy, as we're owners of the array and thus can avoid it going out of scope at the end of the openFile() call.

view details

Vladimír Vondruš

commit sha f3e222f7f91a0ecbae3b0eea1936e517e0301b1f

StlImporter: minor.

view details

Vladimír Vondruš

commit sha e013040d4dd4f6ecd16a713c56d626e60212dbdc

StlImporter: add an ability to keep normals per-face. Similar to what's done in StanfordImporter, toggling this option makes the import faster (as it generates less data) and the mesh is also more easily usable for duplicate removal and smooth normal generation.

view details

Vladimír Vondruš

commit sha 3a15bec187872b387b6a6f157dc969607d3bded5

CMake: forgot to make WITH_STANFORDSCENECONVERTER an option.

view details

Vladimír Vondruš

commit sha 868168f60dffdcbbc75a7d9302ec80d0f9cd1c0f

package/archlinux: forgot to enable JpegImageConverter in ASan.

view details

Vladimír Vondruš

commit sha ffc275ed18c021e68a3fa52971270ccbd3597258

TinyGltfImporter: fix Clang warnings about unnecessary copies.

view details

Vladimír Vondruš

commit sha 356940b6e441d93b7f18e6f887f0a2e7d09f62c6

modules: updated FindMagnum.cmake. The main important change is that Primitives now have a hard dependency on MeshTools (previously they were using just a header-only algorithm, so it wasn't a link-time dependency).

view details

push time in 2 months

issue commentnmoinvaz/minizip

readme additional info on password protection

It also seems as if just setting

file_info.flag |= MZ_ZIP_FLAG_ENCRYPTED;

and leaving aes_version blank creates an invalid archive. The code looks as if to be attempting pkware encryption, but this doesn't seem to be the case.

hsdk123

comment created time in 2 months

issue openednmoinvaz/minizip

fastest decryption for password protected archive

Hi, it currently seems that reading from a password protected aes archive is much slower than reading a non-encrypted archive. What would be the settings required for fastest reading of an entry, while still having a password?

created time in 2 months

issue openednmoinvaz/minizip

readme additional info on password protection

Hi, it's taken me a while to realise that

file_info.flag |= MZ_ZIP_FLAG_ENCRYPTED;
file_info.aes_version = MZ_AES_VERSION;

need to be set in order for password protection for entry writing to work properly.

I had misassumed that setting either mz_zip_writer_set_password, or writer_password_cb would be sufficient for entries to be written with password protection.

I think an addition to the docs somewhere on this (ex. for the above functions) would help any future mishap.

created time in 2 months

more