[ 
https://issues.apache.org/jira/browse/THRIFT-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Meier updated THRIFT-2644:
--------------------------------
    Attachment: THRIFT-2644_haxe.patch

Hi Jens
I made this [^THRIFT-2644_haxe.patch] as a stashed version of your pull 
request. 

on Debian I had to do this:
* sudo apt-get install libgc-dev
* neko build from source and install
* install libs according to lib/haxe/README.md

then i faced this issues:
{noformat}
haxelib run hxcpp Build.xml haxe -Ddebug -Dhaxe3="1" -Dhaxe_ver="3.2" 
-Dhxcpp_api_level="312" -I"../../lib/haxe/src/" -I"gen-haxe/" -I"src/" 
-I"/usr/lib/haxe/extraLibs/" -I"/usr/local/lib/haxe/extraLibs/" -I"" 
-I"/usr/lib/haxe/std/cpp/_std/" -I"/usr/local/lib/haxe/std/cpp/_std/" 
-I"/usr/lib/haxe/std/" -I"/usr/local/lib/haxe/std/"
g++ -Iinclude -c -fvisibility=hidden -g -fpic -fPIC -DHX_LINUX -DHXCPP_DEBUG 
-DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=312 -m32 
-I/usr/lib/haxe/lib/hxcpp/3,1,39/include -frtti -o 
obj/linux-debug//__pch/haxe/hxcpp.h.gch 
/usr/lib/haxe/lib/hxcpp/3,1,39/include/hxcpp.h
g++ -Iobj/linux-debug//__pch/haxe -Iinclude -c -fvisibility=hidden -g -fpic 
-fPIC -DHX_LINUX -DHXCPP_DEBUG -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=312 -m32 
-I/usr/lib/haxe/lib/hxcpp/3,1,39/include -x c++ -frtti 
./src/thrift/test/Xtruct2.cpp -oobj/linux-debug/9931a53a_Xtruct2.o
g++ -Iobj/linux-debug//__pch/haxe -Iinclude -c -fvisibility=hidden -g -fpic 
-fPIC -DHX_LINUX -DHXCPP_DEBUG -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=312 -m32 
-I/usr/lib/haxe/lib/hxcpp/3,1,39/include -x c++ -frtti 
./src/thrift/test/Xtruct.cpp -oobj/linux-debug/9931a53a_Xtruct.o
Error: In file included from ./src/thrift/test/Xtruct2.cpp:7:0:
include/org/apache/thrift/protocol/TField.h:30:3: error: ‘HX_DO_RTTI_ALL’ does 
not name a type
In file included from ./src/thrift/test/Xtruct2.cpp:13:0:
include/org/apache/thrift/protocol/TProtocolUtil.h:31:3: error: 
‘HX_DO_RTTI_ALL’ does not name a type
In file included from ./src/thrift/test/Xtruct2.cpp:16:0:
include/org/apache/thrift/protocol/TStruct.h:30:3: error: ‘HX_DO_RTTI_ALL’ does 
not name a type
In file included from ./src/thrift/test/Xtruct2.cpp:19:0:
include/thrift/test/Xtruct.h:36:3: error: ‘HX_DO_RTTI_ALL’ does not name a type
In file included from ./src/thrift/test/Xtruct2.cpp:22:0:
include/thrift/test/Xtruct2.h:36:3: error: ‘HX_DO_RTTI_ALL’ does not name a type
./src/thrift/test/Xtruct2.cpp: In function ‘void 
thrift::test::sMarkStatics(hx::MarkContext*)’:
./src/thrift/test/Xtruct2.cpp:440:2: error: ‘__mClass’ is not a member of 
‘thrift::test::Xtruct2_obj’
./src/thrift/test/Xtruct2.cpp: In function ‘void 
thrift::test::sVisitStatics(hx::VisitContext*)’:
./src/thrift/test/Xtruct2.cpp:449:2: error: ‘__mClass’ is not a member of 
‘thrift::test::Xtruct2_obj’
./src/thrift/test/Xtruct2.cpp: At global scope:
./src/thrift/test/Xtruct2.cpp:458:20: error: ‘Class 
thrift::test::Xtruct2_obj::__mClass’ is not a static member of ‘class 
thrift::test::Xtruct2_obj’
./src/thrift/test/Xtruct2.cpp: In static member function ‘static void 
thrift::test::Xtruct2_obj::__register()’:
./src/thrift/test/Xtruct2.cpp:469:13: error: ‘__mClass’ was not declared in 
this scope
Error: Build failed
make: *** [bin/Main-debug] Error 1

{noformat}

and this

{noformat}g++ -Iinclude -c -fvisibility=hidden -g -fpic -fPIC -DHX_LINUX 
-DHXCPP_DEBUG -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=312 -m32 
-I/usr/lib/haxe/lib/hxcpp/3,1,39/include -frtti -o 
obj/linux-debug//__pch/haxe/hxcpp.h.gch 
/usr/lib/haxe/lib/hxcpp/3,1,39/include/hxcpp.h
g++ -Iobj/linux-debug//__pch/haxe -Iinclude -c -fvisibility=hidden -g -fpic 
-fPIC -DHX_LINUX -DHXCPP_DEBUG -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=312 -m32 
-I/usr/lib/haxe/lib/hxcpp/3,1,39/include -x c++ -frtti ./src/tutorial/Work.cpp 
-oobj/linux-debug/d44ed333_Work.o
g++ -Iobj/linux-debug//__pch/haxe -Iinclude -c -fvisibility=hidden -g -fpic 
-fPIC -DHX_LINUX -DHXCPP_DEBUG -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=312 -m32 
-I/usr/lib/haxe/lib/hxcpp/3,1,39/include -x c++ -frtti 
./src/tutorial/Operation.cpp -oobj/linux-debug/d44ed333_Operation.o
Error: In file included from ./src/tutorial/Operation.cpp:4:0:
include/org/apache/thrift/helper/IntSet.h:32:3: error: ‘HX_DO_RTTI_ALL’ does 
not name a type
In file included from ./src/tutorial/Operation.cpp:7:0:
include/tutorial/Operation.h:28:3: error: ‘HX_DO_RTTI_ALL’ does not name a type
./src/tutorial/Operation.cpp: In function ‘void 
tutorial::sMarkStatics(hx::MarkContext*)’:
./src/tutorial/Operation.cpp:63:2: error: ‘__mClass’ is not a member of 
‘tutorial::Operation_obj’
./src/tutorial/Operation.cpp: In function ‘void 
tutorial::sVisitStatics(hx::VisitContext*)’:
./src/tutorial/Operation.cpp:69:2: error: ‘__mClass’ is not a member of 
‘tutorial::Operation_obj’
./src/tutorial/Operation.cpp: At global scope:
./src/tutorial/Operation.cpp:75:22: error: ‘Class 
tutorial::Operation_obj::__mClass’ is not a static member of ‘class 
tutorial::Operation_obj’
./src/tutorial/Operation.cpp: In static member function ‘static void 
tutorial::Operation_obj::__register()’:
./src/tutorial/Operation.cpp:83:13: error: ‘__mClass’ was not declared in this 
scope
Error: Build failed
{noformat}

using haxe 3.2.0

any idea?

> Haxe support
> ------------
>
>                 Key: THRIFT-2644
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2644
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Haxe - Compiler, Haxe - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>             Fix For: 1.0
>
>         Attachments: THRIFT-2644_haxe.patch
>
>
> I'm currently about to prepare a patch to include [Haxe|http://haxe.org/] 
> support into Thrift over there in my [GitHub Thrift 
> fork|https://github.com/Jens-G/thrift/tree/haxe]. If anyone has an interest 
> in this and wants to join for development, testing and/or review, you're 
> welcome - just drop me a mail. I'll update this ticket accordingly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to