Project

General

Profile

Development Environment Setup issue

Added by Oli Dune over 5 years ago

Hi all,

I'm trying to perform the environment setup of FWD v3.2.0
I'm working on a Windows Server 2012R2 64-bit.
I have installed Java 1.8.0_181, Mingw 64-bit, libffi, Ant 1.9.13 and even installed gradle 4.10.2 locally and worked with the "local_repo".

But, the build failed during task ":ant-native" with a laconic "exec returned: 2".
Please find here attached a debug file. What have I done wrong?
Thanks in advance for your help.


Replies (8)

RE: Development Environment Setup issue - Added by Eugenie Lyzenko over 5 years ago

Hi Oli,

Looks like the include file ffi.h from libffi package is not installed in proper directory(form the log attached). It is missing for compiler. Please verify your check list for Windows developer workstation to meet all requirements.

Regards,
Eugenie.

RE: Development Environment Setup issue - Added by Oli Dune over 5 years ago

Hi Eugenie,

I didn't find anything regarding the "ffi.h" file in the "Development Environment Setup" nor in the "Building and Installing libffi on Windows" pages.
Where am I supposed to copy the file "libffi-3.2.1-prebuilt_mingw490_64bit\x86_64-w64-mingw32\include\ffi.h"?

Thx

RE: Development Environment Setup issue - Added by Eugenie Lyzenko over 5 years ago

Hi Oli,

Check doc section for libffi install. Note include files location description.

Regards,
Eugenie.

RE: Development Environment Setup issue - Added by Oli Dune over 5 years ago

Eugenie,

My sinceres apologies.
I've copied the "lib" stuff, but missed/skipped the "include" one.

This said, build goes a little bit further but still not complete successfully.
See attached gradle.out (v2) debug file. Something wrong with the "get_current_dir_name" function?

Thx

RE: Development Environment Setup issue - Added by Eugenie Lyzenko over 5 years ago

Oli,

Confirm this issue on Windows. This is related to get_current_dir_name() function is a GNU extension and support is missing in MinGW for Windows. Looking for an alternative. I'm starting to work on this issue.

We have created branch to fix this: Bug track 3748. You can see the progress there.

I'm expecting to have the fix later today.

Regards,
Eugenie.

RE: Development Environment Setup issue - Added by Eugenie Lyzenko over 5 years ago

Hi Oli,

We have the fix for issue. In general it will be deployed in FWD 3.3 version.

But for resolve your issue now please download the filesys.c file from the Bug track 3748 page and replace the filesys.c in FWD nave source path(usually src/native related to dir you runs build script) with new one. Then do full rebuild with gradlew.bat all --info. The --info is optional, just gives you more details for what is going on.

Regards,
Eugenie.

RE: Development Environment Setup issue - Added by Oli Dune over 5 years ago

Build successful.

Thank you, Eugenie.

    (1-8/8)