Building lwjgl

Started by Zol, April 08, 2013, 11:16:36

Previous topic - Next topic

Zol

Hi I have been trying to build lwjgl 2.x in eclipse with ant scripts. But i get error when running ant compile_native:

Buildfile: C:\Users\xx\git\lwjgl\build.xml
-initialize:
compile:
headers:
    [javah] Exception in thread "main" java.lang.NullPointerException
    [javah]    at com.sun.tools.javah.JavahTask.run(JavahTask.java:509)
    [javah]    at com.sun.tools.javah.JavahTask.run(JavahTask.java:335)
    [javah]    at com.sun.tools.javah.Main.main(Main.java:46)
BUILD FAILED

So if somebody can give some tips with issue i would be very gratefull.
I have run ant generate-all and ant compile before running ant compile_native.


Zol

solved first problem but get stuck in second:

link:
    [apply]    Creating library lwjgl64.lib and object lwjgl64.exp
    [apply] LINK : warning LNK4199: /DELAYLOAD:jawt.dll ignored; no imports found from jawt.dll
    [apply] org_lwjgl_opengl_AWTSurfaceLock.obj : error LNK2019: unresolved external symbol __imp__JAWT_GetAWT@8 referenced in function _Java_org_lwjgl_opengl_AWTSurfaceLock_lockAndInitHandle@16
    [apply] lwjgl64.dll : fatal error LNK1120: 1 unresolved externals

BUILD FAILED
\git\lwjgl\build.xml:473: The following error occurred while executing this line:
\git\lwjgl\build.xml:498: The following error occurred while executing this line:
\git\lwjgl\platform_build\windows_ant\build.xml:63: The following error occurred while executing this line:
\git\lwjgl\platform_build\windows_ant\build.xml:31: apply returned: 2


My setup is windows 7 with jdk7(64bit) + visual studio 2010. Any tips for troubleshooting?