About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Linux builds
Author Message
Houge Offline
Silver Supporter

Post: #1
Linux builds
Do you have problems building projects in Linux?

I tried on Ubuntu 16.04 and Ubuntu 18.04, Engine is built correctly, no problems (using Esenthel Builder), but when I try to build applications from Editor I catch infinite "make loop":

Code:
anton@DESKTOP-QOTEF35:~/EsenthelProjects/_Build_/test$ make
Precompiling Headers..
make[1]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
mkdir -p ..
Performing Custom Build Step
clang++ -x c++-header stdafx.h -o stdafx.h.pch -m64 -fshort-wchar -fpermissive -ffast-math -ffriend-injection -Wno-int-to-pointer-cast -Wno-invalid-offsetof -Wno-comment -Wno-parentheses -Wno-switch -Wno-null-dereference -Wno-empty-body -Wno-address-of-temporary -include stdafx.h -g -DDEBUG=1 -I.  -std=c++14
./stdafx.h:1:12: warning: #pragma once in main file [-Wpragma-once-outside-header]
<U+FEFF>#pragma once
                ^
1 warning generated.
make[1]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[2]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
mkdir -p build/Debug/GNU-Linux-x86
rm -f "build/Debug/GNU-Linux-x86/Auto.o.d"
clang++ -m64 -fshort-wchar -fpermissive -ffast-math -ffriend-injection -Wno-int-to-pointer-cast -Wno-invalid-offsetof -Wno-comment -Wno-parentheses -Wno-switch -Wno-null-dereference -Wno-empty-body -Wno-address-of-temporary -include stdafx.h   -c -g -DDEBUG=1 -I.  -std=c++14 -MMD -MP -MF "build/Debug/GNU-Linux-x86/Auto.o.d" -o build/Debug/GNU-Linux-x86/Auto.o Source/Auto.cpp
mkdir -p build/Debug/GNU-Linux-x86
rm -f "build/Debug/GNU-Linux-x86/main.o.d"
clang++ -m64 -fshort-wchar -fpermissive -ffast-math -ffriend-injection -Wno-int-to-pointer-cast -Wno-invalid-offsetof -Wno-comment -Wno-parentheses -Wno-switch -Wno-null-dereference -Wno-empty-body -Wno-address-of-temporary -include stdafx.h   -c -g -DDEBUG=1 -I.  -std=c++14 -MMD -MP -MF "build/Debug/GNU-Linux-x86/main.o.d" -o build/Debug/GNU-Linux-x86/main.o Source/main.cpp
Precompiling Headers..
make[3]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[3]: 'stdafx.h.pch' is up to date.
make[3]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[3]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[4]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
Precompiling Headers..
make[5]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[5]: 'stdafx.h.pch' is up to date.
make[5]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[5]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[6]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
Precompiling Headers..
make[7]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[7]: 'stdafx.h.pch' is up to date.
make[7]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[7]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[8]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
Precompiling Headers..
make[9]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[9]: 'stdafx.h.pch' is up to date.
make[9]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[9]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[10]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
Precompiling Headers..
make[11]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[11]: 'stdafx.h.pch' is up to date.
make[11]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[11]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[12]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
Precompiling Headers..
make[13]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[13]: 'stdafx.h.pch' is up to date.
make[13]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[13]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[14]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
Precompiling Headers..
make[15]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[15]: 'stdafx.h.pch' is up to date.
make[15]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[15]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[16]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
Precompiling Headers..
make[17]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
make[17]: 'stdafx.h.pch' is up to date.
make[17]: Leaving directory '/home/anton/EsenthelProjects/_Build_/test'
Compiling Sources..
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[17]: Entering directory '/home/anton/EsenthelProjects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test

It won't stop generating new "makes" (make[3], make[4], make[5] etc) until I press CTRL+C.
I ran it from console to get this log, but it's the same from the editor.

Any ideas?
(This post was last modified: 02-21-2019 01:04 AM by Houge.)
02-20-2019 10:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Linux builds
Hi,
I don't think anything was changed about that.
I'll check in a few hours once I have access to my Linux laptop.

You could try "Build\Clean"
02-21-2019 04:18 AM
Find all posts by this user Quote this message in a reply
Houge Offline
Silver Supporter

Post: #3
RE: Linux builds
Nothing was changed and I'm 100% sure it worked before.
Maybe some applications like make were updated?

By the way I tried clean and rebuild, the same result.

Can you please update all the packages on your Ubuntu while testing? I don't see any other reasons than that.
02-21-2019 03:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Houge Offline
Silver Supporter

Post: #4
RE: Linux builds
OK I found out what was the problem.

If you wanna see it then take any app (like hello world) on Esenthel, rename it to "test" and try to build on Linux. Not the best name to test builds lol.

Can you try it and say if you face the same as me please.
02-22-2019 02:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
popori Offline
Member

Post: #5
RE: Linux builds
(02-22-2019 02:54 AM)Houge Wrote:  OK I found out what was the problem.

If you wanna see it then take any app (like hello world) on Esenthel, rename it to "test" and try to build on Linux. Not the best name to test builds lol.

Can you try it and say if you face the same as me please.

yeah i have same after rename the app name to test or other name the build cant stop and loop

Code:
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1139]: Entering directory '/home/orcstudio/Esenthel-Engine/Projects/_Build_/test'
"make"  -f nbproject/Makefile-Debug.mk test
make[1140]: Entering directory '/home/orcstudio/Esenthel-Engine/Projects/_Build_/test'
Stopped on user request

i think something wrong


but after change From (test) to (Test) is working now maybe u should change app name but first letter to capital and build again
(This post was last modified: 02-22-2019 04:34 AM by popori.)
02-22-2019 04:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Linux builds
I'll be able to investigate this after a few days. Now going to travel a little (Disneyland wink )
02-22-2019 11:46 AM
Find all posts by this user Quote this message in a reply
Houge Offline
Silver Supporter

Post: #7
RE: Linux builds
Have a great time there!
02-23-2019 09:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Linux builds
Thankssmile

Just came back, and tested the problem.

What I did:
-Export a working app to NetBeans
-change Project settings in NetBeans (Build\Linker\Output) to "test"
-build from NetBeans
-receive the same error as you did

Which leads me to a conclusion, that this is a limitation of the "make/gcc/clang" toolchain on Linux, and not EE
02-28-2019 05:35 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #9
RE: Linux builds
I've developed a workaround for this problem:
https://github.com/Esenthel/EsenthelEngi...c4f368d470
02-28-2019 06:07 AM
Find all posts by this user Quote this message in a reply
Houge Offline
Silver Supporter

Post: #10
RE: Linux builds
Yes, it's not about EE, but about the keywords in "make/gcc/clang".
I just tried "build" and "clean" app names and it also ends up not building anything. I don't know how many other keywords are there actually.

I thought you would just add random words or UIDs to the build target name to avoid any problems, like test_random_uid_here grin

Anyway thank you for the fix!
02-28-2019 01:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Linux builds
Thanks, just made additional update:
https://github.com/Esenthel/EsenthelEngi...e6020c1bba
03-09-2019 06:25 AM
Find all posts by this user Quote this message in a reply
Houge Offline
Silver Supporter

Post: #12
RE: Linux builds
Thanks a lot!
03-10-2019 01:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply