Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th September 2008, 11:16
surya1006 surya1006 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default need help with linux gcc compilation and PlxSdk files

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



[root@localhost /]# cd test
[root@localhost 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
[root@localhost test]#
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.