On Mon, Nov 17, 2014 at 4:51 PM, Thomas Jarosch
<thomas.jarosch@xxxxxxxxxxxxx> wrote:
> Hi Xiaofan,
>
> On Sunday, 16. November 2014 10:06:38 Xiaofan Chen wrote:
>> /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp:49:47
>> : error: too many arguments to function call,
>> expected 2, have 3
>> List* list = List::find_all(context, vid, pid);
>> ~~~~~~~~~~~~~~ ^~~
>> /usr/local/include/ftdi.hpp:180:5: note: 'find_all' declared here
>> static List* find_all(int vendor, int product);
>> ^
>
> thanks for testing :)
>
> This looks like a header mismatch, may be again
> conflicting with the "homebrew" stuff?
>
> The function signature of find_all() was changed from
>
> - static List* find_all(int vendor, int product);
>
> to
>
> + static List* find_all(Context &context, int vendor, int product);
>
> in commit 7c21beca63e7d4b07d7ebff25428ca4cfdbc8ec5
> That was already part of libftdi 1.0.
You are right, somehow I have libftdi0 and libftdi installed
from Homebrew. And that is not good to have anyway. I
uninstalled libftdi0 and now everything seems to be okay
now. So I consider this as a non-problem now.
>
> I've checked the CMakeLists.txt in the "examples" subdir:
> Actually it should prefer the local ftdi.hpp before any system wide file.
> Not sure why it picks up your file in /usr/local/include.
>
> You could try a "make VERBOSE=1" and just post the line when it compiles
> the ftdi_pp example. Then we can examine the include path.
Here it is. Not so sure if it is good or not.
[ 80%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o
cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples &&
/usr/bin/c++ -O2 -g -DNDEBUG -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/src -I/usr/local/include
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/ftdipp
-I/usr/local/include/libusb-1.0
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples -Wall
-o CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o -c
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp
Linking CXX executable find_all_pp
cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples &&
/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_link_script
CMakeFiles/find_all_pp.dir/link.txt --verbose=1
/usr/bin/c++ -O2 -g -DNDEBUG -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o -o find_all_pp
../ftdipp/libftdipp1.2.2.0.dylib ../src/libftdi1.2.2.0.dylib
/usr/local/lib/libusb-1.0.dylib
/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_progress_report
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/CMakeFiles 13
[ 80%] Built target find_all_pp
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
examples/CMakeFiles/serial_test.dir/build.make
examples/CMakeFiles/serial_test.dir/depend
cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build &&
/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_depends "Unix
Makefiles" /Users/xiaofanc/work/libftdi/libftdi1-1.2rc
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples/CMakeFiles/serial_test.dir/DependInfo.cmake
--color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
examples/CMakeFiles/serial_test.dir/build.make
examples/CMakeFiles/serial_test.dir/build
/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_progress_report
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/CMakeFiles 21
--
Xiaofan
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|