sm0svx / svxlink

Advanced repeater system software with EchoLink support for Linux including a GUI, Qtel - the Qt EchoLink client
http://svxlink.org/
Other
438 stars 173 forks source link

how to build without qtel (only svxlink server) #116

Closed ch0mik closed 9 years ago

ch0mik commented 10 years ago

i found this in CMakelists.txt

if(USE_QT) add_subdirectory(qtel) endif(USE_QT)

how use the cmake -??? .. to build only svxlink server ?

Regards Pawel, SQ7MRU

pe1chl commented 10 years ago

What I did last time I compiled svxlink on a new server:

git clone https://github.com/sm0svx/svxlink.git
cd svxlink
git checkout master
cd src
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -DLOCAL_STATE_DIR=/var -DUSE_QT=no ..
make
make doc
make install
ldconfig
ch0mik commented 10 years ago

Hello,

I have this until make install

sudo make install [ 10%] Built target asynccore [ 11%] Built target asynccpp [ 31%] Built target asyncaudio [ 31%] Built target AsyncAtTimer_demo [ 32%] Built target AsyncAudioIO_demo [ 32%] Built target AsyncConfig_demo [ 33%] Built target AsyncCppApplication_demo [ 33%] Built target AsyncDnsLookup_demo [ 34%] Built target AsyncExec_demo [ 34%] Built target AsyncFdWatch_demo [ 36%] Built target AsyncSerial_demo [ 36%] Built target AsyncTcpClient_demo [ 37%] Built target AsyncTcpServer_demo [ 37%] Built target AsyncTimer_demo [ 38%] Built target AsyncUdpSocket_demo [ 44%] Built target echolib [ 45%] Built target EchoLinkDirectory_demo [ 45%] Built target EchoLinkDispatcher_demo [ 46%] Built target EchoLinkQso_demo [ 47%] Built target echolib_test [ 50%] Built target locationinfo [ 74%] Built target trx [ 82%] Built target svxlink [ 84%] Built target ModuleHelp [ 86%] Built target ModuleParrot [ 88%] Built target ModuleEchoLink [ 90%] Built target ModuleTcl [ 91%] Built target ModuleDtmfRepeater [ 94%] Built target ModuleMetarInfo [ 98%] Built target remotetrx [100%] Built target siglevdetcal [100%] Built target devcal [100%] Built target noisegen Install the project... -- Install configuration: "Release" -- Installing: /usr/lib/libasynccore.so.1.3.99.0 -- Installing: /usr/lib/libasynccore.so.1.3 -- Installing: /usr/lib/libasynccore.so -- Installing: /usr/include/svxlink/AsyncApplication.h -- Installing: /usr/include/svxlink/AsyncFdWatch.h -- Installing: /usr/include/svxlink/AsyncTimer.h -- Installing: /usr/include/svxlink/AsyncIpAddress.h -- Installing: /usr/include/svxlink/AsyncTcpClient.h -- Installing: /usr/include/svxlink/AsyncDnsLookup.h -- Installing: /usr/include/svxlink/AsyncUdpSocket.h -- Installing: /usr/include/svxlink/AsyncTcpServer.h -- Installing: /usr/include/svxlink/AsyncTcpConnection.h -- Installing: /usr/include/svxlink/AsyncConfig.h -- Installing: /usr/include/svxlink/AsyncSerial.h -- Installing: /usr/include/svxlink/AsyncFileReader.h -- Installing: /usr/include/svxlink/AsyncAtTimer.h -- Installing: /usr/include/svxlink/AsyncExec.h -- Installing: /usr/include/svxlink/AsyncPty.h -- Installing: /usr/lib/libasynccpp.so.1.3.99.0 -- Installing: /usr/lib/libasynccpp.so.1.3 -- Installing: /usr/lib/libasynccpp.so -- Removed runtime path from "/usr/lib/libasynccpp.so.1.3.99.0" -- Installing: /usr/include/svxlink/AsyncCppApplication.h -- Installing: /usr/lib/libasyncaudio.so.1.3.99.0 -- Installing: /usr/lib/libasyncaudio.so.1.3 -- Installing: /usr/lib/libasyncaudio.so -- Removed runtime path from "/usr/lib/libasyncaudio.so.1.3.99.0" -- Installing: /usr/include/svxlink/AsyncAudioSource.h -- Installing: /usr/include/svxlink/AsyncAudioSink.h -- Installing: /usr/include/svxlink/AsyncAudioProcessor.h -- Installing: /usr/include/svxlink/AsyncAudioClipper.h -- Installing: /usr/include/svxlink/AsyncAudioCompressor.h -- Installing: /usr/include/svxlink/AsyncAudioFilter.h -- Installing: /usr/include/svxlink/AsyncSigCAudioSink.h -- Installing: /usr/include/svxlink/AsyncSigCAudioSource.h -- Installing: /usr/include/svxlink/AsyncAudioIO.h -- Installing: /usr/include/svxlink/AsyncAudioSplitter.h -- Installing: /usr/include/svxlink/AsyncAudioDelayLine.h -- Installing: /usr/include/svxlink/AsyncAudioValve.h -- Installing: /usr/include/svxlink/AsyncAudioAmp.h -- Installing: /usr/include/svxlink/AsyncAudioSelector.h -- Installing: /usr/include/svxlink/AsyncAudioPassthrough.h -- Installing: /usr/include/svxlink/AsyncAudioMixer.h -- Installing: /usr/include/svxlink/AsyncAudioFifo.h -- Installing: /usr/include/svxlink/AsyncAudioDebugger.h -- Installing: /usr/include/svxlink/AsyncAudioPacer.h -- Installing: /usr/include/svxlink/AsyncAudioReader.h -- Installing: /usr/include/svxlink/AsyncAudioDecimator.h -- Installing: /usr/include/svxlink/AsyncAudioInterpolator.h -- Installing: /usr/include/svxlink/AsyncAudioStreamStateDetector.h -- Installing: /usr/include/svxlink/AsyncAudioEncoder.h -- Installing: /usr/include/svxlink/AsyncAudioDecoder.h -- Installing: /usr/include/svxlink/AsyncAudioRecorder.h -- Installing: /usr/include/svxlink/AsyncAudioJitterFifo.h -- Installing: /usr/include/svxlink/AsyncAudioDeviceFactory.h -- Installing: /usr/include/svxlink/AsyncAudioDevice.h -- Installing: /usr/include/svxlink/common.h -- Installing: /usr/lib/libecholib.so.1.3.0 -- Installing: /usr/lib/libecholib.so.1.3 -- Installing: /usr/lib/libecholib.so -- Removed runtime path from "/usr/lib/libecholib.so.1.3.0" -- Installing: /usr/include/svxlink/EchoLinkDirectory.h -- Installing: /usr/include/svxlink/EchoLinkDispatcher.h -- Installing: /usr/include/svxlink/EchoLinkQso.h -- Installing: /usr/include/svxlink/EchoLinkStationData.h -- Installing: /usr/include/svxlink/EchoLinkProxy.h -- Installing: /usr/bin/svxlink -- Removed runtime path from "/usr/bin/svxlink" -- Installing: /etc/svxlink/svxlink.d -- Installing: /var/spool/svxlink/qso_recorder -- Setting owner of /var/spool/svxlink/qso_recorder to svxlink.daemon... /bin/chown: invalid user: `svxlink.daemon' CMake Error at svxlink/svxlink/cmake_install.cmake:100 (MESSAGE): Error while changing owner of file /var/spool/svxlink/qso_recorder Call Stack (most recent call first): svxlink/cmake_install.cmake:38 (INCLUDE) cmake_install.cmake:41 (INCLUDE)

make: *\ [install] Error 1

its the same with sudo make NO_CHOWN=1 install

On Sun, Nov 2, 2014 at 8:09 AM, Rob Janssen notifications@github.com wrote:

What I did last time I compiled svxlink on a new server: git clone https://github.com/sm0svx/svxlink.git cd svxlink git checkout master cd src mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -DLOCAL_STATE_DIR=/var -DUSE_QT=no .. make make doc make install ldconfig

— Reply to this email directly or view it on GitHub https://github.com/sm0svx/svxlink/issues/116#issuecomment-61396686.

pe1chl commented 10 years ago

This is already described in issue #108 Please note installing SvxLink is not a "setup next next next finish" process. Some knowledge of Linux and reading and interpreting messages is required.

ch0mik commented 10 years ago

Hello,

I know that, the "from scratch" != "next next" install ;) The manualy make user/group doenst exist in https://github.com/sm0svx/svxlink/wiki/InstallationInstructions PS. I made it in my Cubieboard (Allwinner A10), the previous SVXLink 13.07 are installed withouts problem as Link (SQ7MRU-L) : http://sq7mru.blogspot.com/2013/08/echolink-svxlink-v1307-na-cubieboard.html I Want make a Repeater (CrossBand 70cm=>2m) fully controled by SVXLink on Cubieboard.

I added the user/group

sudo adduser svxlink sudo adduser svxlink daemon

but the svxlink cant find the config file.

cubie@SQ7MRU:/$ sudo svxlink sudo: unable to resolve host SQ7MRU *\ ERROR: Could not open configuration file. Tried: /root/.svxlink/svxlink.conf /usr/local/etc/svxlink/svxlink.conf /usr/local/etc/svxlink.conf Possible reasons for failure are: None of the files exist, you do not have permission to read the file or there was a syntax error in the file

OR

cubie@SQ7MRU:/$ sudo svxlink --daemon cubie@SQ7MRU:/$ ps aux|grep svxlink cubie 10721 0.0 0.1 3100 708 pts/0 S+ 11:17 0:00 grep svxlink

Regards Pawel, SQ7MRU

On Sun, Nov 2, 2014 at 10:58 AM, Rob Janssen notifications@github.com wrote:

This is already described in issue #108 https://github.com/sm0svx/svxlink/issues/108 Please note installing SvxLink is not a "setup next next next finish" process. Some knowledge of Linux and reading and interpreting messages is required.

— Reply to this email directly or view it on GitHub https://github.com/sm0svx/svxlink/issues/116#issuecomment-61400096.

pe1chl commented 10 years ago

Yes so now you have installed it and you need to make a configuration file (copy it from the example). In fact the previous installation method installed the configuration file when this did not exist, but the new cmake method does not. It may be that the instructions are not completely uptodate, and this especially affects newcomers that enter precisely at this time now that the old method no longer works and the documentation of the new method is not finished. But I repeat, when you want to install SvxLink it is expected that you have some Linux experience and can interpret messages like that. The "aha it wants to open its config file and it is not there, maybe my next task is to make sure that the file is there". When you cannot do that yet, the road ahead may be tough. But when you know "locate svxlink.conf" or "find / -name svxlink.conf" to see where the example file is and then know how to copy it to the place where it expects it, then edit it to reflect your configuration and try again, you will finally get it working.

sm0svx commented 9 years ago

The configuration files should be installed automatically. At least that can be seen when doing a test install using: (only for testing installation, not for running!)

make install DESTDIR=/tmp/svxlink

Now one can browse around the tree under /tmp/svxlink and see exactly what is installed. That can be harder when installing to the "real" filesystem. I like to use the utility "tree" to get a nice hierachial printout of the whole installed file tree:

tree /tmp/svxlink

However, it seem like you have installed one version of SvxLink and are running another version. The version you run look for the config in /usr/local/etc/svxlink but from your install log I can see that it have tried to install the svxlink config under /etc/svxlink.

If you are convinced that you have done everything correctly then there may be some bug in the buildsystem. Try to start over from the beginning. Clone a new fresh source tree and follow the instructions.

I have now also added a note about creating the svxlink.daemon user/group in the installation instructions.