Hxcpp Mac Compilation Errors

32 views
Skip to first unread message

Will Maynard

unread,
Nov 17, 2015, 5:46:50 PM11/17/15
to Haxe
Hey guys,

I primarily develop on PC.  When I move to Mac for cross-platform, compiling my code drives me nuts.  Every single time I change *anything* in a file, I get errors the next time I go to compile.  If I compile a second time, without making any changes, it's successful.

Let's say I have the following working program:

package;
class Main extends flash.display.MovieClip
{
public static function main():Void
{
trace("Hello, World!");
}
}

Now let's say I change it to this:

package;
class Main extends flash.display.MovieClip
{
public static function main():Void
{
trace("Goodbye, World!");
}
}

Compiling this the first time since the change produces an error!  Yet if I compile a second time, without modifying anything (including whitespace), it will work just fine.

My commands from IntelliJ: 

/usr/lib/haxe/haxelib run lime build /Users/wmaynard/Documents/Projects/Foo/Project.xml mac -verbose 

haxelib run hxcpp Build.xml -DHXCPP_CLANG=1 -DHXCPP_M64=1 -Dactuate=1.8.6 -Ddesktop=1 -Dformat=3.2.0 -Dhaxe3=1 -Dhaxe_ver=3.2 -Dhaxeui=1.7.16 -Dhscript=2.0.4 -Dhxcpp=3.2.180 -Dhxcpp_api_level=321 -Dlime=2.6.7 -Dlime-cairo=1 -Dlime-curl=1 -Dlime-legacy=1 -Dlime-native=1 -Dlime-openal=1 -Dlime-opengl=1 -Dlime_cairo=1 -Dlime_curl=1 -Dlime_legacy=1 -Dlime_native=1 -Dlime_openal=1 -Dlime_opengl=1 -Dmac=1 -Dnative=1 -Dopenfl=3.3.1 -Dopenfl-legacy=1 -Dopenfl-native=1 -Dopenfl-next=1 -Dopenfl_legacy=1 -Dopenfl_native=1 -Dopenfl_next=1 -Dpbkdf2=1.0.0 -Dsvg=1.0.8 -Dsystools=1.1.0 -Dtools=2.6.7 -Dyagp=1.1.4 -DHXCPP_CLANG -DHXCPP_M64 -verbose

The error:

Error: (- Compiling src/Main.cpp) xcrun --sdk macosx10.9 clang++ -Iinclude -c -fvisibility=hidden -stdlib=libstdc++ -O2 -I/Users/wmaynard/Documents/haxe/hxcpp/3,2,180/include -DHX_MACOS -m64 -Wno-parentheses -Wno-null-dereference -Wno-unused-value -Wno-format-extra-args -Wno-bool-conversion -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -x c++ -frtti -Wno-invalid-offsetof ./src/Main.cpp -o/Users/wmaynard/Documents/Projects/Foo/bin/mac64/cpp/obj/obj/darwin64/57588eaa_Main.o

This has been driving me crazy for a while and finally decided to post about it.  Anyone know what's up?
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages