delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/21/04:10:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Subject: BerkeleyDB Win32 build on Cygwin
MIME-Version: 1.0
Date: Thu, 21 Feb 2008 10:10:33 +0100
Message-ID: <8191FA1028660844AAB8D5FD9112BB6401A406F6@h019.questel.fr>
From: =?iso-8859-1?Q?St=E9phane_Aboab?= <saboab AT questel DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m1L9AE0Z016400

Hi,
 
I tried to make a DLL which contains ownership source code (C language, not C++) and depends on third party software like BerkeleyDB. My source code build under Cygwin using home made makefiles et preprocessor flags inserted into sources to manage Linux gen and Cygwin gen. My makefiles always generate *.a archives which are dedicated to run on Linux platform: static libraries. The Linux distribution uses Cygwin standard libraries and embbed Unix distribution of BerkeleyDB.
 
My goal is to make a DLL (dynamic library) which could run outside Cygwin and that I could call from Java applications using JNI inside a Win32 JVM. This time, I have to make the library using Win32 distribution of BerkeleyDB. But, as I said above, my makefiles only manage Cygwin gen. I think that BerkeleyDB is not able to build under Cygwin! This is my problem: BerkeleyDB Win32 distribution is a Visual C++ project which could only build with Visual C++ standards libraries version.
 
My prerequisites are that I can not modify/adapt source code (i.e. can not import my Cygwin dependant source code into a new Visual C++ project) and my knowledge on makefiles is very poor (I'm a Java developer which has to write the Java/JNI part). So I have two questions:
 
1- Boolean question: is it possible to make my library -which depends on BerkeleyDB- as a Win32 dynamic library and using Cygwin env?
 
2- If yes, how can I do that??? (please do not answer me only to use -shared -mno-cygwin gcc args because I already tried it and it is not enough...)
 
Many thanks.
 
S.A.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019