Posts by kmlzhr

    Is it normal to have these warnings in jasper make?


    jpc_qmfb.c:288:2: warning: initialization from incompatible pointer type
    jpc_qmfb.c:295:2: warning: initialization from incompatible pointer type
    jpc_qmfb.c:296:2: warning: initialization from incompatible pointer type
    jpc_qmfb.c: In function 'jpc_ft_synthesize':
    jpc_qmfb.c:1607:11: warning: assignment from incompatible pointer type
    jpc_qmfb.c:1615:11: warning: assignment from incompatible pointer type
    jpc_tsfb.c: In function 'jpc_tsfb_analyze':
    jpc_tsfb.c:146:4: warning: passing argument 2 of 'jpc_tsfb_analyze2' from incompatible pointer type
    jpc_tsfb.c:122:5: note: expected 'int *' but argument is of type 'jas_seqent_t *'
    jpc_tsfb.c: In function 'jpc_tsfb_synthesize':
    jpc_tsfb.c:174:4: warning: passing argument 2 of 'jpc_tsfb_synthesize2' from incompatible pointer type
    jpc_tsfb.c:149:5: note: expected 'int *' but argument is of type 'jas_seqent_t *'
    ../libjasper/.libs/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
    /home/ak/PACS/conquest/jasper-1.900.1-6ct/src/libjasper/base/jas_stream.c:368: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    ../libjasper/.libs/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
    /home/ak/PACS/conquest/jasper-1.900.1-6ct/src/libjasper/base/jas_stream.c:368: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    ../libjasper/.libs/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':
    /home/ak/PACS/conquest/jasper-1.900.1-6ct/src/libjasper/base/jas_stream.c:368: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    Gave up on postgres and installed mysql. I am getting besides the above warning on maklinux_mysql :
    lua.o: In function `os_tmpname':
    all.c:(.text+0x1fb3e): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    Azhar


    Azhar

    Hi,
    I have restarted from scratch.
    Edited the maklinux_postgres and corrected the path.
    Edited the Sleep (555) entry
    Now I am getting the following:
    ./maklinux_postgres
    /usr/bin/ld: cannot find -lpq
    lua.o: In function `os_tmpname':
    all.c:(.text+0x1fb3e): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    collect2: ld returned 1 exit status
    cp: cannot stat `dgate': No such file or directory

    Hi Marcel,
    Did the edit and have the following:
    lua.o: In function `os_tmpname':
    all.c:(.text+0x1fb3e): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    /tmp/ccqPApg1.o: In function `CompressJPEGL(DICOMDataObject*, int, int)':
    total.cpp:(.text+0x580a5): undefined reference to `jpeg_simple_lossless'
    collect2: ld returned 1 exit status
    cp: cannot stat `dgate': No such file or directory
    Azhar

    Hi,
    After the edited script that looks like:
    export LD_LIBRARY_PATH="/opt/PostgreSQL/8.4/lib/"
    gcc -o lua.o -c lua_5.1.4/all.c -Ilua_5.1.4
    g++ -I/opt/PostgreSQL/8.4/include -DUNIX -DNATIVE_ENDIAN=1 -DHAVE_LIBJASPER -DHAVE_LIBJPEG -DPOSTGRES -Wno-write-strings total.cpp lua.o -o dgate -lpthread -L/opt/PostgreSQL/8.4/lib -lpq -ljasper -ljpeg -Ijpeg-6c -Ljpeg-6c -Ilua_5.1.4 -Wno-multichar
    rm lua.o
    pkill -9 dgate
    sleep 0.2s


    cp dicom.ini.postgres dicom.ini
    cp dicom.sql.postgres dicom.sql


    sudo cp dgate /usr/lib/cups/cgi-bin
    sudo cp dicom.sql /usr/lib/cups/cgi-bin
    sudo cp dicom.ini.www /usr/lib/cups/cgi-bin/dicom.ini
    sudo cp sample.cq /usr/lib/cups/cgi-bin


    sudo cp ActiveFormProj1.ocx /var/www
    sudo cp conquest.jpg /var/www
    I am getting the following error:
    [root@localhost cq146]# ./maklinux_postgres
    In file included from total.cpp:134:0:
    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
    Azhar

    Hi,
    All the steps in linuxmanual.pdf go well except the last one maklinux_postgres since postgres is the database I am using.


    [root@localhost cq146]# ./maklinux_postgres
    In file included from dgate.hpp:69:0,
    from vrtosql.cpp:70,
    from total.cpp:105:
    odbci.hpp:62:23: fatal error: libpq-fe.h: No such file or directory
    compilation terminated.
    cp: cannot stat `dgate': No such file or directory
    cp: accessing `/usr/lib/cgi-bin/dicom.ini': Not a directory
    with built in SQLite3 I get the following therefore web interface is not functional
    [root@localhost cq146]# ./maklinux
    sqlite3.c: In function ‘sqlite3ValueText’:
    sqlite3.c:30141:50: warning: cast from pointer to integer of different size
    sqlite3.c: In function ‘trimFunc’:
    sqlite3.c:48577:13: warning: cast from pointer to integer of different size
    sqlite3.c: In function ‘sqlite3RegisterBuiltinFunctions’:
    sqlite3.c:49068:14: warning: cast to pointer from integer of different size
    sqlite3.c:49087:18: warning: cast to pointer from integer of different size
    sqlite3.c: In function ‘sqlite3_get_table’:
    sqlite3.c:57065:23: warning: cast to pointer from integer of different size
    sqlite3.c: In function ‘sqlite3_free_table’:
    sqlite3.c:57110:9: warning: cast from pointer to integer of different size
    sqlite3.c: In function ‘sqlite3VtabRollback’:
    sqlite3.c:59425:21: warning: cast from pointer to integer of different size
    sqlite3.c: In function ‘sqlite3VtabCommit’:
    sqlite3.c:59434:21: warning: cast from pointer to integer of different size
    lua.o: In function `os_tmpname':
    all.c:(.text+0x1fb3e): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    cp: accessing `/usr/lib/cgi-bin/dicom.ini': Not a directory
    Appreciate any help