Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2945 closed defect (invalid)

Compiling Cygwin version via Cygwin Terminal

Reported by: enigma13 Owned by:
Priority: major Component: General
Severity: medium Keywords: compiling cygwin
Cc: Sensitive: no

Description

Revision

<All ?>

Issue Description

<make fails>

When the issue occurs

<tested for version 7436 and last>

How the issue is reproducable

<all time at make stage>

<I'm not very familiar with Eclipse
So i have read a tuto on a other board, description :

  • Download cygwin setup : OK
  • lunch it, and add packages uder devel:

*cmake
*gcc4-core
*gcc4-g++
*libusb1.0
*libusb1.0-devel
*make
*openssl-devel
*subversion : Done

-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxxxx/oscam-svn/build

than it hangs at make stage:
$ make
Scanning dependencies of target csmodules
[ 1%] Building C object CMakeFiles/csmodules.dir/module-anticasc.o
In file included from /home/xxxxx/oscam-svn/globals.h:78:0,

from /home/xxxxx/oscam-svn/module-anticasc.c:2:

/home/xxxxx/oscam-svn/extapi/cygwin/WinSCard.h:103:11: error: expected ‘)’ before ‘DWORD’
/home/xxxxx/oscam-svn/extapi/cygwin/WinSCard.h:110:15: error: expected ‘)’ before ‘SCARDCONTEXT’
/home/xxxxx/oscam-svn/extapi/cygwin/WinSCard.h:114:15: error: expected ‘)’ before ‘SCARDCONTEXT’
/home/xxxxx/oscam-svn/extapi/cygwin/WinSCard.h:141:13: error: expected ‘)’ before ‘SCARDCONTEXT’

etc..

make[2]: * [CMakeFiles/csmodules.dir/module-anticasc.o] Error 1
CMakeFiles/Makefile2:63: recipe for target `CMakeFiles/csmodules.dir/all' failed
make[1]:
* [CMakeFiles/csmodules.dir/all] Error 2
Makefile:136: recipe for target `all' failed
make: * [all] Error 2

Any Idea ?

seems something is missing in the process (or not compatible) ...

Change History (7)

comment:1 by enigma13, 11 years ago

Same error under win32 and win64

comment:2 by lattjo, 11 years ago

cmake issue. Solution is don't use it!

cd oscam-svn
make cygwin

Works perfect.

comment:3 by enigma13, 11 years ago

yes that's compiling the exe file, good.

But now at lauching, i'll get the message :

C:\Oscam>oscam
ERROR: Cannot open file "/usr/local/etc/oscam.conf" (errno=2 No such file or dir
ectory)

Seems that paths are not included as default directory for oscam directory.

comment:4 by enigma13, 11 years ago

$ make cygwin
make --no-print-directory \

EXTRA_FLAGS="-I /tmp/include" \

+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 7891 target: i686-pc-cygwin
| Tools:
| CROSS =
| CC = gcc
| STRIP = strip
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ggdb -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-styl e-definition
| CFLAGS = -I /tmp/include
| LDFLAGS = -Wl,--gc-sections -I /tmp/include
| LIBS = -lpthread -ldl
| Config:
| Addons : WEBIF TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MOD ULE_MONITOR WITH_LB CS_CACHEEX
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SERIAL CONS TCW PANDORA
| Readers : WITH_CARDREADER NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEO GUARD DRE TONGFANG BULCRYPT
| Compiler : gcc (GCC) 4.5.3
| Linker : GNU ld (GNU Binutils) 2.22.52.20120326
| Binary : Distribution/oscam-1.20-unstable_svn7891-i686-pc-cygwin.exe
+-------------------------------------------------------------------------------
CC algo/minilzo.c
CC cscrypt/aes.c
etc

Where to change CONF_DIR = /usr/local/etc and is it enough ?

comment:5 by theparasol, 11 years ago

Resolution: invalid
Status: newclosed

comment:6 by enigma13, 11 years ago

Have found , set it to "./" in makefile

Last edited 11 years ago by enigma13 (previous) (diff)

comment:7 by enigma13, 11 years ago

Works still perfect with mouse support but no pcsc support.

Tekreader's one have.

Is this compatible with cgywin terminal compiling ?

Version 0, edited 11 years ago by enigma13 (next)
Note: See TracTickets for help on using tickets.