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.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - elir71

Pages: [1] 2 3
1
Development / Re: Compiling Linux Fedora 34
« on: August 03, 2021, 09:33:00 AM »



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

2
Development / Re: Compiling Linux Fedora 34
« on: November 16, 2020, 03:54:12 PM »
the above was solved by compilitng as privileged user.

Now have a problem with  sound

3
Development / Re: Compiling Linux Fedora 34
« on: November 16, 2020, 12:54:55 PM »
I have glibc and glibc-dev installed (or devel )

4
Development / Compiling Linux Fedora 34
« on: November 16, 2020, 11:33:12 AM »
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



5
Feature requests & suggestions / Re: Taking bearings
« on: October 25, 2020, 03:10:52 PM »
Perhaps Gyro bearing from a crosshair in the binolcular ?  Then you could model checking for gyro error also and the consequences of having a large gyro error

6
Bridge Command General Support / Re: ARPA
« on: March 26, 2020, 04:33:16 PM »
just to point out, real radars do have a time delay which you can set and rates of turn etc as they are often very significant in confined waters

7
sudo dnf install automake
sudo dnf install libtool
autoreconf -vfi
su
./configure && make && make install

still no joy

8
Ive gone into bc/libs/enet

$ autoreconf -vfi

autoreconf: 'configure.ac' or 'configure.in' is required


9
Trying to compile 5.4.5 this morning following errors

In file included from Network.cpp:17
Network.hpp:23:10: fatal error: enetzenet.h: No such file or directory
23 |  #include <enet\enet.h>
compilation terminated

similar for calls from NetworkPrimary and NetworkSecondary

10
Models / models file formats for irrlicht
« on: February 15, 2020, 06:21:04 PM »
is it only .x files that are acceptable as model file format or are there others ? 

11
Bridge Command General Support / Re: Linux Fedora 31 Successful Install
« on: January 03, 2020, 07:58:15 AM »
Yes it looks normal

Would this be the place to enter your own host name , or the other secondary host names ?

I am wondering where the best install directory would be for bc , so that it can be used by any user but personalised to their own $HOME/.Bridgecommand/ folder

12
Bridge Command General Support / Re: Linux Fedora 31 Sucessful Install
« on: January 01, 2020, 06:38:09 PM »
One bug that is bugging me, is that when I try to set up multiscreen, when I try to type the secondary computers hostnames into the edit box, then it is not accepting any text input.  Does anyone have any ideas about this ?

ADDENDUM :-

I seem to be able to type in secondary hostnames when I run the master as sudo i..e

Code: [Select]
sudo ./bridgecommand

Ths assumes that your local user is sudo enabled

13
Bridge Command General Support / Linux Fedora 31 Successful Install
« on: January 01, 2020, 12:05:36 PM »
Most of this are taken from the "how to compile on mac or linux" which is within the source code
However the procedure is slightly different on the Fedora 31 distribution which I just installed on a second hand Dell Optiplex 780
On my equally antique laptop I get 3 to 6 frames per second on my windows 7 whereas on the fedora 28 boot on the same hardware then I am getting 26 fps

I used gitg to obtain the source code
https://github.com/bridgecommand/bc
This saved to my HOME_DIRECTORY/bc

To build on linux:
==================

1) Ensure the required library packages are installed with the following command in the terminal window:
Code: [Select]

sudo yum install mesa_libGL-devel libXxf86vm-devel freeglut-devel libXext-devel libXcursor-devel make g++



If you want sound support then do the steps at the end of this ...

In terminal screen and in the bc directory
Code: [Select]
make to compile Bridge Command

In terminal screen and in the bc directory
Code: [Select]
./bridgecommand to start the simulator.
Additional steps to compile with sound (for both Mac and Linux):
================================================================
Libsndfile:
Download and uncompress libsndfile-1.0.28.tar.gz from http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
Create a folder for the output, referred to as <Somewhere> (Absolute path)
Change directory to where you've uncompressed libsndfile, then run the following in the terminal window:

./configure --disable-shared --prefix=<Somewhere>
make
make install
cd <Somewhere>
cp -a lib <BridgeCommandSourceLocation>/libs/libsndfile/


Portaudio

Download and uncompress pa_stable_v190600_20161030.tgz from
Code: [Select]
http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgzChange directory to where you've uncompressed Portaudio, then run the following in the terminal window:

./configure --disable-shared --enable-static
make
cd lib/.libs/
cp * <BridgeCommandSourceLocation>/libs/portaudio/lib/

Building Bridge Command with sound:
Change to where you have the Bridge Command source then run the following in the terminal window:

make -f MakefileWithSound

14
Models / Azimuth drives - own ship
« on: August 11, 2019, 12:36:44 PM »
I'm experimenting with this at the moment.  It will involve a fair amount of code rewrite but should be useable as a data structure for more flexibility of control surfaces

15
Feature requests & suggestions / Re: AIS input and Google Earth?
« on: April 05, 2019, 03:50:53 PM »
I wrote some experimental code to create AIS signals for ships ... which could be used as other ships, so that they would be visible to openCPN chart plotter.  The AIS transmissions use a 6 bit format. The code was very very bodgy and I am certain it could be done more elegantly. I will try to dig it out and post it

Pages: [1] 2 3