Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.h not found #2

Open
gvanem opened this issue Apr 5, 2017 · 0 comments
Open

config.h not found #2

gvanem opened this issue Apr 5, 2017 · 0 comments

Comments

@gvanem
Copy link

gvanem commented Apr 5, 2017

Hello Ruski.

Since the official iconv build method suck so hard for Windows/MSVC, I came across your package.
You write:

and add it to the system/build variables:
INCLUDE = C:\git\iconv-for-windows\include

But while building it too? It should at least find it' own files while building itself IMHO.
On the cmd-line in <iconv-for-windows-root>, I did:

msbuild -p:Configuration=Release LibIconv.sln

which errors:

ClCompile:
  f:\gv\VC_2015\bin\CL.exe /c /Zi /nologo /W3 /WX- /O2 /Oi /Oy- /GL /D WIN32 /D NDEBUG 
/D _WINDOWS /D _USRDLL /D BUILDI NG_LIBICONV /D BUILDING_LIBCHARSET /D LIBICONV_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"F:\MingW32\src\libiconv-for-windows\obj\libiconv\Release_Win32\\"
  /Fd"F:\MingW32\src\libiconv-for-windows\obj\libiconv\Release_Win32\vc140.pdb" /Gd /TC /analyze- /errorReport:queue iconv.c localcharset.c relocatable.c iconv.c
iconv.c(25): fatal error C1083: Cannot open include file: 'config.h': No such file or directory 

I tried to fix it in libiconv\libiconv.vcxproj, but failed (*.vcxproj suck equally much as auto-tools...)

EDIT:

This works though:

set INCLUDE=%INCLUDE%;F:\MingW32\src\libiconv-for-windows\include & ^
   msbuild -p:Configuration=Release LibIconv.sln

(realising that msbuild does a cd inside itself. Yuk!).

But I don't like it. As I said, a package should find it's own files w/o setting INCLUDE etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant