Configure Error Libusb Header File Not Found
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you install libusb mac might have Meta Discuss the workings and policies of this site
Libusb-dev Mac
About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Libusb-1.0/libusb.h' File Not Found Mac
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
"library Not Found For -lusb"
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Linking libusb in Mac OS X up vote 1 down vote favorite 1 I have this very simple piece of code that I'm trying to compile. I'm fairly new to GCC from the command line, so please fatal error: libusb.h: no such file or directory forgive me. I've tried a quite few different things with GCC, but I'm still unable to get it to compile. I do have libusb installed. How can I get this piece of code to compile? Libusb: anything:usb mymac$ brew list libusb /usr/local/Cellar/libusb/1.0.9/include/libusb-1.0/libusb.h /usr/local/Cellar/libusb/1.0.9/lib/libusb-1.0.0.dylib /usr/local/Cellar/libusb/1.0.9/lib/pkgconfig/libusb-1.0.pc /usr/local/Cellar/libusb/1.0.9/lib/ (2 other files) anything:usb mymac$ GCC attempts (all failed): gcc -o xout usbtest.c gcc -o xout usbtest.c -lusb-1.0 gcc -L/usr/local/Cellar/libusb/1.0.9/lib -o xout usbtest.c -lusb-1.0 Error for all attempts: usbtest.c:3:10: fatal error: 'libusb.h' file not found #include
Board index The team Delete all board cookies All times are UTC
found when trying to compile hplip Pages 1 You must login or register to post a reply RSS https://forum.openwrt.org/viewtopic.php?id=44872 topic feed Posts: 9 1 Topic by dasMopo 2013-06-21 22:39:53 https://sourceforge.net/p/libusb/mailman/message/29431892/ dasMopo Member Offline Registered: 2013-02-05 Posts: 9 Topic: libusb.h not found when trying to compile hplip I'm starting to get nuts at this problem:I'm trying to build hplip-3.13.5 on trunk, because in the prebuild 3.9.x my printer isn't supported.So far, so good, but not found when I try to compile hplip I receive the following error:In file included from io/hpmud/hpmudi.h:49:0, from io/mudext/hpmudext.c:29: io/hpmud/musb.h:33:20: fatal error: libusb.h: No such file or directory compilation terminated.What's kind of weird, because in the configure phase of the very same build it reads: checking for libusb_init in -lusb-1.0... yes checking libusb-1.0/libusb.h usability... yes file not found checking libusb-1.0/libusb.h presence... yes checking for libusb-1.0/libusb.h... yesI'm starting to drive mad, so any help is highly appreciated.Have a look at the makefile I'm using:# # Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=hplip PKG_VERSION:=3.13.5 #PKG_VERSION:=3.10.6 PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/hplip PKG_MD5SUM:= # cd7edef6b2df2cdb468b145cd2127e1b # 3.13.2 PKG_BUILD_DEPENDS := python PKG_FIXUP:=autoreconf include $(INCLUDE_DIR)/package.mk define Package/hplip SECTION:=utils CATEGORY:=Utilities TITLE:=HP Linux Imaging and Printing URL:=http://sourceforge.net/projects/hplip/ DEPENDS+=+libjpeg +libtiff +libusb-1.0 +cups +sane-libs endef define Package/hplip/description HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. endef CONFIGURE_ARGS += \ --disable-gui-build \ --disable-network-build \ --disable-fax-build \ --disable-pp-build \ --disable-doc-build \ --enable-libusb \ --disable-foomatic-xml-install \ --disable-dbus-build define Build/Configure $(call Build/Configure/Default,\ $(CONFIGURE_ARGS),\ ac_cv_lib_cups_cupsDoFileRequest=yes \ LIBS="-lz -ljpeg -lusb-1.0 -lcups -lpng -ltiff" \ ) endef define Package/hplip/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_BUILD_DIR)/.libs/libhpip.so* $(1)/usr/lib/ $(CP) $(PKG_BUILD_DIR)/.libs/libhpmud.so* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/usr/lib/cups/backend $(INSTALL_BIN) $(
clean. Screenshot instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse libusb Mailing Lists libusb A cross-platform library that gives apps easy access to USB devices Brought to you by: cdickens, dsd_, hjelmn, jerdfelt, and 4 others Summary Files Reviews Support Wiki Mailing Lists libusb-devel Re: libusb cannot be found during installing the usbmuxd Re: libusb cannot be found during installing the usbmuxd From: Xiaofan Chen