1

I added some classes through http://lib.haxe.org/ and git with the correct command (haxelib install x) and, while the classes are in the haxe/lib folder, I can't access most of them. Sometimes I'm able to import a library(I get the autocomplete and everything), but when I try to compile it gives me the error Class not found.

I searched everywhere and I still don't know how to fix this. I tried to add through Project>Properties>Classpath and I'd even edited the global Classpath but it still won't work. Right now my problem is with the library linden-google-play but I tried with another libraries and it didn't work either.

AdMob and Firetongue libraries work perfectly, and I can't understand why. Does anyone knows a way to fix this? Thanks!

Javier Bullrich
  • 389
  • 1
  • 5
  • 22

2 Answers2

2

I finally found out how to do it. You have to go to Project.xml and add the library name manually.

<haxelib name="openfl" />
<haxelib name="task" />
Gama11
  • 31,714
  • 9
  • 78
  • 100
Javier Bullrich
  • 389
  • 1
  • 5
  • 22
  • That is what changing the "project properties" do :) ... you should not need to change the project file by hand. – Franco Ponticelli Jan 06 '15 at 15:54
  • Actually, changing the project properties doesn't do anything for OpenFL projects (which is why they [should be read-only](https://github.com/fdorg/flashdevelop/pull/547)), since it's all determined by the OpenFL project file. – Gama11 Jan 06 '15 at 17:09
  • In the original question there was no mention of openfl so I assumed it was a "normal" haxe project. – Franco Ponticelli Jan 06 '15 at 23:50
  • 1
    No, don't be sorry. Great question and great answer. Works for me. – AturSams Mar 13 '17 at 06:13
0

You don't need to change the class path configuration that is reserved for your local projects/libraries. Go to Project Properties>Compiler Options>Libraries and add one library per line (the lib name must match what you used in haxelib install ...).

Franco Ponticelli
  • 4,430
  • 1
  • 21
  • 24