Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work out of the box in VM #2

Closed
pierluca opened this issue Jul 16, 2014 · 12 comments
Closed

Doesn't work out of the box in VM #2

pierluca opened this issue Jul 16, 2014 · 12 comments
Assignees
Labels

Comments

@pierluca
Copy link

The build system doesn't include /usr/local/lib and /usr/local/include

This means that installed packages such as cpputest are not available at link-time and the builds fail.

Please fix.

@pierluca pierluca added the bug label Jul 16, 2014
@antoinealb
Copy link
Member

OK will take a look.

@antoinealb antoinealb self-assigned this Jul 17, 2014
@antoinealb
Copy link
Member

Could you be more specific ? I was able to build and run the tests for the pid package with an out of the box VM.

@pierluca
Copy link
Author

By executing the exact same code as .travis.yml in a brand new VM, I have
to manually
add /usr/local/include and linkpath /usr/local/lib for the make process to
work.

On Thu, Jul 17, 2014 at 10:44 AM, Antoine Albertelli <
notifications@github.com> wrote:

Could you be more specific ? I was able to build and run the tests for the
pid package with an out of the box VM.


Reply to this email directly or view it on GitHub
#2 (comment).

@antoinealb
Copy link
Member

Did you do the installation of Cpputest yourself ? Or did you use the version that is already in the VM ?

@antoinealb
Copy link
Member

Those are the commands I used :

git clone https://github.com/cvra/packager
git clone https://github.com/cvra/pid
cd pid/
../packager/packager.py 
mkdir build
cd build
cmake ..
make

@antoinealb
Copy link
Member

Could you confirm it doesn't work with above commands ? Otherwise I will close the issue as I cannot reproduce it.

@pierluca
Copy link
Author

Did you do the installation of Cpputest yourself ? Or did you use the version that is already in the VM ?

This seems to be the problem. If you get the latest Cpputest version and install it, you need to specify the include/link paths for /usr/local/[include,lib] , otherwise the make fails.

@antoinealb
Copy link
Member

Have you tried removing the installed version of cpputest before installing it from source ?

@antoinealb
Copy link
Member

Also why do you need to install cpputest from source ?

@pierluca
Copy link
Author

to use the same version we're asking travis-ci to run.

@antoinealb
Copy link
Member

Did you get into a situation where behavior was different ?

@pierluca
Copy link
Author

No... but I'd rather not have to find out the hard way :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants