Please login or register.

Login with username, password and session length

News:

Registration is only required if you want to post, and is not needed to read any posts. To avoid excess 'spam' accounts, all accounts where no posts have been made will be deleted after two weeks. Please register again if you wish to post.

Author Topic: Compiling Linux Fedora 34  (Read 8724 times)

November 16, 2020, 11:33:12 AM
  • Member
  • **
  • Posts: 61
  • Officer of the Watch Deck
    • View Profile
Can anyone give me some pointers on how to get out of this  :---



Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/davide/Projects/bc/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_89258/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_89258.dir/build.make CMakeFiles/cmTC_89258.dir/build
gmake[1]: Entering directory '/home/davide/Projects/bc/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_89258.dir/src.c.o
/usr/bin/cc   -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_89258.dir/src.c.o   -c /home/davide/Projects/bc/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_89258
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_89258.dir/link.txt --verbose=1
/usr/bin/cc  -DCMAKE_HAVE_LIBC_PTHREAD    -rdynamic CMakeFiles/cmTC_89258.dir/src.c.o  -o cmTC_89258
/usr/bin/ld: CMakeFiles/cmTC_89258.dir/src.c.o: in function `main':
src.c:(.text+0x2d): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x39): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x45): undefined reference to `pthread_cancel'
/usr/bin/ld: src.c:(.text+0x56): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_89258.dir/build.make:107: cmTC_89258] Error 1
gmake[1]: Leaving directory '/home/davide/Projects/bc/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_89258/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_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/davide/Projects/bc/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_2f8c7/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_2f8c7.dir/build.make CMakeFiles/cmTC_2f8c7.dir/build
gmake[1]: Entering directory '/home/davide/Projects/bc/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2f8c7.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_2f8c7.dir/CheckFunctionExists.c.o   -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_2f8c7
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2f8c7.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_2f8c7.dir/CheckFunctionExists.c.o  -o cmTC_2f8c7  -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_2f8c7.dir/build.make:107: cmTC_2f8c7] Error 1
gmake[1]: Leaving directory '/home/davide/Projects/bc/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_2f8c7/fast] Error 2



November 16, 2020, 12:54:55 PM
Reply #1
  • Member
  • **
  • Posts: 61
  • Officer of the Watch Deck
    • View Profile
I have glibc and glibc-dev installed (or devel )

November 16, 2020, 03:54:12 PM
Reply #2
  • Member
  • **
  • Posts: 61
  • Officer of the Watch Deck
    • View Profile
the above was solved by compilitng as privileged user.

Now have a problem with  sound

November 18, 2020, 07:46:48 PM
Reply #3
  • Administrator
  • Member
  • *****
  • Posts: 146
    • View Profile
Hi, do you have libsndfile and portaudio installed? What is the specific problem?
Thanks

August 03, 2021, 09:33:00 AM
Reply #4
  • Member
  • **
  • Posts: 61
  • Officer of the Watch Deck
    • View Profile



sudo dnf install cmake portaudio-devel g++ freeglut-devel irrlicht libXxf86vm-devel libsndfile1-dev libXcursor-devel

# goto the bin directory in the source tree

cmake ../src/
make

July 01, 2022, 07:26:50 AM
Reply #5
  • Member
  • **
  • Posts: 61
  • Officer of the Watch Deck
    • View Profile
For fedora 36 then use the following, note its now libsndfile-devel

sudo dnf install cmake portaudio-devel g++ freeglut-devel irrlicht libXxf86vm-devel libsndfile-devel libXcursor-devel

# goto the bin directory in the source tree

cmake ../src/
make

July 06, 2022, 07:04:07 PM
Reply #6
  • Member
  • **
  • Posts: 61
  • Officer of the Watch Deck
    • View Profile
I've a three screen system each running an upto date fedora 36 and latest bridgecommand compiled from source

the middle screen (master station) feed the port and starboard stations as secondary displays

All hardware is identical, swap identical

for some reaon the starboard display lags far behind the other two

any ideas what i should be looking at

July 08, 2022, 07:53:24 AM
Reply #7
  • Member
  • **
  • Posts: 61
  • Officer of the Watch Deck
    • View Profile
I looked at the BIOS settings and there was no hardware acceleration.  Much improved since enabling that