compilation error codeblock

Discussion in 'OTClient' started by chupaescadatri, Aug 11, 2017.

  1. chupaescadatri

    chupaescadatri Member

    Joined:
    Jul 5, 2014
    Messages:
    172
    Likes Received:
    18
    Best Answers:
    0
    [​IMG]
    Unfortunately after trying to compile in almost all versions of visual studio and give error, I gave up and went to Cmake - mingw, I got to the final part of CODEBLOCKS, but it gives this error ..
    Anybody know...?
    +rep
     
  2. gugu15

    gugu15 Member

    Joined:
    Dec 15, 2014
    Messages:
    63
    Likes Received:
    29
    Best Answers:
    0
  3. CipsoftStinks

    CipsoftStinks Old Tibia Player

    Joined:
    Oct 1, 2016
    Messages:
    386
    Likes Received:
    29
    Best Answers:
    2
    i added every commit but im having errors with missing dlls

    error configuring cmake 3.91
    gcc.exe is broken
    Code (Text):
    1. The C compiler identification is unknown
    2. The CXX compiler identification is unknown
    3. Check for working C compiler: C:/MinGW/bin/gcc.exe
    4. Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
    5. CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
    6.   The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
    7.   program.
    8.  
    9.   It fails with the following output:
    10.  
    11.    Change Dir: C:/OTClient/compiled/CMakeFiles/CMakeTmp
    12.  
    13.  
    14.  
    15.   Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_4e09b/fast"
    16.  
    17.   C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_4e09b.dir\build.make
    18.   CMakeFiles/cmTC_4e09b.dir/build
    19.  
    20.  
    21.   mingw32-make.exe[1]: Entering directory
    22.   'C:/OTClient/compiled/CMakeFiles/CMakeTmp'
    23.  
    24.  
    25.   Building C object CMakeFiles/cmTC_4e09b.dir/testCCompiler.c.obj
    26.  
    27.  
    28.   C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_4e09b.dir\testCCompiler.c.obj -c
    29.   C:\OTClient\compiled\CMakeFiles\CMakeTmp\testCCompiler.c
    30.  
    31.  
    32.   CMakeFiles\cmTC_4e09b.dir\build.make:64: recipe for target
    33.   'CMakeFiles/cmTC_4e09b.dir/testCCompiler.c.obj' failed
    34.  
    35.  
    36.   mingw32-make.exe[1]: *** [CMakeFiles/cmTC_4e09b.dir/testCCompiler.c.obj]
    37.   Error 1
    38.  
    39.  
    40.   mingw32-make.exe[1]: Leaving directory
    41.   'C:/OTClient/compiled/CMakeFiles/CMakeTmp'
    42.  
    43.  
    44.   Makefile:125: recipe for target 'cmTC_4e09b/fast' failed
    45.  
    46.  
    47.   mingw32-make.exe: *** [cmTC_4e09b/fast] Error 2
    48.  
    49.  
    50.  
    51.  
    52.  
    53.  
    54.   CMake will not be able to correctly generate this project.
    55. Call Stack (most recent call first):
    56.   CMakeLists.txt:2 (project)
    57.  
    58.  
    59. Configuring incomplete, errors occurred!
    60. See also "C:/OTClient/compiled/CMakeFiles/CMakeOutput.log".
    61. See also "C:/OTClient/compiled/CMakeFiles/CMakeError.log".
     
  4. CipsoftStinks

    CipsoftStinks Old Tibia Player

    Joined:
    Oct 1, 2016
    Messages:
    386
    Likes Received:
    29
    Best Answers:
    2
  5. _ferrari_

    _ferrari_ Member

    Joined:
    Sep 17, 2011
    Messages:
    63
    Likes Received:
    23
    Best Answers:
    0
    Try to see if there is a program in C:/MinGW/bin called "gcc.exe" (the compiler CMake is trying to use to compile OTC).
    If there is a file, open a cmd window, go to the folder and type "gcc.exe". If it is installed properly you'll want to see this message:
    gcc: fatal error: no input files
    compilation terminated.

    Furthermore, if you type in "gcc -v" you will be provided with a lot more information such as gcc version and configuration.

    If you can't complete one of these steps it's very likely you don't have the compiler installed properly.
     
  6. CipsoftStinks

    CipsoftStinks Old Tibia Player

    Joined:
    Oct 1, 2016
    Messages:
    386
    Likes Received:
    29
    Best Answers:
    2
    i did it all
    the truble its when i set gccvia cmd itisn't being recognized
    i triedggc.exe via cmd uninstalling and installing it
    could you help me ?
    @_ferrari_

    thank sfor your reply mate
     
  7. _ferrari_

    _ferrari_ Member

    Joined:
    Sep 17, 2011
    Messages:
    63
    Likes Received:
    23
    Best Answers:
    0
    If you can't run gcc.exe neither can CMake so you can't compile. Install gcc on your windows machine.
     
  8. chupaescadatri

    chupaescadatri Member

    Joined:
    Jul 5, 2014
    Messages:
    172
    Likes Received:
    18
    Best Answers:
    0
  9. CipsoftStinks

    CipsoftStinks Old Tibia Player

    Joined:
    Oct 1, 2016
    Messages:
    386
    Likes Received:
    29
    Best Answers:
    2
    fuck this is wrong developers should enable a compilation tuto with msvc2015 simce everyones uses it and its more simply gugu15 helped me but i lost the configuraations and im not a programmer so im stuck
     
  10. Static_

    Static_ Premium User Premium User

    Joined:
    Feb 14, 2015
    Messages:
    2,955
    Likes Received:
    1,243
    Best Answers:
    170
    they already have.....
    Compiling on Windows · edubart/otclient Wiki · GitHub
     
  11. chupaescadatri

    chupaescadatri Member

    Joined:
    Jul 5, 2014
    Messages:
    172
    Likes Received:
    18
    Best Answers:
    0
  12. Static_

    Static_ Premium User Premium User

    Joined:
    Feb 14, 2015
    Messages:
    2,955
    Likes Received:
    1,243
    Best Answers:
    170
    you're using codeblocks
     
  13. chupaescadatri

    chupaescadatri Member

    Joined:
    Jul 5, 2014
    Messages:
    172
    Likes Received:
    18
    Best Answers:
    0
    Now I tried in codeblocks by not getting into visual studio ..
     
  14. chupaescadatri

    chupaescadatri Member

    Joined:
    Jul 5, 2014
    Messages:
    172
    Likes Received:
    18
    Best Answers:
    0

Share This Page

Loading...