Running Perforce Trigger executable from depot - perforce

I'm trying to run an executable as a perforce trigger from the depot, but oh boy does it NOT want to work ...
Executable is tested locally and works, is submitted into P4 depot into //depot/triggers
Create the trigger as
SubmitNotify change-commit //depot/... "%//depot/triggers/myapp.exe#3%"
Test the submission, and I get a whole bunch of garbage that looks like it's failing to create a temp file somewhere ...
'SubmitNotify' validation failed: /p4/1/tmp/tmp.14296.139872835644864.564.exe: 1: /p4/1/tmp/tmp.14296.139872835644864.564.exe: MZÿÿ¸#º´: not found
/p4/1/tmp/tmp.14296.139872835644864.564.exe: 1: /p4/1/tmp/tmp.14296.139872835644864.564.exe: Syntax error: word unexpected (expecting ")")
Any help much appreciated as it's driving me nuts ...

As Samwise said, I was trying to run a Windows exe on Linux install. D'oh!

Related

How to update Perforce client tool for the command line on Linux

How can I update the Perforce client tool for the command line on my Linux machine?
My goal is to have the current/latest version.
I found a method to uninstall and re-install p4 "How to uninstall/reinstall helix-p4d under ubuntu/debian"; however, it is not working out.
This is the link :
http://maillist.perforce.com/pipermail/perforce-user/2017-April/073405.html
problem occurred from step 1. In step 1 it states to remove service-name.conf from /etc/perforce/p4dctl.conf.d/ BUT this location does not exist on my machine.
Any help would be appreciated.
Go to the download page, download the new executable, and save it over your existing one. Note that p4d is the server, not the client! You want p4.
https://www.perforce.com/downloads/helix-command-line-client-p4

Qt creator cannot upload files onto the remote device

I have been using the QtCreator to develop qt application for my remote generic Linux device, when i press the 'Run' button, the program will be deployed into the targeted directory on the remote device and running automatically, everything is fine until recently, i just changed lines of code, but haven't change any settings of the project, after that i'm not able to upload the program onto the remote device anymore, in the .pro file:
TARGET = Test
target.files = Test
target.path = /home/root
INSTALLS += target
The compile output info shows that:
mkdir: cannot create directory '/home/root': permission denied
Failed to upload file...
Deploy step failed.
Error while building/deploying project Test
When executing step 'Upload files via SFTP'
This is confusing, because i'm not creating the directory but just deploy the program into it, that's what i did before and it worked alright.
I was suspecting maybe i need to update the SFTP to newer version, but based on the fact that i can still manually upload files to the remote device via SFTP without any problems, so i guess this is not the reason.
Is anyone here encountered this issue before? Any suggestions and comments are appreciated, and thanks in advance.
check /home/root folders can have rights to access by using command (ls -l)
I just found out the problem has nothing to do with ssh or access right.
It is because i have added more than one linux generic devices, but i'm using the kit for the project with selecting the wrong device.

SVN Error (Can't set file)

Everytime I try to commit files to SVN I got the following error.
Command Commit
Modified D:\Project\src\WebSite\SomePage.aspx.cs
Sending Content D:\Project\AKent\src\WebSite\Test\SomePage.aspx.cs
Commit succeeded, but other errors follow:
Error bumping revisions post-commit (details follow):
Can't set file 'D:\Project\AKent\src\WebSite\Test\SomePage.aspx.cs'
read-write: Access is denied.
After I get this error, SVN doesnt allow me to update or commit anything! And what is really frustrating me is that the project folder is around 2 GB and every night I download it from SVN over and over.
Please help me to fix it! I just wanna know what is wrong with my SVN. I tried reinstalling, didn't fix anything.
I had the same problem but fixed. My solution is:
1. Run Command Prompt as Administrator
2. Navigate to the target working copy
3. svn cleanup
The error
read-write: Access is denied.
indicates that svn can not access the file or can't set all attributes it needs to that file.
Now that either means you have not full access to those files or some other application has the file opened exclusively.
In the first case: make sure that your username has full access to all folders and subfolders of your working copy. Note that on Vista/Win7 it's not enough to be an admin - you have to give yourself full access to such files manually.k
In the second case: disable windows search indexer for your working copy, and exclude the working copy from being scanned by your virus scanner.
If you are sharing a svn versioned folder using samba and running into this issue when acessing it from windows machine, try:
http://tortoisesvn.net/faq.html#samba
Also add to your smb.conf file:
dos filemode = yes
copy the wrong folder (1) to another folder(2)
delete the wrong folder (1)
copy the backup(2) to (1)
Hope this approach works for you too!
I was trying to revert a file but was receiving the error listed in the OP's post. Soony's answer just about worked for me. I cannot comment or edit that answer, so I had to copy their answer and add a small step at the end. S/he deserves all the credit.
Run Command Prompt as Administrator
Navigate to the target working
copy svn cleanup
svn revert [filename]
(the revert did not work in Windows Explorer/TortoiseSVN integrated tools, I had to do it from the cmd line)

Problem adding --with parameter to nmake build

I'm comfortable with make and scons on unix/linux, but am having a hard time using nmake to build php with a perforce php api included in the build. I can successfully build php no problem, but when I go to build with a reference to the perforce api, I get an access denied error, but the dir I'm referencing has fully opened permissions. From what I can find, my syntax is correct, and if I try anything else I get an error saying the command isn't valid.
C:\php-sdk\php53dev\vc9\x86\php5.3-201106102030>configure --disable-all --enable
-cli --with-perforce=<C:\p4api>,shared
Access is denied.
Thanks, any help is appreciated!
I've seen similar errors before. A couple things to check:
Look in the directory containing p4php and verify that you see "README.txt" and "RELNOTES.txt"
Remove the brackets from around <C:\p4api>
If none of that works you can always contact Perforce support. They can help troubleshoot.

scons: foiling an IDE when using alternate build directories

So I have scons working with an alternate build location (build/ for my output files, src/ for my input files) and it works great. Except for one thing.
I'm using an IDE (TI Code Composer 4) to debug my program. I point the IDE at the output executable to run it, and what it uses for the source files for debugging is the build/ directory. I don't really care, except when I go to edit the file in the IDE, for example main.cpp, the file is really build/main.cpp which gets clobbered as soon as I run scons again. I have to remember to edit src/main.cpp instead. I am aware of this issue and yet I make the same mistake often.
Is there a way to have scons make the source files it copies into the build path read-only? (I'd ask how to get TI CCS4 to use the right source files when it is debugging an executable, but I doubt I'd get any answers.)
This page has information about wrapping InstallTargets with a chmod call.
FYI, the scons user list is quite active with many knowledgeable people and you can get answers pretty quickly.
You could always tell scons not to duplicate source files in the build directory:
SConscript('src/SConscript', variant_dir='build', duplicate=0)

Resources