Home › Forums › TinyG › TinyG Support › Compiling tinyg2
- This topic has 9 replies, 5 voices, and was last updated 9 years, 4 months ago by cmcgrath5035.
-
AuthorPosts
-
February 16, 2015 at 12:54 pm #7380alanbMember
Hi,
I have atmelstudio 6.2 correct build installed on windows 8. I downloaded the project master branch from git and tried to build but it fails withProject “TinyG2.cppproj” (default targets):
Target “PreBuildEvent” skipped, due to false condition; (‘$(PreBuildEvent)’!=”) was evaluated as (”!=”).
Target “CoreBuild” in file “C:\Program Files (x86)\Atmel\Atmel Studio 6.2\Vs\Compiler.targets” from project “C:\Users\ALAN\Documents\GitHub\g2\TinyG2\TinyG2.cppproj” (target “Build” depends on it):
Task “RunCompilerTask”
Shell Utils Path C:\Program Files (x86)\Atmel\Atmel Studio 6.2\shellUtils
C:\Program Files (x86)\Atmel\Atmel Studio 6.2\shellUtils\make.exe -C “C:\Users\ALAN\Documents\GitHub\g2\TinyG2” -f “Makefile” TinyG2.elf COLOR=0 VERBOSE=1 OPTIMIZATION=s
d was unexpected at this time.
d was unexpected at this time.
d was unexpected at this time.
The system cannot find the path specified.
d was unexpected at this time.
d was unexpected at this time.
d was unexpected at this time.
The system cannot find the path specified.
make: Entering directory `C:/Users/ALAN/Documents/GitHub/g2/TinyG2′
if [[ ! -ddirname build/SAM3X8E/flash/./canonical_machine.o
]]; then mkdir -pdirname build/SAM3X8E/flash/./canonical_machine.o
; fi
! was unexpected at this time.
make: *** [build/SAM3X8E/flash/./canonical_machine.o] Error 255
make: Leaving directory `C:/Users/ALAN/Documents/GitHub/g2/TinyG2′
Done executing task “RunCompilerTask” — FAILED.
Done building target “CoreBuild” in project “TinyG2.cppproj” — FAILED.
Done building project “TinyG2.cppproj” — FAILED.Have you any idea why this is? Any help appreciated. I can create a build arduino sketches without errors.
Alan
February 16, 2015 at 1:59 pm #7381cmcgrath5035ModeratorI normally build directly on Linux, so have no direct experience with Win.
Can we assume you followed this procedure, exactly?
You will note there that Win8.1 “could be problematic” due to enhanced driver signing demands from the OS. It has been my general experience that Win does a poor job of revealing critical pop-ups, such as requests for authorization, blah, blah; they seem to get burried at the worst time.
I sort of doubt that drivers would impact the build phase, but will come into play when interfacing to the atmel-ice for flashingI am no make guru, but the messaging indicates that it can’t find some expected component(s) in the build hierarchy.
One could wonder how much exercise AS6.2 has had on Win8.1 as well, it was for sure buggy when released by Atmel (form browsing web on similar issues)Suggestions
1. If you are not sure, blow it all away and follow the instructions in the above link again, keep an eye out for complaints from Win8.1.
2. I’ll ask the developers to take a peek at this, but can pretty much guarantee they have little, if any, experience with Win8. The predominately build in MacOS, and Win7VMs when they must.
3. Cross your fingers that anther Win8 user stops by and can offer assistance.Unix ‘make’ (Linux, MacOS) is an incredibly fussy process and does not tolerate faults well for somewhat obvious reasons. You don’t want 1000s of lines of machine generated code making assumptions for you. Unfortunately, one little syntax issue can dump a whole load of confusing error messages on your desk.
February 16, 2015 at 4:46 pm #7388cmcta82Memberi have also an arduino due and compiled the project in win8.1, i´m not using the master branch, i used the edge branch, the first time i try to compiled i have some issue with missing files, i delete the folder and clone again the branch edge, the second time i do that i have no problems, try do that:
1) remove your g2 folder
2)Install github for windows.
3)open git shell (it´s cmd shell with git commands)
4)create a directory where you want with typing mkdir “name directory” and enter in this directory
5)type: git clone -b edge https://github.com/synthetos/g2.git
6) wait a fee moments it will clone the edge branch of tinyg2 to the folder you create, when it finish you can close the git shell.
7) go to your g2 directory in windows explorer, open folder tinyg2 and open the file tinyG2.cppproj, it will open atmel studio with tinyg2 project
8)don´t forget to change solution configurator to “gShield” and press Build Solution.I´m sorry to explain like this but i don´t know your background and it´s what i do in windows 8.1 to successfully build tinyg2.
i´m using Atmel Studio 6 (Version: 6.2.1502 – Service Pack 1) and to install tinyg2 drivers you need to reboot in safe mode to install unsigned drivers
July 8, 2015 at 9:02 am #7951yck011522MemberI just had an experience:
I placed the git clone in a folder that is in my Dropbox. Build = Fail
I placed the git clone on my desktop. Build = SuccessMaybe this will help.
July 8, 2015 at 12:38 pm #7953cmcgrath5035Moderatoryck011522: What OS are you running.
I run Linux (openSUSE). I find that some apps don’t play nice with network drives. How Dropbox appears to the OS is likely different across OSs.
Good to know
August 23, 2015 at 12:08 am #8658inbasysMemberError 1 expected primary-expression before ‘;’ token X:\Working\TinyG2\TinyG2\controller.cpp 98 36 TinyG2
(cs.fw_build = TINYG_FIRMWARE_BUILD; // set up identification)Atmel Studio 6.2.1563 Service Pack 2
Help me please.
August 23, 2015 at 7:18 am #8659cmcgrath5035Moderatorinbasys: For starters, what OS and release runs Atmel Studio? Win8 and beyond are known to be overly fussy about driver signing .
And, what branch of the tinyG2 are you attempting to build?
Clean build, or have you made local Modifications to the files?August 23, 2015 at 11:48 am #8661inbasysMembercmcgrath5035: Win7, Atmel Studio 6.2.1563 Service Pack 2, sources from: https://github.com/synthetos/g2
I read the wiki:
https://github.com/synthetos/g2/wiki/Compiling-G2-on-Windows-(Atmel-Studio-6.2)expected primary-expression before ‘;’ token
– This is obviously a trivial error!August 23, 2015 at 1:14 pm #8662inbasysMemberThe problem in the functions GIT_EXACT_VERSION and GIT_VERSION.
#define TINYG_FIRMWARE_BUILD GIT_EXACT_VERSION // extract build number from tag
#define TINYG_FIRMWARE_BUILD_STRING GIT_VERSION // extract extended build info from gitAugust 23, 2015 at 1:24 pm #8663cmcgrath5035ModeratorOK, good debug!
But, which branch are you trying to build?
I see 8 different branches available.
I would expect master and edge to build, the others may/may not be that well maintained.With Win7, you should not have any driver signing issues.
-
AuthorPosts
- You must be logged in to reply to this topic.