Click here to Skip to main content
15,879,326 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: Anyone know of a good explanation on cross compiling for the raspberry PI from the Windows (Mingw32 ) Command line Pin
fd97507-Mar-19 4:25
professionalfd97507-Mar-19 4:25 
QuestionSOLVED Developing bluetooth app using "bluez" package (FROM SOURCE ) Pin
Vaclav_5-Mar-19 5:18
Vaclav_5-Mar-19 5:18 
AnswerRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 6:32
mveRichard MacCutchan5-Mar-19 6:32 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 6:46
Vaclav_5-Mar-19 6:46 
GeneralRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 6:50
mveRichard MacCutchan5-Mar-19 6:50 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 9:03
Vaclav_5-Mar-19 9:03 
GeneralRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 22:45
mveRichard MacCutchan5-Mar-19 22:45 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 7:39
Vaclav_5-Mar-19 7:39 
Richard
still no go.
Not sure where is the liker looking for the "bluetooth".
I am including edited , FOR MOST PART DELETED , linker verbose output.

Maybe the crosslinking process needs help , more options. I just do not know.

Perhaps the highlighted part could help to figure this out.



Building target: VNAR_19350
Invoking: Cross G++ Linker
arm-linux-gnueabihf-g++ -L/media/jim/DEV/BLUEZ/BlueZ-5.50 -L/usr/lib/bluetooth/bluetoothd -L/usr/lib/bluetooth -L/usr/local/libexec/bluetooth/ -v -o "VNAR_19350"  ./src/MODULES/SOURCE_CODE/src/ESA_BASE_BAD.o  ./src/MODULES/M_WIRE/CLASSWIRE.o  ./src/MODULES/M_VNARODULE_1602/C_SPI_LCD.o ./src/MODULES/MODULE_1602/C_SSP.o ./src/MODULES/MODULE_1602/C_gpio.o ./src/VNA_1022_BASE.o -lbluetooth.a -lbluetoothd -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-cross/arm-linux-gnueabihf/5/crtend.o /usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib/crtn.o
/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lbluetooth.a
/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lbluetoothd
collect2: error: ld returned 1 exit status
make: *** [VNAR_19350] Error 1
makefile:80: recipe for target 'VNAR_19350' failed
"make all" terminated with exit code 2. Build might be incomplete.



I did use
-L /usr/lib/x86_64-linux-gnu -l bluetooth

and got a message about "invalid" file type - it tried to link to "libbluetooth.o"

I could go back and try that again and post the output if it helps.
AnswerRe: Developing bluetooth app using "bluez" Pin
k50545-Mar-19 9:44
mvek50545-Mar-19 9:44 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 13:37
Vaclav_5-Mar-19 13:37 
GeneralRe: Developing bluetooth app using "bluez" Pin
k50546-Mar-19 6:57
mvek50546-Mar-19 6:57 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 16:02
Vaclav_5-Mar-19 16:02 
GeneralRe: Developing bluetooth app using "bluez" Pin
k50546-Mar-19 8:50
mvek50546-Mar-19 8:50 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_6-Mar-19 11:58
Vaclav_6-Mar-19 11:58 
QuestionLinking to library Pin
Vaclav_3-Mar-19 5:22
Vaclav_3-Mar-19 5:22 
AnswerRe: Linking to library Pin
Richard MacCutchan3-Mar-19 5:53
mveRichard MacCutchan3-Mar-19 5:53 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 7:08
Vaclav_3-Mar-19 7:08 
AnswerRe: Linking to library Pin
k50543-Mar-19 6:03
mvek50543-Mar-19 6:03 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 7:09
Vaclav_3-Mar-19 7:09 
AnswerRe: Linking to library Pin
k50543-Mar-19 6:32
mvek50543-Mar-19 6:32 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 7:05
Vaclav_3-Mar-19 7:05 
AnswerRe: Linking to library Pin
Vaclav_3-Mar-19 7:15
Vaclav_3-Mar-19 7:15 
GeneralRe: Linking to library Pin
k50543-Mar-19 7:44
mvek50543-Mar-19 7:44 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 8:12
Vaclav_3-Mar-19 8:12 
GeneralRe: Linking to library Pin
k50543-Mar-19 9:04
mvek50543-Mar-19 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.