My aim is to enable Clojure programming directly on an Android device.. so, as I understand, I can use lein-droid to make the pre-compiled JAR to work on the device? I seen Clojure 1.4.0 REPL for Android and I wanted to get the compiler itself, preferably for 1.5.1, so that I can integrate it into my program... I dont't know, though, how well will Clojure's dynamic bytecode generation work with Dalvik...
среда, 22 мая 2013 г., 1:39:43 UTC+4 пользователь Daniel Solano Gómez написал: > > Hello, > > I use Maven to build the Clojure/Android port, so I don't know whethter > the Ant build instructions work or how to adapt them to Windows. Is > there a reason you need to build from source? If not, then using > lein-droid or getting the JAR directly from Clojars is probably an > easier way to go. > > Sincerely, > > Daniel > > > On Wed May 22 05:25 2013, Kelker Ryan wrote: > > What's wrong with the lein-droid plugin? > > https://github.com/clojure-android/lein-droid > > � > > 22.05.2013, 05:21, "Alex Fowler" <alex.m...@gmail.com <javascript:>>: > > > > > Nope, I am on Windows :D.. I guess I could re-write this one into a > > *.bat file... �looking inside the file, however, does not give me a > clue > > on how it will help me aside from that maybe maven will somehow > manage > > to reolve the deps... > > > > On Wed, May 22, 2013 at 12:18 AM, Kelker Ryan > > <[1]thein...@yandex.com <javascript:>> wrote: > > > > Did you run ./antsetup.sh before trying to build with ant? > > � > > 22.05.2013, 05:01, "Alex Fowler" > > <[2]alex.m...@gmail.com<javascript:>>: > > > > > Nope, the installation instruction in the readme of the project > says > > nothing about this one (i'm a newb to android development). So > if I > > download it, where I put it? > > > > On Tue, May 21, 2013 at 11:59 PM, Kelker Ryan > > <[3]thein...@yandex.com <javascript:>> wrote: > > > > Did you download the Android JAR? > > [4]http://www.java2s.com/Code/Jar/a/Downloadandroid32jar.htm > > > > 22.05.2013, 04:52, "Alex Fowler" > > <[5]alex.m...@gmail.com<javascript:>>: > > > > I'm trying to build this > > project:�[6]https://github.com/clojure-android/clojure�with > "ant" > > command. It sarts working, but I get this output with errors: > > > > > > Buildfile: > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\build.xml > > > > > > clean: > > > � �[delete] Deleting directory > > C:\Users\Admin\Downloads\clojure-android\clojure- > > > android\target > > > > > > init: > > > � � [mkdir] Created dir: > > C:\Users\Admin\Downloads\clojure-android\clojure-androi > > > d\target\classes > > > � � [mkdir] Created dir: > > C:\Users\Admin\Downloads\clojure-android\clojure-androi > > > d\target\classes\clojure > > > > > > compile-java: > > > � � [javac] Compiling 483 source files to > > C:\Users\Admin\Downloads\clojure-andro > > > id\clojure-android\target\classes > > > � � [javac] warning: [options] bootstrap class path not set > in > > conjunction with > > > -source 1.5 > > > � � [javac] > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo > > > jure\lang\DalvikDynamicClassLoader.java:13: error: package > > android.util does not > > > �exist > > > � � [javac] import android.util.Log; > > > � � [javac] � � � � � � � � � �^ > > > � � [javac] > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo > > > jure\lang\DalvikDynamicClassLoader.java:17: error: package > > dalvik.system does no > > > t exist > > > � � [javac] import dalvik.system.DexFile; > > > � � [javac] � � � � � � � � � � ^ > > > � � [javac] > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo > > > jure\lang\DalvikDynamicClassLoader.java:45: error: package > > android.os.Build does > > > �not exist > > > � � [javac] � � DEX_OPTIONS.targetApiLevel = > > android.os.Build.VERSION.SDK_INT; > > > � � [javac] � � � � � � � � � � � � � � � � � � � � � � � � > �^ > > > � � [javac] > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo > > > jure\lang\DalvikDynamicClassLoader.java:99: error: cannot > find > > symbol > > > � � [javac] � � � � � � final DexFile inDexFile = > > DexFile.loadDex(jarPath, dexPa > > > th, 0); > > > � � [javac] � � � � � � � � � ^ > > > � � [javac] � symbol: � class DexFile > > > � � [javac] � location: class DalvikDynamicClassLoader > > > � � [javac] > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo > > > jure\lang\DalvikDynamicClassLoader.java:99: error: cannot > find > > symbol > > > � � [javac] � � � � � � final DexFile inDexFile = > > DexFile.loadDex(jarPath, dexPa > > > th, 0); > > > � � [javac] � � � � � � � � � � � � � � � � � � � ^ > > > � � [javac] � symbol: � variable DexFile > > > � � [javac] � location: class DalvikDynamicClassLoader > > > � � [javac] > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo > > > jure\lang\DalvikDynamicClassLoader.java:104: error: cannot > find > > symbol > > > � � [javac] � � � � � � � � Log.e(TAG,"Failed to load > generated > > class: "+name); > > > � � [javac] � � � � � � � � ^ > > > � � [javac] � symbol: � variable Log > > > � � [javac] � location: class DalvikDynamicClassLoader > > > � � [javac] > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo > > > jure\lang\DalvikDynamicClassLoader.java:110: error: cannot > find > > symbol > > > � � [javac] � � � � � � Log.e(TAG,"Failed to define class > due to > > I/O exception." > > > ,e); > > > � � [javac] � � � � � � ^ > > > � � [javac] � symbol: � variable Log > > > � � [javac] � location: class DalvikDynamicClassLoader > > > � � [javac] Note: Some input files use unchecked or unsafe > > operations. > > > � � [javac] Note: Recompile with -Xlint:unchecked for > details. > > > � � [javac] 7 errors > > > � � [javac] 1 warning > > > > > > BUILD FAILED > > > > > > C:\Users\Admin\Downloads\clojure-android\clojure-android\build.xml:41: > > Compile f > > > ailed; see the compiler error output for details. > > > > > > Total time: 2 seconds > > > > > > My questions are: > > > 1) How can I resolve this dependency issue? > > > 2) If I compile like that, can I run it on Android? > > > > > > -- > > > -- > > > You received this message because you are subscribed to the > > Google > > > Groups "Clojure" group. > > > To post to this group, send email to [7] > clo...@googlegroups.com <javascript:> > > > Note that posts from new members are moderated - please be > > patient with your first post. > > > To unsubscribe from this group, send email to > > > [8]clojure+u...@googlegroups.com <javascript:> > > > For more options, visit this group at > > > [9]http://groups.google.com/group/clojure?hl=en > > > --- > > > You received this message because you are subscribed to the > > Google Groups "Clojure" group. > > > To unsubscribe from this group and stop receiving emails > from > > it, send an email to > > [10]clojure+u...@googlegroups.com<javascript:>. > > > > For more options, visit > > [11]https://groups.google.com/groups/opt_out. > > > > -- > > -- > > You received this message because you are subscribed to the > Google > > Groups "Clojure" group. > > To post to this group, send email to [12] > clo...@googlegroups.com <javascript:> > > Note that posts from new members are moderated - please be > patient > > with your first post. > > To unsubscribe from this group, send email to > > [13]clojure+u...@googlegroups.com <javascript:> > > For more options, visit this group at > > [14]http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to a > topic in > > the Google Groups "Clojure" group. > > To unsubscribe from this topic, visit > > [15] > https://groups.google.com/d/topic/clojure/31zZMy7DNeo/unsubscribe?hl=en. > > To unsubscribe from this group and all its topics, send an > email > > to [16]clojure+u...@googlegroups.com <javascript:>. > > For more options, visit > > [17]https://groups.google.com/groups/opt_out. > > > > � > > > > -- > > -- > > You received this message because you are subscribed to the > Google > > Groups "Clojure" group. > > To post to this group, send email to [18] > clo...@googlegroups.com <javascript:> > > Note that posts from new members are moderated - please be > patient > > with your first post. > > To unsubscribe from this group, send email to > > [19]clojure+u...@googlegroups.com <javascript:> > > For more options, visit this group at > > [20]http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to the > Google > > Groups "Clojure" group. > > To unsubscribe from this group and stop receiving emails from > it, > > send an email to [21]clojure+u...@googlegroups.com<javascript:>. > > > For more options, visit > > [22]https://groups.google.com/groups/opt_out. > > � > > � > > > > � > > > > -- > > -- > > You received this message because you are subscribed to the > Google > > Groups "Clojure" group. > > To post to this group, send email to > > [23]clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be > patient > > with your first post. > > To unsubscribe from this group, send email to > > [24]clojure+u...@googlegroups.com <javascript:> > > For more options, visit this group at > > [25]http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to a topic > in the > > Google Groups "Clojure" group. > > To unsubscribe from this topic, visit > > [26] > https://groups.google.com/d/topic/clojure/31zZMy7DNeo/unsubscribe?hl=en. > > To unsubscribe from this group and all its topics, send an email > to > > [27]clojure+u...@googlegroups.com <javascript:>. > > For more options, visit [28] > https://groups.google.com/groups/opt_out. > > � > > � > > > > � > > > > -- > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to > > [29]clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient > with > > your first post. > > To unsubscribe from this group, send email to > > [30]clojure+u...@googlegroups.com <javascript:> > > For more options, visit this group at > > [31]http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, > send > > an email to [32]clojure+u...@googlegroups.com <javascript:>. > > For more options, visit [33] > https://groups.google.com/groups/opt_out. > > � > > � > > > > -- > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to > > clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient > with > > your first post. > > To unsubscribe from this group, send email to > > clojure+u...@googlegroups.com <javascript:> > > For more options, visit this group at > > [34]http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to the Google > Groups > > "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, > send an > > email to clojure+u...@googlegroups.com <javascript:>. > > For more options, visit [35]https://groups.google.com/groups/opt_out. > > > > > > > > > References > > > > Visible links > > 1. mailto:thein...@yandex.com <javascript:> > > 2. mailto:alex.m...@gmail.com <javascript:> > > 3. mailto:thein...@yandex.com <javascript:> > > 4. http://www.java2s.com/Code/Jar/a/Downloadandroid32jar.htm > > 5. mailto:alex.m...@gmail.com <javascript:> > > 6. https://github.com/clojure-android/clojure > > 7. mailto:clo...@googlegroups.com <javascript:> > > 8. mailto:clojure%2b...@googlegroups.com <javascript:> > > 9. http://groups.google.com/group/clojure?hl=en > > 10. mailto:clojure%2b...@googlegroups.com <javascript:> > > 11. https://groups.google.com/groups/opt_out > > 12. mailto:clo...@googlegroups.com <javascript:> > > 13. mailto:clojure%2b...@googlegroups.com <javascript:> > > 14. http://groups.google.com/group/clojure?hl=en > > 15. > https://groups.google.com/d/topic/clojure/31zZMy7DNeo/unsubscribe?hl=en > > 16. mailto:clojure%2b...@googlegroups.com <javascript:> > > 17. https://groups.google.com/groups/opt_out > > 18. mailto:clo...@googlegroups.com <javascript:> > > 19. mailto:clojure+u...@googlegroups.com <javascript:> > > 20. http://groups.google.com/group/clojure?hl=en > > 21. mailto:clojure+u...@googlegroups.com <javascript:> > > 22. https://groups.google.com/groups/opt_out > > 23. mailto:clo...@googlegroups.com <javascript:> > > 24. mailto:clojure%2b...@googlegroups.com <javascript:> > > 25. http://groups.google.com/group/clojure?hl=en > > 26. > https://groups.google.com/d/topic/clojure/31zZMy7DNeo/unsubscribe?hl=en > > 27. mailto:clojure%2b...@googlegroups.com <javascript:> > > 28. https://groups.google.com/groups/opt_out > > 29. mailto:clo...@googlegroups.com <javascript:> > > 30. mailto:clojure+u...@googlegroups.com <javascript:> > > 31. http://groups.google.com/group/clojure?hl=en > > 32. mailto:clojure+u...@googlegroups.com <javascript:> > > 33. https://groups.google.com/groups/opt_out > > 34. http://groups.google.com/group/clojure?hl=en > > 35. https://groups.google.com/groups/opt_out > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.