I'm very sorry for the quality of your software... at least in the packaging matter it sucks...
So, I tried first installing from .deb packages the 2.0.0, fails...
Second, I created succesfully the 1.5.0 versions of vhba and libmirage... but NO cdemu-daemon... it turns out, that if I even installed libmirage6-1.5.0 and libmirage6-1.5.0-dev... the package building of cdemu-daemon-1.5.0 fails with this:
cdemud.h:43:20: error fatal: mirage.h: No existe el archivo o el directorio compilación terminada. make[3]: *** [cdemud-audio.o] Error 1 make[3]: se sale del directorio «/home/joseluis64/Descargas/Programas/compilados/cdemu-daemon-1.5.0/src» make[2]: *** [all-recursive] Error 1 make[2]: se sale del directorio «/home/joseluis64/Descargas/Programas/compilados/cdemu-daemon-1.5.0» make[1]: *** [all] Error 2 make[1]: se sale del directorio «/home/joseluis64/Descargas/Programas/compilados/cdemu-daemon-1.5.0» dh_auto_build: make -j1 returned exit code 2 make: *** [build] Error 2 dpkg-buildpackage: fallo: debian/rules build devolvió un estado de salida de error 2
So, what option do I have to use your software in Ubuntu 12.04.2, the distro of my choice?
Installing from PPA; dead support to my distro, I won't touch that, even if I'm crazy, but yes I installed from the PPA first, it didn't work and was a real pain in the ass removing completely all the crap that the PPA installed on my system, with the vhba-dkms package.
Installing the latest from tarballs, doesn't work: https://sourceforge.net/p/cdemu/support-requests/17/
Building .deb packages, that "makes" the things simplier, doesn't work either: https://sourceforge.net/p/cdemu/support-requests/17/#e13b
Navely building and packaging the version that belongs to the distro that I use didin't work either!
The same error I show here is the same I got when compiling from tarball.
Please use the latest releases of libmirage and cdemu-daemon (and the rest of components, for that matter). They both install on Ubuntu 12.04.2 just fine, either from sources, or by building a .deb. For libmirage deb to build, you need to modify debian/libmirage8.install and debian/libmirage8-dev.install by replacing all occurences of "usr/lib/*/..." with "usr/lib/..." (remove the asterisk in between, since as Henrik said, Ubuntu 12.04.2 apparently does not build multi-arch).
Regarding the missing mirage.h, my guess would be that you have a left-over libmirage.pc file lying around. If you run "pkg-config --cflags libmirage", does it return a valid include directory for libmirage, which contains the header files?
well cdemu-daemon compile doesn't finish with this error:
And pkg-config --cflags libmirage, returns this:
-pthread -I/usr/local/include/libmirage -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
and /usr/local/include/libmirage is not a valid directory.
Last edit: Jose Luis Triana 2013-08-30
Looks like an invalid (left-over from one of installation attempts?) libmirage.pc lying around. Is it in /usr/local/lib/pkg-config/libmirage.pc?
As for the asterisk, I meant changing "usr/lib//lib.so." to "usr/lib/lib.so.", "usr/lib//libmirage-2.1/.so" to "usr/lib/libmirage-2.1/.so", etc., since per-arch directories do not seem to be used in 12.04.
Ok... I finally made the installation of libmirage through a DEB package, vhba module and cdemu-daemon as well, but when I wan't to open cdemu-daemon; And it does not work, the same error as before:
cdemu-daemon
cdemu-daemon: symbol lookup error: /usr/local/lib/libmirage-2.1/filter-isz.so: undefined symbol: BZ2_bzDecompressEnd
So maybe the problem is not Ubuntu or the multi-arch, but another thing.
for the pkgconfig thing, yes it was a leftover of failed installation attempts, but I set the variable PKG_CONFIG_PATH to /usr/lib/pkgconfig and I was able to build and install the cdemu-daemon .deb package.
Last edit: Jose Luis Triana 2013-08-30
OK, think I have found the reason for that one. The older cmake's FindBZip2 module does not seem to set BZIP2_LIBRARY (which is what we use, though we should probably use BZIP2_LIBRARIES instead), and as a result, plugins that require libbz2 are not linked against it.
Can you try editing libmirage's CMakeLists.txt and replace all occurences of BZIP2_LIBRARY with BZIP2_LIBRARIES, then rebuild and reinstall libmirage package?
I had installed gCDEmu in the past, it stopped working with an error:
So, I did a Complete Removal in Synaptic of cdemu-daemon, gCDEmu, and cdemu-client. After reloading the packages they disappeared from Synaptic. I looked for the PPA at https://launchpad.net/~cdemu/+archive/ppa and found that only Quantal and above still have packages. So, I couldn't re-install without rebuilding manually, and this thread makes me believe that that's not going to be easy.
Is there a reason not to have the older version available? Particularly Ubuntu Precise, since it is one of their LTS releases, it is going to be one of the more commonly-installed versions.
The main reason is that the packages in the PPA are provided for Ubuntu versions that we (or rather, Henrik) use. The old packages are deleted to avoid giving people the impression that they are still supported, since neither Henrik nor I wish to be "full-time" package maintainers, i.e., supporting several old releases and solving problems on distributions we don't use (anymore). For that, someone would have to step up as official package maintainer for ubuntu (and/or debian), similar as how it is done for other distributions.
That being said, we provide the debian packaging scripts with the source for convenience and to make it easier (or harder, depending on your take) to build the packages yourself.
The current git code (which if I recall correctly has some fixes in build scripts) builds in my Ubuntu 12.04 VM; but as stated above, you need to edit libmirage/debian/libmirage9.install and libmirage/debian/libmirage9-dev.install, replacing all occurences of "usr/lib/*/" to "usr/lib/" (removing the asterisk).
Also, can you please check what the actual daemon's error was? The daemon's output should be in your home directory, in file ".cdemu-daemon.log". If it turns out that kernel module was not built by dkms, can you check the log for corresponding kernel in /var/lib/dkms/vhba?
.cdemu-daemon.log in the home directory