From: Frans S. <fra...@gm...> - 2010-02-26 14:31:34
|
Dear Aleksej, I have succeeded to build the latest snapshot (831) with osx 10.5, you can find the package here (I hope it works on your mac too): http://usbpicprog.org/downloads/usbpicprog-831-20100226-osx.app.zip There were some things that I had to change in the usbpicprog archive: -There were some cout<<wxString statements in the source code. This works in Linux and Windows, but the osx gcc compiler has some problems with it, so I had to change it to wxString.mb_str() -on Windows, there was a function in libusb called "libusb_strerror", but it didn't exist in Linux so I included it in hardware.cpp inside #ifdef __WXGTK__, this had to be changed in #ifndef __WXMSW__ -The makefile installed /etc/udev/rules.d/26-microchip.rules by default. This is a Linux thing only, so it had to be removed for osx -some things in buildmac.sh have been updated to build successfully. I think it should build now on your system as well! Kind regards, Frans Schreuder On 25-2-2010 17:09, Aleksej Horvat wrote: > Dear Frans, > > Thank you for your continuing support. Removing the line did clear up > the libusb error. Unfortunately just past that line, I receive many > errors relating to wxwidgets, although I also have that installed. I > will look into that, but I am curious what you will find this > weekend. Sorry that I have to ask for this level of support, but > configure and make are still a bit of a mystery for me. I'll keep you > informed if I find anything. > > Sincerely, > Aleksej > > On 25 feb 2010, at 08:25, Frans Schreuder wrote: > >> Dear Aleksej, >> >> This weekend, I can borrow a mac from someone, I will try it myself. >> It was indeed using some old configuration files, in order to be able >> to run from the subversion tree. >> if you remove the line cp -R osx/* . from configure.sh, this might >> help, but I will try further. (you will need to extract the fresh >> archive before). >> >> Kind regards, >> >> Frans Schreuder >> >> On 24-2-2010 22:38, Aleksej Horvat wrote: >>> Dear Frans, >>> >>> Thank you for your help. I was in fact trying to install the >>> version 0.3.0. I have tried following your advice and dowloaded the >>> newer branch you mentioned below. Unfotunately, the build fails at >>> exactly the same point, even though I have libusb 1.0.6 installed. >>> Perhaps there is something outdated in the buildmac.sh file as the >>> error I receive still refers to libusb 0.1.x >>> >>> Could you please provide some instructions as to how I can change >>> this, or perhaps copy libusb to where the script expects to find >>> it. Included below is my terminal outpout. >>> >>> Thanks sincerely, >>> Aleksej >>> >>> Renovatio:usbpicprog-823-20100219 ahorvat$ ./buildmac.sh make: *** >>> No rule to make target `clean'. Stop. >>> checking for a BSD-compatible install... /usr/bin/install -c >>> checking whether build environment is sane... yes >>> checking for a thread-safe mkdir -p... ./install-sh -c -d >>> checking for gawk... no >>> checking for mawk... no >>> checking for nawk... no >>> checking for awk... awk >>> checking whether make sets $(MAKE)... yes >>> checking whether to enable maintainer-specific portions of >>> Makefiles... no >>> checking for style of include used by make... GNU >>> checking for gcc... gcc >>> checking for C compiler default output file name... a.out >>> checking whether the C compiler works... yes >>> checking whether we are cross compiling... no >>> checking for suffix of executables... >>> checking for suffix of object files... o >>> checking whether we are using the GNU C compiler... yes >>> checking whether gcc accepts -g... yes >>> checking for gcc option to accept ISO C89... none needed >>> checking dependency style of gcc... gcc3 >>> checking for library containing strerror... none required >>> checking for gcc... (cached) gcc >>> checking whether we are using the GNU C compiler... (cached) yes >>> checking whether gcc accepts -g... (cached) yes >>> checking for gcc option to accept ISO C89... (cached) none needed >>> checking dependency style of gcc... (cached) gcc3 >>> checking for gcc... (cached) gcc >>> checking whether we are using the GNU C compiler... (cached) yes >>> checking whether gcc accepts -g... (cached) yes >>> checking for gcc option to accept ISO C89... (cached) none needed >>> checking dependency style of gcc... (cached) gcc3 >>> checking how to run the C preprocessor... gcc -E >>> checking for grep that handles long lines and -e... /usr/bin/grep >>> checking for egrep... /usr/bin/grep -E >>> checking for ANSI C header files... yes >>> checking how to run the C preprocessor... gcc -E >>> checking for g++... g++ >>> checking whether we are using the GNU C++ compiler... yes >>> checking whether g++ accepts -g... yes >>> checking dependency style of g++... gcc3 >>> checking build system type... powerpc-apple-darwin9.8.0 >>> checking host system type... powerpc-apple-darwin9.8.0 >>> checking for a sed that does not truncate output... /usr/bin/sed >>> checking for fgrep... /usr/bin/grep -F >>> checking for ld used by gcc... >>> /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld >>> checking if the linker >>> (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) is GNU ld... no >>> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p >>> checking the name lister (/usr/bin/nm -p) interface... BSD nm >>> checking whether ln -s works... yes >>> checking the maximum length of command line arguments... 196608 >>> checking whether the shell understands some XSI constructs... yes >>> checking whether the shell understands "+="... yes >>> checking for /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld option >>> to reload object files... -r >>> checking for objdump... no >>> checking how to recognize dependent libraries... pass_all >>> checking for ar... ar >>> checking for strip... strip >>> checking for ranlib... ranlib >>> checking command to parse /usr/bin/nm -p output from gcc object... ok >>> checking for dsymutil... dsymutil >>> checking for nmedit... nmedit >>> checking for lipo... lipo >>> checking for otool... otool >>> checking for otool64... no >>> checking for -single_module linker flag... yes >>> checking for -exported_symbols_list linker flag... yes >>> checking for sys/types.h... yes >>> checking for sys/stat.h... yes >>> checking for stdlib.h... yes >>> checking for string.h... yes >>> checking for memory.h... yes >>> checking for strings.h... yes >>> checking for inttypes.h... yes >>> checking for stdint.h... yes >>> checking for unistd.h... yes >>> checking for dlfcn.h... yes >>> checking whether we are using the GNU C++ compiler... (cached) yes >>> checking whether g++ accepts -g... (cached) yes >>> checking dependency style of g++... (cached) gcc3 >>> checking how to run the C++ preprocessor... g++ -E >>> checking for objdir... .libs >>> checking if gcc supports -fno-rtti -fno-exceptions... no >>> checking for gcc option to produce PIC... -fno-common -DPIC >>> checking if gcc PIC flag -fno-common -DPIC works... yes >>> checking if gcc static flag -static works... no >>> checking if gcc supports -c -o file.o... yes >>> checking if gcc supports -c -o file.o... (cached) yes >>> checking whether the gcc linker >>> (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) supports shared >>> libraries... yes >>> checking dynamic linker characteristics... darwin9.8.0 dyld >>> checking how to hardcode library paths into programs... immediate >>> checking whether stripping libraries is possible... yes >>> checking if libtool supports shared libraries... yes >>> checking whether to build shared libraries... yes >>> checking whether to build static libraries... yes >>> checking for ld used by g++... >>> /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld >>> checking if the linker >>> (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) is GNU ld... no >>> checking whether the g++ linker >>> (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) supports shared >>> libraries... yes >>> checking for g++ option to produce PIC... -fno-common -DPIC >>> checking if g++ PIC flag -fno-common -DPIC works... yes >>> checking if g++ static flag -static works... no >>> checking if g++ supports -c -o file.o... yes >>> checking if g++ supports -c -o file.o... (cached) yes >>> checking whether the g++ linker >>> (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) supports shared >>> libraries... yes >>> checking dynamic linker characteristics... darwin9.8.0 dyld >>> checking how to hardcode library paths into programs... immediate >>> checking locale.h usability... yes >>> checking locale.h presence... yes >>> checking for locale.h... yes >>> checking for LC_MESSAGES... yes >>> checking libintl.h usability... no >>> checking libintl.h presence... no >>> checking for libintl.h... no >>> checking whether NLS is requested... yes >>> checking for intltool >= 0.35.0... 0.40.6 found >>> checking for intltool-update... /opt/local/bin/intltool-update >>> checking for intltool-merge... /opt/local/bin/intltool-merge >>> checking for intltool-extract... /opt/local/bin/intltool-extract >>> checking for xgettext... /opt/local/bin/xgettext >>> checking for msgmerge... /opt/local/bin/msgmerge >>> checking for msgfmt... /opt/local/bin/msgfmt >>> checking for gmsgfmt... /opt/local/bin/msgfmt >>> checking for perl... /opt/local/bin/perl >>> checking for perl >= 5.8.1... 5.8.9 >>> checking for XML::Parser... ok >>> checking for wx-config... /usr/local/bin/wx-config >>> checking for wxWidgets version >= 2.8.0... yes (version 2.9.0) >>> checking for wxWidgets static library... yes >>> checking for usb_bulk_write in -lusb... no >>> configure: error: >>> Libusb 0.1.x is required. >>> >>> Please install it from your package manager. >>> >>> make: *** No targets specified and no makefile found. Stop. >>> make: Nothing to be done for `install'. >>> cp: src/usbpicprog.app/Contents/MacOS/output/bin/usbpicprog: No such >>> file or directory >>> cp: src/usbpicprog.app/Contents/MacOS/output/lib/locale: No such >>> file or directory >>> cp: libs//libusb.dylib: No such file or directory >>> otool: can't open file: libs//libusb.dylib (No such file or directory) >>> install_name_tool: can't open file: >>> src/usbpicprog.app/Contents/SharedSupport/libusb.dylib (No such file >>> or directory) >>> Usage: install_name_tool [-change old new] ... [-id name] input >>> >>> >>> On 22 feb 2010, at 08:53, Frans Schreuder wrote: >>> >>>> Dear Aleksej, >>>> >>>> I am sorry that I have missed your message. >>>> the forums have been deleted because usbpicprog had too many >>>> channels of >>>> getting support, we have now chosen to use the mailing list >>>> usb...@li... as the main support >>>> channel. >>>> >>>> I think the problem you are facing is the version of libusb that >>>> usbpicprog demands, and this is also related to the version of >>>> usbpicprog that you are trying to compile. >>>> I think you have tried to compile version 0.3.0 which needs >>>> libusb-0.1. >>>> However, we recently switched to the newer version of libusb; >>>> libusb-1.0, this is true for any development branch of usbpicprog > >>>> 803. >>>> I suggest that you try downloading >>>> http://usbpicprog.org/downloads/usbpicprog-823-20100219.tar.gz and >>>> build >>>> it. >>>> You will also need the development version of wxWidgets, 2.9.0 >>>> installed. >>>> >>>> Kind regards, >>>> >>>> Frans Schreuder >>>> >>>> >>>> >>>> On Sun, 2010-02-21 at 18:41 +0100, Aleksej Horvat wrote: >>>>> Name: Aleksej Horvat >>>>> >>>>> Email: ah...@ma... >>>>> >>>>> Subject: Mac OS X PPC Compile >>>>> >>>>> Message: Hello, >>>>> A few days ago I posted a request for advice in the forum on >>>>> SourceForge. As of now I see that the forum has This leads me to >>>>> believe that I won't be receiving any advice. >>>>> I am running OS X 10.5.8 on PPC Mac, however, I have attempted the >>>>> buildmac.sh on an Intel Mac I have access to and it fails at the same >>>>> point. I have installed the latest wxwidgets and libusb (through >>>>> fink, >>>>> although that shouldn't matter). The problem is related to the 'has >>>>> libusb' check in the makefile, relating to the usb_bulk_write >>>>> command. >>>>> I have checked my installation and I do have libusb in my path. >>>>> I have basic programming experience, but I am unfortunately not >>>>> terribly familiar with the make syntax at this moment. Which means I >>>>> am not able to immediately debug the makefile. Perhaps if you gave me >>>>> some advice, I could try and let you know what happens. Terminal >>>>> output does not fit the character limit here. >>>>> Any help would be greatly appreciated, >>>>> Aleksej >>>>> >>>>> IP: 85.146.126.46 >>>>> HOST: s55927e2e.adsl.wanadoo.nl >>>>> >>>>> >>>> >>> > |