-
Notifications
You must be signed in to change notification settings - Fork 25
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
building issues (not respecting PYDEV -> defaulting to Python 2.7, libftdi.h not found) #16
Comments
The |
Yes, it worked. I can either set it in one command or export it first then use it in the same session with configure. Thanks!
I played around and the second problem might be an issue with the define HAVE_LIBFTDI1 in mpsse.h there is following preprocessor statement:
I modified it to:
Now it compiles without errors as ftdi.h is present in /usr/include/libftdi1 and not /usr/include. But it seems it tries to call with HAVE_LIBFTDI1 != 1 two times, see the attached make output (maybe from swig?) |
Hey @maksymko check this out! |
libftdi include issue should be addressed by #15 |
Yes, compiles with the stated branch, no further problems were noticed. Did not perform any further tests as I didn't know what to test for. I also did not further investigate the pull request, just used your branch. Just for completeness. Thanks for your help! |
@NeoFromMatrix , Thanks! I meant to ask to test the build, i.e. if it builds, so that's enough, thank you. |
I'm running Fedora 30 and currently face two isses when building libmpsse.
It appears that the PYDEV variable is not respected. I have python2-devel and python3-devel installed. I want to build with python3, therefore I set my include dir; PYDEV=/usr/include/python3.7m/
But when running ./configure it always takes python/python2
Second issue: while compiling with make, it fails to find ftdi.h (of course, libftdi and libftdi-devel is installed)
libftdi.h is in /usr/include/libftdi1/ present
If I add the full path to the header file to the Makefile after calling ./configure (line 163, to variable DEFAULT_INCLUDES) the build is successful. Otherwise I will get an error:
Any idea what the reasons could be?
Version numbers of the installed packages:
autoconf.noarch 2.69-31.fc30
automake.noarch 1.16.1-13.fc30
libtool.x86_64 2.4.6-29.fc30
libtool-ltdl.i686 2.4.6-29.fc30
libtool-ltdl.x86_64 2.4.6-29.fc30
swig.x86_64 3.0.12-24.fc30
python2-devel.x86_64 2.7.17-1.fc30
python3-devel.x86_64 3.7.5-1.fc30
libftdi.x86_64 1.3-16.fc30
libftdi-devel.x86_64 1.3-16.fc30
The text was updated successfully, but these errors were encountered: