<Yorlik>
I used cmake directly now and got the same error
<Yorlik>
Anyone here having success using HPX from vcpkg? If yes: How did you use it?
<hkaiser>
Yorlik: I'll try tomorrow
<Yorlik>
Thanks !
hkaiser has quit [Quit: bye]
hkaiser has joined #ste||ar
<Yorlik>
hkaiser: Just checked pointing to my own HPX build and it compiled.
<Yorlik>
I just added: SET(HPX_DIR "C:/__A/arc_2017/_INSTALL/hpx/stable/Debug/lib/cmake/HPX")
<Yorlik>
My guess is, there might be an issue with the vcpkg HPX version / cmake script
<Yorlik>
hkaiser: yt?
<Yorlik>
My remaining linking error comes down to: error C2923: 'hpx::traits::is_action': 'agns::game::lua::run_lua' is not a valid template type argument for parameter 'Action'
<Yorlik>
Where run_lua is: (inthe namespace) sol::unsafe_function_result run_lua( std::string code );
<Yorlik>
Being triggered by: HPX_REGISTER_ACTION_DECLARATION( agns::game::lua::run_lua, run_lua_a );
<Yorlik>
Am I missing something like what functions can be actions?
nikunj has joined #ste||ar
<hkaiser>
that is not a linker error
<hkaiser>
Yorlik: this does work for the example I gave you yesterday, no?
<Yorlik>
The example from yesterday workd with VS2019
<Yorlik>
This non-linker error is a problem in my own code ofc
<hkaiser>
so why does your code doesn't work?
<hkaiser>
what's different there?
<Yorlik>
My problem is, that obviously I cannot make an action out of that free function
<hkaiser>
why not?
<Yorlik>
For a reason i do not understand
<hkaiser>
it worked in the example
<Yorlik>
I am getting this wrong template argument error
<hkaiser>
so something is different in your code
<Yorlik>
It doesn't like my function
<hkaiser>
well, I need to see the code to understand more
<hkaiser>
or a small example reproducing the issue
<Yorlik>
Well - Discord allows easy file transfer, screenshot sharing, code highlighting for snippets, voice chat and screensharing ... It has something.
<Yorlik>
I think it's more than just a fad.
<hkaiser>
sure, but next year everything else is hyped
<hkaiser>
or even tomorrow
<Yorlik>
It's not a hype.
<Yorlik>
It's functionality.
<hkaiser>
irc lives on for more than 40 years and will do so for a while
<zao>
Bleh.
<Yorlik>
And integration.
<Yorlik>
Sure ... C was great too. And why not assembler?
<hkaiser>
last year everybody wanted to move to slack, now its discrod
<Yorlik>
You decide - just asking.
<Yorlik>
mailing lists also work nicely
* Yorlik
too remembers a time where mobile phones, Laptops and PCs were not really a thing.
<Yorlik>
Nice! (Never said I'm experienced in creating minimal testcases ;) )
<hkaiser>
Yorlik: just so you see it for the next time
<Yorlik>
Yes - definitely a learning experience!
<hkaiser>
and no, I have no idea yet what's going on ;-)
<Yorlik>
That'S good.
<Yorlik>
I feel less stupid now :P
<Yorlik>
I always have these nightmares about submitting HPX bugs and suddenly a two-horned hkaiser appearing showing me a trivial bug in my code ...
<hkaiser>
lol
<Yorlik>
:)
<hkaiser>
Yorlik: and yes, it's a stupi error on your end
<Yorlik>
What did you find?
<hkaiser>
it has to be: HPX_REGISTER_ACTION_DECLARATION(agns::game::lua::run_lua_a, run_lua_a);
<hkaiser>
pass the action as the first argument, not the function
<hkaiser>
sam for the register macro
<Yorlik>
FFS lol
<Yorlik>
The good thing is: you took a while to see it either ;)
<Yorlik>
Thanks - testing now !
<Yorlik>
Consequence should be: We need a good documentation for all the macros
<Yorlik>
Including an explanation what they do and why
<Yorlik>
I added it to my list
<Yorlik>
Stuff should really lose it'S black magic quality for end users like me.
<Yorlik>
SO - HPX_REGISTER_ACTION essentially is a using for actions, right?
<hkaiser>
register_action defines all the boilerplate to make the remote execution possible
<Yorlik>
I am not getting an undeclared identifier for run_lua_a in auto l_fut = hpx::async<run_lua_a>( hpx::find_here( ), "print('Hello from controller init()')" );
<Yorlik>
But luaengine is included
<Yorlik>
In luaengine.hpp I have: HPX_REGISTER_ACTION_DECLARATION( agns::game::lua::run_lua_a, run_lua_a );
<Yorlik>
Should it be the other way around?
<hkaiser>
I have no idea what you are talking about
<Yorlik>
Seemy my nightmares were ... reality ... lol
<Yorlik>
Creating actions really has a bunch of variables which need documentation / tutorials: Component Methods versus Free Functions, Namespaces, DLL Linkage ...
<Yorlik>
I'll pester you about it next time.
<hkaiser>
ok
<hkaiser>
thanks for your patience!
<Yorlik>
Yours too :)
* Yorlik
tosses cookies at everyone involved.
K-ballo1 has joined #ste||ar
K-ballo has quit [Ping timeout: 272 seconds]
K-ballo1 is now known as K-ballo
<Yorlik>
Just counted like 631 "HPX_ ..." macros in the source tree ...
<hkaiser>
Yorlik: most of those are probably header guards
<Yorlik>
Actually not. I extracted them from the doxygen documentation. But most of them are ofc not targeting end users.
<Yorlik>
I wonder what you'd think about my newbie blurb on concurrency and parallelism. I wrote it when I started to try understanding some basic concepts.