On Fri, Sep 14, 2012 at 9:55 AM, Staffan Tylen <staffan.ty...@gmail.com> wrote:

> Over the last 2 days I've tried to compile and link my own version of
> ooSQLite.dll using MinGW GCC but when I try to load it using ::REQUIRE it
> fails with:
>
> 1 *-* ::REQUIRES "oosqlite" LIBRARY
> Error 98 running C:\...\bin\testdll.rex line 1:  Execution error
> Error 98.903:  Unable to load library "oosqlite"

Staffan,

2 things.

1.) There are pre-compiled binaries for Windows on SourceForge.  Why
don't you use those?

https://sourceforge.net/projects/oorexx/files/ooSQLite/

I think you are going to have nothing but problems trying to compile
with MingGW, especially if you have to change things in the source
code to get it to compile.

My intent is to keep the pre-compiled binaries up to date.

2.) If you are determined to build your own binaries, why don't you
download the free VC++ express compiler and use the Windows make file
that is included in the source?

Either one of those routes should be a lot easier than trying to
compile with MingGW.

I would think using the pre-compile package from SourceForge would be
the way to go, just to get started.

I'm not going to go through the below line by line.  But, it just
basically isn't going to work.  You would need to set up things to
correctly build a Rexx native extension, which has nothing to do with
building SQLite.

The Windows make file: MakeFile.win will build things correctly using
VC++ Express without you having to understand any of the details of C
/ C++.

But, also, why do you want to build it yourself?  Is there some good
reason for that?

> I can hear the question: why not use Visual C++? The answer is that without
> any C/C++ background it complicates things for me even more.
> I've tried to use MSYS but with no success there either so I just go for the
> raw g++ and gcc commands. After all, I'm developing in Rexx, not C.

Will, yeah, that's why I would expect you to use the pre-compiled binaries.

But, also with VC++ Express you don't need to know any C / C++.  You
just need to install it, so the tools are there, and then run nMake
from the command line to build ooSqlite:

C:\work.ooRexx\wc\incubator\ooSQLite>nmake /NOLOGO /F Makefile.win clean_all
C:\work.ooRexx\wc\incubator\ooSQLite\src
SVN_REV 8405
        del /Q bin\windows\*.dll bin\windows\*exe bin\windows\*.cls 1>nul 2>&1
        del /Q bin\linux\*.dll bin\linux\*exe bin\linux\*.cls 1>nul 2>&1
        del /Q build\release\* 1>nul 2>&1
        del /Q build\debug\* 1>nul 2>&1

C:\work.ooRexx\wc\incubator\ooSQLite>nmake /NOLOGO /F Makefile.win
C:\work.ooRexx\wc\incubator\ooSQLite\src
SVN_REV 8405
        cl /nologo /EHsc /Zi /Od /Gr /MTd /D_DEBUG /DEBUGTYPE:CV
/Fdbuild\debug\ooSQLiteDbg.pdb /W3 /D_CRT_SECUR
E_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DOOSQLITE_VER_MAJOR=1
/DOOSQLITE_VER_MINOR=0 /DOOSQLITE_VER_LEVEL=0
/DOOSQLITE_VER_BUILD=8405 /DOOSQLITE_VER_STRING="1.0.0.8405"
/DOOSQLITE_COPYRIGHT_YEAR=\""2012-2012"\" /I src\sq
lite /DSQLITE_ENABLE_COLUMN_METADATA /DSQLITE_ENABLE_MEMORY_MANAGEMENT
/D:_X86_ /DWIN32 /DNULL=0 /DOOSQLDBG /c /
Fo.\build\debug\ src\sqlite\sqlite3.c
sqlite3.c
        cl /nologo /EHsc /Zi /Od /Gr /MTd /D_DEBUG /DEBUGTYPE:CV
/Fdbuild\debug\ooSQLiteDbg.pdb /W3 /D_CRT_SECUR
E_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DOOSQLITE_VER_MAJOR=1
/DOOSQLITE_VER_MINOR=0 /DOOSQLITE_VER_LEVEL=0
/DOOSQLITE_VER_BUILD=8405 /DOOSQLITE_VER_STRING="1.0.0.8405"
/DOOSQLITE_COPYRIGHT_YEAR=\""2012-2012"\" /I src\sq
lite /DSQLITE_ENABLE_COLUMN_METADATA /DSQLITE_ENABLE_MEMORY_MANAGEMENT
/D:_X86_ /DWIN32 /DNULL=0 /DOOSQLDBG /c /
Fo.\build\debug\ src\ooSQLite.cpp
ooSQLite.cpp
...

You don't have to know anything to type "nMake <some args>"  And I'll
give you help with the args if you need it.

Still, I'd use the binaries on SourceForge.  As of right now they are
completely up-to-date.

--
Mark Miesfeld

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to