Search found 11 matches

by Wendy
Mon May 27, 2013 11:10 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Hi Maschoff, When build slang-1.4.9/src with your provided build.bat, there is an error: sltime.c(28) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory but the libslang.lib still generated. so I use it to compile src/c/xmlback, I got error like this: xml.obj : err...
by Wendy
Thu May 23, 2013 7:57 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Hi maschoff, Thanks for the new agn,h file and it is working well. Now I can build src/c/lib, src/c/xmlback/grammar successfully, but when build src/c/xmlback, it reminds me there is an error like this: fatal error LNK1104: cannot open file 'libslang.lib'. I read slang-1.4.9/INSTALL.pc which indicat...
by Wendy
Wed May 22, 2013 9:14 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

at line 24 in the new "agn.h", there is "# ifdef OSS" to prevent compling of the the following statement "# ifdef WIN32" at line 25.
I removed line 24, and it seems no error happened in agn.h any more.
by Wendy
Tue May 21, 2013 7:07 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

I removed the #ifdef OSS and reserved #ifdef WIN32, the problem is gone, I hope the change will not influence any functionality of the C part of openemm # ifdef OSS # ifdef WIN32 # undef _PATH_DEVNULL # define _PATH_DEVNULL "nul" # undef _PATH_VARRUN # define _PATH_VARRUN "\\OpenEMM\\...
by Wendy
Mon May 20, 2013 3:10 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Hi Maschoff, Thanks for your new agn.h file, I rebuild the c code but the bad news is errors still happened in it. And here is the error log in agn.h c:\workspace\openemm_vc\src\lib\agn.h(247) : error C2061: syntax error : identifier 'sigset_t' c:\workspace\openemm_vc\src\lib\agn.h(248) : error C206...
by Wendy
Fri May 17, 2013 10:49 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Hi maschoff, we followed your suggesation to comment pid_t definition and exclude the whole deamon.c and build the code, and the compile failed again. and here is a part of the error log: ... c:\workspace\openemm_vc\src\lib\csig.c(42) : error C2079: 'set' uses undefined struct 'sigaction' c:\workspa...
by Wendy
Fri May 17, 2013 10:32 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Thanks for your quick responce and guidance.

We will try the two ways but we are looking forward your updated version. Please let us know when you are prepared.

Wendy
by Wendy
Fri May 17, 2013 9:46 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

This is the relative code from agn.h (the log reminds that the error happened in line 313) typedef struct { /*{{{*/ bool_t background; /* if we should run in background */ bool_t detach; /* if we should detach from current tty */ pid_t pid; /* process ID of daemon process */ char *pidfile; /* file t...
by Wendy
Fri May 17, 2013 7:11 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Linux. We use CentOS 5 or 6. If you want to compile with Windows, we provide a batch file build.bat in directories /src/c/lib, /src/c/xmlback and /src/c/xmlback/grammar each. But you need Windows libraries for libxml2, libz, iconv and libslang first. For compiling we use Visual Studio 8. Hi, When w...
by Wendy
Thu May 16, 2013 10:07 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Linux. We use CentOS 5 or 6. If you want to compile with Windows, we provide a batch file build.bat in directories /src/c/lib, /src/c/xmlback and /src/c/xmlback/grammar each. But you need Windows libraries for libxml2, libz, iconv and libslang first. For compiling we use Visual Studio 8. Thanks a l...
by Wendy
Thu May 16, 2013 3:05 am
Forum: Development
Topic: C code in OpenEmm
Replies: 23
Views: 24170

Re: C code in OpenEmm

Hello, I installed Microsoft Visual Studio 8 and MinGW in my win32 PC, when I try to run build.bat, I got a lot of error, and I tried to correct these error by update lib and code, but it did not work at all. I want to know what kind of environment should I prepare to build xmlback.c succeffully? Th...