Trouble compiling LiquidFun Paint - "Found SWIG , requires 2.0.11 or above. Stop" - eclipse

I am having trouble compiling LiquiFun Paint
I am using Eclipse. I receive
Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException:
Cannot run program "cygpath": CreateProcess error=2, The system cannot
find the file specified
I am using Windows 8.1. I have set the following Environment Variables in Eclipse:
LIQUIDFUN_SRC_PATH
NDKROOT
SWIG_BIN
(there is a value for CYGWIN of nodosfilewarning)
I get the folling error in Eclipse:
C:\ndk\ndk-build.cmd" all process_begin: CreateProcess(NULL,
C:\swigwin-2.0.1 -version, ...) failed.
C:\liquidfun-master\liquidfun\Box2D/../Box2D/swig/jni/Android.mk:62:
*** Found SWIG , requires 2.0.11 or above. Stop.
I have installed SWIG 3.0.5 and tried 2.0.1. Both result in the same error above.
In addition to the above error there are compiler errors for
import com.google.fpl.liquidfun.World;
it cannot find that import.
I am using Build Command ${NDKROOT}/ndk-build.cmd
I am using r10e (64-bit) NDK

Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find the file specified
Try running your build in a cygwin shell? Something like:
C:\cygwin\bin\bash /cygdrive/c/ndk/ndk-build.cmd
CreateProcess(NULL, C:\swigwin-2.0.1 -version, ...)
What is your SWIG_BIN set to? It looks like it's set to "C:\swigwin-2.0.1" but should probably be set to something like "C:\swigwin-2.0.1\swig.exe"

Related

How to config CDT debug for cygwin?

I am new to eclipse CDT with cygwin. I just created a HelloWorld C++ project.
The built exe works in cygwin.
If I click the exe in file in file explorer, it says that it can not find cygwin1.dll. This error can be resolved by adding C:\cygwin64\bin to the Path env variable.
If I try to debug directly, I got the following errors:
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process /cygdrive/c/WINDOWS/system32/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/Debug/HelloWorld.exe, (error 2).
The above diagnosis seems to point to lacking of C:\cygwin64\bin, so I add C:\cygwin64\bin to Path env variable in the env var tab of the debug config, but the result is the same.
My questions:
How to solve this issue?
Where to find a list of error to decode error 2?
It seems that the latest gdb above version 9.2-1 is wrong: https://www.eclipse.org/forums/index.php/t/1105969/
I have downgrade my gdb and gcc for cgywin to cure the issue

Eclipse (2018-09) CDT project with Cygwin, can't debug the binary

It seems that everything cygwin-related configured and works fine in my Eclipse project, for example Eclipse is able to invoke 'make' or 'gcc', and can even run the compiled binary and show the output in the Eclipse console window.
However, when I try to debug my binary within Eclipse, I get the following error:
Error in final launch sequence:
Failed to execute MI command:
-exec-run
Error message from debugger back end:
During startup program exited with code 0xc0000135.
Failed to execute MI command:
-exec-run
Error message from debugger back end:
During startup program exited with code 0xc0000135.
During startup program exited with code 0xc0000135.
I do able to launch gdb from my Cygwin console, so it is installed correctly (I assume). But why it fails when I try to use it from Eclipse?
For my case, as you say, it turns out that adding the Cygwin bin folder to the PATH variable solves this problem.
I use Eclipse 2020-06 and Cygwin 64bit on Win7 64bit. And installing Cygwin doesn't change the PATH variable currently.
But it is also confused to me that "build" and "run" work fine in Eclipse whithout the Cygwin bin in PATH.

Build Failure Error while doing maven install in command prompt

I am getting the below error while building the code in command prompt using maven install
[ERROR] Failed to execute goal com.overstock.mojo:svn-info-plugin:1.0:svn-info (default) on project SupplierOasis-automation: error in calling
[svnversion, .]: Cannot run program "svnversion" (in directory "D:\pxworkspace\SupplierOasis-auto
mation"): CreateProcess error=2, The system cannot find the file specified -> [Help 1]
[ERROR]
Please help me out in this regard.
try on command line
svn upgrade
then again run the build. It should fix this.
I've seen similar issues on a Mac if you recently upgraded XCode and have not yet accepted the license. Open XCode and accept the license.

Mongodb Error on running phpunit test

I tried to run mongdodb's driver test using phpunit as stated at http://www.php.net/manual/en/mongo.testing.php but it seems to have a problem with a MongoInt32Test.php filew.
# phpunit tests/mongosuite.php
Warning: require_once(MongoInt32Test.php): failed to open stream: No such file or directory in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
Fatal error: require_once(): Failed opening required 'MongoInt32Test.php' (include_path='.;\programming_tools\xampp-portable\php\PEAR') in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
I am using a php_mongo-1.3.1-5.4-vc9.dll and running mongodb 2.0.8 in windows xp. Anybody knows how to fix this? I can't find MongoInt32Test.php anywhere.
The PHPUnit tests in the extension are legacy tests and are no longer supported. I created a ticket, PHP-695, to remind us to remove mention of them from the documentation. All extension tests are phpt files, and instructions for executing them are documented in the GitHub repository.

ndk-build.cmd: command not found

(sorry for my bad english...)
I'm trying to build my .so library in Eclipse, with the CDT plugin. (It's an android project, with native code...)
Because I'm on windows, I replaced the build command in [Project->Properties->C/C++ build] with this one:
[absolute_path_to_android-ndk]\ndk-build.cmd V=1
But I got this message in the console:
C:\SDK\android-ndk-r8\ndk-build.cmd
Cannot run program "C:\SDK\android-ndk-r8\ndk-build.cmd": Le fichier spécifié est introuvable.
Error: Program "C:/SDK/android-ndk-r8/ndk-build.cmd" is not found in PATH
I tried with only "ndk-build.cmd" in the eclipse's build command, and the path to this command in my PATH environment variable, but I still have the same error.
In fact, I can't execute any program from the eclipse's build command.
I have no problem to build the library when I call ndk-build in cmd.exe, or in cygwin, but when I try to automate the library's build in Eclipse, it doesn't work...
Does anyone have a solution to my problem?
I found the solution by adding the NDK-path to the path variable, in the ubuntu terminal as well as in eclipse. Then I had to DELETE THE ".cmd" in "ndk-build.cmd" because the terminal says that I have no permission with this file ending.