Output project directory cannot be located inside ChilliSource / ...directory already exists - game-engine

I'm trying to check out Chilli Source but I'm getting errors at first try with cmd. If I make directory there is one error:
C:\ChilliSource-master\ChilliSource-master\Tools>java -jar CSProjectGenerator.jar --projectname gra1 --packagename ab.cdef.gra --output ../gra1 --logginglevel verbose
FATAL: Output project directory '../gra1/gra1/' already exists!
0 Warnings found.
1 Errors found.
If i delete directory there is another error:
C:\ChilliSource-master\ChilliSource-master\Tools>java -jar CSProjectGenerator.jar --projectname gra1 --packagename ab.cdef.gra --output ../gra1 --logginglevel verbose
FATAL: Output project directory '../gra1/gra1/' cannot be located inside Chilli Source.
0 Warnings found.
1 Errors found.

Solution: http://forums.chilli-works.com/t/output-project-directory-cannot-be-located-inside-chillisource-directory-already-exists/29/2
Just some text to make post at least 30 characters.

Related

Building C++ Pybind11 extension with setuptools and CMake generates .so directory

I am trying to use setuptools to install a C++ library with a Pybind11 interface using CMake. For using CMake with setuptools, I am using the code in the following answer: Extending setuptools extension to use CMake in setup.py?
I am able to build the library by hand with cmake.
Unfortunately however, when executing pip install . in the root directory of my project, the build fails.
While the first call to cmake (self.spawn(['cmake', str(cwd)] + cmake_args)) finishes without any error, executing the second call (self.spawn(['cmake', '--build', '.'] + build_args)) gives me the following error:
/users/thoerman/miniconda3/envs/postproc_np_products/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot open output file /users/thoerman/postproc_np_products/build/lib.linux-x86_64-cpython-37/postproc_ops_cpp.cpython-37m-x86_64-linux-gnu.so: Is a directory
collect2: error: ld returned 1 exit status
gmake[3]: *** [/users/thoerman/postproc_np_products/build/lib.linux-x86_64-cpython-37/postproc_ops_cpp.cpython-37m-x86_64-linux-gnu.so] Error 1
gmake[2]: *** [CMakeFiles/postproc_ops_cpp.dir/all] Error 2
gmake[1]: *** [CMakeFiles/postproc_ops_cpp.dir/rule] Error 2
gmake: *** [postproc_ops_cpp] Error 2
But when running the exact same commands on the command line inside the build_temp directory, everything works just fine.
Does anyone have a hint for me, what might be going wrong?
After further digging into the problem, I found the solution myself.
The problem was with the lines
extdir = pathlib.Path(self.get_ext_fullpath(ext.name))
extdir.mkdir(parents=True, exist_ok=True)
This created a directory for the target to be built. Building the target then failed, since there was already a directory with the same name.
I was able to solve it by replacing the second line as follows:
extdir.parent.mkdir(parents=True, exist_ok=True)

fatal error: 'bpf_helper_defs.h' file not found

When I run make kselftest-install, it shows the following error:
../../../lib/bpf/bpf_helpers.h:11:10: fatal error: 'bpf_helper_defs.h'
file not found
How to solve this issue? I'm using Ubuntu 20.04.
First, try to find the missing file in your kernel source code root directory.
$ find -name bpf_helper_defs.h
./tools/bpf/resolve_btfids/libbpf/include/bpf/bpf_helper_defs.h
./tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h
It shows that bpf_helper_defs.h exists, but in a different directory than bpf_helpers.h locates. So a simple way to solve this issue is to copy the missing file to the same directory.
$ cp ./tools/bpf/resolve_btfids/libbpf/include/bpf/bpf_helper_defs.h ./tools/lib/bpf/
Run make kselftest-install again, the error disappears.

Making Cmakelist (ros) failure

After installing ros(melodic version), I followed the below steps one by one.
$ mkdir -p catkin_ws/src
$ cd catkin_ws/src
$ catkin_init_workspace
$ cd ..
$ catkin_make
Then error came up like this
CMake Error at CMakeLists.txt:1:
Parse error. Expected a command name, got unquoted argument with text
"/opt/ros/melodic/share/catkin/cmake/toplevel.cmake".
-- Configuring incomplete, errors occurred!
See also "/home/hangilkim/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/hangilkim/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
I found that CMakeLists.txt file in 'home/catkin_ws/src' folder exists clearly, but contain only this message.
/opt/ros/melodic/share/catkin/cmake/toplevel.cmake
How can I solve this problem??
Looks like you are trying to compile an already compiled project. So delete the CMakeLists.txt file in 'home/catkin_ws/src' or for safety measures move it to another folder then run catkin_make command on your terminal.

Tosca execution error unable to open workspace

I have a Tosca test case for cicking on the automobile in tricentis sample web application.
I have executed the same in Tosca CI and it works.
Now, I want to run it on a CMD. I have navigated to the path where Toscaclient is present and ran the below command:
C:\Program Files (x86)\TRICENTIS\Tosca Testsuite\ToscaCommander\ToscaCI\Client>ToscaCIClient.exe -m local -c Automobile.xml -r results.xml
it throws an error as below:
Inner Exception:
Tricentis.TCCore.Base.WorkspaceFileUnloadableException: Workspace 'C:\Program Files (x86)\TRICENTIS\Tosca Testsuite\ToscaCommander\ToscaCI\ClientC:\TOSCA_PROJECTS\TOSCA_Workspace\Test\Test.tws' could not be loaded ---> System.Xml.XmlException: Workspace-File 'C:\Program Files (x86)\TRICENTIS\Tosca Testsuite\ToscaCommander\ToscaCI\ClientC:\TOSCA_PROJECTS\TOSCA_Workspace\Test\Test.tws' not found!
where as, I can see the Test.tws is present in this location:
C:\TOSCA_PROJECTS\TOSCA_Workspace\Test\Test.tws'
Am not sure, why the path is showing by appending to the client location.
Note: Toscaclient.exe config has this path only as workspace location.
C:\TOSCA_PROJECTS\TOSCA_Workspace\Test\Test.tws
could someone help?

sencha build giving error stbuild exited with non-zero code : 7

I wanted to create .apk file of my sencha application so I executed below command
sencha package build packager.json
but when I executed above command,it generates error as given below.
'C:\Program' is not recognized as an internal or external command,operable program or batch file.
""D:/Android/AndroidSDKr15\tools\android" create project --target android-16 --name chartDemoApp --activity STActivity --path "../build/" --package triumphsys. mobility.chartDemoApp"
Could not run ant with error: 1
Failed to package application
[ERR] stbuild exited with non-zero code : 7
even I have attached my command prompt here and packager.json here.
please help me to resolve it.
I was able to solve the problem by uninstalling "C:\Program files\Sencha Cmd" and again re-installing it at "C:\Sencha" without any spaces in folder name. and it worked for me.