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

Problems installing on Windows 10 #4

Open
ABGane opened this issue Mar 14, 2018 · 1 comment
Open

Problems installing on Windows 10 #4

ABGane opened this issue Mar 14, 2018 · 1 comment

Comments

@ABGane
Copy link

ABGane commented Mar 14, 2018

Hello,

I've been trying to install GenGen on a device running Windows10. I downloaded GenGen v1.0.1 (tar.gz). I unpacked this using the Bash shell with tar xvfz gengen.tar.gz as suggested and navigated to the kext directory where I modified the Makefile by changing the one occurrence of kc.so to kc.dll (included below). When I enter make though I get the following error:

$ make
gcc perl -MExtUtils::Embed -e ccopts -fPIC -c -o kc_wrap.o kc_wrap.c
kc_wrap.c:1:0: warning: -fPIC ignored for target (all code is position independent)
/* ----------------------------------------------------------------------------
^
In file included from kc_wrap.c:731:0:
C:/Octave/OCTAVE~1.1/lib/perl5/5.8/msys/CORE/perl.h:925:27: fatal error: netinet/in.h: No such file or directory

include <netinet/in.h>

                       ^

compilation terminated.
make: *** [kc_wrap.o] Error 1

I was wondering if anyone else has had the same problem and whether anyone knows how to get this working? I have also tried installing the same package on a Ubuntu virtual machine without any success (both the old and newer versions).

Thanks for any help you can provide!

---- Edited Makefile ----

SHELL = /bin/sh
.SUFFIXES: .c .o

Notes:

When compiling in Windows, change the "kc.so" below to "kc.dll". The "-fPIC" can be optionally omitted

When compiling in Mac OS X, change the "kc.so" below to "kc.dylib", and change "-shared" to "-dynamiclib"

When compiling in Solaris, change "gcc" to "cc"

CC = gcc
LD = gcc
CFLAGS = perl -MExtUtils::Embed -e ccopts -fPIC
LDFLAGS = perl -MExtUtils::Embed -e ldopts
ARCH = perl -MConfig -e 'print $$Config{archname}'
VER = perl -MConfig -e 'print $$Config{version}'

kc.dll: kc_wrap.o kc.o
$(LD) -shared -o $@ $^ $(LDFLAGS)
mkdir -p $(VER)
mkdir -p $(VER)/$(ARCH)/
mkdir -p $(VER)/$(ARCH)/auto/
mv $@ $(VER)/$(ARCH)/

clean:
rm -f *.o *.so

@kaichop
Copy link
Contributor

kaichop commented Mar 15, 2018 via email

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

2 participants