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

how install on windows 7 ? #118

Open
221V opened this issue May 8, 2019 · 0 comments
Open

how install on windows 7 ? #118

221V opened this issue May 8, 2019 · 0 comments

Comments

@221V
Copy link

221V commented May 8, 2019

hello

i have no trouble on linux with fann + erlang
(there i get executable file "fannerl" in fannerl/priv and all is ok)

but i do not fully understand how install fann on windows 7

i install visual studio community 2019, install c++ there, install erlang, this is ok
next i choose VS2010 directory inside fann_dir, open the fann.sln solution, click "build" in VS

visual studio says all ok, compiling ok

but i do not understand what next?
help me please

after compiling fann i see next dll --

E:\fann_2.2.0\bin

fanndouble.dll
fanndoubled.dll
fannfixed.dll
fannfixedd.dll
fannfloat.dll
fannfloatd.dll

what of thet needs for erlang in

E:\fannerl\src\fannerl.erl
at line 1584 --
PrivDir = code:priv_dir(fannerl),

?

fannerl in erlang compiles fine --

E:\fannerl>rebar3 compile
===> Verifying dependencies...
===> Compiling fannerl

but tests not run ok

E:\fannerl>rebar3 eunit
===> Verifying dependencies...
===> Compiling fannerl
===> Performing EUnit tests...
======================== EUnit ========================
file "fannerl.app"
  application 'fannerl'
    module 'fannerl'
      module 'fannerl_tests'
        Tests that fannerl can be started and stopped accordingly
          fannerl_tests: fannerl_start_stop_test_...=CRASH REPORT==== 8-May-2019::02:09:04.701000 ===
  crasher:
    initial call: fannerl:init/1
    pid: <0.139.0>
    registered_name: fannerl
    exception error: enoent
      in function  open_port/2
         called as open_port({spawn,"e:\fannerl\priv"},
                             [{packet,2},nouse_stdio,binary,exit_status])
      in call from fannerl:init/1 (e:/fannerl/src/fannerl.erl, line 1604)
    ancestors: [<0.130.0>]
    message_queue_len: 0
    messages: []
    links: [<0.130.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 376
    stack_size: 27
    reductions: 225
  neighbours:
    neighbour:
      pid: <0.134.0>
      registered_name: []
      initial_call: {eunit_proc,group_leader_process,1}
      current_function: {eunit_proc,group_leader_loop,3}
      ancestors: []
      message_queue_len: 0
      links: [<0.130.0>]
      trap_exit: false
      status: waiting
      heap_size: 233
      stack_size: 7
      reductions: 11
      current_stacktrace: [{eunit_proc,group_leader_loop,3,
                              [{file,"eunit_proc.erl"},{line,584}]}]
    neighbour:
      pid: <0.130.0>
      registered_name: []
      initial_call: {erlang,apply,2}
      current_function: {proc_lib,sync_wait,2}
      ancestors: []
      message_queue_len: 0
      links: [<0.134.0>,<0.139.0>,<0.129.0>]
      trap_exit: false
      status: waiting
      heap_size: 6772
      stack_size: 91
      reductions: 8752
      current_stacktrace: [{proc_lib,sync_wait,2,[{file,"proc_lib.erl"},{line,350}]},
                  {fannerl_tests,fannerl_start_stop,0,
                                 [{file,"e:/fannerl/test/fannerl_tests.erl"},
                                  {line,165}]},
                  {eunit_test,run_testfun,1,
                              [{file,"eunit_test.erl"},{line,71}]},
                  {eunit_proc,run_test,1,[{file,"eunit_proc.erl"},{line,510}]},
                  {eunit_proc,with_timeout,3,
                              [{file,"eunit_proc.erl"},{line,335}]},
                  {eunit_proc,handle_test,2,
                              [{file,"eunit_proc.erl"},{line,493}]},
                  {eunit_proc,tests_inorder,3,
                              [{file,"eunit_proc.erl"},{line,435}]},
                  {eunit_proc,with_timeout,3,
                              [{file,"eunit_proc.erl"},{line,325}]}]
*skipped*
undefined
*unexpected termination of test process*
::{enoent,[{erlang,open_port,
                   [{spawn,"e:\fannerl\priv"},
                    [{packet,2},nouse_stdio,binary,exit_status]],
                   [{file,"erlang.erl"},{line,2213}]},
           {fannerl,init,1,[{file,"e:/fannerl/src/fannerl.erl"},{line,1604}]},
           {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}

=======================================================
  Failed: 0.  Skipped: 0.  Passed: 0.
One or more tests were cancelled.
===> Error running tests

help me please
thanks

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

No branches or pull requests

1 participant