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

Unable to build out-of-source #36

Open
GoogleCodeExporter opened this issue Mar 25, 2015 · 4 comments
Open

Unable to build out-of-source #36

GoogleCodeExporter opened this issue Mar 25, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I'm trying to build libmpsse trunk (r202) out-of-source. So something like:


cd somedirectory
../../../libmpsse/src/configure --prefix=/local_install_directory 
CFLAGS="-I/myotherrootfs" LDFLAGS="-L/myotherrootfs/lib64"

Configure succeeds and generates a makefile but the file names are all relative 
to the original source directory.

This looks to come directly from Makefile.in (I'm not super familiar with 
autotools at this point):

mpsse.o: support.o
    $(CC) $(CFLAGS) $(LDFLAGS) -DLIBFTDI1=$(LIBFTDI1) -c mpsse.c

I've started to modify the Makefile.in to use ${srcdir) etc but I'm wondering 
if you would be opposed to switching to cmake. Libftdi uses it for their build 
system and I suspect it would make it much easier to handle things like this. 
It would also make it easier to detect libftdi, there is a helpful cmake script 
that libftdi installs that will retrieve the libraries and include paths.

I could provide the CMakeLists.txt file if that would be helpful as I need to 
integrate this into our build system and we try hard to perform out-of-source 
builds.

[email protected] if you want to get ahold of me.

Original issue reported on code.google.com by [email protected] on 14 Oct 2013 at 1:14

@GoogleCodeExporter
Copy link
Author

I would like Cmake too! ;)   ... along with git source code control... But I'm 
probably asking too much.

Original comment by [email protected] on 29 Nov 2013 at 4:08

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I've actually completed the switch on my github account. Check it out here:

https://github.com/chmorgan/libmpsse

And let me know how it works for you. Patches welcome.

Chris

Original comment by [email protected] on 29 Nov 2013 at 10:50

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Oh, and its on the cmake_wip branch btw. I haven't merged that branch back into 
master yet.

Original comment by [email protected] on 30 Nov 2013 at 6:56

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I've updated this cmake_wip branch to include a find_packages() script for 
libmpsse, along with an example of how to find libmpsse from your 
CMakeLists.txt file.

Original comment by [email protected] on 18 Dec 2013 at 12:15

  • Added labels: ****
  • Removed labels: ****

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

No branches or pull requests

1 participant