You are not logged in.

#1 2020-03-07 10:32:43

tungol
Member
From: Thailand
Registered: 2019-10-04
Posts: 14

Libopenshot-git build failure (error 2)

I am trying to install OpenShot from the AUR.

1.Successfully built and installed the libopenshot-audio-git package.

2.The build of libopenshot-git fails with errors 1 and 2:

How can I fix this?

The contents of CMakeError.log below:

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/proxima/libopenshot-git/src/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_32943/fast && /usr/bin/make -f CMakeFiles/cmTC_32943.dir/build.make CMakeFiles/cmTC_32943.dir/build
make[1]: Entering directory '/home/proxima/libopenshot-git/src/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_32943.dir/src.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_32943.dir/src.c.o   -c /home/proxima/libopenshot-git/src/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_32943
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_32943.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DCMAKE_HAVE_LIBC_PTHREAD  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  CMakeFiles/cmTC_32943.dir/src.c.o  -o cmTC_32943 
/usr/bin/ld: CMakeFiles/cmTC_32943.dir/src.c.o: in function `main':
src.c:(.text.startup+0x24): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text.startup+0x2e): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text.startup+0x3a): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_32943.dir/build.make:87: cmTC_32943] Error 1
make[1]: Leaving directory '/home/proxima/libopenshot-git/src/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_32943/fast] Error 2

Source file was:
#include <pthread.h>

void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

There are many unidentified bands in the spectra of stars.
-- Garik Israelian

Offline

#2 2020-03-07 12:15:04

loqs
Member
Registered: 2014-03-06
Posts: 19,089

Re: Libopenshot-git build failure (error 2)

Please post the full output from makepkg.  The contents you posted from CMakeError.log matches the matches the contents from a successful build of the package I just performed.

Offline

#3 2020-03-08 05:12:41

tungol
Member
From: Thailand
Registered: 2019-10-04
Posts: 14

Re: Libopenshot-git build failure (error 2)

I hope this is more useful - the output I get from makepkg:

==> Making package: libopenshot-git 0.2.5.r4.gf1e5c9c-1 (Sun 08 Mar 2020 12:00:28 PM +07)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating libopenshot git repo...
==> Validating source files with sha256sums...
    libopenshot ... Skipped
==> Extracting sources...
  -> Creating working copy of libopenshot git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-----------------------------------------------------------------
          Welcome to the OpenShot Build System!

CMake will now check libopenshot's build dependencies and inform
you of any missing files or other issues.

For more information, please visit <[url]http://www.openshot.org/[/url]>.
-----------------------------------------------------------------

Generating build files for OpenShot with CMake 3.16.3
  Building libopenshot (version 0.2.5)
  SO/API/ABI Version: 19

PYTHON_MODULE_PATH: /usr/lib/python3.7/site-packages
/usr/bin/ld: warning: libicui18n.so.65, needed by /usr/lib/libQt5Core.so.5.14.1, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicuuc.so.65, needed by /usr/lib/libQt5Core.so.5.14.1, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_getAvailableName_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_getDefaultName_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucol_strcoll_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_getTimeZoneDisplayName_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_clone_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_getMaxCharSize_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `u_strToLower_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `uenum_next_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_toUnicode_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_getAlias_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucol_open_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `u_strToUpper_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_countAvailable_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_openTimeZoneIDEnumeration_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucol_getSortKey_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_fromUnicode_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_get_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_setSubstChars_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_getDefaultTimeZone_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_close_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `u_errorName_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_openTimeZones_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_setMillis_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucol_setAttribute_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_open_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_getStandardName_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_getDSTSavings_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_compareNames_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_open_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_close_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_openCountryTimeZones_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucol_close_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucnv_countAliases_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `uenum_close_65'
/usr/bin/ld: /usr/lib/libQt5Core.so.5.14.1: undefined reference to `ucal_inDaylightTime_65'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/openshot-example.dir/build.make:107: src/openshot-example] Error 1
make[1]: *** [CMakeFiles/Makefile2:219: src/CMakeFiles/openshot-example.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

There are many unidentified bands in the spectra of stars.
-- Garik Israelian

Offline

#4 2020-03-08 06:37:34

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Libopenshot-git build failure (error 2)

What is your version of the icu package? Qt5 is broken because it cannot find the library.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2020-03-08 10:00:08

tungol
Member
From: Thailand
Registered: 2019-10-04
Posts: 14

Re: Libopenshot-git build failure (error 2)

eschwartz wrote:

What is your version of the icu package? Qt5 is broken because it cannot find the library.

I don't know.. will check when I get back. Thanks.


There are many unidentified bands in the spectra of stars.
-- Garik Israelian

Offline

Board footer

Powered by FluxBB