Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install on ubuntu #1117

Open
nkv123 opened this issue Jul 16, 2020 · 14 comments
Open

How to install on ubuntu #1117

nkv123 opened this issue Jul 16, 2020 · 14 comments

Comments

@nkv123
Copy link

nkv123 commented Jul 16, 2020

Hello everyone, i am using ubuntu 18.04
Are there any installation instructions for ubuntu?
Is there a ppa, docker or snap for this?

@Attigliuzzo
Copy link

Attigliuzzo commented Jul 29, 2020

Feel free to test my debian package made for Debian testing. You will find it in this place.

@wleoncio
Copy link

wleoncio commented Jul 31, 2020

There's a snap package available here, but it's quite outdated (from 2016) and relatively featureless. You can also try the instructions from this page and read issue #599 for more info.

@p-s-t
Copy link

p-s-t commented Dec 3, 2020

Hello, thank you all for bringing open track to linux.

I would like to request a hint if somebody can help please.
I apologize for my dumb questions in advance.

Not a programmer, nor do i have any knowledge on how to do all these Build making and compiling.
But i tried to follow the opentrack wiki "Building on Linux"

i did "compiled" i guess and installed openCV 3.4.12 which i gathered supposed to be required.
It does seem like it was finished successfully according to guide.
https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/

Then i preceded with all the steps from wiki
and it also seemed like a success.

I now currently have in my home directory(or folder)
opentrack/install
with most likely the install "build" i guess :-)

But then the wiki ends
with :
"The resulting build output will be placed in the install/ directory. It will not 'install' itself anywhere outside of the current directory."

So i would like to ask how do you install it. This must sound funny to you but i have no clue. :-)
I was considering just using
sudo apt install opentrack
but i think that would just install some who knows what version from the internet and not from the install folder i just obtained, right ?

also
instruction from suggested site FliersHaveMerit seem to be contradictory
specifically /dev/uinput directory creating part - that is strange because i already have file named uinput in dev.
Which results in system not letting me create folder with same name.
And it is fairly old guide anyway i have a feeling it might not be what i need.

@Attigliuzzo
Copy link

@p-s-t
if you build successfully binaries, enter in the install folder i suppose /your path/install/opentrack/bin or /usr/local/opentrack/lib and from terminal type ./opentrack.
I built a deb package for my debian, if you want to install it you can use gdebi with its graphical frontend (right click-open with) or type in the folder where it is dpkg -i opentrack.xx.yy.zz.deb as root.

@p-s-t
Copy link

p-s-t commented Dec 5, 2020

Thank you for your answer
It was this part:

"/your path/install/opentrack/bin from terminal type ./opentrack"

After that open track just launched :) I feel silly i did not just try that. Did not occurred to me it was executable.
It is just missing freetrack output, but that is another issue which i will try to figure out around here or ask in appropriate topic.
Thank you very much good sir.

But please don't run away yet. Can we solve this for others too.
How did this happen:
That line on wiki is very misleading. Second sentence especially.
"The resulting build output will be placed in the install/ directory. It will not 'install' itself anywhere outside of the current directory."
I assumed that there are more steps to actually finish it.

Can i please request change of this wiki line to something like:

"The resulting build output will be placed in the install/ directory.
You can now run it by launching opentrack file.

from terminal type ./opentrack"

@Attigliuzzo
Copy link

Attigliuzzo commented Dec 5, 2020

@p-s-t
The freetrack plugin is only for windows, under our fabulous OS you can choose from: easytracker or pointTracker (IR leds), hatire (arduino), Freepie (smartphone), UDP (over web).
Feel free to edit/improve the wiki by yourself.

@sthalik
Copy link
Member

sthalik commented Dec 5, 2020

The freetrack plugin is only for windows, under our fabulous OS you can choose from: easytracker or pointTracker (IR leds), hatire (arduino), Freepie (smartphone), UDP (over web).

Freetrack is an output plugin. Its functionality on Linux is entirely replaced by the Wine plugin (also supports the X-Plane plugin).

@p-s-t
Copy link

p-s-t commented Dec 6, 2020

I think i will just continue here
Thank you for all the answers
I was not able to figure out a way to enable the other outputs only ones present are
Flight gear , libdev joystick reciever , UDP over network
no xplane nor wine outputs are present

Got a feeling this needs to be somehow specified when compiling. Is that correct ?

Also i did tried that .deb package you mentioned. In hope to find it included in that one.
Installs nicely, When launched from start menu after a short delay it just closes without any error.
When i found where it installed itself
/usr/local/opentrack
and launched it from terminal it reveals it needs Qt 5.15 to work.
So i set out to install that, which from this very version requires special online installer and registration.
After that and by using command to point it towards newly instlled Qt version
LD_LIBRARY_PATH=/opt/Qt/5.15.2/gcc_64/lib ./opentrack
it worked however still just those three output methods.

@rackhamlerouge9
Copy link

Dear all, thanks for all your work in writing and testing this software.

Please may I add, as a linux novice, that having spent a half day following various guides trying to compile this (heaps of hurdles; realising I needed cmake not make, installing Qt5, etc, etc, still getting nowhere), I would deeply appreciate a step-by-step idiot's-guide to compiling this source code on linux, then installing it.

My deepest thanks to @Attigliuzzo, whose deb package I shall now try, having found this discourse!

My thanks again.

@Attigliuzzo
Copy link

Thank @rackhamlerouge9 for testing my package, i have not compiled it with the wine plugin because it requires to install 32bit stuffs. Anyway you can follow my guide:

1- install git, make a dir and launch: git clone https://github.com/opentrack/opentrack
2- install following packages: gcc9, gcc9-base, gcc9-multilib,lib32gcc-8-dev,cmake, cmake-curses-gui, gist, libqt5concurrent5, libqt5core5a, libqt5dbus5, libqt5gui5, libqt5network5, libqt5printsupport5, libqt5sql5, libqt5test5, libqt5widgets5, libqt5xml5, libevdev-dev, libevdev2, libeigen3-dev, libopenCV-dev,qtbase5-private-dev, libqt5serialport-dev, g++9, g++ multilib, qt5base-dev, qttools-dev, libprocps-dev.
3- create a directory in ../opentrack/build, then cd build
4- ccmake .. will tell about missing deps. install any missing deps, empty the build folder and re-launch ccmake ..
5- press "c" to to continue and then "t", edit any items like the install path:
SDK_ENABLE_LIBEVDEV on ---> not available, already integrated
CMAKE_INSTALL_PREFIX /usr/local/opentrack
6- cmake .
7- make -j5
8- make install

It isn't updated but it will be a good starting point, to build your package you can use checkinstall.
Regards

@rackhamlerouge9
Copy link

rackhamlerouge9 commented Jul 19, 2021 via email

@Attigliuzzo
Copy link

Hi @rackhamlerouge9,
despite ubuntu is a folk of Debian isn't always possible to satisfy cross dependecies, the use of ccmake is simple it is useful to configure your system before compile your code.
Without right libraries installed my opentrack won't run.

I read you miss the header "qplatformnativeinterface.h", so searching from the main site of ubuntu packages you will need to install the "qtbase5-private-dev" package.

If you don't want to waste your time, i remember that in the benchmark sim forum a guy built opentrack for ubuntu. This is the page, and this is the direct link to the file. Another guide here.
Regards

@rackhamlerouge9
Copy link

rackhamlerouge9 commented Jul 20, 2021 via email

@rackhamlerouge9
Copy link

rackhamlerouge9 commented Jul 20, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants