Jump to content

Torque 3.7 Linux Dedicated Server Not Building


CodeJunkie

Recommended Posts

So, I've been working on my project for quite some time now and have been primary working in Windows 7 with the plan of running my production server environment using Linux. I finally sat down today to attempt the build and I'm having no luck. I've spent all day on this to no avail. I'm using Vagrant running trusty64. I'm building it from the Make_Ded folder of my project. This is also a no GUI setup as well, which is what the production server environment will be.

 

../../Engine/lib//compiled/Make/convexDecomp_DEBUG.a -lstdc++ -lm -lpthread -lrt
Debug/Full/app/game.cpp.o: In function `_fndeactivateDirectInputimpl':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/app/game.cpp:67: undefined reference to `Input::isActive()'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/app/game.cpp:68: undefined reference to `Input::deactivate()'
Debug/Full/app/game.cpp.o: In function `_fnactivateDirectInputimpl':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/app/game.cpp:77: undefined reference to `Input::isActive()'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/app/game.cpp:78: undefined reference to `Input::activate()'
Debug/Full/app/mainLoop.cpp.o: In function `StandardMainLoop::handleCommandLine(int, char const**)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/app/mainLoop.cpp:514: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/cinterface/cinterface.cpp.o: In function `torque_engineinit':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/cinterface/cinterface.cpp:91: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/console/console.cpp.o: In function `_fngetClipboardimpl':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/console/console.cpp:294: undefined reference to `Platform::getClipboard()'
Debug/Full/console/console.cpp.o: In function `_fnsetClipboardimpl':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/console/console.cpp:301: undefined reference to `Platform::setClipboard(char const*)'
Debug/Full/console/consoleFunctions.cpp.o: In function `_fnquitWithErrorMessageimpl':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/console/consoleFunctions.cpp:1531: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/console/consoleFunctions.cpp.o: In function `_fndisplaySplashWindowimpl':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/console/consoleFunctions.cpp:1604: undefined reference to `Platform::displaySplashWindow(String)'
Debug/Full/console/consoleFunctions.cpp.o: In function `_fncloseSplashWindowimpl':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/console/consoleFunctions.cpp:1612: undefined reference to `Platform::closeSplashWindow()'
Debug/Full/console/engineObject.cpp.o: In function `EngineObject::operator new(unsigned int)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/console/engineObject.cpp:179: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/console/engineObject.cpp.o: In function `EngineObject::operator new(unsigned int, IEngineObjectPool*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/console/engineObject.cpp:206: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/console/simManager.cpp.o: In function `dAtomicRead(unsigned int volatile&)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformIntrinsics.gcc.h:95: undefined reference to `__sync_fetch_and_add_4'
Debug/Full/core/ogg/oggInputStream.cpp.o: In function `dCompareAndSwap(unsigned int volatile&, unsigned int, unsigned int)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformIntrinsics.gcc.h:71: undefined reference to `__sync_val_compare_and_swap_4'
Debug/Full/gui/buttons/guiBitmapButtonCtrl.cpp.o: In function `Input::getModifierKeys()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformInput.h:119: undefined reference to `Input::smModifierKeys'
Debug/Full/gui/controls/guiMLTextCtrl.cpp.o: In function `GuiMLTextCtrl::copyToClipboard(unsigned int, unsigned int)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/controls/guiMLTextCtrl.cpp:982: undefined reference to `Platform::setClipboard(char const*)'
Debug/Full/gui/controls/guiMLTextEditCtrl.cpp.o: In function `GuiMLTextEditCtrl::onKeyDown(GuiEvent const&)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/controls/guiMLTextEditCtrl.cpp:174: undefined reference to `Platform::getClipboard()'
Debug/Full/gui/controls/guiTextEditCtrl.cpp.o: In function `GuiTextEditCtrl::onCopy(bool)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/controls/guiTextEditCtrl.cpp:475: undefined reference to `Platform::setClipboard(char const*)'
Debug/Full/gui/controls/guiTextEditCtrl.cpp.o: In function `GuiTextEditCtrl::onPaste()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/controls/guiTextEditCtrl.cpp:494: undefined reference to `Platform::getClipboard()'
Debug/Full/gui/editor/editorFunctions.cpp.o: In function `validateObjectName(char const*, SimObject const*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/editor/editorFunctions.cpp:54: undefined reference to `Platform::AlertOK(char const*, char const*)'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/editor/editorFunctions.cpp:67: undefined reference to `Platform::AlertOK(char const*, char const*)'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/editor/editorFunctions.cpp:74: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/gui/editor/guiEditCtrl.cpp.o: In function `GuiEditCtrl::loadSelection(char const*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/editor/guiEditCtrl.cpp:1315: undefined reference to `Platform::getClipboard()'
Debug/Full/gui/editor/guiEditCtrl.cpp.o: In function `GuiEditCtrl::saveSelection(char const*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/gui/editor/guiEditCtrl.cpp:1419: undefined reference to `Platform::setClipboard(char const*)'
Debug/Full/main/main.cpp.o: In function `TorqueMain(int, char const**)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/main/main.cpp:309: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/platform/platformAssert.cpp.o: In function `PlatformAssert::displayMessageBox(char const*, char const*, bool)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformAssert.cpp:65: undefined reference to `Platform::AlertRetry(char const*, char const*)'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformAssert.cpp:67: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/platform/platformAssert.cpp.o: In function `askToEnterDebugger':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformAssert.cpp:85: undefined reference to `Platform::AlertOKCancel(char const*, char const*)'
Debug/Full/platform/platformAssert.cpp.o: In function `PlatformAssert::process(PlatformAssert::Type, char const*, unsigned int, char const*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformAssert.cpp:126: undefined reference to `Platform::AlertAssert(char const*, char const*)'
Debug/Full/platform/platformMemory.cpp.o: In function `memoryError':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/platformMemory.cpp:321: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/platform/input/event.cpp.o: In function `InputEventManager::buildInputEvent(unsigned int, unsigned int, InputEventType, unsigned int, InputActionType, int)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/input/event.cpp:500: undefined reference to `Input::smInputEvent'
Debug/Full/platform/input/event.cpp.o: In function `InputEventManager::buildInputEvent(unsigned int, unsigned int, InputEventType, unsigned int, InputActionType, float)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/input/event.cpp:514: undefined reference to `Input::smInputEvent'
Debug/Full/platform/input/event.cpp.o: In function `InputEventManager::buildInputEvent(unsigned int, unsigned int, InputEventType, unsigned int, InputActionType, Point3F&)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/input/event.cpp:530: undefined reference to `Input::smInputEvent'
Debug/Full/platform/input/event.cpp.o: In function `InputEventManager::buildInputEvent(unsigned int, unsigned int, InputEventType, unsigned int, InputActionType, QuatF&)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platform/input/event.cpp:547: undefined reference to `Input::smInputEvent'
Debug/Full/platformX86UNIX/x86UNIXDlibrary.cpp.o: In function `x86UNIXDLibrary::open(char const*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/x86UNIXDlibrary.cpp:52: undefined reference to `dlopen'
Debug/Full/platformX86UNIX/x86UNIXDlibrary.cpp.o: In function `x86UNIXDLibrary::close()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/x86UNIXDlibrary.cpp:63: undefined reference to `dlclose'
Debug/Full/platformX86UNIX/x86UNIXDlibrary.cpp.o: In function `x86UNIXDLibrary::bind(char const*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/x86UNIXDlibrary.cpp:70: undefined reference to `dlsym'
Debug/Full/platformX86UNIX/x86UNIXMain.cpp.o: In function `Platform::init()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/x86UNIXMain.cpp:54: undefined reference to `Input::init()'
Debug/Full/platformX86UNIX/x86UNIXProcessControl.cpp.o: In function `Cleanup(bool)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/x86UNIXProcessControl.cpp:79: undefined reference to `Input::destroy()'
Debug/Full/platformX86UNIX/threads/semaphore.cpp.o: In function `Semaphore::acquire(bool, int)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/threads/semaphore.cpp:69: undefined reference to `SDL_SemWait'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/threads/semaphore.cpp:74: undefined reference to `SDL_SemWaitTimeout'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/threads/semaphore.cpp:81: undefined reference to `SDL_SemTryWait'
Debug/Full/platformX86UNIX/threads/semaphore.cpp.o: In function `Semaphore::release()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/threads/semaphore.cpp:89: undefined reference to `SDL_SemPost'
Debug/Full/platformX86UNIX/threads/semaphore.cpp.o: In function `PlatformSemaphore::PlatformSemaphore(int)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/threads/semaphore.cpp:37: undefined reference to `SDL_CreateSemaphore'
Debug/Full/platformX86UNIX/threads/semaphore.cpp.o: In function `PlatformSemaphore::~PlatformSemaphore()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/platformX86UNIX/threads/semaphore.cpp:43: undefined reference to `SDL_DestroySemaphore'
Debug/Full/sim/actionMap.cpp.o: In function `ActionMap::createEventDescriptor(char const*, EventDescriptor*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/sim/actionMap.cpp:471: undefined reference to `Input::getKeyCode(unsigned short)'
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/sim/actionMap.cpp:502: undefined reference to `Input::getKeyCode(unsigned short)'
Debug/Full/sim/actionMap.cpp.o: In function `ActionMap::getKeyString(unsigned int, char*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/sim/actionMap.cpp:1083: undefined reference to `Input::getAscii(unsigned short, KEY_STATE)'
Debug/Full/sim/actionMap.cpp.o: In function `ActionMap::checkAsciiGlobal(unsigned short, unsigned int)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/sim/actionMap.cpp:1700: undefined reference to `Input::getKeyCode(unsigned short)'
Debug/Full/terrain/terrData.cpp.o: In function `TerrainBlock::onAdd()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/terrain/terrData.cpp:925: undefined reference to `Platform::messageBox(char const*, char const*, MBButtons, MBIcons)'
Debug/Full/windowManager/platformInterface.cpp.o: In function `PlatformWindowManager::get()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/windowManager/platformInterface.cpp:43: undefined reference to `CreatePlatformWindowManager()'
Debug/Full/windowManager/windowInputGenerator.cpp.o: In function `WindowInputGenerator::WindowInputGenerator(PlatformWindow*)':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/windowManager/windowInputGenerator.cpp:61: undefined reference to `Input::smInputEvent'
Debug/Full/windowManager/windowInputGenerator.cpp.o: In function `WindowInputGenerator::~WindowInputGenerator()':
/projects/torque3d/3.7/My Projects/aozoneserver/buildFiles/Make_Ded/../../../../Engine/source/windowManager/windowInputGenerator.cpp:76: undefined reference to `Input::smInputEvent'
collect2: error: ld returned 1 exit status
make: *** [../../game/Full_DEBUG] Error 1

 

All of the errors are referring to code that should not even be getting used in a pure dedicated server. What's frustrating is that I've look at the code units in question and have looked at them in new versions of the engine and they do not seem to be much different in this regard so it doesn't appear that obtaining the latest version will resolve this issue. Has anyone successfully built the Linux dedicated server?


Any help with this will be much appreciated.

Link to comment
Share on other sites

Out of curiosity, I downloaded the 3.10.1 source and created a test Full project and generated the project files and attempted a dedicated server build. It failed with this:

 

o
In file included from /usr/include/c++/4.8/tuple:35:0,
                from ../../../../Engine/source/console/engineFunctions.h:26,
                from ../../../../Engine/source/console/consoleObject.h:45,
                from ../../../../Engine/source/console/simObject.h:30,
                from ../../../../Engine/source/console/simBase.h:33,
                from ../../../../Engine/source/sim/netObject.h:27,
                from ../../../../Engine/source/scene/sceneObject.h:27,
                from ../../../../Engine/source/scene/sceneSpace.h:27,
                from ../../../../Engine/source/scene/scenePolyhedralSpace.h:27,
                from ../../../../Engine/source/T3D/accumulationVolume.h:27,
                from ../../../../Engine/source/T3D/accumulationVolume.cpp:24:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
 ^
compilation terminated due to -Wfatal-errors.
make: *** [Debug/Full/T3D/accumulationVolume.cpp.o] Error 1

Link to comment
Share on other sites

Thanks Duion, I'm at work now, but I'll try it when I get home and see how it plays out. I find it disturbing that the website does not mention that the Linux dedicated server does not actually build.


I'm curious to see what other have to say as well.

Link to comment
Share on other sites

Duion, which version is your branch based on? And any chance of your fixes making it into the official main branch, or is that just crazy talk? How can this not have been working for so long? I haven't been following the day-to-day development of the engine since it went open source, but this seems like a pretty big oversight, in my opinion, especially with all the Linux hype.

Link to comment
Share on other sites

My version is based on the latest which is 3.10 I think, but that is not really relevant, I already had it working over two years ago, the servers are running nonstop since then.


Just try it out and see if it works, then we can merge that fix into the main branch, I'm just kind of pull request lazy on complex stuff. I was just so fed up after that much time fixing the issue, that I just launched my servers and never touched it again.

Link to comment
Share on other sites

Well, the build did not complete. It failed with this:

 

collect2: error: ld terminated with signal 9 [Killed]
Debug/Full/T3D/entity.cpp.o: In function `Entity::unpackUpdate(NetConnection*, BitStream*)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.cpp:668: undefined reference to `typeinfo for Component'
Debug/Full/T3D/entity.cpp.o: In function `Entity::addObject(SimObject*)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.cpp:1123: undefined reference to `typeinfo for Component'
Debug/Full/T3D/entity.cpp.o: In function `Entity::addComponent(Component*)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.cpp:1224: undefined reference to `Component::setOwner(Entity*)'
Debug/Full/T3D/entity.cpp.o: In function `Entity::removeComponent(Component*, bool)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.cpp:1264: undefined reference to `Component::setOwner(Entity*)'
Debug/Full/T3D/entity.cpp.o: In function `Entity::setComponentDirty(Component*, bool)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.cpp:1655: undefined reference to `Component::setOwner(Entity*)'
Debug/Full/T3D/entity.cpp.o: In function `cm_Entity_addComponent(Entity*, int, ConsoleValueRef*)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.cpp:1781: undefined reference to `typeinfo for Component'
Debug/Full/T3D/entity.cpp.o: In function `cm_Entity_removeComponent(Entity*, int, ConsoleValueRef*)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.cpp:1811: undefined reference to `typeinfo for Component'
Debug/Full/T3D/entity.cpp.o: In function `Vector<CameraInterface*> Entity::getComponents<CameraInterface>()':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.h:274: undefined reference to `typeinfo for Component'
Debug/Full/T3D/entity.cpp.o: In function `RenderComponentInterface* Entity::getComponent<RenderComponentInterface>()':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.h:253: undefined reference to `typeinfo for Component'
Debug/Full/T3D/entity.cpp.o: In function `Vector<CastRayInterface*> Entity::getComponents<CastRayInterface>()':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.h:274: undefined reference to `typeinfo for Component'
Debug/Full/T3D/entity.cpp.o:/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/T3D/entity.h:274: more undefined references to `typeinfo for Component' follow
Debug/Full/app/game.cpp.o: In function `_fndeactivateDirectInputimpl':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/app/game.cpp:67: undefined reference to `Input::isActive()'
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/app/game.cpp:68: undefined reference to `Input::deactivate()'
Debug/Full/app/game.cpp.o: In function `_fnactivateDirectInputimpl':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/app/game.cpp:77: undefined reference to `Input::isActive()'
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/app/game.cpp:78: undefined reference to `Input::activate()'
Debug/Full/app/mainLoop.cpp.o: In function `StandardMainLoop::handleCommandLine(int, char const**)':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/app/mainLoop.cpp:520: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/cinterface/cinterface.cpp.o: In function `torque_engineinit':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/cinterface/cinterface.cpp:76: undefined reference to `Platform::AlertOK(char const*, char const*)'
Debug/Full/console/console.cpp.o: In function `_fngetClipboardimpl':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/console/console.cpp:294: undefined reference to `Platform::getClipboard()'
Debug/Full/console/console.cpp.o: In function `_fnsetClipboardimpl':
/torque/my projects/linuxtest/buildfiles/Make_Ded/../../../../Engine/source/console/console.cpp:301: undefined reference to `Platform::setClipboard(char const*)'
make: *** [../../game/Full_DEBUG] Error 1

 


Now to get to this point I did have to do this in the VM:


sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get update

sudo apt-get install g++-4.9

sudo apt-get install gcc-4.9-multilib

sudo apt-get install g++-4.9-multilib


add "-std=c++11" to CFLAGS in "Full" make file.


sudo apt-get install libsdl2-2.0-0

sudo apt-get install libsdl2-dev


sudo mkdir /usr/include/glad

sudo cp /torque/engine/lib/glad/include/glad/* /usr/include/glad


Re-associate /usr/bin/gcc with /usr/bin/gcc-4.9 with:

sudo rm /usr/bin/gcc

sudo ln -s /usr/bin/gcc-4.9 /usr/bin/gcc



I also had to update "Engine/source/platformX86UNIX/x86UNIXRedbook.cpp " to include instead of

and

Engine/source/platformX86UNIX/threads/semaphore.cpp to include and instead of and .


Just in case anyone else attempts this.

Link to comment
Share on other sites

So it is something with your setup, I'm compiling and using this branch fine for over 2 years now without ever having to fix or change anything and I also ship a precompiled Linux dedicated server as well as running it on a real Linux dedicated server.

I used a VM to compile with Ubuntu 16.04 LTS version, always use the LTS versions otherwise you get problems with anyone not running that exact version.

Compiled on the LTS version it runs on most other distributions as well.

Link to comment
Share on other sites

OK, so I've been PM'ing Duion since my last post and we have been going back and forth with different things to try. I ended up having to use Ubuntu 16.04 to build the server under Linux. I used Duion's repo to build from and it works. I'm going to reattempt the 3.7 source under Ubuntu 16.04 tonight and see how that goes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...