Forum Replies Created
-
AuthorPosts
-
February 17, 2016 at 11:56 in reply to: MSB3073 compile error when trying to use cross-compiler on local PC #7667HillelParticipant
I have placed the file : C:\Users\Hillel\AppData\Local\VisualGDB\RemoteSourceCache\192.168.1.19\0000
#include <stdio.h>
#include <bcm2835.h>
int main(int argc, char *argv[])
{
char sz[] = “Hello, World!\n”; /* Hover mouse over “sz” while debugging to see its contents */
printf(“%s”, sz);
fflush(stdout); /* <============== Put a breakpoint here */return 0;
}1>—— Build started: Project: Raspberrypi, Configuration: Debug Win32 ——
1> VisualGDB: Sending 1 updated source file to build machine…
1> VisualGDB: Run “make CONFIG=Debug” in directory “/tmp/VisualGDB/c/visualstudioProjects/Raspberrypi/Raspberrypi” on pi@192.168.1.19 (SSH)
1> gcc -ggdb -ffunction-sections -O0 -DDEBUG -c Raspberrypi.c -o Debug/Raspberrypi.o -MD -MF Debug/Raspberrypi.dep
1>C:\visualstudioProjects\Raspberrypi\Raspberrypi\Raspberrypi.c(2,21): fatal error : bcm2835.h: No such file or directory
1> #include <bcm2835.h>
1> ^
1> compilation terminated.
1> Makefile:163: recipe for target ‘Debug/Raspberrypi.o’ failed
1> make: *** [Debug/Raspberrypi.o] Error 1
1> ————————————————————-
1> Command exited with code 2
1> Executable: make
1> Arguments: CONFIG=Debug
1> Directory: /tmp/VisualGDB/c/visualstudioProjects/Raspberrypi/Raspberrypi
1>VisualGDB : error : Command-line action failed
1>EXEC : error : Build has failed. See the Output window for more details.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe” /build “C:\visualstudioProjects\Raspberrypi\Raspberrypi\Raspberrypi.vcxproj” “/solution:C:\visualstudioProjects\Raspberrypi\Raspberrypi.sln” “/config:Debug” “/platform:Win32″” exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks for the helpFebruary 16, 2016 at 21:23 in reply to: MSB3073 compile error when trying to use cross-compiler on local PC #7663HillelParticipantI include the bcm2835.h library to controlling the Raspberry Pi GPIO .
when I compile on my computer without remote compiling I don’t get the error.
I tried to use the sync tool to load the nuw file (bcm2835.h) and I still get the error it’s look the same from the BeagleBone black.
the first one is without the error:1>—— Build started: Project: Raspberrypi, Configuration: Debug Win32 ——
1> VisualGDB: Run “make CONFIG=Debug” in directory “C:\visualstudioProjects\Raspberrypi\Raspberrypi” on (unspecified)
1> gcc -ggdb -ffunction-sections -O0 -DDEBUG -c Raspberrypi.c -o Debug/Raspberrypi.o -MD -MF Debug/Raspberrypi.dep
1> g++ -o Debug/Raspberrypi -Wl,-gc-sections -Wl,–start-group Debug/Raspberrypi.o -Wl,–rpath=’$ORIGIN’ -Wl,–end-group
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========the second one
1>—— Build started: Project: Raspberrypi, Configuration: Debug Win32 ——
1> VisualGDB: Sending 1 updated source file to build machine…
1> VisualGDB: Run “make CONFIG=Debug” in directory “/tmp/VisualGDB/c/visualstudioProjects/Raspberrypi/Raspberrypi” on pi@192.168.1.19 (SSH)
1> gcc -ggdb -ffunction-sections -O0 -DDEBUG -c Raspberrypi.c -o Debug/Raspberrypi.o -MD -MF Debug/Raspberrypi.dep
1>C:\visualstudioProjects\Raspberrypi\Raspberrypi\Raspberrypi.c(2,77): fatal error : C:\Users\Hillel\Downloads\Raspberry PI\bcm2835-1.49\src\bcm2835.h: No such file or directory
1> #include “C:\Users\Hillel\Downloads\Raspberry PI\bcm2835-1.49\src\bcm2835.h”
1> ^
1> compilation terminated.
1> Makefile:163: recipe for target ‘Debug/Raspberrypi.o’ failed
1> make: *** [Debug/Raspberrypi.o] Error 1
1> ————————————————————-
1> Command exited with code 2
1> Executable: make
1> Arguments: CONFIG=Debug
1> Directory: /tmp/VisualGDB/c/visualstudioProjects/Raspberrypi/Raspberrypi
1>VisualGDB : error : Command-line action failed
1>EXEC : error : Build has failed. See the Output window for more details.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe” /build “C:\visualstudioProjects\Raspberrypi\Raspberrypi\Raspberrypi.vcxproj” “/solution:C:\visualstudioProjects\Raspberrypi\Raspberrypi.sln” “/config:Debug” “/platform:Win32″” exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========- This reply was modified 8 years, 9 months ago by Hillel.
February 16, 2016 at 07:26 in reply to: MSB3073 compile error when trying to use cross-compiler on local PC #7653HillelParticipantI’ve been using VisualGDB Trial Version.
I try to add a #include <BBBiolib.h>
Then I get the error message.
Thanks for the help
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe” /build “C:\visualstudioProjects\LinuxProject1_GPIO\LinuxProject1_GPIO\LinuxProject1_GPIO.vcxproj” “/solution:C:\visualstudioProjects\LinuxProject1_GPIO\LinuxProject1_GPIO.sln” “/config:Debug” “/platform:Win32″” exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =======- This reply was modified 8 years, 9 months ago by Hillel.
-
AuthorPosts