Build new-build branch on Fedora

Hello,

I am trying to build the new-build branch on Fedora. I am following the instructions of the building.md.

When I run cmake -B cmake-build I get the following error:

cmake -B cmake-build
– Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/path/to/jitsi/native/sysactivity/X11_Xss_INCLUDE_PATH
used as include directory in directory /path/to/jitsi/native/sysactivity

– Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

Anyone has an idea what needs to be done to make it build? I had a lot more errors but they were resolved by installing the corresponding packages.

Best regards,

Afox

Additionally, when I run mvn package it fails at the service-netaddr test with the following output:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.183 s <<< FAILURE! - in Win32LocalhostTest
testBestAdapterRoute(Win32LocalhostTest) Time elapsed: 0.127 s <<< ERROR!
java.lang.UnsatisfiedLinkError:
Unable to load library ‘IPHlpAPI’:
libIPHlpAPI.so: Can´t open shared object file: file or directory not found
libIPHlpAPI.so: Can´t open shared object file: file or directory not found
Native library (linux-x86-64/libIPHlpAPI.so) not found in resource path (/path/to/jitsi/modules/service/netaddr/target/test-classes:/path/to/jitsi/modules/service/netaddr/target/classes:/path/to/.m2/repository/org/osgi/osgi.core/8.0.0/osgi.core-8.0.0.jar:/path/to/.m2/repository/org/jitsi/ice4j/3.0-46-g64a7ca8/ice4j-3.0-46-g64a7ca8.jar:/path/to/.m2/repository/org/opentelecoms/sdp/java-sdp-nist-bridge/1.2/java-sdp-nist-bridge-1.2.jar:/path/to/.m2/repository/org/opentelecoms/sdp/sdp-api/1.0/sdp-api-1.0.jar:/path/to/.m2/repository/org/jitsi/jain-sip-ri-ossonly/1.2.279-jitsi-oss1/jain-sip-ri-ossonly-1.2.279-jitsi-oss1.jar:/path/to/.m2/repository/org/bitlet/weupnp/0.1.4/weupnp-0.1.4.jar:/path/to/.m2/repository/org/jitsi/jitsi-utils/1.0-107-g566f8f8/jitsi-utils-1.0-107-g566f8f8.jar:/path/to/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar:/path/to/.m2/repository/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar:/path/to/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:/path/to/.m2/repository/org/jitsi/jicoco-config/1.1-95-gd8fd866/jicoco-config-1.1-95-gd8fd866.jar:/path/to/.m2/repository/org/jitsi/jitsi-metaconfig/1.0-8-g022dff6/jitsi-metaconfig-1.0-8-g022dff6.jar:/path/to/.m2/repository/com/typesafe/config/1.4.1/config-1.4.1.jar:/path/to/.m2/repository/org/jetbrains/kotlin/kotlin-osgi-bundle/1.5.31/kotlin-osgi-bundle-1.5.31.jar:/path/to/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:/path/to/.m2/repository/net/java/dev/jna/jna/5.9.0/jna-5.9.0.jar:/path/to/.m2/repository/net/java/dev/jna/jna-platform/5.9.0/jna-platform-5.9.0.jar:/path/to/.m2/repository/org/jitsi/libjitsi/1.1-0-g19f651af/libjitsi-1.1-0-g19f651af.jar:/path/to/jitsi/modules/util/target/jitsi-util-2.14-SNAPSHOT.jar:/path/to/.m2/repository/dnsjava/dnsjava/3.4.2/dnsjava-3.4.2.jar:/path/to/jitsi/modules/osgi-util/target/jitsi-osgi-util-2.14-SNAPSHOT.jar:/path/to/jitsi/modules/service/dnsservice/target/service-dnsservice-2.14-SNAPSHOT.jar:/path/to/jitsi/modules/service/sysactivity/target/service-sysactivity-2.14-SNAPSHOT.jar:/path/to/.m2/repository/com/github/hypfvieh/dbus-java-osgi/3.3.0/dbus-java-osgi-3.3.0.jar:/path/to/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar:/path/to/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/path/to/.m2/repository/org/projectlombok/lombok/1.18.22/lombok-1.18.22.jar:/path/to/.m2/repository/org/slf4j/slf4j-api/1.7.32/slf4j-api-1.7.32.jar:)
at Win32LocalhostTest.testBestAdapterRoute(Win32LocalhostTest.java:32)

The rest is being skipped due to this error.

Edit: I was able to fix this by skipping the tests with -DskipTests, see this issue on github.

Fixed by installing the libXScrnSaver-devel package.