I have successfully build and used cpptest on windows. Downloaded from https://sourceforge.net/projects/cpptest/. Now I want to build same on Linux platform. but I am not able to build because config.h file is not present in downloaded zip file which is used inside collectoroutput.cpp. Can anyone guide me how I can build cpptest on Linux. zip folder has INSTALL.quick file but that is not working for me. Please find attached command on linux from INSTALL.quick and error on execution that command.Command and error on execution
Download cpptest-1.1.2.tar.gz
and unpack.
$ cd cpptest-1.1.2/
$ ./configure
$ make
$ sudo make install
works fine with ubuntu 16.04
Related
I'm having problems compiling LANShare's sourcecode.
I need to compile this program because i need to use it on a 32-bit unix machine and there's no .deb or appimage release file.
This is LANShare.
As you can see there's no config file and i don't know how i can proceed with compilation.
I compiled from source many times but here there's no Readme nor instructions, then I opened an issue but there's no response yet.
Found a solution, thanks to n. 1.8e9-where's-my-share m.
Theese instructions should be valid for any Debian 10 install.
To install qt tools:
sudo apt install qt5-qmake qt5-default
then to compile:
qmake -o Makefile LANShare.pro
make
within the README.md file there is:
You can download the Ubuntu package or linux AppImage or Windows executable from the release page.
https://github.com/abdularis/LAN-Share/releases
Using .deb (Ubuntu/Debian)
download the latest version, for example lanshare_1.2.1-1_amd64.deb then open a terminal, navigate to directory where the downloaded package is located and type
$ sudo dpkg -i ./lanshare_1.2.1-1_amd64.deb
I want to embed the python script in my c++ Qt application, By searching on the net I found that PythonQt is exactly what I am looking for but when I went to it's github repo there is build description given for windows system but not for ubuntu system so after cloning the repo if I include it's src in my Qt .pro file it gives me output that
Python.h not found, I think the reason is that I didn't build it in my system. Is there anyone who could tell me that how to build PythonQt in ubuntu. The link for their repo is this: https://github.com/MeVisLab/pythonqt
If this didn't work you can also suggest me some other thing which will help me to embed python scripts into my Qt c++ application.
First clone the repo by using the following command
https://github.com/MeVisLab/pythonqt.git
After that cd into the clone folder and execute the below command to build it into your system.
qmake
This command will generate the MakeFile into your current directory run the following command to completely build the PythonQt in your system.
sudo make all
sudo make install
While executing those commands if you get the following error
fatal error: 'private/qmetaobjectbuilder_p.h'
Run the below command to solve this
sudo apt install qtbase5-private-dev
I'm running eclipse on SUSE with gcc compiler installed.
When I create new "Hello World" C++ project, clean and build and run I'm faced with "Launch Failed: Binary Not Found".
I try to set a run configuration only to find no binary has been created, no binary folder has been created in project.
Only message from build is :
**** Build of configuration Debug for project HelloWorld ****
(Cannot run program "make": Unkown reason)
Binary Parser is set to Elf.
Tried everything on SO with no success. Only thing I can think of is binary file is being created elsewhere....but no idea where it could be.
Help much appreciated.
I have faced this issue before due to incorrect installation of C++ compiler
use this command in the terminal
zypper in gcc
and then try again , I actually had this so I Finally Switched to Visual Studio community 2015 it works fine for me
I hope this helps you
adding a link below
http://www.linuxquestions.org/questions/linux-software-2/installing-gcc-on-suse-enterprise-11-a-903014/
Try to reinstall the g++(gcc) compiler
→if you're using arch linux:
sudo pacman -S gcc
→if you're using Debian based distributions (like Ubuntu, Mint...)
sudo apt-get install gcc
or
sudo aptitude install gcc
→if you're using OpenSUSE
sudo zypper install gcc
I forget how to install on fedora(22+)/RedHat ...
→From source Gcc Wiki
After installing, create a "helloworld.cpp" file, then manually compile it, for test, open a terminal on the same directory of this file, then type:
g++ helloworld.cpp -o executable
And run it:
./executable
If compiling manually works, and eclipse compiling don't, try to install Make (use "make" instead of "gcc" on commands)
The helloworld.cpp file, can have the following code:
#include<iostream>
int main()
{
std::cout<<"Hello World!"<< std::endl;
return 0;
}
I'm trying to install Boost for c++. Since I use cygwin (on Windows 7) I follow these instructions for Unix.
I start by downloading boost_1_55_0.zip from sourceforge. The instructions tell me to run tar --bzip2 -xf /path/to/boost_1_55_0.zip but this doesn't work (probably because the downloaded file is .zip and not .tar.bz2; I can't find the latter anywhere to download), so instead I use winrar and unzip it into /usr/local.
After this the header-only libraries work fine, but I need the ones where a build is necessary.
The instructions tells me to go to the boost folder and run./configure --help, but this doesn't work; I get the message -bash: ./configure: No such file or directory. So I locate the file configure in the folder /usr/local/boost_1_55_0/tools/build/v2/engine/boehm_gc, go there and try again, and this time it works: I get the help for configure.
I then try to run ./configure --prefix=/usr/local/boost_1_55_0 --enable-cplusplus but get the error message configure: error: cannot run /bin/sh ./config.sub. I try it with only one or none of the options too but that doesn't help.
Any ideas?
I don't know what guide you're following, but to install boost I have done:
cd boost
./bootstrap.sh
./b2
./b2 install
stop
As report boost doc:
If you plan to build from the Cygwin bash shell, you're actually
running on a POSIX platform and should follow the instructions for
getting started on Unix variants. Other command shells, such as
MinGW's MSYS, are not supported—they may or may not work.
I'm trying to install PyAudiere (on MacOS 10.5), and it needs Audiere installed. I downloaded the Unix source from the Audiere website and ran configure and the makefile. I also tried adding audiere.h to the g++ include path with the command:
g++ -I /[...]/audiere-1.9.4/src audiere.h.
This did something, but I'm not sure what. When I try to install PyAudiere using
python setup.py install
it always says
error: audiere.h: No such file or directory.
Have I installed Audiere? If not, how do I do it?
Disclaimer: I know virtually nothing about mac OS
If you have run configure:
./configure
and the makefile:
make
Have you then run:
make install
Without running make install you have simply compiled the files but not installed them into your system. Under linux you might have to run sudo make install in order to get the administrative privileges required to install files.