Click here to Skip to main content
15,112,354 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 5:25
professionalfd97507-Mar-19 5:25 
QuestionSOLVED Developing bluetooth app using "bluez" package (FROM SOURCE ) Pin
Vaclav_5-Mar-19 6:18
MemberVaclav_5-Mar-19 6:18 
AnswerRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 7:32
mveRichard MacCutchan5-Mar-19 7:32 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 7:46
MemberVaclav_5-Mar-19 7:46 
GeneralRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 7:50
mveRichard MacCutchan5-Mar-19 7:50 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 10:03
MemberVaclav_5-Mar-19 10:03 
GeneralRe: Developing bluetooth app using "bluez" Pin
Richard MacCutchan5-Mar-19 23:45
mveRichard MacCutchan5-Mar-19 23:45 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 8:39
MemberVaclav_5-Mar-19 8: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 10:44
mvek50545-Mar-19 10:44 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 14:37
MemberVaclav_5-Mar-19 14:37 
GeneralRe: Developing bluetooth app using "bluez" Pin
k50546-Mar-19 7:57
mvek50546-Mar-19 7:57 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_5-Mar-19 17:02
MemberVaclav_5-Mar-19 17:02 
GeneralRe: Developing bluetooth app using "bluez" Pin
k50546-Mar-19 9:50
mvek50546-Mar-19 9:50 
GeneralRe: Developing bluetooth app using "bluez" Pin
Vaclav_6-Mar-19 12:58
MemberVaclav_6-Mar-19 12:58 
QuestionLinking to library Pin
Vaclav_3-Mar-19 6:22
MemberVaclav_3-Mar-19 6:22 
AnswerRe: Linking to library Pin
Richard MacCutchan3-Mar-19 6:53
mveRichard MacCutchan3-Mar-19 6:53 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 8:08
MemberVaclav_3-Mar-19 8:08 
AnswerRe: Linking to library Pin
k50543-Mar-19 7:03
mvek50543-Mar-19 7:03 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 8:09
MemberVaclav_3-Mar-19 8:09 
AnswerRe: Linking to library Pin
k50543-Mar-19 7:32
mvek50543-Mar-19 7:32 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 8:05
MemberVaclav_3-Mar-19 8:05 
AnswerRe: Linking to library Pin
Vaclav_3-Mar-19 8:15
MemberVaclav_3-Mar-19 8:15 
GeneralRe: Linking to library Pin
k50543-Mar-19 8:44
mvek50543-Mar-19 8:44 
GeneralRe: Linking to library Pin
Vaclav_3-Mar-19 9:12
MemberVaclav_3-Mar-19 9:12 
GeneralRe: Linking to library Pin
k50543-Mar-19 10:04
mvek50543-Mar-19 10: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.