Mint 18 OSS4

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

verisokin
Member
Posts: 11
Joined: Fri Jul 01, 2016 9:44 am
Sound Card: ENVY24 tremor + wm8741
OS: mint 17@ mint 18

Mint 18 OSS4

Postby verisokin » Fri Jul 01, 2016 9:59 am

Mint 17 is installed OSS4 from source code on the kernel for 4.4 is good. Works without any problems. Mint 18 from source code on the kernel for 4.4 and 4.6 is not compiled.
Used the patch for kernels 4x, patch maximum oversampling and USB patch.
Libraries Alsa are installed.
After compilation command:

Code: Select all

NO_WARNING_CHECKS=yes /home/mint/Загрузки/oss-v4.2-build2011-src-gpl/configure

Code: Select all

mint@mint-MS-7816 ~/Загрузки/oss-v4.2-build2011-src-gpl/opt $ make
for n in lib cmd kernel os_cmd kernel/OS/Linux noregparm;do (echo $n && cd $n && make ARCH=x86_64) || eval 'exit 1'; done
lib
make[1]: Entering directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib'
for n in libOSSlib libossmix libsalsa;do (echo $n && cd $n && make ARCH=x86_64) || eval 'exit 1'; done
libOSSlib
make[2]: Entering directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libOSSlib'
sh ./compile.sh /lib "cc" "-O -fPIC" "make"
make[3]: Entering directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libOSSlib'
cc -O -fPIC   -c -o libmain.o libmain.c
cc -O -fPIC   -c -o midiparser.o midiparser.c
cc -O -fPIC   -c -o play_event.o play_event.c
cc -shared -fPIC -o libOSSlib.so libmain.o midiparser.o play_event.o
make[3]: Leaving directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libOSSlib'
make[2]: Leaving directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libOSSlib'
libossmix
make[2]: Entering directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libossmix'
cc -c -O -shared -fPIC -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_cache.c -o ./libossmix_cache.o
cc -c -O -shared -fPIC -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_local.c -o ./libossmix_local.o
cc -c -O -shared -fPIC -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_main.c -o ./libossmix_main.o
cc -c -O -shared -fPIC -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. libossmix_tcp.c -o ./libossmix_tcp.o
cc  -shared -fPIC -o ../../target/lib/libossmix.so ./libossmix_cache.o ./libossmix_local.o ./libossmix_main.o ./libossmix_tcp.o
make[2]: Leaving directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libossmix'
libsalsa
make[2]: Entering directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libsalsa'
libtool --tag=CC --mode=compile cc -O -I../../include -I../libOSSlib -c main.c
make[2]: libtool: Command not found
Makefile:13: recipe for target 'main.lo' failed
make[2]: *** [main.lo] Error 127
make[2]: Leaving directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib/libsalsa'
../make.defs:11: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory '/home/mint/Загрузки/oss-v4.2-build2011-src-gpl/opt/lib'
make.defs:11: recipe for target 'subdirs' failed
make: *** [subdirs] Error 1

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: Mint 18 OSS4

Postby igorzwx » Fri Jul 01, 2016 5:33 pm

verisokin wrote:Libraries Alsa are installed.
After compilation command:

Code: Select all

NO_WARNING_CHECKS=yes /home/mint/Загрузки/oss-v4.2-build2011-src-gpl/configure



Try "configure --enable-libsalsa=NO"

Code: Select all

NO_WARNING_CHECKS=yes /home/mint/Загрузки/oss-v4.2-build2011-src-gpl/configure --enable-libsalsa=NO


"libsalsa" is a sort of ALSA emulation crap ("не работает"):

In the future, more complete methods may be available for emulating ALSA, such as libsalsa and cuckoo.
_https://wiki.archlinux.org/index.php/Open_Sound_System#ALSA_emulation


In short, both "libsalsa and cuckoo" may work in Utopian dreams about imaginary future.

verisokin
Member
Posts: 11
Joined: Fri Jul 01, 2016 9:44 am
Sound Card: ENVY24 tremor + wm8741
OS: mint 17@ mint 18

Re: Mint 18 OSS4

Postby verisokin » Fri Jul 01, 2016 6:27 pm

Code: Select all

NO_WARNING_CHECKS=yes /home/mint/Загрузки/oss-v4.2-build2011-src-gpl/configure --enable-libsalsa=NO

Thank you. But I did not write that with this option, --enable-libsalsa=NO does not compile. Log the error, can put on Monday. Now writing from another computer on mint 17 without the option --enable-libsalsa=NO. All works with the support of alsa through oss4. - 4.4-assembled in mint 17, such as mint 18. To mint 18 with alsa support and without alsa support is not compiled. Very thankful for the OSS4 sound better than in Windows. Sounds like a lot of thousand dollar stationary CD players. In Windows it is impossible. Write through the translator. Sorry for bad English.

_https://wiki.archlinux.org/index.php/Open_Sound_System#ALSA_emulation
In mint 17 and it is made. Works for me using "jack".

verisokin
Member
Posts: 11
Joined: Fri Jul 01, 2016 9:44 am
Sound Card: ENVY24 tremor + wm8741
OS: mint 17@ mint 18

Re: Mint 18 OSS4

Postby verisokin » Fri Jul 01, 2016 7:25 pm

mint 18 differs from the mint 17 version of the gcc compiler. Maybe this is the problem?

igorzwx
Known Member
Posts: 1258
Joined: Sun Jun 28, 2009 9:31 pm

Re: Mint 18 OSS4

Postby igorzwx » Fri Jul 01, 2016 7:44 pm

verisokin wrote:mint 18 differs from the mint 17 version of the gcc compiler. Maybe this is the problem?


You may try to recompile OSS4 with the old compiler (gcc of Mint 17),
see: _http://ossnext.trueinstruments.com/forum/viewtopic.php?f=3&t=5586&start=30#p20366


1. "libsalsa" does not work.

2. The available "ALSA emulation" is not using "libsalsa".

Any "ALSA emulation" is crap, and it sounds crappy.

Instead of "ALSA emulation", you may just load some ALSA drivers
(e.g., MIDI modules, or USB drivers) together with OSS4, see topic:
"oss and alsa simultaneouly"
_http://ossnext.trueinstruments.com/forum/viewtopic.php?f=3&t=5801


OSS4 patch for gcc-5
_http://ossnext.trueinstruments.com/forum/viewtopic.php?f=3&t=5800#p21152

Code: Select all

$ ls -1
gcc-5.patch.txt
opensound
$ cat gcc-5.patch.txt | grep linux
--- kernel/OS/Linux/os_linux.h   2015-01-28 08:07:23.000000000 +0000
+++ kernel/OS/Linux/os_linux.h   2015-06-01 23:12:46.044784820 +0100


Code: Select all

$ cat ./opensound/kernel/OS/Linux/os_linux.h
#ifndef _OS_H_
#define _OS_H_

/*
 * Purpose: OS specific definitions for Linux
 *
 * Under Linux os.h (this file) defines just the macros, functions and
 * structures used by the code compiled in the development system. However
 * there are other Linux specific definitions contained in {!nlink Linux/wrap.h}
 * that are used both by the code compiled in the devlopment and target systems.
 * This means that some definitions found in os.h under some other operating
 * systems may be in wrap.h under Linux.
 */


File [in OSS4 source code]: ../opensound/kernel/OS/Linux/os_linux.h
You can edit it with a text editor.
Then you can recompile OSS4.

verisokin
Member
Posts: 11
Joined: Fri Jul 01, 2016 9:44 am
Sound Card: ENVY24 tremor + wm8741
OS: mint 17@ mint 18

Re: Mint 18 OSS4

Postby verisokin » Sat Jul 02, 2016 3:18 pm

Thank you. I'm going to do.

verisokin
Member
Posts: 11
Joined: Fri Jul 01, 2016 9:44 am
Sound Card: ENVY24 tremor + wm8741
OS: mint 17@ mint 18

Re: Mint 18 OSS4

Postby verisokin » Mon Jul 04, 2016 7:36 am

Thank you. Worked perfectly.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests