|
Viewing 1 to (23 Total) os x release |
Total Posts: 152
Joined: February 12, 2012
|
Has anyone successfully submitted a Mac app to the app store? We're looking to release Mole Word for the mac but have 2 issues:
1) App is unable to open on computer without haxe / hxcpp installed (i'm assuming). App immediately crashes with the following error found in console:
Error : Could not load module std@get_env__1
2) Is there any way to keep the window from resizing? resizable="false" isn't working.
Thanks!
Tags:
Posted on May 05, 2012 at 9:33 PM
|
|
|
Total Posts: 2146
Joined: August 25, 2011
|
Re: os x release
NME 3.3.2 comes with a "2.09.1" version of HXCPP that should fix the first issue, I believe.
Posted on May 05, 2012 at 9:49 PM
|
Total Posts: 152
Joined: February 12, 2012
|
Re: os x release
So an os x machine without installing haxelib or hxcpp should be able to run apps created in haxe correct? Thanks for the quick reply
Posted on May 05, 2012 at 10:21 PM
|
Total Posts: 2146
Joined: August 25, 2011
|
Re: os x release
Yep, I believe so.
If you are running Snow Leopard, the application would run just fine, either from a terminal (inside the *.app directory) or when running from Finder.
However, if you are running Lion, HXCPP 2.09 and earlier would work fine when running from inside the *.app directory, but would fail when running from Finder. This is because the library search paths were unable to find libraries like nme.so, or in the case of your error, std.ndll
I am guessing that if you ran your application on your own machine, it would not run from Finder, though it would work fine when executed from most IDEs.
If you could use the 3.3.2 installer to get the patched version of HXCPP, which includes the additional library search path that was needed to resolve the Finder issue, I'm guessing you'll also be able to use it fine from the Mac App store, on systems without Haxe installed 
Posted on May 05, 2012 at 10:35 PM
|
Total Posts: 152
Joined: February 12, 2012
|
Re: os x release
Ok so we confirmed the issue still exists.
We upgraded to 3.3.2 and HXCPP 2.09. I'm able to open the app on my machine with hxcpp installed from any location (via finder, applications folder, etc).
We tried to run on macbook air from finder / applications folder. Neither worked. Same error - std.dylib does exist inside the App package. Any ideas?
Posted on May 07, 2012 at 6:38 PM
|
Total Posts: 152
Joined: February 12, 2012
|
Re: os x release
Josh,
I just noticed when you call "haxelib upgrade" it wants to "upgrade" hxcpp 2.09.1 to 2.09 . No wonder the new search path code isn't working. Will go back to 2.09.1 and try again... as soon as we figure out how 
Posted on May 08, 2012 at 7:52 AM
|
Total Posts: 224
Joined: December 03, 2011
|
Re: os x release
resolution? clues? hints? tutorials? 
Posted on May 15, 2012 at 2:11 PM
|
Total Posts: 2146
Joined: August 25, 2011
|
Re: os x release
Does HXCPP 2.09.1, included with the NME 3.3.2 installer, fix this problem?
Posted on May 15, 2012 at 2:22 PM
|
Total Posts: 224
Joined: December 03, 2011
|
Re: os x release
i dunno, but i'm curious to hear from anybody who experimented. right now i've managed to break most everything locally so i can't test it out. i will definitely (well, i hope to) come to that bridge at some point and will report then. just hoping somebody else beats me to it so i can blithely smooth sail along instead. 
Posted on May 15, 2012 at 2:39 PM
|
Total Posts: 152
Joined: February 12, 2012
|
Re: os x release
Ok so installing 2.09.1 from NME website DID solve issue #1. We are now able to use load our application on others users mac (w/o haxe installed). How come 2.09.1 isn't available in haxelib upgrade repo? Each time i run "haxelib upgrade" it asks if i want to "upgrade" 2.09.1 to 2.09.
Next, we're still not able to release to Mac app store b/c of two things:
1) Main window resizes. I'm almost positive i could recompile the NME / haxe libs or create an extensions which disabled window resizing but i wish "resizable" (or resize whatever it is) inside the <window> tag would work for OS X target. This is important or apple will reject your app
2) WINDOW menu on OS X apps are messed up. If you select one of the three or four windows in the drop down the app will crash (may take one or two clicks). I know for a fact i can change this inside the MacBoot.mm and recompile
Josh, hopefully you can make these two changes. Prevent window resize and remove Window menu (or at least the window items inside). I was just reading up on how we can sign and submit the app without Xcode. If we're able to get these changes made we can finally submit Haxe's first app to the Mac Store!!
Posted on May 15, 2012 at 3:23 PM
|
Total Posts: 39
Joined: October 02, 2011
|
Re: os x release
I run into same issue ....
aaargh i should have made some tests before ...
where could i find hxcpp 2.09.1 ?
would hxcpp 2.10 should do the trick ?
thx
[edited because i mismatched haxe & hxcpp]
Posted on July 16, 2012 at 10:56 AM
|
Total Posts: 2146
Joined: August 25, 2011
|
Re: os x release
I believe upgrading HXCPP was what helped in this scenario. HXCPP 2.10 is on haxelib, and should work with Haxe 2.09.
Since this post, OS X applications were changed so the default (if you do not specify <window resizable="" />) is a non-resizable window. There was also a spelling error, so that the property was inconsistent, and hard to set.
The Window menu was also corrected. These are some of the changes that will go out in NME 3.4, which may be released today
Posted on July 16, 2012 at 11:08 AM
|
Total Posts: 39
Joined: October 02, 2011
|
Re: os x release
thanks joshua ...
i upgraded hxcpp via haxelib to 2.10.
it now gives me a lot of errors an do not let compile
haxelib run hxcpp Build.xml haxe -Ddebug -Dactuate -Dcpp -Ddebug -Ddesktop -Dhaxe_209 -Dhxs -Dmac -Dnme -Dnme_install_tool -Dpolygonal -Dswf -Dsys -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -g -isysroot /Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I/usr/lib/haxe/lib/hxcpp/2,10//include -DHX_MACOS -m32 -DHXCPP_DEBUG -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:170:
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:195:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:16: error: 'int64_t' does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:162:
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Object.h:56: error: declaration of 'operator new' as non-function
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Object.h:56: error: expected ';' before '(' token
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Object.h: In member function 'void hx::ObjectPtr<O>::CastPtr(hx::Object*)':
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:163:
/usr/lib/haxe/lib/hxcpp/2,10//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,10//include/hxString.h:20: error: declaration of 'operator new' as non-function
/usr/lib/haxe/lib/hxcpp/2,10//include/hxString.h:20: error: expected ';' before '(' token
/usr/lib/haxe/lib/hxcpp/2,10//include/hxString.h: In member function 'int String::compare(const String&) const':
/usr/lib/haxe/lib/hxcpp/2,10//include/hxString.h:98: error: 'strcmp' was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:169:
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Anon.h: In static member function 'static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()':
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Anon.h: In static member function 'static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)':
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Anon.h:36: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Anon.h: In static member function 'static Dynamic hx::Anon_obj::__CreateEmpty()':
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Anon.h:38: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:170:
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:80: error: 'size_t' does not name a type
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: In member function 'void Array_obj<ELEM_>::sort(Dynamic)':
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:388: error: 'sort' is not a member of 'std'
In file included from /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:171:
/usr/lib/haxe/lib/hxcpp/2,10//include/Class.h: In function 'bool hx::TCanCast(hx::Object*)':
/usr/lib/haxe/lib/hxcpp/2,10//include/Class.h:139: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.h:179:
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: In static member function 'static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]':
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:486: instantiated from 'Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Operators.h:247: instantiated from here
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:538: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: In member function 'Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]':
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:396: instantiated from 'Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:549: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: In member function 'Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]':
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:397: instantiated from 'Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:557: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:558: error: 'memcpy' was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: In member function 'Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]':
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:399: instantiated from 'Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:391: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: In member function 'Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]':
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:406: instantiated from 'Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:568: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h: In member function 'Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]':
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:407: instantiated from 'Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]'
/usr/lib/haxe/lib/hxcpp/2,10//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/2,10//include/Array.h:576: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1265
Called from BuildTool.hx line 554
Called from a C function
Called from BuildTool.hx line 591
Called from BuildTool.hx line 710
Called from BuildTool.hx line 739
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled
Posted on July 16, 2012 at 5:26 PM
|
Total Posts: 39
Joined: October 02, 2011
|
Re: os x release
solved for me
see this posthttp://www.haxenme.org/community/forums/bugs/nme-3.4.0-on-macos-10....
Posted on July 17, 2012 at 5:17 AM
|
Total Posts: 152
Joined: February 12, 2012
|
Re: os x release
fantastic. i just noticed that same bug last night. reverted back to 2.09.3 which worked. thanks for posting fix reply!
Posted on July 19, 2012 at 3:09 PM
|
Total Posts: 2146
Joined: August 25, 2011
|
Re: os x release
Hey guys,
Would you mind helping me find the problem, so we can have it fixed for the future?
I think I got what's going wrong:
<flag value="-isysroot"/> <flag value="${DEVELOPER_DIR}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${MACOSX_VER}.sdk"/>
In your output above, I see it is referencing "MacOSX.sdk" ... this should be something like "MacOSX10.8.sdk"
That must mean that HXCPP was not able to determine the MACOSX_VER value.
Does the "/Developer/Platforms/MacOSX.platform/Developer/SDKs/" directory exist on your system? If your Xcode is installed under "/Applications/Xcode.app", perhaps "xcode-select" is returning the wrong path?
If that directory does exist, could you let me know which SDK folders exist in there?
Thanks!
Posted on July 19, 2012 at 4:31 PM
|
Total Posts: 152
Joined: February 12, 2012
|
Re: os x release
ok so xcode-path does NOT work on the machine in question:
-bash: xcode-path: command not found
No wonder it's not working. Xcode 4.3.3 installed on that machine.
Posted on July 19, 2012 at 4:42 PM
|
Total Posts: 152
Joined: February 12, 2012
|
Re: os x release
bbeaulant pegged it in this post:
http://www.haxenme.org/community/forums/bugs/nme-3.4.0-on-macos-10....
"sudo xcode-select -switch /Application/Xcode.app" fixed the issue. no idea why that path wasn't set.
Posted on July 19, 2012 at 4:50 PM
|
Total Posts: 2146
Joined: August 25, 2011
|
Re: os x release
What was xcode-select returning before?
Perhaps we could implement a default, to understand if xcode-select is acting up
Posted on July 19, 2012 at 4:54 PM
|
Total Posts: 2146
Joined: August 25, 2011
|
Re: os x release
Did xcode-select originally give you a message like this?
xcode-select: Error: No Xcode folder is set. Run xcode-select -switch <xcode_folder_path> to set the path to the Xcode folder.
Posted on July 19, 2012 at 5:02 PM
|