Wednesday, August 12, 2015

How to install x11 in cent OS

Error: HGraf.c:118:77: error: X11/Xlib.h: No such file or directory

solution: https://ask.fedoraproject.org/en/question/27815/cant-compile-with-xlib/

If you're trying to determine what package has a header file, you can either run:

repoquery -qf /usr/include/X11/Xlib.h

(that will tell you what package has that file, you do need to know the full path, but it is usually pretty obvious)

Or, if you just want to install the package with that header file:

yum install /usr/include/X11/Xlib.h

Yum can do that because it has filelists_db in the extended repodata. :)

Tuesday, August 11, 2015

sox FAIL formats: can't open input file `text1c.wav': No such file or directory


Command: sox text1.wav -r 16000 text1b.wav resample

Error: sox FAIL formats: can't open input file `text1c.wav': No such file or directory

Solution: 
remove word 'resample' from command. Use the following:

sox text1.wav -r 16000 text1b.wav 

sox FAIL sox: Input files must have the same sample-rate

Command: sox text1.wav -r 16000 text1b.wav resample

Error: sox FAIL sox: Input files must have the same sample-rate

Solution: 
remove word 'resample' from command. Use the following:

sox text1.wav -r 16000 text1b.wav 


Friday, May 29, 2015

how to remove crossplatformui

  1. Enter /var/lib/dpkg/info

    cd /var/lib/dpkg/info  
  2. Delete all entry related to crossplatformui

    sudo rm crossplatformui.*  
  3. Force remove crossplatformui

    sudo dpkg --remove --force-remove-reinstreq crossplatformui    (Reading database ...   dpkg: warning: files list file for package `crossplatformui' missing, assuming package has no files currently installed.    (Reading database ... 159448 files and directories currently installed.)    Removing crossplatformui ... 

Source: http://askubuntu.com/questions/136423/crossplatformui-error

Wednesday, March 25, 2015

How to add header file in Visul stidio 2008

If you write in your code something like #include "FileWrite.h" you need to make sure compiler can find that file. There are three options:

  • FileWrite.h should either be in the same directory as your source code file (.cpp) or
  • Path to that header file should should be listed in project's Properties (in C/C++ -> General -> Additional Include Directories) or
  • Path could be set in your VisualStudio - add it to Include Files in Tools->Options->Projects and Solutions->VC++ Directories

Which of these options shell be used depends on whether that header originates from this project (1st option) or some other project (any of other two options).


Wednesday, December 3, 2014

Can't locate Audio/Wav.pm

Error: Can't locate Audio/Wav.pm

Solution: install the missing Audio::Wav dependency module by following command:
sudo cpan Audio::Wav