$ haxelib list
format: [3.0.2]
hxcpp: [3.0.2]
nme: [dev:C:\Users\NME/]
nmedev: [dev:C:\Users\nmedev/]
svg: [1.0.7]
swf: [1.0.0]
$ nme
Error: Library nme version dev is not installed
Anyone run into this? Everything is up to date.
https://code.google.com/p/haxe/issues/detail?id=1853
"Editing the file manually and removing the trailing slash resolves the problem"
Edit the .dev file inside the lib that's giving you the problem.
IE C:\Program Files (x86)\HaxeFoundation\haxe\lib\nme.dev
was C:\some\path\NME/
edit to C:\some\path\NME
Related
I am currently trying to install Eclipse for making C++ programs.
I've run into an issue when compiling the premade default hello world program.
The console shows this error:
c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread
I am not using the library in my program at all.
Any ideas on how to fix this?
Just run and open MinGW Installation Manager, which should be pre-installed with MinGW, select "All Packages" on the left panel, and on the right panel, search for "mingw32-pthreads-w32" packages and install them.
Restart Eclipse, rebuild the project and run it. It should now work.
I had the same problem even with those packages installed. I had to go to mingw\lib and copy the file libpthreadGC-3.a and rename it to libpthread.a and the file libpthreadGC-3.dll.a rename it to libpthread.dll.a
After that it works!
After installing MinGw mingw-gcc-g++, reopen Eclipse, then clear errors. Once all the errors are cleared, try rebuilding your project.
If you also have cygwin installed ... see the question on mingw.org. I ended up with adding 'C:/cygwin/lib' to the settings for the "Library search path (-L)" at properties >> c/c++ build >> settings >> MinGW C Linker >> Libraries.
After installing nodist I realized I could not use it from Cygwin. I can only use it from the windows cmd.
In the folder where it was installed I got among other files:
Nodist
--bin
|--nodist
|--npm
--node.exe
--cli.js
...
When trying to run it from Cygwin it fails, with error:
/../node.exe: No such file or directorybin/nodist: line 3: /myroute/Program Files (x86)/Nodist/bin
The content of /myroute/Program Files (x86)/Nodist/bin/nodist is:
#!/bin/sh
DIR="`dirname \"$0\"`"
"$DIR/../node.exe" "$DIR/../cli" $*
Note: The $PATH is set in both windows and Cygwin:
$ which nodist
/myroute/Program Files (x86)/Nodist/bin/nodist
Note2: It happens the same with npm, it works under cmd but not under Cygwin.
Simpler approuch:
Install the programs in a path without spaces and squares
eg, from:
/myroute/Program Files (x86)/Nodist/bin/nodist
to:
/myroute/Programs/Nodist/bin/nodist
They are working on it and it will probably solved in the next release:
https://github.com/marcelklehr/nodist/issues/137
I was trying to to install Haskell Platform 2014 2.0 but I can't really understand what am I supposed to do to make it work and there seems to be no useful documentation on the site.
I downloaded the binary dist from the site, unpacked it, launched the 'activate-hs' script and got this:
Haskell set to:
GHC /home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64
Haddocks file:///home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/doc/frames.html
Other doc file:///home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/share/doc/ghc/html/index.html
Symlinks for command line tools (ghc, cabal, etc..) added to:
/usr/local/bin
Even running in --verbose tells me nothing more about what's going on, it just returns a list of all the files.
What should I do?
EDIT:
riccardo#eos:~$ whereis ghc
ghc: /usr/local/bin/ghc
If I go to /usr/local/bin the symlinks are there and they point to the respective files in /home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/bin, but in the property window it says they are broken, what does this mean?
Also, if I get into home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/bin and try to launch the scripts directly from there, it still won't work:
riccardo#eos:~/usr/local/haskell/ghc-7.8.3-x86_64/bin$ ./ghci-7.8.3
./ghci-7.8.3: line 2: /usr/local/haskell/ghc-7.8.3-x86_64/bin/ghc-7.8.3: File o directory non esistente
File o directory non esistente = file or directory does not exist
For posterity, if you're installing the generic-linux binary package as this appears to be describing, you cannot just run activate-hs. Rather you run install-haskell-platform.sh which puts everything in the proper place. Following that, you can use the installed activate-hs in the future if you want to swap between different versions...
I'm following a tutorial from this website: Monetizing Game Apps by Todd Perkins
Access to all the files are not required for the questions I'm asking. I have done research on how to solve this on stack overflow and discussed it below
I have followed the tutorial and it has asked me to:
Install Cygwin
Download Cocos2dx-2.0.1(I know this is old, but I don't want to deal with deprecating problems until I'm more confident with the environment)
Run create-android-project.bat(works fine).
Open project I created- and move to proj.android and run build_native.sh in Cygwin.
Then I open up cygwin.bat, navigate to myproject/proj.android and run ./build_native.sh
Problem:
$ ./build_native.sh
Using prebuilt externals
./build_native.sh: line 74: /cygdrive/c/android-ndk-r9c-windows-x86_64/ndk-build: No such file or directory
So I looked into the files and double-checked my changes:
In create-android-project.bat I modified the following variables:
set _CYGBIN=c:\Cygwin64\bin
set _ANDROIDTOOLS=c:\Program Files (x86)\ADT\adt-bundle-windows-x86_64-20130219\sdk\tools
set _NDKROOT=c:\android-ndk-r9c-windows-x86_64
Check line 74 that cygwin complained about in myproject/proj.android/build_native.sh:
echo "Using prebuilt externals"
$NDK_ROOT/ndk-build -C $GAME_ANDROID_ROOT \
NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt
Double check what NDK_ROOT is pointing to in build_native.sh:
NDK_ROOT=/cygdrive/c/android-ndk-r9c-windows-x86_64
COCOS2DX_ROOT=/cygdrive/c/Users/DarkRaveDev/Documents/cocos2d-x-2.0.1
GAME_ROOT=$COCOS2DX_ROOT/chaara
GAME_ANDROID_ROOT=$GAME_ROOT/proj.android
RESOURCE_ROOT=$GAME_ROOT/Resources
My Research:
I surfed SO for quite some time and tried the following from SO:
EOL Conversion in Notepad++ so LF works for windows for the build_native.sh
An answer somewhere said I need to install the make package when installing cygwin.. I'm not getting this problem, so I'm not sure if this applies.
I have searched many ways to set path - NDK_ROOT
QUESTION:
What exactly am I doing wrong? Is it the variables are badly set or is cygwin not properly installed?
Thank you to everyone who commented! :)
This is what I ended up doing.
Reinstall Cygwin : When you get to the select packages to install page, make sure to find DEVEL and change the install action from default to install. I know its a lot of megs but it's easier than combing through it. If you do want to comb through it and get only what you need, I suggest using this website: Installing a c++ compiler for windows
Make your paths simple : Like user2359247 suggested.
Finally run the create_android.bat, open your android project. Keep the path location of your build_native.sh file in mind and open your cygwin terminal.
Navigate to the path in cygwin, and run the file with sh build_native.sh: At this point everything was quite smooth sailing.
NOTE:
Also I kept using my version of ndk which is r9 instead of r8 in the tutorial, it didn't give me any hiccups.
Thank you SO!
I tried many solutions posted here in stackoverflow and some other forums and googled till I am totally frustrated. I am using Windows 8 with cygwin. I try to get the PocketSphinxAndroidDemo run, followed the tutorial on
http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/
but I had no success. What I have done:
Go through the tutorial,download all resources and installed cygwin and swig. Then, the first thing that´s not working was cd into sphinxbase folder and type command ./autogen.sh . No matter how I wrote it(./autogen.sh, only autogen.sh, only autogen etc), this doesn´t work. Ok, I then go on with the tutorial and give command configure, make and make install. This worked, but when I try to build with ndk-build, I get the next error message on the cygwin terminal:
jni/pocketsphinx_wrap.c:760:26: fatal error: pocketsphinx.h: No such file or directory
I changed to all posted solutions the Sphinx Path in the PocketSphinxAndroidDemo jni-folder Android.mk file. I tried all that stuff like
SPHINX_PATH :=$ /cygdrive/c/Programmierung/DeveloperLibs/CMUSphinx
SPHINX_PATH :=$ /c/Programmierung/DeveloperLibs/CMUSphinx
SPHINX_PATH := /cygdrive/c/Programmierung/DeveloperLibs/CMUSphinx
SPHINX_PATH :=$ /home/c/Programmierung/DeveloperLibs/CMUSphinx
SPHINX_PATH :=$ /cygdrive/home/Programmierung/DeveloperLibs/CMUSphinx
and so on, and so on.....nothing helped. By the way the local static libs are defined:
LOCAL_STATIC_LIBRARIES := pocketsphinx sphinxlm sphinxfeat sphinxfe sphinxutil
this must be right, because this was posted many times to change the order. Even I tried it with
include $(BUILD_SHARED_LIBRARY) and changed it to include $(BUILD_STATIC_LIBRARY)
none of this gave me a result, error still exists....what the hell could I do to get it work?
Then, the first thing that´s not working was cd into sphinxbase folder and type command ./autogen.sh . No matter how I wrote it(./autogen.sh, only autogen.sh, only autogen etc), this doesn´t work.
You do not need to run autogen.sh
This worked, but when I try to build with ndk-build, I get the next error message on the cygwin terminal:
jni/pocketsphinx_wrap.c:760:26: fatal error: pocketsphinx.h: No such file or directory
You need to download an archive with sources, not the one named win32, which is only for Windows. The file pocketsphinx.h is contained in pocketsphinx-0.8.tar.gz/include.
Compiler has the concept of the "header search path" where it finds the includes. Search path is specified in the compiler command line arguments with -I option. If compiler can't find some file, most likely file is in another location or the search path is incorrectly specified. You need to put the file in the right location or specify the search path properly.
Now I got it worked, I don´t like to answer my own question but maybe it helps other poeple with the same problem. Nikolay Shmyrev pointed me to the right direction, many thanks to him. Here is a little tutorial to get pocketsphinx work on windows and android:
https://sites.google.com/site/opiatefuchs/home/pocketsphinxandroiddemo