roxlu

roxlu

Member Since 11 years ago

roxlu, Amsterdam

Experience Points
336
follower
Lessons Completed
31
follow
Lessons Completed
151
stars
Best Reply Awards
18
repos

26 contributions in the last year

Pinned
⚡ Experiments with NVDECODE
⚡ Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
⚡ Example how to compile Freetype + Harfbuzz
⚡ Example that shows how to use Filament with GLFW and my feature-get-texture-id branch to use Filament with a shared OpenGL context
⚡ Experimental code for this issue https://github.com/google/filament/issues/1921
⚡ Experimenting with ExoPlayer2, hardware decoding + shared GL texture.
Activity
Nov
20
1 week ago
Activity icon
issue

roxlu issue comment awslabs/amazon-kinesis-video-streams-webrtc-sdk-c

roxlu
roxlu

Can not build static libraries

Logging

[ 67%] Built target kvsWebrtcClient [ 80%] Built target kvsWebrtcSignalingClient [ 81%] Linking C executable kvsWebrtcClientMaster /usr/bin/ld: ../open-source/lib/libcrypto.a(dso_dlfcn.o): undefined reference to symbol '[email protected]@2.2.5' //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status CMakeFiles/kvsWebrtcClientMaster.dir/build.make:126: recipe for target 'kvsWebrtcClientMaster' failed make[2]: *** [kvsWebrtcClientMaster] Error 1 CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/kvsWebrtcClientMaster.dir/all' failed make[1]: *** [CMakeFiles/kvsWebrtcClientMaster.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

Describe the bug I can not build statically linked libraries

SDK version number commit 8b8b2bdf064f6cb2b6495339d31efc3518b12eb9 (HEAD -> master, origin/master, origin/HEAD)

Open source building Used apt-get install as described [here](commit 8b8b2bdf064f6cb2b6495339d31efc3518b12eb9 (HEAD -> master, origin/master, origin/HEAD))

To Reproduce Steps to reproduce the behavior:

  1. git clone --recursive https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c.git
  2. mkdir -p amazon-kinesis-video-streams-webrtc-sdk-c/build; cd amazon-kinesis-video-streams-webrtc-sdk-c/build
  3. cmake .. -DBUILD_STATIC_LIBS=TRUE
  4. make
  5. See error

Expected behavior Build statically linked libraries

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04

Additional context I can build the normal shared libraries, but when I try to install them to the system I get the same error as described in this issue

roxlu
roxlu

When adding the -ldl linker flags I can compile the latest head successfully (4127014aff98bef86962be5f0c4acf4ba9024de1).

I'm using something like this to compile (in this case a debug version).

Make sure to remove CMakeCache.txt from the build directory after adding export LDFLAGS="-ldl"

#!/bin/bash

# ----------------------------------------------------

if [ ! -d build ] ; then
    mkdir build
fi

# ----------------------------------------------------

# Make sure we link with dl. This fixes the undefined symbols issues. 
export LDFLAGS="-ldl"

# ----------------------------------------------------

cd build

cmake -DCMAKE_INSTALL_PREFIX="./install" \
      -DCMAKE_BUILD_TYPE="Debug" \
      -DCMAKE_VERBOSE_MAKEFILE=On \
      -DBUILD_STATIC_LIBS=On \
      -DBUILD_DEPENDENCIES=On \
      ..

if [ $? -ne 0 ] ; then
    echo "Failed to configure."
    exit $?
fi

# ----------------------------------------------------

cmake --build . \
      --target install \
      --parallel $(nproc)

if [ $? -ne 0 ] ; then
    echo "Failed to build."
    exit $?
fi

# ----------------------------------------------------

echo "Ready building Kinesis WebRtc"

 
Nov
13
2 weeks ago
started
started time in 2 weeks ago
Nov
10
3 weeks ago
started
started time in 3 weeks ago
started
started time in 3 weeks ago
Nov
9
3 weeks ago
started
started time in 3 weeks ago
Nov
2
1 month ago
Activity icon
issue

roxlu issue react-native-camera/react-native-camera

roxlu
roxlu

How to to preview landscapeLeft taken image in portrait-locked app?

Question

To Do First

  • [ x] Take a look in the README
  • [ x] Take a look in the docs
  • [ x] Take a look in the QA

Short story I'm taking a landscape photo in a portrait locked app and the preview should be shown in landscape mode as well, but because my app is portrait locked it doesn't stretch the image correctly.

Long story I'm using react-native-camera to take a picture in a portrait locked application. Currently I'm testing with Android in the emulator and a real device. After taking the picture I want to show a preview using a BackgroundImage component while the user still has his/her phone in a landscape orientation. The problem is that the image is not shown correctly. I realize that I probably should have made my app NOT rotation locked and use features from e.g. react-navigation to rotate views. Although making my app not rotation locked is the better solution, I'm wondering if there's maybe another solution to still show the taken picture in such a way that it fills the whole screen?

This is how I take the photo: image

This is what the result looks like: image

Tags landscape, preview, orientation

Oct
28
1 month ago
started
started time in 1 month ago
Oct
27
1 month ago
started
started time in 1 month ago
Oct
21
1 month ago
Activity icon
issue

roxlu issue comment realm/realm-js

roxlu
roxlu

android build error.

How frequently does the bug occur?

All the time

Description

android build error

Stacktrace & log output

* Exception is:
org.gradle.internal.execution.WorkValidationException: Some problems were found with the configuration of task ':realm:send' (type 'SendAnalyticsTask').
  - Type 'SendAnalyticsTask' property 'applicationId' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

Can you reproduce the bug?

Yes, always

Reproduction Steps

No response

Version

10.7.0

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

max os 11.5.2

Build environment

Which debugger for React Native: .. "react": "17.0.2", "react-native": "0.65.1",

com.android.tools.build:gradle:7.0.1

Activity icon
issue

roxlu issue comment realm/realm-js

roxlu
roxlu

Error when running gradle task SendAnalyticsTask: Cannot run program "npm" (in directory)

Gradle build fails in task SendAnalyticsTask when trying to get version:

https://github.com/realm/realm-js/blob/c8e4dc39c09d5161347a4ef2d2d2f5d7e5564c92/react-native/android/publish_android_template#L71

with error:

Cannot run program "npm" (in directory "<PROJECT_ROOT>/node_modules/realm/android"): error=2, No such file or directory

I double checked that the directory specified existed, and ran manually npm --silent run get-version in that directory and it worked fine.

roxlu
roxlu

You can also add this in your <app>/android/settings.gradle

startParameter.excludedTaskNames.add(':realm:send');
Activity icon
issue

roxlu issue comment react-native-camera/react-native-camera

roxlu
roxlu

Firebase ML version lib class match issue

Bug Report

We are using 'https://rnfirebase.io/' for PushNotification & Analytics. After upgrading the lib we are getting the build issue on Android platform for duplicate class error. It's might be both lib camera & firebase using the firebase ML vision lib. How can we handle this situation. Can we exclude this lib -"firebase ML vision" somehow.

roxlu
roxlu

For anyone who wants to know a bit more about this issue, I wrote down some notes while looking into this here.

Oct
14
1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
Oct
13
1 month ago
Activity icon
issue

roxlu issue comment react-navigation/react-navigation

roxlu
roxlu

React Navigation with Tab.Navigator and Switch in custom header results in strange animation when toggling the Switch

Current behavior

I've created a bare bone application to debug an issueI was running into using a bottom tab bar navigator with a header that contains a toggle.

The tab bar has 3 tabs. When you switch one by one and then click the toggle, the toggle quickly jumps to its final state w/o the smooth animation it normally uses (on Android).

The smooth toggle animation is only removed when you've switched between each tab and then go back to the first one. So to reproduce you can do:

  • Click "screena" tab button
  • Click "screenb" tab button
  • Click "screenc" tab button
  • Click "screena" tab button again
  • Toggle the switch; you'll notice that it the once smooth animation is gone.

GIF that demonstrates the issue:

Higher res video that demonstrates the issue:
https://imgur.com/a/j6YaY9W

Someone on Discord was so kind to test this on iOS and said it was working fine on iOS.

Expected behavior

A Switch that uses the standard smooth animation.

Reproduction

https://github.com/roxlu/react-native-tabbar-with-switches-issue

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

Environment

package version
@react-navigation/native 6.06
@react-navigation/bottom-tabs 6.0.9
@react-navigation/stack 6.0.11
react-native-safe-area-context 3.3.2
react-native-screens 3.8.0
react-native-gesture-handler 1.10.3
react-native 0.66.0
node v.6.9.1
yarn 1.22.11
roxlu
roxlu

Why is the github-actions bot asking for the version of @react-navigation/{native, drawer, material-bottom-tabs, material-top-tabs} ?

Activity icon
issue

roxlu issue react-navigation/react-navigation

roxlu
roxlu

React Navigation with Tab.Navigator and Switch in custom header results in strange animation when toggling the Switch

Current behavior

I've created a bare bone application to debug an issueI was running into using a bottom tab bar navigator with a header that contains a toggle.

The tab bar has 3 tabs. When you switch one by one and then click the toggle, the toggle quickly jumps to its final state w/o the smooth animation it normally uses (on Android).

The smooth toggle animation is only removed when you've switched between each tab and then go back to the first one. So to reproduce you can do:

  • Click "screena" tab button
  • Click "screenb" tab button
  • Click "screenc" tab button
  • Click "screena" tab button again
  • Toggle the switch; you'll notice that it the once smooth animation is gone.

GIF that demonstrates the issue:

Higher res video that demonstrates the issue:
https://imgur.com/a/j6YaY9W

Someone on Discord was so kind to test this on iOS and said it was working fine on iOS.

Expected behavior

A Switch that uses the standard smooth animation.

Reproduction

https://github.com/roxlu/react-native-tabbar-with-switches-issue

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

Environment

package version
@react-navigation/native ^6.06
@react-navigation/bottom-tabs ^6.0.9
@react-navigation/stack ^6.0.11
react-native-safe-area-context ^3.3.2
react-native-screens ^3.8.0
react-native-gesture-handler ^1.10.3
react-native 0.66.0
node v.6.9.1
yarn 1.22.11
Oct
10
1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
Oct
9
1 month ago
Activity icon
issue

roxlu issue realm/realm-js

roxlu
roxlu

publishAndroid task doesn't exist

How frequently does the bug occur?

All the time

Description

A successful build as described in the README.

Stacktrace & log output

No response

Can you reproduce the bug?

Yes, always

Reproduction Steps

Follow the build steps for Android as current described in the readme

Version

current last commit

What SDK flavour are you using?

Local Database only

Are you using encryption?

Yes, using encryption

Platform OS and version(s)

arch linux

Build environment

Which debugger for React Native: ..

Oct
3
2 months ago
started
started time in 1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
Sep
28
2 months ago
started
started time in 2 months ago
Sep
26
2 months ago
started
started time in 2 months ago
Sep
20
2 months ago
started
started time in 2 months ago
Previous