need help with linux gcc compilation and PlxSdk files

Discussion in 'Programming/Scripts' started by surya1006, Sep 5, 2008.

  1. surya1006

    surya1006 New Member

    am unable to successfully make the project.downloaded PlxSdk 6.0 but somehow gcc is not able to include Plx files.



    [[email protected] /]# cd test
    [[email protected] test]# make
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Wait_Pause_Thread.c
    Wait_Pause_Thread.c: In function `Wait_Pause_Thread':
    Wait_Pause_Thread.c:75: warning: assignment from incompatible pointer type
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Timer_Thread.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Test_LibFunc.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG STPC_Thread.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Printing_Data_Thread.c
    Printing_Data_Thread.c: In function `Init_Printing_Data':
    Printing_Data_Thread.c:191: warning: assignment from incompatible pointer type
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG PCCMDI_Thread.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINU X -DMAKE_SETUP_EXE -DTESTING -DTESTNG Operation_Thread.c
    Operation_Thread.c: In function `Operation_Thread':
    Operation_Thread.c:488: warning: assignment from incompatible pointer type
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG NVRAM_Data.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Main.c
    Main.c: In function `sig_handler':
    Main.c:105: warning: passing arg 1 of `Unmap_Printing_Memory' makes integer from pointer without a cast
    Main.c: In function `main':
    Main.c:576: warning: passing arg 1 of `Reset_Device' makes integer from pointer without a cast
    Main.c:586: warning: passing arg 1 of `Map_Printing_Memory' makes integer from pointer without a cast
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Log_File.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG LibFunc.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Keypad_Thread.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Global_Data.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG FPGA_Data.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Display_Data.c
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Data_Handling_Thread.c
    Data_Handling_Thread.c: In function `Data_Handling_Thread':
    Data_Handling_Thread.c:1086: warning: assignment from incompatible pointer type
    gcc -I. -I/PlxSdk/Include -I/PlxSdk/Linux/Samples/Shared/ -c -g -DPLX_LINUX -DMAKE_SETUP_EXE -DTESTING -DTESTNG Connection.c
    gcc -lm -lc -lpthread -lncurses -L/PlxSdk/Linux/PlxApi/Library/PlxApi/ -lPlxApi -o printer.out PlxInit.o ConsFunc.o PlxApi.o Connection.o Data_Handling_Thread.o Display_Data.o FPGA_Data.o Global_Data.o Keypad_Thread.o LibFunc.o Log_File.o Main.o NVRAM_Data.o Operation_Thread.o PCCMDI_Thread.o Printing_Data_Thread.o STPC_Thread.o Test_LibFunc.o Timer_Thread.o Wait_Pause_Thread.o
    /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lPlxApi
    collect2: ld returned 1 exit status
    make: *** [printer.out] Error 1
    [[email protected] test]#
     

Share This Page