error C2011: ‘sockaddr’ : ‘struct’ type redefinition. see declaration of ‘sockaddr’

2024年2月21日

https://stackoverflow.com/questions/31434556/error-c2011-sockaddr-struct-type-redefinition-see-declaration-of-sockad

winsock2.h を最初にinclude することで解決できた。

ERR_SSL_KEY_USAGE_INCOMPATIBLE

2024年2月21日

https://learn.microsoft.com/en-us/answers/questions/1517411/how-to-fix-the-err-ssl-key-usage-incompatible-micr

まず、-KeyUsage DigitalSignature で証明書を再作成し
PS C:\WINDOWS\system32> New-SelfSignedCertificate -FriendlyName <証明書の名前> -DnsName <ホスト名> -KeyUsage DigitalSignature

作成した証明書でIISのSSL証明書を再設定
IIS > WebSite > Edit Bindings… > https を選択して編集、下部の”SSL Certificate”で、新たに作成した証明書を選択

Postmanはhttp2に未対応なのでAPNsへのPOSTができない

2024年2月5日

https://stackoverflow.com/questions/45965619/apns-provider-api-and-postman

https://gist.github.com/greencoder/16d1f8d7b0fed5b49cf64312ce2b72cc

上記のリンクで紹介されている curl のサンプルを参考に、curl ではPOSTできた。

curl -v \
-d ‘{“aps”:{“alert”:{“title”:”title”,”subtitle”:”subtitle”,”body”:”body”}}}’ \
-H “apns-topic: <bundle id>” \
-H “apns-priority: 5” \
-H “Authorization: Bearer <JWT>” \
–http2 \
https://api.development.push.apple.com/3/device/<device token>

android opencv build error “ninja: fatal: chdir to ‘…/platforms/android/opencv/.cxx/cmake/release/x86’ – No such file or directory”

2024年2月5日

ninja: fatal: chdir to ‘…/platforms/android/opencv/.cxx/cmake/release/x86’ – No such file or directory

https://stackoverflow.com/questions/45219049/android-studio-cmake-error-build-command-failed
以下の対応で解決
Build > “Refresh linked C++ project”

Objective-C(iOS)でスレッド処理するには?

2024年2月5日

https://stackoverflow.com/questions/27375134/how-to-use-the-background-thread-in-objective-c

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// Write your code here
});

Couldn’t find Qt4/5/6 — will not build xpdf

2024年1月31日
https://stackoverflow.com/questions/15639781/how-to-find-the-qt5-cmake-module-on-windows

xpdf の CMakeList.txt に
set (CMAKE_PREFIX_PATH “D:\\Qt\\5.15.2\\msvc2019_64”)
を追加して解決

Cordova カメラプラグインの使用後にXCodeのデバッガが切断される

2024年1月29日

https://forums.developer.apple.com/forums/thread/681037

.lldbinit を作成して1行追加する方法で、ひとまず解決した様子…

ディスプレイのスケーリング対応

2024年1月23日

https://stackoverflow.com/questions/70976583/get-real-screen-resolution-using-win32-api

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdpiforwindow?source=recommendations

https://learn.microsoft.com/en-us/windows/win32/api/windef/ne-windef-dpi_awareness

GoogleMLKit – DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

2024年1月18日

https://stackoverflow.com/questions/77219650/dt-toolchain-dir-cannot-be-used-to-evaluate-library-search-paths-use-toolchain

Flutterではないが、私のケースではpodの削除と再インストールで解決↑

You don’t have write permissions for the /usr/bin directory. while installing Cocoapods

2024年1月18日

https://stackoverflow.com/questions/50422786/you-dont-have-write-permissions-for-the-usr-bin-directory-while-installing-co

私のケースは下の対応で解決

sudo gem install cocoapods -n /usr/local/bin