1 (edited by Dolphin+18 2019-05-08 01:51:56)

Topic: Compilation mod TeeWorlds

I wanted to compile a mod that I wrote, but I get this error:
-----------------------------------------------------------------------
[ 1/98] #1 c++ src/engine/shared/compression.cpp
"g++" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
bam: 'objs/engine/shared/compression.o' error 1
[ 2/98] #1 c++ src/engine/shared/config.cpp
"g++" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
bam: 'objs/engine/shared/config.o' error 1
[ 3/98] #1 c++ src/engine/shared/console.cpp
"g++" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
bam: 'objs/engine/shared/console.o' error 1
[ 4/98] #1 c++ src/engine/shared/datafile.cpp
"g++" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
bam: 'objs/engine/shared/datafile.o' error 1
[ 5/98] #1 c++ src/engine/shared/demo.cpp
"g++" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
bam: 'objs/engine/shared/demo.o' error 1
[ 6/98] #1 c++ src/engine/shared/econ.cpp
"g++" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
bam: 'objs/engine/shared/econ.o' error 1
[ 7/98] #1 c++ src/engine/shared/engine.cpp
"g++" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
bam: 'objs/engine/shared/engine.o' error 1
---------------------------------------------------------------------------
Why do I get this error? I read a lot about it, I as I understand it in the Path. But nowhere on the compilation of sites with teeworlds I have not found the answer.
Help out guys who than can... What can it be connected with?  I've tried everything that in the mind there are video tutorials reviewed by teeworlds has thousands of
Just the beginning. I really want to compile this mod. And I really hope for your help guys... Thanks in advance

-------------------------
Edited By Dolphin+18 roll

2

Re: Compilation mod TeeWorlds

What OS are you on? Windows I assume? You need to install a compiler/development environment (like Visual Studio) to compile Teeworlds: https://www.teeworlds.com/?page=docs&am … ng_windows

Not Luck, Just Magic.

3 (edited by Dolphin+18 2019-05-08 15:34:06)

Re: Compilation mod TeeWorlds

https://i109.fastpic.ru/thumb/2019/0508/20/_8814c8aa56978d980a34532a57f11a20.jpeg
I work on Windows 10.  I installed Visual Studio. Tried to compile with versions 8,9,10. But the same mistake. And I came to the conclusion by looking at a lot of information about these errors that they have the wrong Path

-------------------------
Edited By Dolphin+18 roll

4

Re: Compilation mod TeeWorlds

If I'm not wrong, Visual Studio does not install g++ but cl. Can you try to type

bam config compiler=cl

to force the cl compiler?

Not Luck, Just Magic.

5 (edited by Dolphin+18 2019-05-08 19:32:51)

Re: Compilation mod TeeWorlds

https://i109.fastpic.ru/thumb/2019/0508/c3/_94c23f4f1ccd784280be0754d79fe2c3.jpeg
Wow!!! It works!!! And almost no mistakes as before... But got now this error above!

-------------------------
Edited By Dolphin+18 roll

6 (edited by Barsik 2019-05-09 10:43:10)

Re: Compilation mod TeeWorlds

Dolphin+18, download VS 2017 and compile with native prompt 2017. You are using VS 2009. And dont use Botox Compiling.bat , u must do it urself. I lushe dozhdis kogda browed do konca vse dopilit.

russian kiddish

my english speech is good now

7 (edited by 2019-05-09 15:49:39)

Re: Compilation mod TeeWorlds

https://i110.fastpic.ru/thumb/2019/0509/df/_6359c1435fdba7f6b9fe31c3348438df.jpeg
--------------------
I'm still trying to make a compilation out of Botox bat. I have after sink (bam config compiler=cl) cleaned many mistakes, but not all. Here are some that got out first. Guys, how to remove them? What do I need for this?

When compilation failed. I looked at the errors and took pictures of them. Here they are:
--------------------
https://i109.fastpic.ru/thumb/2019/0509/f5/_24e125904f27cc1b0b350e849f6481f5.jpeg

-------------------------
Edited By Dolphin+18 roll

8

Re: Compilation mod TeeWorlds

This issue is most likley caused by a wrong configuration. Linux/macOS mostly uses the compiler 'g++' and windows 'cl'. So if you run bam on linux first it writes the g++ compiler to config.lua. And if you then compile the same project on windows you get this error.

So if you get this error delete config.lua and try agian. Also usefull to reset and clean stuff after messed up compile is deleting the obj/ folder and bam clean all:

bam -c all

So make sure to not track config.lua in your cvs.

#yemDX is a known troll!
but onbgy is the biggest troll
and deen always trolls, he just makes it so perfect that u think hes not

9 (edited by Dolphin+18 2019-05-11 12:19:39)

Re: Compilation mod TeeWorlds

I tried other sources with a compilation method the same which at me turned out from Botox(Vanya), and writes this error what it for the file and in General whether it is necessary? You can think of with him? How to restore it if it is necessary?
----------------------------------
https://i109.fastpic.ru/big/2019/0511/83/fda4f6992ebcec3fd8dc724a8dbc8c83.png

-------------------------
Edited By Dolphin+18 roll

10

Re: Compilation mod TeeWorlds

https://i110.fastpic.ru/big/2019/0511/0d/06d09c08e75bb3b3aff93aa2981ae90d.png
Here's another way... I'm trying to compile a friend's mod, but this error comes out. Which even he can't answer. How to avoid this mistake?

-------------------------
Edited By Dolphin+18 roll