Bitshares-core: Editline can't work under MSVC

Created on 26 Mar 2018  路  9Comments  路  Source: bitshares/bitshares-core

Editline can't work under MSVC

1b User Story 2f Testing 3c Enhancement 5b Docs In Progress 6 Build build feature

Most helpful comment

Check out https://github.com/AmokHuginnsson/replxx

Small, BSD licensed, compatible with Linux, Mac, and Windows.

Update: It seems the UTF-8 portion of replxx uses a header that is not BSD compatible. Researching to see if there is a fix for this or a different library with similar functionality.

All 9 comments

I believe the readline/editline libraries only worked in *nix-type OSs. And that continues to be the case. Is it causing a compiler or runtime error? Or is it simply not working?

If it is a compiler or runtime error, it will need to be fixed quickly.

If the functionality is simply not there, we will have to wait until editline code for Windows is developed and implemented.

It doesn't compile due to use of sys/ioctl.h and etc. I'd suggest that we skip compiling it for now. I'm working on a patch.

I believe one problem is bitshares-fc's CMakeLists.txt line 117. Removing "COMPILE_DEFINITIONS" allowed cmake to run. Still testing.

You can consider using wineditline instead of editline in windows, but you have to modify a lot of code, or give up some functions.

If there is time and manpower, we should use MSYS to compile the execution files under Windows, so that the initial work will be larger, but there will be less cross-platform compatibility issues.

@jmjatlanta how did it compile for your?

librariesfcvendoreditlinesrceditline.c(25): fatal error C1083: Cannot open include file: 'sys/ioctl.h': No such file or directory

@xiangxn check this: https://github.com/bitshares/bitshares-core/issues/738, it's even easier.

I want to skip editline in MSVC so far: https://github.com/bitshares/bitshares-fc/pull/34. Please check.

By the way, please check https://github.com/bitshares/bitshares-fc/pull/32 as well, which enables building with GCC 4.8.

Check out https://github.com/AmokHuginnsson/replxx

Small, BSD licensed, compatible with Linux, Mac, and Windows.

Update: It seems the UTF-8 portion of replxx uses a header that is not BSD compatible. Researching to see if there is a fix for this or a different library with similar functionality.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bitcoiners picture bitcoiners  路  7Comments

TheTaconator picture TheTaconator  路  8Comments

MichelSantos picture MichelSantos  路  7Comments

M-Zeeshan-Haider picture M-Zeeshan-Haider  路  7Comments

startailcoon picture startailcoon  路  5Comments