palantir-mirrors / vmd

Unofficial mirror for VMD source
0 stars 1 forks source link

Make compatible for android target compiles #1

Open ning-y opened 5 years ago

ning-y commented 5 years ago

Compiling VMD using Android Studio's cmake/ndk plugin raises many compilation errors which can be fixed by changing the VMD source code slightly.

Of course, it is best to minimise the number of changes to VMD source code, so that upgrading the version of VMD will be easier in the future. As far as possible, if a compilation error can be fixed by configuring cmake better in https://github.com/ningyuansg/palantir, then it should be fixed there.

ning-y commented 5 years ago

The following lines need to be removed:

https://github.com/ningyuansg/vmd/blob/1061dac96523c280cf0a618402babf79e5913d0b/vmd-1.9.3/src/vmdmain.C#L24-L26

ning-y commented 5 years ago

The following line needs to be removed: https://github.com/ningyuansg/vmd/blob/1061dac96523c280cf0a618402babf79e5913d0b/vmd-1.9.3/src/AtomParser.C#L118-L120

Otherwise, an error is raised on compilation:

AtomParser.y:118:10: fatal error: 'values.h' file not found
#include <values.h>
         ^~~~~~~~~~