Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2735 closed defect (fixed)

Compile error on mac (PCSC)

Reported by: luckysquid Owned by: stefansat sat
Priority: major Component: General
Severity: medium Keywords: cmake
Cc: stefansat@… Sensitive: no

Description

Revision

r7365

bash-3.2# cmake .
-- The C compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- mac sdk version is 10.6
-- Looking for pthread.h
-- Looking for pthread.h - found
-- pthread found. Adding pthread support
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - found
-- openssl found.
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- mac sdk ver is 10.6
-- Utils: pthread found. Adding pthread support
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- Utils: operating system: Mac OS X
-- Utils: target system: i686-apple-darwin10

-- utils: use static libusb functions
--
-- OS X system PCSC : /System/Library/Frameworks/PCSC.framework
--
-- operating system: Mac OS X
-- target system: i686-apple-darwin10
-- revision: 7365
-- use libcrypto functions
-- use system pcsc functions
-- use system pthread functions
-- use static libusb functions
--
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/oscam-svn
bash-3.2# make
Scanning dependencies of target csmodules
[ 1%] Building C object CMakeFiles/csmodules.dir/module-anticasc.o
In file included from /Users/user/oscam-svn/globals.h:51,

from /Users/user/oscam-svn/module-anticasc.c:2:

/usr/local/include/PCSC/pcsclite.h:24:22: error: wintypes.h: No such file or directory
In file included from /Users/user/oscam-svn/globals.h:51,

from /Users/user/oscam-svn/module-anticasc.c:2:

/usr/local/include/PCSC/pcsclite.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘SCARDCONTEXT’
/usr/local/include/PCSC/pcsclite.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
/usr/local/include/PCSC/pcsclite.h:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
/usr/local/include/PCSC/pcsclite.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘SCARDHANDLE’
/usr/local/include/PCSC/pcsclite.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
/usr/local/include/PCSC/pcsclite.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token
/usr/local/include/PCSC/pcsclite.h:50: error: expected specifier-qualifier-list before ‘DWORD’
In file included from /Users/user/oscam-svn/module-anticasc.c:2:
/Users/user/oscam-svn/globals.h:1170: error: expected specifier-qualifier-list before ‘SCARDCONTEXT’
make[2]: * [CMakeFiles/csmodules.dir/module-anticasc.o] Error 1
make[1]:
* [CMakeFiles/csmodules.dir/all] Error 2
make: * [all] Error 2

Change History (24)

comment:1 by BigGyros, 12 years ago

you can compile with make on mac. http://www.streamboard.tv/wbb2/thread.php?threadid=33230 as long cmake isn't working.

comment:2 by luckysquid, 12 years ago

thx, but with make I have other problem
if I compiling with only "libusb" or "pcsc" will work but if I compiling with libusb and pcsc (make USE_LIBUSB=1 USE_PCSC=1) I will have errors:

+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 7365 target: i686-apple-darwin10-libusb-pcsc
| Tools:
| CROSS =
| CC = gcc
| AR = ar
| STRIP = strip
| RANLIB = ranlib
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -fno-strict-aliasing -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS = -DWITH_LIBUSB -isysroot /Developer/SDKs/MacOSX10.6.sdk -DWITH_PCSC
| LDFLAGS = -DWITH_LIBUSB -isysroot /Developer/SDKs/MacOSX10.6.sdk -DWITH_PCSC
| LIBS = -lusb-1.0 -syslibroot,/Developer/SDKs/MacOSX10.6.sdk -framework IOKit -framework CoreFoundation -framework PCSC -lpthread -ldl
| Config:
| Addons : WEBIF HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM GBOX RADEGAST SERIAL CONSTCW PANDORA
| Readers : WITH_CARDREADER NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT
| Compiler : i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
| Binary : Distribution/oscam-1.20-unstable_svn7365-i686-apple-darwin10-libusb-pcsc
+-------------------------------------------------------------------------------
CC algo/minilzo.c
CC cscrypt/aes.c
CC cscrypt/bn_add.c
CC cscrypt/bn_asm.c
CC cscrypt/bn_ctx.c
CC cscrypt/bn_div.c
CC cscrypt/bn_exp.c
CC cscrypt/bn_lib.c
CC cscrypt/bn_mul.c
CC cscrypt/bn_print.c
CC cscrypt/bn_shift.c
CC cscrypt/bn_sqr.c
CC cscrypt/bn_word.c
CC cscrypt/mem.c
CC cscrypt/crc32.c
CC cscrypt/des.c
CC cscrypt/i_cbc.c
CC cscrypt/i_ecb.c
CC cscrypt/i_skey.c
CC cscrypt/md5.c
CC cscrypt/rc6.c
CC cscrypt/sha1.c
CC csctapi/atr.c
CC csctapi/icc_async.c
In file included from csctapi/icc_async.c:37:
csctapi/ifd_smartreader.h:14:31: error: libusb-1.0/libusb.h: No such file or directory
make[2]: * [lib/libcsctapi-i686-apple-darwin10-libusb-pcsc.a(csctapi/icc_async.o)] Error 1
make[1]:
* [all] Error 2
make: * [pcsc-libusb] Error 2
bash-3.2#

other question:
I know that snowleopard,lion and mountain lion have installed by default pcsc driver and ccid drivers.
I have to update this driver?

comment:3 by BigGyros, 12 years ago

http://www.libusb.org/ downloaded, compiled and installed?

comment:4 by luckysquid, 12 years ago

certainly a life that compile with libusb ;) the problem is that if I compile with libusb+pcsc I will have errors

csctapi/ifd_smartreader.h:14:31: error: libusb-1.0/libusb.h: No such file or directory

is very strange "libusb.h" exist and it will found in compilation with only libusb

Do you use pscd drivers?
Can you compile pcsc+libusb?

Last edited 12 years ago by luckysquid (previous) (diff)

comment:5 by stefansat sat, 12 years ago

Hello

First try latest revision with cmake now ok

Does work with pcsc (wich is inserted at default) and libusb.

svn is 7367

comment:6 by stefansat sat, 12 years ago

I found a possible pcsc error. it's patched on svn 7368.
With cmake it should be fine.

comment:7 by stefansat sat, 12 years ago

As answer on Your questions ,
Do you use pscd drivers?
Not on mac on mac we use there own drivers. they are well pcsd based.
Don not install a linux version of pcsd drivers as this will conflict with mac version

Can you compile pcsc+libusb?
Yes
If You just use cmake It will install them automatically. The pcsc is always included (but remove any not mac pcsc dev tools or drivers) Other wise You may have conflicts.
Libusb will be included if You compiled it Yourself . In a correct way.

Just download the latest tarball from http://www.libusb.org/

unpack it and then configure and compile as REGULAR user not root

install with sudo

example

in your user home dir just make a map upgrade or so
copy the downloaded tarbal file with finder to upgrade map and double clich to extract.

the in terminal (mac terminal not xcode terminal !!)

macbookpro:~user$ cd upgrade/libusb-1.0.9
macbookpro:libusb-1.0.9 user$ ./configure
macbookpro:libusb-1.0.9 user$ make
macbookpro:libusb-1.0.9 user$ sudo make install

That's all.

Note: Some older macs intel do have a single core, Those will have only 32 bits.
If this is Your case, It will not work Yet.
If You have duo core or i5 i7 processor no prob.
If You mac and xcode are full up to date it will compile automatically for x86_64

xcode should be version 3.6xxx

comment:8 by stefansat sat, 12 years ago

Cc: stefansat@… added
Component: Please fill inGeneral
Keywords: cmake added
Owner: set to stefansat sat
Priority: Please fill inmajor
Severity: Please fill inmedium
Status: newassigned

comment:9 by luckysquid, 12 years ago

thanks @stefansat
summarize:

with last revision with "cmake" compilation is ok but I don't know one line "PCSC headers not found (not in /usr/include/PCSC or /usr/local/include/PCSC). No PCSC support " however after I see "-- OS X system PCSC : /System/Library/Frameworks/PCSC.framework"
perhaps for mac you must cancel changes in r7368 because use apple pcsc driver ( i have removed linux pscd driver) . even so with cmake I have binary with "
-- use libcrypto functions
-- use system pcsc functions
-- use system pthread functions
-- use static libusb functions"

instead with "MAKE USE_LIBUSB=1 USE_PCSC=1 USE_SSL=1"
I have " csctapi/ifd_smartreader.h:14:10: fatal error: 'libusb-1.0/libusb.h' file not found"
with "MAKE USE_LIBUSB=1" I have oscam binary with list_smargo
with "MAKE USE_PCSC=1" I have oscam smargo with pcsc

comment:10 by stefansat sat, 12 years ago

Hello,

The warning headers about pcsc are not important. On mac the pcsc is included anyway if You have the binary's then it's ok with cmake. make currently still does not handle the libusb ok on mac.

Just do You have binary, and the smargo_utils with cmake ?

Then it's ok.

can You also give a full output off the compilation with cmake ?

ter info I changed a small issue in latest svn 7370

Last edited 12 years ago by stefansat sat (previous) (diff)

comment:11 by luckysquid, 12 years ago

ok thanks log with cmake :

bash-3.2# cmake .
-- The C compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- mac sdk version is 10.6
-- mac Xcode version is 3.2.6
-- Looking for pthread.h
-- Looking for pthread.h - found
-- pthread found. Adding pthread support
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - found
-- openssl found.
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- Looking for PCSC/wintypes.h
-- Looking for PCSC/wintypes.h - found
-- PCSC headers not found (not in /usr/include/PCSC or /usr/local/include/PCSC). No PCSC support
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Utils: pthread found. Adding pthread support
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- Utils: operating system: Mac OS X
-- Utils: target system: i686-apple-darwin10

-- utils: use static libusb functions
--
-- OS X system PCSC : /System/Library/Frameworks/PCSC.framework
--
-- operating system: Mac OS X
-- target system: i686-apple-darwin10
-- revision: 7370
-- use libcrypto functions
-- use system pcsc functions
-- use system pthread functions
-- use static libusb functions
--
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/oscam-svn
bash-3.2# make
Scanning dependencies of target csmodules
[ 1%] Building C object CMakeFiles/csmodules.dir/module-anticasc.o
[ 3%] Building C object CMakeFiles/csmodules.dir/module-camd35.o
[ 5%] Building C object CMakeFiles/csmodules.dir/module-cccam.o
[ 6%] Building C object CMakeFiles/csmodules.dir/module-cccshare.o
[ 8%] Building C object CMakeFiles/csmodules.dir/module-constcw.o
[ 10%] Building C object CMakeFiles/csmodules.dir/module-csp.o
[ 11%] Building C object CMakeFiles/csmodules.dir/module-gbox.o
[ 13%] Building C object CMakeFiles/csmodules.dir/module-monitor.o
[ 15%] Building C object CMakeFiles/csmodules.dir/module-newcamd.o
[ 16%] Building C object CMakeFiles/csmodules.dir/module-pandora.o
[ 18%] Building C object CMakeFiles/csmodules.dir/module-radegast.o
[ 20%] Building C object CMakeFiles/csmodules.dir/module-serial.o
[ 21%] Building C object CMakeFiles/csmodules.dir/module-stat.o
[ 23%] Building C object CMakeFiles/csmodules.dir/module-webif-lib.o
[ 25%] Building C object CMakeFiles/csmodules.dir/module-webif-pages.o
[ 26%] Building C object CMakeFiles/csmodules.dir/module-webif.o
Linking C static library libcsmodules.a
[ 26%] Built target csmodules
Scanning dependencies of target svnversion-log
[ 26%] Built target svnversion-log
Scanning dependencies of target csoscam
[ 28%] Building C object CMakeFiles/csoscam.dir/oscam-chk.o
[ 30%] Building C object CMakeFiles/csoscam.dir/oscam-config.o
[ 31%] Building C object CMakeFiles/csoscam.dir/oscam-garbage.o
[ 33%] Building C object CMakeFiles/csoscam.dir/oscam-llist.o
[ 35%] Building C object CMakeFiles/csoscam.dir/oscam-log.o
[ 36%] Building C object CMakeFiles/csoscam.dir/oscam-reader.o
[ 38%] Building C object CMakeFiles/csoscam.dir/oscam-simples.o
Linking C static library libcsoscam.a
[ 38%] Built target csoscam
Scanning dependencies of target csreaders
[ 40%] Building C object CMakeFiles/csreaders.dir/reader-bulcrypt.o
[ 41%] Building C object CMakeFiles/csreaders.dir/reader-common.o
[ 43%] Building C object CMakeFiles/csreaders.dir/reader-conax.o
[ 45%] Building C object CMakeFiles/csreaders.dir/reader-cryptoworks.o
[ 46%] Building C object CMakeFiles/csreaders.dir/reader-dre.o
[ 48%] Building C object CMakeFiles/csreaders.dir/reader-irdeto.o
[ 50%] Building C object CMakeFiles/csreaders.dir/reader-nagra.o
[ 51%] Building C object CMakeFiles/csreaders.dir/reader-seca.o
[ 53%] Building C object CMakeFiles/csreaders.dir/reader-tongfang.o
[ 55%] Building C object CMakeFiles/csreaders.dir/reader-viaccess.o
[ 56%] Building C object CMakeFiles/csreaders.dir/reader-videoguard-common.o
[ 58%] Building C object CMakeFiles/csreaders.dir/reader-videoguard1.o
[ 60%] Building C object CMakeFiles/csreaders.dir/reader-videoguard12.o
[ 61%] Building C object CMakeFiles/csreaders.dir/reader-videoguard2.o
Linking C static library libcsreaders.a
[ 61%] Built target csreaders
Scanning dependencies of target algo
[ 63%] Building C object algo/CMakeFiles/algo.dir/minilzo.o
Linking C static library libalgo.a
[ 63%] Built target algo
Scanning dependencies of target cscrypt
[ 65%] Building C object cscrypt/CMakeFiles/cscrypt.dir/crc32.o
[ 66%] Building C object cscrypt/CMakeFiles/cscrypt.dir/des.o
[ 68%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_cbc.o
[ 70%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_ecb.o
[ 71%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_skey.o
[ 73%] Building C object cscrypt/CMakeFiles/cscrypt.dir/md5.o
[ 75%] Building C object cscrypt/CMakeFiles/cscrypt.dir/rc6.o
Linking C static library libcscrypt.a
[ 75%] Built target cscrypt
Scanning dependencies of target csctapi
[ 76%] Building C object csctapi/CMakeFiles/csctapi.dir/atr.o
[ 78%] Building C object csctapi/CMakeFiles/csctapi.dir/icc_async.o
[ 80%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_mp35.o
[ 81%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_pcsc.o
[ 83%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_phoenix.o
[ 85%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
[ 86%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sci.o
[ 88%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smargo.o
[ 90%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smartreader.o
[ 91%] Building C object csctapi/CMakeFiles/csctapi.dir/io_serial.o
[ 93%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t0.o
[ 95%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t1.o
[ 96%] Building C object csctapi/CMakeFiles/csctapi.dir/t1_block.o
Linking C static library libcsctapi.a
[ 96%] Built target csctapi
Scanning dependencies of target svnversion
[ 96%] Built target svnversion
Scanning dependencies of target oscam
[ 98%] Building C object CMakeFiles/oscam.dir/oscam.o
Linking C executable oscam
ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libusb-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:

"_libusb_release_interface", referenced from:

_SR_Close in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_control_transfer", referenced from:

_smartreader_usb_reset in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_purge_rx_buffer in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_purge_tx_buffer in libcsctapi.a(ifd_smartreader.o)
_smartreader_set_baudrate in libcsctapi.a(ifd_smartreader.o)
_smartreader_setdtr_rts in libcsctapi.a(ifd_smartreader.o)
_smartreader_setflowctrl in libcsctapi.a(ifd_smartreader.o)
_smartreader_set_line_property2 in libcsctapi.a(ifd_smartreader.o)
_smartreader_set_latency_timer in libcsctapi.a(ifd_smartreader.o)

"_libusb_handle_events", referenced from:

_ReaderThread in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_string_descriptor_ascii", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)

"_libusb_alloc_transfer", referenced from:

_ReaderThread in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_active_config_descriptor", referenced from:

_smartreader_check_endpoint in libcsctapi.a(ifd_smartreader.o)
_smartreader_determine_max_packet_size in libcsctapi.a(ifd_smartreader.o)

"_libusb_submit_transfer", referenced from:

_read_callback in libcsctapi.a(ifd_smartreader.o)
_read_callback in libcsctapi.a(ifd_smartreader.o)
_ReaderThread in libcsctapi.a(ifd_smartreader.o)

"_libusb_exit", referenced from:

_SR_Init in libcsctapi.a(ifd_smartreader.o)
_SR_Init in libcsctapi.a(ifd_smartreader.o)
_SR_Close in libcsctapi.a(ifd_smartreader.o)

"_libusb_init", referenced from:

_SR_Init in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_bus_number", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_device_list", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)

"_libusb_open", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_device_address", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_close", referenced from:

_SR_Close in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_close_internal in libcsctapi.a(ifd_smartreader.o)

"_libusb_bulk_transfer", referenced from:

_smart_write in libcsctapi.a(ifd_smartreader.o)

"_libusb_claim_interface", referenced from:

_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_device_descriptor", referenced from:

_smartreader_check_endpoint in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_determine_max_packet_size in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: * [oscam] Error 1
make[1]:
* [CMakeFiles/oscam.dir/all] Error 2
make: * [all] Error 2
bash-3.2#

after if you want I will post lo "make"

comment:12 by luckysquid, 12 years ago

others : I have macbook 5,1 (intel core due duo 2,0 ghz) 10.6.8 snow leopard and Xcode 3.2.6 64bit

Last edited 12 years ago by luckysquid (previous) (diff)

comment:13 by stefansat sat, 12 years ago

Thank's for the full report,

I selve do have macbookpro i7 . I now have osx 10.8.1 (mountain lion)
My Xcode is 4.4xxx But I do have SDKs for 10.6 installed.

It's a bit challenging since the message by You does request i386, and that's wrong.
On top of it libusb is not supposed to link to dylib but to static lib ??

ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libusb-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Then we have the

-- OS X system PCSC : /System/Library/Frameworks?/PCSC.framework

which should be - OS X system PCSC : /System/Library/Frameworks/PCSC.framework

I think You have A couple of wrong remainders into your system from previous Xcode version.
That's why it does not work with cmake or make.

I now the problem. It's even a very known problem on mac 10.6. I personally just reformated hd reinstalled mac osx from dvd Installed all programs except Xcode.. After that I first updated everything sveral restarts required. Then Buyed the 10.8 osx and installed that one. Then after that I installed the Xcode.

But that's I hell of a job.

What You can try first is

removing all Xcode. by sudo /Developer/Library/uninstall-devtools –mode=all

Be aware It does uninstall all Xcode.

However some remainders will be left(mac uninstall is a bug on it). Those you will have to remove mannually
open mac terminal.

and issue command sudo rm -rf /Developer

If You only used usr/local for oscam and lib usb,

then issue command

sudo rm -rf /usr/local/include
sudo rm -rf /usr/local/lib

reboot the mac

Download and reinstall latest Xcode for mac. (10.6 in your case)

Install the libusb as told before.

Then normaly it should work.

There is no need to install extra drivers.But see well that Your mac is fully up to date before installing Xcode. Mac ports or fink are not needed.

Then only compile libusb

with just ./configure
make
then
sudo make install

When You compile oscam do this as regular user NOT as root
The same for compiling and configuring libusb.

I will now make one extra patch to be able to see which architecture you are using
This to determine from where You're 32 64 bits conflicts come

comment:14 by luckysquid, 12 years ago

ok I remove all and I downloading xocde 3.2.6 with ios sdk 4.3. I look for download
I don' t understand this part

ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libusb-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Then we have the
-- OS X system PCSC : /System/Library/Frameworks??/PCSC.framework
which should be - OS X system PCSC : /System/Library/Frameworks?/PCSC.framework

thanks

comment:15 by luckysquid, 12 years ago

I have reinstall all, but same errors :(

-- The C compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- mac OSX ATCHITECTURE VERSION is i386
-- mac sdk version is 10.6
-- mac Xcode version is 3.2.6
-- Looking for pthread.h
-- Looking for pthread.h - found
-- pthread found. Adding pthread support
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - found
-- openssl found.
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- Looking for PCSC/wintypes.h
-- Looking for PCSC/wintypes.h - found
-- PCSC headers not found (not in /usr/include/PCSC or /usr/local/include/PCSC). No PCSC support
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Utils: pthread found. Adding pthread support
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- Utils: operating system: Mac OS X
-- Utils: target system: i686-apple-darwin10

-- utils: use static libusb functions
--
-- OS X system PCSC : /System/Library/Frameworks/PCSC.framework
--
-- operating system: Mac OS X
-- target system: i686-apple-darwin10
-- revision: 7373
-- use libcrypto functions
-- use system pcsc functions
-- use system pthread functions
-- use static libusb functions
--
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/oscam-svn
pc-192-168-1-3:oscam-svn user$ make
Scanning dependencies of target csmodules
[ 1%] Building C object CMakeFiles/csmodules.dir/module-anticasc.o
[ 3%] Building C object CMakeFiles/csmodules.dir/module-camd35.o
[ 5%] Building C object CMakeFiles/csmodules.dir/module-cccam.o
[ 6%] Building C object CMakeFiles/csmodules.dir/module-cccshare.o
[ 8%] Building C object CMakeFiles/csmodules.dir/module-constcw.o
[ 10%] Building C object CMakeFiles/csmodules.dir/module-csp.o
[ 11%] Building C object CMakeFiles/csmodules.dir/module-gbox.o
[ 13%] Building C object CMakeFiles/csmodules.dir/module-monitor.o
[ 15%] Building C object CMakeFiles/csmodules.dir/module-newcamd.o
[ 16%] Building C object CMakeFiles/csmodules.dir/module-pandora.o
[ 18%] Building C object CMakeFiles/csmodules.dir/module-radegast.o
[ 20%] Building C object CMakeFiles/csmodules.dir/module-serial.o
[ 21%] Building C object CMakeFiles/csmodules.dir/module-stat.o
[ 23%] Building C object CMakeFiles/csmodules.dir/module-webif-lib.o
[ 25%] Building C object CMakeFiles/csmodules.dir/module-webif-pages.o
[ 26%] Building C object CMakeFiles/csmodules.dir/module-webif.o
Linking C static library libcsmodules.a
[ 26%] Built target csmodules
Scanning dependencies of target svnversion-log
[ 26%] Built target svnversion-log
Scanning dependencies of target csoscam
[ 28%] Building C object CMakeFiles/csoscam.dir/oscam-chk.o
[ 30%] Building C object CMakeFiles/csoscam.dir/oscam-config.o
[ 31%] Building C object CMakeFiles/csoscam.dir/oscam-garbage.o
[ 33%] Building C object CMakeFiles/csoscam.dir/oscam-llist.o
[ 35%] Building C object CMakeFiles/csoscam.dir/oscam-log.o
[ 36%] Building C object CMakeFiles/csoscam.dir/oscam-reader.o
[ 38%] Building C object CMakeFiles/csoscam.dir/oscam-simples.o
Linking C static library libcsoscam.a
[ 38%] Built target csoscam
Scanning dependencies of target csreaders
[ 40%] Building C object CMakeFiles/csreaders.dir/reader-bulcrypt.o
[ 41%] Building C object CMakeFiles/csreaders.dir/reader-common.o
[ 43%] Building C object CMakeFiles/csreaders.dir/reader-conax.o
[ 45%] Building C object CMakeFiles/csreaders.dir/reader-cryptoworks.o
[ 46%] Building C object CMakeFiles/csreaders.dir/reader-dre.o
[ 48%] Building C object CMakeFiles/csreaders.dir/reader-irdeto.o
[ 50%] Building C object CMakeFiles/csreaders.dir/reader-nagra.o
[ 51%] Building C object CMakeFiles/csreaders.dir/reader-seca.o
[ 53%] Building C object CMakeFiles/csreaders.dir/reader-tongfang.o
[ 55%] Building C object CMakeFiles/csreaders.dir/reader-viaccess.o
[ 56%] Building C object CMakeFiles/csreaders.dir/reader-videoguard-common.o
[ 58%] Building C object CMakeFiles/csreaders.dir/reader-videoguard1.o
[ 60%] Building C object CMakeFiles/csreaders.dir/reader-videoguard12.o
[ 61%] Building C object CMakeFiles/csreaders.dir/reader-videoguard2.o
Linking C static library libcsreaders.a
[ 61%] Built target csreaders
Scanning dependencies of target csctapi
[ 63%] Building C object csctapi/CMakeFiles/csctapi.dir/atr.o
[ 65%] Building C object csctapi/CMakeFiles/csctapi.dir/icc_async.o
[ 66%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_mp35.o
[ 68%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_pcsc.o
[ 70%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_phoenix.o
[ 71%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
[ 73%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sci.o
[ 75%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smargo.o
[ 76%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smartreader.o
[ 78%] Building C object csctapi/CMakeFiles/csctapi.dir/io_serial.o
[ 80%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t0.o
[ 81%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t1.o
[ 83%] Building C object csctapi/CMakeFiles/csctapi.dir/t1_block.o
Linking C static library libcsctapi.a
[ 83%] Built target csctapi
Scanning dependencies of target algo
[ 85%] Building C object algo/CMakeFiles/algo.dir/minilzo.o
Linking C static library libalgo.a
[ 85%] Built target algo
Scanning dependencies of target cscrypt
[ 86%] Building C object cscrypt/CMakeFiles/cscrypt.dir/crc32.o
[ 88%] Building C object cscrypt/CMakeFiles/cscrypt.dir/des.o
[ 90%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_cbc.o
[ 91%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_ecb.o
[ 93%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_skey.o
[ 95%] Building C object cscrypt/CMakeFiles/cscrypt.dir/md5.o
[ 96%] Building C object cscrypt/CMakeFiles/cscrypt.dir/rc6.o
Linking C static library libcscrypt.a
[ 96%] Built target cscrypt
Scanning dependencies of target svnversion
[ 96%] Built target svnversion
Scanning dependencies of target oscam
[ 98%] Building C object CMakeFiles/oscam.dir/oscam.o
Linking C executable oscam
ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libusb-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:

"_libusb_release_interface", referenced from:

_SR_Close in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_control_transfer", referenced from:

_smartreader_usb_reset in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_purge_rx_buffer in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_purge_tx_buffer in libcsctapi.a(ifd_smartreader.o)
_smartreader_set_baudrate in libcsctapi.a(ifd_smartreader.o)
_smartreader_setdtr_rts in libcsctapi.a(ifd_smartreader.o)
_smartreader_setflowctrl in libcsctapi.a(ifd_smartreader.o)
_smartreader_set_line_property2 in libcsctapi.a(ifd_smartreader.o)
_smartreader_set_latency_timer in libcsctapi.a(ifd_smartreader.o)

"_libusb_handle_events", referenced from:

_ReaderThread in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_string_descriptor_ascii", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)

"_libusb_alloc_transfer", referenced from:

_ReaderThread in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_active_config_descriptor", referenced from:

_smartreader_check_endpoint in libcsctapi.a(ifd_smartreader.o)
_smartreader_determine_max_packet_size in libcsctapi.a(ifd_smartreader.o)

"_libusb_submit_transfer", referenced from:

_read_callback in libcsctapi.a(ifd_smartreader.o)
_read_callback in libcsctapi.a(ifd_smartreader.o)
_ReaderThread in libcsctapi.a(ifd_smartreader.o)

"_libusb_exit", referenced from:

_SR_Init in libcsctapi.a(ifd_smartreader.o)
_SR_Init in libcsctapi.a(ifd_smartreader.o)
_SR_Close in libcsctapi.a(ifd_smartreader.o)

"_libusb_init", referenced from:

_SR_Init in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_bus_number", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_device_list", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)

"_libusb_open", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_device_address", referenced from:

_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_close", referenced from:

_SR_Close in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_close_internal in libcsctapi.a(ifd_smartreader.o)

"_libusb_bulk_transfer", referenced from:

_smart_write in libcsctapi.a(ifd_smartreader.o)

"_libusb_claim_interface", referenced from:

_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

"_libusb_get_device_descriptor", referenced from:

_smartreader_check_endpoint in libcsctapi.a(ifd_smartreader.o)
_find_smartreader in libcsctapi.a(ifd_smartreader.o)
_smartreader_determine_max_packet_size in libcsctapi.a(ifd_smartreader.o)
_smartreader_usb_open_dev in libcsctapi.a(ifd_smartreader.o)

ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: * [oscam] Error 1
make[1]:
* [CMakeFiles/oscam.dir/all] Error 2
make: * [all] Error 2
pc-192-168-1-3:oscam-svn user$

Last edited 12 years ago by luckysquid (previous) (diff)

comment:16 by stefansat sat, 12 years ago

Ik try once the latest now 7374

comment:17 by stefansat sat, 12 years ago

I was able to trigger same error as by You, By setting architecture to i386 for compilation.
With 7374 it will compile for x86_64 . Your compiler self defaults to 64 bits compilation.

But on 10.6 , its is possible that the own mac pcsc was compiled for i386.

If You with the latest svn still have problems try once to use

cmake -DHAVE_PCSC=0 .

Would be nice to report if it work's then ticket can be closed

Last edited 12 years ago by stefansat sat (previous) (diff)

comment:18 by luckysquid, 12 years ago

very thanks with r7374 "cmake" works ok ;)
I have only this warnings

-- PCSC headers not found (not in /usr/include/PCSC or /usr/local/include/PCSC). No PCSC support

I think that you have to insert "if" on mac section for the search "external pcsc headers files" because "users" like me are deceived from this warning and them will install linux pcsc drivers :)

this is log of only "make"

pc-192-168-1-3:oscam-svn user$ make all libusb libusb-pcsc+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 7386 target: i686-apple-darwin10
| Tools:
| CROSS =
| CC = gcc
| AR = ar
| STRIP = strip
| RANLIB = ranlib
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -fno-strict-aliasing -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS =
| LDFLAGS =
| LIBS = -lpthread -ldl
| Config:
| Addons : WEBIF HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM GBOX RADEGAST SERIAL CONSTCW PANDORA
| Readers : WITH_CARDREADER NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT
| Compiler : i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
| Binary : Distribution/oscam-1.20-unstable_svn7386-i686-apple-darwin10
+-------------------------------------------------------------------------------
CC algo/minilzo.c
CC cscrypt/aes.c
CC cscrypt/bn_add.c
CC cscrypt/bn_asm.c
CC cscrypt/bn_ctx.c
CC cscrypt/bn_div.c
CC cscrypt/bn_exp.c
CC cscrypt/bn_lib.c
CC cscrypt/bn_mul.c
CC cscrypt/bn_print.c
CC cscrypt/bn_shift.c
CC cscrypt/bn_sqr.c
CC cscrypt/bn_word.c
CC cscrypt/mem.c
CC cscrypt/crc32.c
CC cscrypt/des.c
CC cscrypt/i_cbc.c
CC cscrypt/i_ecb.c
CC cscrypt/i_skey.c
CC cscrypt/md5.c
CC cscrypt/rc6.c
CC cscrypt/sha1.c
CC csctapi/atr.c
CC csctapi/icc_async.c
CC csctapi/ifd_mp35.c
CC csctapi/ifd_phoenix.c
CC csctapi/ifd_sc8in1.c
CC csctapi/ifd_sci.c
CC csctapi/ifd_smargo.c
CC csctapi/io_serial.c
CC csctapi/protocol_t0.c
CC csctapi/protocol_t1.c
CC csctapi/t1_block.c
CC module-anticasc.c
CC module-camd35.c
CC module-cccam.c
CC module-cccshare.c
CC module-constcw.c
CC module-csp.c
CC module-gbox.c
CC module-monitor.c
CC module-newcamd.c
CC module-pandora.c
CC module-radegast.c
CC module-serial.c
CC module-stat.c
CC module-webif.c
CC module-webif-lib.c
CC module-webif-pages.c
CC reader-common.c
CC reader-bulcrypt.c
CC reader-conax.c
CC reader-cryptoworks.c
CC reader-dre.c
CC reader-irdeto.c
CC reader-nagra.c
CC reader-seca.c
CC reader-tongfang.c
CC reader-viaccess.c
CC reader-videoguard-common.c
CC reader-videoguard1.c
CC reader-videoguard12.c
CC reader-videoguard2.c
CC oscam-chk.c
CC oscam-conf.c
CC oscam-conf-chk.c
CC oscam-config.c
CC oscam-garbage.c
CC oscam-log.c
CC oscam-llist.c
CC oscam-reader.c
CC oscam-simples.c
CC oscam.c
LINK Distribution/oscam-1.20-unstable_svn7386-i686-apple-darwin10
STRIP Distribution/oscam-1.20-unstable_svn7386-i686-apple-darwin10
make --no-print-directory \

USE_LIBUSB=1 \


+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 7386 target: i686-apple-darwin10-libusb
| Tools:
| CROSS =
| CC = gcc
| AR = ar
| STRIP = strip
| RANLIB = ranlib
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -fno-strict-aliasing -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS = -DWITH_LIBUSB
| LDFLAGS = -DWITH_LIBUSB
| LIBS = -lusb-1.0 -lpthread -ldl
| Config:
| Addons : WEBIF HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM GBOX RADEGAST SERIAL CONSTCW PANDORA
| Readers : WITH_CARDREADER NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT
| Compiler : i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
| Binary : Distribution/oscam-1.20-unstable_svn7386-i686-apple-darwin10-libusb
+-------------------------------------------------------------------------------
CC algo/minilzo.c
CC cscrypt/aes.c
CC cscrypt/bn_add.c
CC cscrypt/bn_asm.c
CC cscrypt/bn_ctx.c
CC cscrypt/bn_div.c
CC cscrypt/bn_exp.c
CC cscrypt/bn_lib.c
CC cscrypt/bn_mul.c
CC cscrypt/bn_print.c
CC cscrypt/bn_shift.c
CC cscrypt/bn_sqr.c
CC cscrypt/bn_word.c
CC cscrypt/mem.c
CC cscrypt/crc32.c
CC cscrypt/des.c
CC cscrypt/i_cbc.c
CC cscrypt/i_ecb.c
CC cscrypt/i_skey.c
CC cscrypt/md5.c
CC cscrypt/rc6.c
CC cscrypt/sha1.c
CC csctapi/atr.c
CC csctapi/icc_async.c
CC csctapi/ifd_mp35.c
CC csctapi/ifd_phoenix.c
CC csctapi/ifd_sc8in1.c
CC csctapi/ifd_sci.c
CC csctapi/ifd_smargo.c
CC csctapi/ifd_smartreader.c
CC csctapi/io_serial.c
CC csctapi/protocol_t0.c
CC csctapi/protocol_t1.c
CC csctapi/t1_block.c
CC module-anticasc.c
CC module-camd35.c
CC module-cccam.c
CC module-cccshare.c
CC module-constcw.c
CC module-csp.c
CC module-gbox.c
CC module-monitor.c
CC module-newcamd.c
CC module-pandora.c
CC module-radegast.c
CC module-serial.c
CC module-stat.c
CC module-webif.c
CC module-webif-lib.c
CC module-webif-pages.c
CC reader-common.c
CC reader-bulcrypt.c
CC reader-conax.c
CC reader-cryptoworks.c
CC reader-dre.c
CC reader-irdeto.c
CC reader-nagra.c
CC reader-seca.c
CC reader-tongfang.c
CC reader-viaccess.c
CC reader-videoguard-common.c
CC reader-videoguard1.c
CC reader-videoguard12.c
CC reader-videoguard2.c
CC oscam-chk.c
CC oscam-conf.c
CC oscam-conf-chk.c
CC oscam-config.c
CC oscam-garbage.c
CC oscam-log.c
CC oscam-llist.c
CC oscam-reader.c
CC oscam-simples.c
CC oscam.c
LINK Distribution/oscam-1.20-unstable_svn7386-i686-apple-darwin10-libusb
STRIP Distribution/oscam-1.20-unstable_svn7386-i686-apple-darwin10-libusb
LINK Distribution/list_smargo-1.20-unstable_svn7386-i686-apple-darwin10-libusb
STRIP Distribution/list_smargo-1.20-unstable_svn7386-i686-apple-darwin10-libusb
make --no-print-directory \

USE_LIBUSB=1 \
USE_PCSC=1 \


+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 7386 target: i686-apple-darwin10-libusb-pcsc
| Tools:
| CROSS =
| CC = gcc
| AR = ar
| STRIP = strip
| RANLIB = ranlib
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -fno-strict-aliasing -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS = -DWITH_LIBUSB -isysroot /Developer/SDKs/MacOSX10.6.sdk -DWITH_PCSC
| LDFLAGS = -DWITH_LIBUSB -isysroot /Developer/SDKs/MacOSX10.6.sdk -DWITH_PCSC
| LIBS = -lusb-1.0 -syslibroot,/Developer/SDKs/MacOSX10.6.sdk -framework IOKit -framework CoreFoundation -framework PCSC -lpthread -ldl
| Config:
| Addons : WEBIF HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM GBOX RADEGAST SERIAL CONSTCW PANDORA
| Readers : WITH_CARDREADER NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT
| Compiler : i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
| Binary : Distribution/oscam-1.20-unstable_svn7386-i686-apple-darwin10-libusb-pcsc
+-------------------------------------------------------------------------------
CC algo/minilzo.c
CC cscrypt/aes.c
CC cscrypt/bn_add.c
CC cscrypt/bn_asm.c
CC cscrypt/bn_ctx.c
CC cscrypt/bn_div.c
CC cscrypt/bn_exp.c
CC cscrypt/bn_lib.c
CC cscrypt/bn_mul.c
CC cscrypt/bn_print.c
CC cscrypt/bn_shift.c
CC cscrypt/bn_sqr.c
CC cscrypt/bn_word.c
CC cscrypt/mem.c
CC cscrypt/crc32.c
CC cscrypt/des.c
CC cscrypt/i_cbc.c
CC cscrypt/i_ecb.c
CC cscrypt/i_skey.c
CC cscrypt/md5.c
CC cscrypt/rc6.c
CC cscrypt/sha1.c
CC csctapi/atr.c
CC csctapi/icc_async.c
In file included from csctapi/icc_async.c:37:
csctapi/ifd_smartreader.h:14:31: error: libusb-1.0/libusb.h: No such file or directory
make[2]: * [lib/libcsctapi-i686-apple-darwin10-libusb-pcsc.a(csctapi/icc_async.o)] Error 1
make[1]:
* [all] Error 2
make: * [pcsc-libusb] Error 2
pc-192-168-1-3:oscam-svn user$

comment:19 by stefansat sat, 12 years ago

About the make, I do not now.

But I just commited the latest changes for cmake on svn7387
Misleading messages should be gone.

can You try this by you ? with just this command (ssl included for check if it's ok on 10.6 as well)

cmake -DWITH_SSL=1 .

And then give full repport would be nice Thank's

comment:20 by luckysquid, 12 years ago

thanks @stefansat also with cmake -DWITH_SSL=1 . compilations work ;)
I have tested also in imac (mountain lion) and is ok ;)
it is a pleasure to deal with her.
soon

pc-192-168-1-3:oscam-svn user$ cmake -DWITH_SSL=1 .
-- The C compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- mac sdk version is 10.6
-- mac Xcode version is 3.2.6
Enable WITH_SSL
-- Looking for pthread.h
-- Looking for pthread.h - found
-- pthread found. Adding pthread support
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - found
-- openssl found.
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- Looking for PCSC/wintypes.h
-- Looking for PCSC/wintypes.h - found
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Utils: pthread found. Adding pthread support
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - not found
-- static libusb 1.0 found (libusb-1.0.a). Adding smartreader support
-- Utils: operating system: Mac OS X
-- Utils: target system: i686-apple-darwin10

-- utils: use static libusb functions
--
-- PCSC Mac OS X found : /System/Library/Frameworks/PCSC.framework
--
-- operating system: Mac OS X
-- target system: i686-apple-darwin10
-- revision: 7390
-- use libcrypto functions
-- use system pcsc functions
-- use system pthread functions
-- use static libusb functions
--
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/oscam-svn
pc-192-168-1-3:oscam-svn user$ make
Scanning dependencies of target csmodules
[ 1%] Building C object CMakeFiles/csmodules.dir/module-anticasc.o
[ 3%] Building C object CMakeFiles/csmodules.dir/module-camd35.o
[ 4%] Building C object CMakeFiles/csmodules.dir/module-cccam.o
[ 6%] Building C object CMakeFiles/csmodules.dir/module-cccshare.o
[ 8%] Building C object CMakeFiles/csmodules.dir/module-constcw.o
[ 9%] Building C object CMakeFiles/csmodules.dir/module-csp.o
[ 11%] Building C object CMakeFiles/csmodules.dir/module-gbox.o
[ 12%] Building C object CMakeFiles/csmodules.dir/module-monitor.o
[ 14%] Building C object CMakeFiles/csmodules.dir/module-newcamd.o
[ 16%] Building C object CMakeFiles/csmodules.dir/module-pandora.o
[ 17%] Building C object CMakeFiles/csmodules.dir/module-radegast.o
[ 19%] Building C object CMakeFiles/csmodules.dir/module-serial.o
[ 20%] Building C object CMakeFiles/csmodules.dir/module-stat.o
[ 22%] Building C object CMakeFiles/csmodules.dir/module-webif-lib.o
[ 24%] Building C object CMakeFiles/csmodules.dir/module-webif-pages.o
[ 25%] Building C object CMakeFiles/csmodules.dir/module-webif.o
Linking C static library libcsmodules.a
[ 25%] Built target csmodules
Scanning dependencies of target svnversion-log
[ 25%] Built target svnversion-log
Scanning dependencies of target csoscam
[ 27%] Building C object CMakeFiles/csoscam.dir/oscam-chk.o
[ 29%] Building C object CMakeFiles/csoscam.dir/oscam-conf-chk.o
[ 30%] Building C object CMakeFiles/csoscam.dir/oscam-conf.o
[ 32%] Building C object CMakeFiles/csoscam.dir/oscam-config.o
[ 33%] Building C object CMakeFiles/csoscam.dir/oscam-garbage.o
[ 35%] Building C object CMakeFiles/csoscam.dir/oscam-llist.o
[ 37%] Building C object CMakeFiles/csoscam.dir/oscam-log.o
[ 38%] Building C object CMakeFiles/csoscam.dir/oscam-reader.o
[ 40%] Building C object CMakeFiles/csoscam.dir/oscam-simples.o
Linking C static library libcsoscam.a
[ 40%] Built target csoscam
Scanning dependencies of target csreaders
[ 41%] Building C object CMakeFiles/csreaders.dir/reader-bulcrypt.o
[ 43%] Building C object CMakeFiles/csreaders.dir/reader-common.o
[ 45%] Building C object CMakeFiles/csreaders.dir/reader-conax.o
[ 46%] Building C object CMakeFiles/csreaders.dir/reader-cryptoworks.o
[ 48%] Building C object CMakeFiles/csreaders.dir/reader-dre.o
[ 50%] Building C object CMakeFiles/csreaders.dir/reader-irdeto.o
[ 51%] Building C object CMakeFiles/csreaders.dir/reader-nagra.o
[ 53%] Building C object CMakeFiles/csreaders.dir/reader-seca.o
[ 54%] Building C object CMakeFiles/csreaders.dir/reader-tongfang.o
[ 56%] Building C object CMakeFiles/csreaders.dir/reader-viaccess.o
[ 58%] Building C object CMakeFiles/csreaders.dir/reader-videoguard-common.o
[ 59%] Building C object CMakeFiles/csreaders.dir/reader-videoguard1.o
[ 61%] Building C object CMakeFiles/csreaders.dir/reader-videoguard12.o
[ 62%] Building C object CMakeFiles/csreaders.dir/reader-videoguard2.o
Linking C static library libcsreaders.a
[ 62%] Built target csreaders
Scanning dependencies of target csctapi
[ 64%] Building C object csctapi/CMakeFiles/csctapi.dir/atr.o
[ 66%] Building C object csctapi/CMakeFiles/csctapi.dir/icc_async.o
[ 67%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_mp35.o
[ 69%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_pcsc.o
[ 70%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_phoenix.o
[ 72%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
[ 74%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sci.o
[ 75%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smargo.o
[ 77%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smartreader.o
[ 79%] Building C object csctapi/CMakeFiles/csctapi.dir/io_serial.o
[ 80%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t0.o
[ 82%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t1.o
[ 83%] Building C object csctapi/CMakeFiles/csctapi.dir/t1_block.o
Linking C static library libcsctapi.a
[ 83%] Built target csctapi
Scanning dependencies of target algo
[ 85%] Building C object algo/CMakeFiles/algo.dir/minilzo.o
Linking C static library libalgo.a
[ 85%] Built target algo
Scanning dependencies of target cscrypt
[ 87%] Building C object cscrypt/CMakeFiles/cscrypt.dir/crc32.o
[ 88%] Building C object cscrypt/CMakeFiles/cscrypt.dir/des.o
[ 90%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_cbc.o
[ 91%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_ecb.o
[ 93%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_skey.o
[ 95%] Building C object cscrypt/CMakeFiles/cscrypt.dir/md5.o
[ 96%] Building C object cscrypt/CMakeFiles/cscrypt.dir/rc6.o
Linking C static library libcscrypt.a
[ 96%] Built target cscrypt
Scanning dependencies of target svnversion
[ 96%] Built target svnversion
Scanning dependencies of target oscam
[ 98%] Building C object CMakeFiles/oscam.dir/oscam.o
Linking C executable oscam
[ 98%] Built target oscam
Scanning dependencies of target list_smargo
[100%] Building C object utils/CMakeFiles/list_smargo.dir/list_smargo.o
Linking C executable list_smargo
[100%] Built target list_smargo

Last edited 12 years ago by luckysquid (previous) (diff)

comment:21 by luckysquid, 12 years ago

Resolution: fixed
Status: assignedclosed

comment:22 by stefansat sat, 12 years ago

Thank's for the full report, And also very much thank's that You Did removed old Xcodes and wrong libs. And reinstalled them as asked. :-)

Now I have the confirmation as well that the oscam binary produced on 10.6(which is full up to date and on hardware type supporting x86_64) will run on 10.7 and 10.8.
Even if users do not have Xcode and consecutively no libusb installed it runs with libusb support that last I tested by me.

comment:23 by luckysquid, 12 years ago

Good to know :)
chat soon ;)

comment:24 by luckysquid, 12 years ago

with r7401 only "MAKE" is fixed ;)
thanks

Note: See TracTickets for help on using tickets.