Ir para conteúdo

Compilando Ot Client


BananaFight

Posts Recomendados

Olá,
Consegui depois de várias tentativas compilar, porém o executável está pesando 90mb, e não está habilitando o directx, mesmo eu colocando Opengles 2.0, oque eu posso fazer para habilitar o DirectX e diminuir o tamanho do executável?

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 3 weeks later...

Estou tentando reinstalar a forma de compilar, mais agora esta dando o mesmo erro que de uns colegas ai atras, não encontra o "libgmp-10.dll" mesmo estando na pasta. Já instalei no meu PC antes de formata-lo ... porem agora da este erro :/

 

 


The C compiler identification is unknown

The CXX compiler identification is unknown

Check for working C compiler: c:/MinGW/bin/gcc.exe

Check for working C compiler: c:/MinGW/bin/gcc.exe -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):

The C compiler "c:/MinGW/bin/gcc.exe" is not able to compile a simple test

program.

It fails with the following output:

Change Dir: C:/otclient-master 0.6.3/CMakeFiles/CMakeTmp

 

Run Build Command:c:/MinGW/bin/mingw32-make.exe

"cmTryCompileExec536034960/fast"

c:/MinGW/bin/mingw32-make.exe -f

CMakeFiles\cmTryCompileExec536034960.dir\build.make

CMakeFiles/cmTryCompileExec536034960.dir/build

mingw32-make.exe[1]: Entering directory `C:/otclient-master

0.6.3/CMakeFiles/CMakeTmp'

"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report

"C:\otclient-master 0.6.3\CMakeFiles\CMakeTmp\CMakeFiles" 1

Building C object

CMakeFiles/cmTryCompileExec536034960.dir/testCCompiler.c.obj

c:\MinGW\bin\gcc.exe -o

CMakeFiles\cmTryCompileExec536034960.dir\testCCompiler.c.obj -c

"C:\otclient-master 0.6.3\CMakeFiles\CMakeTmp\testCCompiler.c"

mingw32-make.exe[1]: ***

[CMakeFiles/cmTryCompileExec536034960.dir/testCCompiler.c.obj] Error 1

mingw32-make.exe[1]: Leaving directory `C:/otclient-master

0.6.3/CMakeFiles/CMakeTmp'

mingw32-make.exe: *** [cmTryCompileExec536034960/fast] Error 2

 

 

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:2 (project)

Configuring incomplete, errors occurred!

Link para o comentário
Compartilhar em outros sites

  • 2 months later...
  • 1 month later...
  • 1 year later...

Não estou conseguindo utilizar o CMAKE, ele dá erro na hora e procurar o gcc.exe do mingw... Da uma olhada ai no erro:


The C compiler identification is GNU 4.8.1
The CXX compiler identification is GNU 4.8.1
Check for working C compiler: C:/MinGW/bin/gcc.exe
Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.4/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: C:/Projeto OTC/CMakeFiles/CMakeTmp



Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_d58ca/fast"

C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_d58ca.dir\build.make
CMakeFiles/cmTC_d58ca.dir/build


mingw32-make.exe[1]: Entering directory 'C:/Projeto
OTC/CMakeFiles/CMakeTmp'


Building C object CMakeFiles/cmTC_d58ca.dir/testCCompiler.c.obj

C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_d58ca.dir\testCCompiler.c.obj -c
"C:\Projeto OTC\CMakeFiles\CMakeTmp\testCCompiler.c"


Linking C executable cmTC_d58ca.exe

"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script
CMakeFiles\cmTC_d58ca.dir\link.txt --verbose=1


"C:\Program Files\CMake\bin\cmake.exe" -E remove -f
CMakeFiles\cmTC_d58ca.dir/objects.a


C:\MinGW\bin\ar.exe cr CMakeFiles\cmTC_d58ca.dir/objects.a
@CMakeFiles\cmTC_d58ca.dir\objects1.rsp


C:\MinGW\bin\gcc.exe -Wl,--whole-archive
CMakeFiles\cmTC_d58ca.dir/objects.a -Wl,--no-whole-archive -o
cmTC_d58ca.exe -Wl,--out-implib,libcmTC_d58ca.dll.a
-Wl,--major-image-version,0,--minor-image-version,0
@CMakeFiles\cmTC_d58ca.dir\linklibs.rsp


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find crt2.o: No such file or directory


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmingw32


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmoldname


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmingwex


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmsvcrt


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmingw32


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmoldname


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmingwex


c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lmsvcrt


collect2.exe: error: ld returned 1 exit status

CMakeFiles\cmTC_d58ca.dir\build.make:98: recipe for target 'cmTC_d58ca.exe'
failed


mingw32-make.exe[1]: *** [cmTC_d58ca.exe] Error 1

mingw32-make.exe[1]: Leaving directory 'C:/Projeto
OTC/CMakeFiles/CMakeTmp'


Makefile:125: recipe for target 'cmTC_d58ca/fast' failed

mingw32-make.exe: *** [cmTC_d58ca/fast] Error 2





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


Configuring incomplete, errors occurred!
See also "C:/Projeto OTC/CMakeFiles/CMakeOutput.log".
See also "C:/Projeto OTC/CMakeFiles/CMakeError.log".



Olha ai uma print com minhas configurações:

https://gyazo.com/ae7edf4d7e47f59ff20f7607d39078ad

Alguem pode dar um help?? Desculpa ai reviver o tópico...

Link para o comentário
Compartilhar em outros sites

  • 4 weeks later...

verifica se o caminho do PATH na variaveis de ambiente esta de acordo com o caminho do cmake instalado?

 

 

C:\Arquivos de Programas\CMake 2.8\bin;C:\MinGW\bin;C:\MinGW\lib;C:\MinGW\include;C:\Program Files\CMake 2.8

 

 

pois os cmake atuais o caminho nao e mais "C:\Arquivos de Programas\CMake 2.8\"

e sim "C:\Arquivos de Programas\CMake\"

Link para o comentário
Compartilhar em outros sites

sim pode deixar no bin pois no tutorial do otc na github dele o path e assim mesmo

 

C:\Program Files (x86)\CMake 2.8\bin;C:\MinGW\bin;C:\MinGW\lib;C:\MinGW\include
Editado por Aberos
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...