|
From: Earnie B. <ea...@us...> - 2004-09-24 22:44:54
|
You're using native windows paths, try ``make -win32'' or change your paths to something like /home/source. Earnie Mark Osborne wrote: >I'm new to compiling code on Msys and need some startup help. I'm trying to >make >the following makefile but have some problems that i'm sure will seem >trivial to the pros... > >my questions are >Do the pathnames in require to be DOS 8.3 type ie /Progra~1/ for this to >compile ? >Can I build in the same place as my source files ? >How do I invoke the javac command given the error on making this file is >that the >make: javac: command not found ? (Do I need to modify the /etc/fstab file to >include >a path to where my jdk1.5.0 is installed ?) > >Any help to get this compiled is most appreciated > >Mark > ># --------- compile paths ># where are the source files ? >SRCROOT = c:/msys/1.0/home/source ># where to build >OBJROOT = C:/msys/1.0/home/source ># where is ImageJ ? >IMAGEJ = C:/Program Files/ImageJ ># where is the Scion SDK framework (dynamic library, headers, ...) ? >SCIONFWK = C:/Program Files/Scion Corporation/Scion SDK/dll/sfglib ># --------- install paths ># where should the plugin go ? >CLSINST = C:/Program Files/ImageJ/plugins/Acquisition ># where to install the JNI library >LIBINST = C:/Program Files/ImageJ/jre/bin > ># JARFILE = $(SYMROOT)/Grabber.jar # no jar-file for plugin >JNILIB = $(OBJROOT)/Akiz.dll > >C_FLAGS = -I$(OBJROOT) -IC:/Program Files/Java/jdk1.5.0/include -IC:/Program >Files/Java/include/win32 -I$(SCIONFWK) -IC:/MinGw/lib >BUNDLE_FLAGS = -L$(SCIONFWK) -lscionfg > >all: directories $(JNILIB) $(OBJROOT)/Grabber_.class >$(OBJROOT)/JNIAkiz.class > @echo Finished building > >lib: directories $(JNILIB) > @echo Finished building library $(JNILIB) > >doc: directories $(OBJROOT)/JNIAkiz.html > >install: all > cp $(OBJROOT)/Grabber_.class $(OBJROOT)/JNIAkiz.class "$(CLSINST)" > cp $(JNILIB) "$(LIBINST)" > >clean: > /bin/rm -rf $(JNILIB) $(OBJROOT)/Grabber_.class >$(OBJROOT)/JNIAkiz.class > >proper: clean > /bin/rm $(OBJROOT)/JNIAkiz.h > >directories: $(OBJROOT) > >$(OBJROOT): > mkdir -p $@ > >$(JNILIB): $(OBJROOT)/JNIAkiz.c $(OBJROOT)/JNIAkiz.h > gcc -shared $(C_FLAGS) $(BUNDLE_FLAGS) -lpthreadVC >-Wl,--add-stdcall-alias -o $@ $< > >$(OBJROOT)/JNIAkiz.h: $(OBJROOT)/JNIAkiz.class > javah -force -classpath $(OBJROOT) -d $(OBJROOT) JNIAkiz > >$(OBJROOT)/JNIAkiz.class: $(SRCROOT)/JNIAkiz.java > javac -d $(OBJROOT) $< > >$(OBJROOT)/Grabber_.class: $(SRCROOT)/Grabber_.java > javac -classpath "$(OBJROOT);$(IMAGEJ)/ij.jar" -d $(OBJROOT) $< > >$(OBJROOT)/JNIAkiz.html: $(SRCROOT)/JNIAkiz.java > javadoc -notree -public -author $< > >$(OBJROOT)/Grabber_.html: $(SRCROOT)/Grabber_.java > javadoc -notree -public -author -d $(OBJROOT) -classpath >$(OBJROOT):$(IMAGEJ)/ij.jar $< > >The error is on make... > >javac -d C:/msys/1.0/home/ c:/msys/1.0/home/JNIAkiz.java >make: javac: Command not found >make: *** [C:/msys/1.0/source/JNIAkiz.class] Error 127 > > >Mark > > >Dr Mark Osborne >Royal Society Research Fellow > >Department of Chemistry >School of Life Sciences >University of Sussex >Falmer >Brighton >BN1 9QJ > >Office +44 (0)1273 678328 >Email m.o...@su... >Web www.sussex.ac.uk/Users/kaf18 >Profile http://myprofile.cos.com/osborne33 > > > -- http://www.mingw.org http://sourceforge.net/projects/mingw https://sourceforge.net/donate/index.php?user_id=15438 |