Re: [opendbx] Problems generating .deb
Brought to you by:
nose
From: Mariano M. P. <mar...@gm...> - 2008-02-03 02:09:26
|
Hi Norbert On Feb 2, 2008 10:34 PM, Norbert Sendetzky <no...@li...> wrote: > Hi Mariano > > > *dpkg -i libopendbx1_1.2.3-1_i386.deb > libopendbx1-mysql_1.2.3-1_i386.deb* > > > > And there it finished. If i see the files it had installed, i only have > > this 3 files in /usr/lib/opendbx : libmysqlbackend.so, > libmysqlbackend.so.1 > > and libmysqlbackend.so.1.1.0. > > You should also have /usr/lib/libopendbx.so.1.1.0 > and /usr/lib/libopendbx.so.1.1 Sorry. You are right. The problem is that when i compile and install openDBX, it put some files in some places, but when i install it from deb it put them in other place. > > > > I olso look in /usr/local/include and /usr/include but i found nothing. > I > > can't find odbx.h > > This file is in the libopendbx1-dev packages. > > > So, i don't know if i had bad generated .debs or they ar ok but bad > > installed. do you know what this can be? > > Please install the generated dev package if you want to compile > applications > using OpenDBX. > > Ok. Perfect. I installed that package and i now have the odbx so that to compile applications who use opendDBX. Just by curious, how can i use openDBX without a application? i mean, supose i don't have any application who uses, can i use openDBX? How? using those scripts? Would you mine giving me some example? Ahh once i installed the dev package, i could compile my example. but when i try tu run it, i have this error: *_odbx_lib_open(): Loading backend library failed: /usr/local/lib/opendbx/libpgsqlbackend.so - /usr/local/lib/opendbx/libpgsqlbackend.so: cannot open shared object file: No such file or directory _odbx_lib_open(): Loading backend library failed: libpgsqlbackend.so - libpgsqlbackend.so: cannot open shared object file: No such file or directory odbx_init(): Loading backend library failed * The same happends if i run the test you put in project (odbxtest.sh). I have get it work if a generate a symbolic link. But it don't know why the linker is looking in */usr/local/lib/ *and not in /usr/lib. Where i can tell it where to search them? i put this in the makefile. The makefile of my test is like this: COMPILER = gcc CCFLAGS = -O2 -g -Wall -fmessage-length=0 -I/usr/include OBJS = openDBXTest.o LIBS = -lopendbx TARGET = openDBXTest LDFLAGS = -L/usr/lib -L/usr/lib/opendbx -L/usr/lib/pkgconfig $(TARGET): $(OBJS) ${COMPILER} ${CCFLAGS} $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) all: $(TARGET) clean: rm -f $(OBJS) $(TARGET) As you can see, i a very newie in C. I programed in C years ago i don't remember too much. I know these things are trivial. Thanks. Mariano > > Norbert > -- > OpenPGP public key > http://www.linuxnetworks.de/norbert.pubkey.asc > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > libopendbx-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libopendbx-devel > http://www.linuxnetworks.de/doc/index.php/OpenDBX > > |