Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime 23.08 #2

Closed
wants to merge 12 commits into from
Closed

Runtime 23.08 #2

wants to merge 12 commits into from

Conversation

bbhtt
Copy link

@bbhtt bbhtt commented Sep 13, 2023

Might require more patches but I can't locally build... each small addon failing makes the entire openframeworks build fail and it is pretty annoying...

- Update opencv to 4.8.0 to fix build issues with newer ffmpeg in runtime
  Change build type to RelWithDebInfo

- Update boost to fix build

- Update poco to fix build

- Add llvm sdk for libdispatch
- Add patch for libdispatch, openframeworks and ofxVisualProgramming,
  ofxAudioFile
- Remove outdated patches
@flathubbot
Copy link

Started test build 65318

@flathubbot
Copy link

Build 65318 failed

@flathubbot
Copy link

Started test build 65320

@flathubbot
Copy link

Build 65320 failed

@flathubbot
Copy link

Started test build 65321

@bbhtt
Copy link
Author

bbhtt commented Sep 13, 2023

Will deal later:

/run/build/openframeworks/addons/ofxPDSP/src/messages/ExtSequencer.cpp:11:10: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
   11 |     for (size_t i = 0; i < instances.size(); ++i) {
      |          ^~~~~~
      |          std::size_t
In file included from /usr/include/c++/13.2.0/bits/requires_hosted.h:31,
                 from /usr/include/c++/13.2.0/vector:60,
                 from /run/build/openframeworks/addons/ofxPDSP/src/messages/ExtSequencer.h:9,
                 from /run/build/openframeworks/addons/ofxPDSP/src/messages/ExtSequencer.cpp:2:
/usr/include/c++/13.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:308:33: note: ‘std::size_t’ declared here
  308 |   typedef __SIZE_TYPE__         size_t;
      |                                 ^~~~~~
/run/build/openframeworks/addons/ofxPDSP/src/messages/ExtSequencer.cpp:11:24: error: ‘i’ was not declared in this scope
   11 |     for (size_t i = 0; i < instances.size(); ++i) {
      |                        ^

@flathubbot
Copy link

Build 65321 failed

@flathubbot
Copy link

Started test build 65349

@flathubbot
Copy link

Build 65349 failed

@bbhtt
Copy link
Author

bbhtt commented Sep 13, 2023

In file included from /app/include/dispatch/dispatch.h:32,
                 from /run/build/openframeworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp:48:
/app/include/os/generic_unix_base.h:58:18: error: missing binary operator before token "("
   58 | #if __has_feature(assume_nonnull)
      |                  ^
/app/include/os/generic_unix_base.h:72:18: error: missing binary operator before token "("
   72 | #if __has_feature(attribute_availability_swift)
      |                  ^
/app/include/os/generic_unix_base.h:97:18: error: missing binary operator before token "("
   97 | #if __has_feature(objc_fixed_enum) || __has_extension(cxx_strong_enums)
      |                  ^

@bbhtt
Copy link
Author

bbhtt commented Sep 13, 2023

Looks like ofchapplayer is incompatible with GCC bangnoise/ofxHapPlayer#66

@flathubbot
Copy link

Started test build 65378

@flathubbot
Copy link

Build 65378 failed

@bbhtt
Copy link
Author

bbhtt commented Sep 13, 2023

/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp: In constructor ‘ofxHap::AudioDecoder::AudioDecoder(const ofxHap::AudioParameters&, int&)’:
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp:47:18: error: ‘avcodec_alloc_context3’ was not declared in this scope; did you mean ‘avio_alloc_context’?
   47 |     _codec_ctx = avcodec_alloc_context3(nullptr);
      |                  ^~~~~~~~~~~~~~~~~~~~~~
      |                  avio_alloc_context
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp:69:18: error: ‘avcodec_parameters_to_context’ was not declared in this scope; did you mean ‘avcodec_parameters_copy’?
   69 |         result = avcodec_parameters_to_context(_codec_ctx, params.parameters);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                  avcodec_parameters_copy
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp:79:22: error: ‘avcodec_open2’ was not declared in this scope; did you mean ‘avio_open2’?
   79 |             result = avcodec_open2(_codec_ctx, decoder, &opts);
      |                      ^~~~~~~~~~~~~
      |                      avio_open2
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp: In destructor ‘ofxHap::AudioDecoder::~AudioDecoder()’:
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp:90:9: error: ‘avcodec_free_context’ was not declared in this scope; did you mean ‘avformat_free_context’?
   90 |         avcodec_free_context(&_codec_ctx);
      |         ^~~~~~~~~~~~~~~~~~~~
      |         avformat_free_context
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp: In member function ‘int ofxHap::AudioDecoder::send(AVPacket*)’:
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp:152:12: error: ‘avcodec_send_packet’ was not declared in this scope; did you mean ‘avcodec_get_name’?
  152 |     return avcodec_send_packet(_codec_ctx, packet);
      |            ^~~~~~~~~~~~~~~~~~~
      |            avcodec_get_name
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp: In member function ‘int ofxHap::AudioDecoder::receive(AVFrame*)’:
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp:168:12: error: ‘avcodec_receive_frame’ was not declared in this scope; did you mean ‘avcodec_profile_name’?
  168 |     return avcodec_receive_frame(_codec_ctx, frame);
      |            ^~~~~~~~~~~~~~~~~~~~~
      |            avcodec_profile_name
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp: In member function ‘void ofxHap::AudioDecoder::flush()’:
/run/build/openframeworks/addons/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.cpp:205:5: error: ‘avcodec_flush_buffers’ was not declared in this scope
  205 |     avcodec_flush_buffers(_codec_ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [/run/build/openframeworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:360: /run/build/openframeworks/addons/obj/linux64/Release/ofxHapPlayer/libs/ofxHap/src/AudioDecoder.o] Error 1
make[1]: Leaving directory '/run/build/openframeworks/apps/d3cod3/Mosaic'

@d3cod3
Copy link
Collaborator

d3cod3 commented Sep 13, 2023

Hey, thank you so much for your help fixing compilation for OF 0.11.2!!!

I was just updating stuff for the last Mosaic release 0.6.6, so i just added most of your fixings to a pull request running just now. I've removed various addons and cleaned the code, so less difficulties for now.

Let's see if the pull compile...

@bbhtt
Copy link
Author

bbhtt commented Sep 13, 2023

Closing in favour of #3

@bbhtt bbhtt closed this Sep 13, 2023
@bbhtt bbhtt deleted the new-runtime branch September 13, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants