Ok I now have an executable. This is what I did in addition to the above:
[Title] error: 'JSAMPLE16' undeclared
[Description]
compiling jasper dir gives
jpg_dec.c: In function 'jpg_put_pixel_rows':
jpg_dec.c:312: error: 'JSAMPLE16' undeclared (first use in this function)
jpg_dec.c:312: error: (Each undeclared identifier is reported only once
jpg_dec.c:312: error: for each function it appears in.)
jpg_dec.c:312: error: 'bufptr16' undeclared (first use in this function)
jpg_dec.c:329: error: 'JSAMPROW16' undeclared (first use in this function)
[Solution]
See http://forum.image-systems.biz/viewtopic.php?f=33&t=2494
After doing in jpeg-6c: (see linuxmanual.pdf in Conquest dir)
sudo make install
Add
sudo make install-lib
[Title] PostGresql directories
[Description]
Fedora installs Postgress in
/usr/lib/pgsql
/usr/include/pgsql
Need to install
postgresql-server-8.4.8-1.fc14.i686
postgresql-8.4.8-1.fc14.i686
postgresql-devel-8.4.8-1.fc14.i686
postgresql-libs-8.4.8-1.fc14.i686
[Solution]
Change maklinux_postgres, line 1 from
export LD_LIBRARY_PATH="/usr/local/pgsql/lib/"
to
export LD_LIBRARY_PATH="/usr/lib/pgsql/"
and line 3 from
g++ -I/usr/local/pgsql/include -DUNIX -DNATIVE_ENDIAN=1 -DHAVE_LIBJASPER -DHAVE_LIBJPEG -DPOSTGRES -Wno-write-strings total.cpp lua.o -o dgate -lpthread -L/usr/local/pgsql/lib -lpq -ljasper -ljpeg -Ijpeg-6c -Ljpeg-6c -Ilua_5.1.4 -Wno-multichar
to
g++ -I/usr/include/pgsql -DUNIX -DNATIVE_ENDIAN=1 -DHAVE_LIBJASPER -DHAVE_LIBJPEG -DPOSTGRES -Wno-write-strings total.cpp lua.o -o dgate -lpthread -L/usr/lib/pgsql -lpq -ljasper -ljpeg -Ijpeg-6c -Ljpeg-6c -Ilua_5.1.4 -Wno-multichar
[Title] Executing maklinux_postgres errors
[Description]
Executing maklinux_postgres gives:
In file included from total.cpp:135:0:
nkiqrsop.cpp:224:27: fatal error: jasper/jasper.h: No such file or directory
compilation terminated.
[Solution]
In maklinux_postgres, line 3 change from
g++ -I/usr/include/pgsql -DUNIX -DNATIVE_ENDIAN=1 -DHAVE_LIBJASPER -DHAVE_LIBJPEG -DPOSTGRES -Wno-write-strings total.cpp lua.o -o dgate -lpthread -L/usr/lib/pgsql/ -lpq -ljasper -ljpeg -Ijpeg-6c -Ljpeg-6c -Ilua_5.1.4 -Wno-multichar
to
g++ -I/usr/include/pgsql -DUNIX -DNATIVE_ENDIAN=1 -DHAVE_LIBJASPER -DHAVE_LIBJPEG -DPOSTGRES -Wno-write-strings total.cpp lua.o -o dgate -lpthread -L/usr/lib/pgsql/ -lpq -ljasper -Ljasper-1.900.1-6ct/src/libjasper/include/ -Ijasper-1.900.1-6ct/src/libjasper/include/ -ljpeg -Ijpeg-6c -Ljpeg-6c -Ilua_5.1.4 -Wno-multichar
[Title] maklinux compile error odbci.cpp
[Description]
odbci.cpp: In member function ‘virtual BOOL Database::Open(const char*, const char*, const char*, const char*)’:
odbci.cpp:3227:13: error: ‘Sleep’ was not declared in this scope
[Solution]
See http://forum.image-systems.biz/viewtopic.php?f=33&t=3216 post 3 and 4
replace Sleep(555) by delay(555)
[Description]
/usr/bin/ld: cannot find -ljasper
[Solution]
Copy libjasper.a from
conquestlinux1416/jasper-1.900.1-6ct/src/libjasper/.libs
to
/usr/local/lib
Ok we now have an executable. If there is a more elegant way of doing the above please let me know.
Cheers
alanphys