Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX Compilation error : tr1/type_traits #53

Closed
kiroukou opened this issue Jan 29, 2018 · 3 comments
Closed

OSX Compilation error : tr1/type_traits #53

kiroukou opened this issue Jan 29, 2018 · 3 comments
Labels

Comments

@kiroukou
Copy link

Hello,

Here is the compilation I have under OSX.
I've installed wxwidgets via github + make and also tried via brew.

Haxe 3.4.2
hxcpp: [3.4.188]
hxWidgets: Git version master branch
haxeui-core: [0.0.3]
haxeui-hxwidgets: [0.0.2]

cd 00-Showcase/
$ ls
Run.bat			build-static.hxml	copy_dlls.bat		src
assets			build.hxml		hxWidgets.hxproj
$ haxe build.hxml
haxelib run hxcpp Build.xml haxe -Dhaxe3="1" -Dhaxe_ver="3.402" -DhxWidgets="1.0.0" -Dhxcpp="3.4.188" -Dhxcpp_api_level="331" -Dsource-header="GeneratedByHaxe" -Dsource_header="GeneratedByHaxe" -I"src/" -I"/usr/local/lib/haxe/lib/hxcpp/3,4,188/" -I"/usr/local/lib/haxe/lib/hxWidgets/git/src/" -I"/usr/lib/haxe/extraLibs/" -I"/usr/local/lib/haxe/extraLibs/" -I"" -I"/usr/lib/haxe/std/cpp/_std/" -I"/usr/share/haxe/std/cpp/_std/" -I"/usr/local/lib/haxe/std/cpp/_std/" -I"/usr/lib/haxe/std/" -I"/usr/share/haxe/std/" -I"/usr/local/lib/haxe/std/"
Creating /usr/local/lib/haxe/lib/hxWidgets/git/samples/00-Showcase/bin/obj/darwin64/__pch/haxe/hxcpp.h.gch...

Compiling group: haxe
g++ -Iinclude -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -I/usr/local/lib/haxe/lib/hxWidgets/git/src/../include -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++ -c -fvisibility=hidden -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -O2 -I/usr/local/lib/haxe/lib/hxcpp/3,4,188/include -DHX_MACOS -m64 -Wno-parentheses -Wno-unused-value -Wno-format-extra-args -Wno-overflow -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_API_LEVEL=331(haxe) ... tags=[haxe,static]
 - src/wx/widgets/styles/TextCtrlStyle.cpp 
 - src/wx/widgets/styles/WindowStyle.cpp 
Error: In file included from ./src/wx/widgets/styles/WindowStyle.cpp:5:
In file included from include/wx/widgets/styles/WindowStyle.h:11:
In file included from /usr/local/include/wx-3.1/wx/window.h:18:
In file included from /usr/local/include/wx-3.1/wx/event.h:16:
In file included from /usr/local/include/wx-3.1/wx/object.h:19:
In file included from /usr/local/include/wx-3.1/wx/memory.h:15:
In file included from /usr/local/include/wx-3.1/wx/string.h:37:
/usr/local/include/wx-3.1/wx/strvararg.h:27:18: fatal error: 'tr1/type_traits' file not found
        #include <tr1/type_traits>
                 ^~~~~~~~~~~~~~~~~
1 error generated.
Error: Build failed

I saw some people here with compiled project under OSX, so I'm pretty sure it is doable, but for some reasons I can't figure it out how to fix that compilation error (checked the web before, but didn't manage to apply the fix correctly if valid)

Thanks for your help.

@ibilon
Copy link
Member

ibilon commented Jan 29, 2018

Which version of OSX do you have?

@kiroukou
Copy link
Author

I'm running under 10.13.2 (High Sierra) XCode 9.2

@ianharrigan
Copy link
Member

Hmm, just tried on my mac... All fine

Can you try with hxcpp git?

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants