Get error using "ngrest" command

39 views
Skip to first unread message

Nick

unread,
Jan 3, 2018, 1:42:13 AM1/3/18
to ngrest
Nick@DevSpace MINGW64 ~/hangmonsterserver
$ ngrest
Building project hangmonsterserver...
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64                                                            -mingw32/bin/ld.exe: cannot find -lngrestutils
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64                                                            -mingw32/bin/ld.exe: cannot find -lngrestcommon
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64                                                            -mingw32/bin/ld.exe: cannot find -lngrestjson
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64                                                            -mingw32/bin/ld.exe: cannot find -lngrestengine
collect2.exe: error: ld returned 1 exit status
make[2]: *** [hangmonsterserver/CMakeFiles/hangmonsterserver.dir/build.make:160                                                            :deploy/share/ngrest/services/hangmonsterserver.dll] error 1
make[1]: *** [CMakeFiles/Makefile2:86:hangmonsterserver/CMakeFiles/hangmonsters                                                            erver.dir/all] error 2
make: *** [Makefile:84:all] error 2

If anyone same like me ? after long time digging ,i found nothing to solve this : (

Dmitry Utkin

unread,
Jan 10, 2018, 10:46:10 AM1/10/18
to ngrest
Fixed for new projects.

To make your project work, open root CMakeLists.txt and replace this line:

link_directories("${NGREST_HOME}/lib")

to this

link_directories("${NGREST_HOME}/bin")


среда, 3 января 2018 г., 9:42:13 UTC+3 пользователь Nick написал:

Nick

unread,
Jan 11, 2018, 9:02:29 PM1/11/18
to ngrest
Thx for ur help, but i met a another problem , when i use cmake to generate sln(cmake 3.9 , VS2015) , i get such this error :

1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>Checking Build System
1>CMake does not need to re-run because C:/gameServer/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/gameServer/serverbuild/CMakeFiles/generate.stamp is up-to-date.
2>------ Rebuild All started: Project: serverbuild, Configuration: Debug Win32 ------
2>Building Custom Rule C:/msys64/home/liuteng/serverbuild/serverbuild/CMakeLists.txt
2>CMake does not need to re-run because C:\gameServer\serverbuild\CMakeFiles\generate.stamp is up-to-date.
2>Generating codegen/ServiceGroupImpl.h, codegen/ServiceGroupImpl.cpp, codegen/serverbuildWrapper.h, codegen/serverbuildWrapper.cpp
2>The system cannot find the path specified.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 3.
2>Done building project "serverbuild.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

This puzzled me for a long time . also kill too many days . If u have any suggestion. Thx anyway !



在 2018年1月10日星期三 UTC+8下午11:46:10,Dmitry Utkin写道:

Dmitry Utkin

unread,
Jan 12, 2018, 2:21:53 AM1/12/18
to ngrest
I'm afraid MSVC is not supported.

пятница, 12 января 2018 г., 5:02:29 UTC+3 пользователь Nick написал:

Nick

unread,
Jan 14, 2018, 8:40:18 PM1/14/18
to ngrest
Which IDE u recommand ? Thx : )

在 2018年1月12日星期五 UTC+8下午3:21:53,Dmitry Utkin写道:

Dmitry Utkin

unread,
Jan 15, 2018, 3:08:15 AM1/15/18
to ngrest
QtCreator or CLion

понедельник, 15 января 2018 г., 4:40:18 UTC+3 пользователь Nick написал:

Nick

unread,
Jan 15, 2018, 10:57:51 PM1/15/18
to ngrest
Thx for ur help  : ) have a good day 

在 2018年1月15日星期一 UTC+8下午4:08:15,Dmitry Utkin写道:
Reply all
Reply to author
Forward
0 new messages