Jump to content

codeape

Members
  • Posts

    183
  • Joined

  • Last visited

Everything posted by codeape

  1. The image went totaly black. Works , but why?
  2. Lets make Leadwerks more independent from where it is run. Today you can not start your game from any other place than the dir where the executable is. This does not work: /home/user/mygame/mygame.debug ./mygame/mygame.debug Add the following to the Code::Blocks project in the template files: -Wl,-rpath=\\$$$ORIGIN To make the resource files load from any place add this right before app->Start() in main.cpp of the template files: #ifdef __linux__ FileSystem::SetDir(FileSystem::ExtractDir(argv[0])); #else HMODULE hModule = GetModuleHandle(NULL); if (hModule != NULL) { char exePth[MAX_PATH]; GetModuleFileName(hModule, exePth, MAX_PATH); FileSystem::SetDir(FileSystem::ExtractDir(exePth)); } #endif This is based on this discussion: http://www.leadwerks.com/werkspace/topic/10628-shared-lib-libsteam-apiso-loading-question/
  3. Try to update your project with the in editor tool project manager. It should add the correct libsteam_api.so file. I had the same problem.
  4. Hello On top of my doc list is documentation in the header files. Most IDE:s (including Visual C++ Express, Code::Blocks and Xcode) can contextualy display doc strings of methods and classes being used (for example when you do code completion). So, by using for example doxygen formated comments in the code that explains a little about a method would increase the coding speed and make less bug reports. We will get less bug reports on missing doc because Josh could kindly write "not officially supported" for a method or class but also add some doc about it anyway ... to be very kind. This of course takes less time and could be pushed in the future.s However, second on my list is to update the command reference with appending all not official method in their respective classes/struct and the text "not officially supported". Because ... if you have a header file you will surely look in it and wonder ... why is this method not in the doc? Head over to the bug forum etc. etc. This is an ok solution for now and can not take up to much time of Josh.
  5. Ok, I load a texture: mouse = Leadwerks::Texture::Load("Resources/Mousepointer/mouse.tex"); It is a png image that i have made a texture with that has DXT5 compression (the rest is Leadwerks default). I then use it: context->SetBlendMode(Leadwerks::Blend::Alpha); context->SetColor(1.0, 1.0, 1.0, 0.8); context->DrawImage(mouse, 300, 300, 16, 16); context->SetBlendMode(Leadwerks::Blend::Solid); Questions: Why does the image color change to what ever color I set with SetColor? Why does the image not keep the color it had in its orignal png file? I do not say it is wrong I only wonder why. Can I use DrawImage and keep all the colors in my image. If so are there any trade-offs? Where can I read more?
  6. I have updated the other thread ... this thread is dead
  7. Hello MoustafaChamli Ok so you must pick the top of the tree in the Project -> Build options -> Linker settings tree so you target both debug and release (it has the project name ... in my case branch). You must add the flags to "Other linker options" ... see the red markings I made in the image. Be sure to recompile the whole project!
  8. Extending resource file path fix to windows (it had the same problem) #ifdef __linux__ FileSystem::SetDir(FileSystem::ExtractDir(argv[0])); #else HMODULE hModule = GetModuleHandle(NULL); if (hModule != NULL) { char exePth[MAX_PATH]; GetModuleFileName(hModule, exePth, MAX_PATH); FileSystem::SetDir(FileSystem::ExtractDir(exePth)); } #endif
  9. Now everythion works as expected: ~/src/git/leadwerks/branch> ./branch.debug ~/src/git/leadwerks/test> ../branch/branch.debug ~> ./src/git/leadwerks/branch/branch.debug All paths starts the game with loaded libsteam_api.so and all resources (textures, shaders etc.) with no errors. I added this to my Source/main.cpp: @@ -93,6 +93,9 @@ int main(int argc,const char *argv[]) } #endif App* app = new App; +#ifdef __linux__ + FileSystem::SetDir(FileSystem::ExtractDir(argv[0])); +#endif if (app->Start()) { while (app->Loop()) {} The code added is the ifdef __linux__ stuff ... to be precise. Thank you again Guppy. Awesome teamwork =)
  10. Hat off for mr Guppy ... thanks =) I can confirm that $ORIGIN works. No problems loading libsteam_api.so using any path (like ./src/git/leadwerks/branch/branch.debug or ./branch/branch.debug) However another thing that now show up is this : ./branch/branch.debug Initializing OpenGL4 graphics driver... OpenGL version 431 GLSL version 430 Device: AMD Radeon HD 5700 Series Error: Failed to load texture "Materials/Common/bfn.tex" Error: Required texture "Materials/Common/bfn.tex" is missing. Loading map "/home/codeape/src/git/leadwerks/Maps/start.map"... [s_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. [s_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. Error: Failed to read file "/home/codeape/src/git/leadwerks/Maps/start.map". Error: Failed to load shader "./Shaders/Misc/occlusionquery.shader". So the paths to the game resources are not bullet prof. Hopefully this should easily be fixed with some path magic I have used before. However, I need to figure out where to plug it in though =) Well I will post an update about that later on this week.
  11. Thanks again guppy. Well I did that and this works: ./myGame This does not: ./src/git/leadwerks/branch/branch.debug ./src/git/leadwerks/branch/branch.debug: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory I hope you see what I am doing ... being the devils advocate ... No one wants to end up with this on a released game.
  12. Thank you guppy. I have still some thoughts though. -Wl,-rpath= is a good option while you develop. However, -rpath will Add a directory to the runtime library search path. So if you compiled it in lets say : /home/myaccount/src/myLeadwerksgame it would add exactly that path. Am I wrong here? So if you distribute this to someone and that person puts the game in home/someone/games/myLeadwerksgame the game would still look for libsteam_api.so in /home/myaccount/src/myLeadwerksgame which will not exist on the other persons machine. Right?
  13. Ok, I have experience with Linux development since before. Before I can run my Leadwerks C++ game from the command line I need to set LD_LIBRARY_PATH or add the the path to libstem_api.so in /etc/ld.so.conf.d/ or simply copy or link the lib to /usr/lib etc etc. or simply run the game from Code::Blocks. So my questions: How does this work if a game is deployed on steam. Handles steam the loading path setting to libstem_api.so? If I want to sell my game outside steam can I get rid of the libstem_api.so dependency or do I need to set the path to libstem_api.so in some bootstrap script (one of several ideas)? Thank you for all info I can get
  14. In the end I had to use this line: <Add library="../../libsteam_api.so" /> I also had to update the project with the project manager to get the libsteam_api.so file in my project dir.
  15. Ok so I needed to switch <Add library="$(LeadwerksPath)/libsteam_api.so" /> to <Add library="$(LeadwerksPath)/Library/Linux/libsteam_api.so" /> There are 2 libsteam_api.so file /home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/libsteam_api.so /home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/libsteam_api.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=06389ecbedfdbebff5bc4427d033a35bd884c47b, not stripped
  16. Thanks guppy I am one step closer. Now I got this: -------------- Build: Debug in branch (compiler: GNU GCC Compiler)--------------- g++ -o ../../branch.debug ../../Source/App.o ../../Source/game/BranchLoop.o ../../Source/game/Player.o ../../Source/game/ui/UiWindow.o ../../Source/main.o ""/home/codeape/.steam/steam/SteamApps/common/Leadwerks"/Library/Linux/Debug/Leadwerks.a" -lopenal -lGL -lGLU ""/home/codeape/.steam/steam/SteamApps/common/Leadwerks"/Library/Linux/libluajit.a" ""/home/codeape/.steam/steam/SteamApps/common/Leadwerks"/libsteam_api.so" -lX11 -lpthread /home/codeape/.steam/steam/SteamApps/common/Leadwerks/libsteam_api.so: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status Process terminated with status 1 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) So I did: file /home/codeape/.steam/steam/SteamApps/common/Leadwerks/libsteam_api.so /home/codeape/.steam/steam/SteamApps/common/Leadwerks/libsteam_api.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=6525ee4c7bef65b09a487238dc15bfb5329158fc, not stripped uname -a Linux silver-linux 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Hmmm I am stuck.
  17. HelloI had a old Leadwerks 3.2 Standard edition installed (with the old updater). I removed the old one and installed Leadwerks with standard edition DLC from steam and updated the .cbp to look like this: When I try to build my game I in Code::Blocks I get this: /Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::Initialize()':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|68|undefined reference to `SteamAPI_Init'| Here is the full log. ||=== Build: Debug in branch (compiler: GNU GCC Compiler) ===|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h||In constructor ‘CustomControllerConvexRayFilter::CustomControllerConvexRayFilter(const NewtonBody*)’:|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h|66|warning: converting to non-pointer type ‘long long int’ from NULL [-Wconversion-null]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h||In constructor ‘CustomControllerConvexRayFilter::CustomControllerConvexRayFilter(const NewtonBody*)’:|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h|66|warning: converting to non-pointer type ‘long long int’ from NULL [-Wconversion-null]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h||In constructor ‘CustomControllerConvexRayFilter::CustomControllerConvexRayFilter(const NewtonBody*)’:|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h|66|warning: converting to non-pointer type ‘long long int’ from NULL [-Wconversion-null]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h||In constructor ‘CustomControllerConvexRayFilter::CustomControllerConvexRayFilter(const NewtonBody*)’:|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h|66|warning: converting to non-pointer type ‘long long int’ from NULL [-Wconversion-null]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Directory.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Stream.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|2|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h|3|warning: ignoring #pragma warning [-Wunknown-pragmas]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h||In constructor ‘CustomControllerConvexRayFilter::CustomControllerConvexRayFilter(const NewtonBody*)’:|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Include/Libraries/NewtonDynamics/packages/dCustomJoints/CustomControllerManager.h|66|warning: converting to non-pointer type ‘long long int’ from NULL [-Wconversion-null]|/home/codeape/src/git/leadwerks/branch/Source/main.cpp||In function ‘int main(int, const char**)’:|/home/codeape/src/git/leadwerks/branch/Source/main.cpp|58|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(loslib.o)||In function `os_tmpname':|/home/josh/Leadwerks/Engine/Source/Libraries/lua-5.1.4/loslib.c|60|warning: the use of `tmpnam' is dangerous, better use `mkstemp'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::Initialize()':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|68|undefined reference to `SteamAPI_Init'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|72|undefined reference to `SteamClient'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|73|undefined reference to `SteamUser'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|75|undefined reference to `SteamUtils'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|76|undefined reference to `SteamApps'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|77|undefined reference to `SteamFriends'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|78|undefined reference to `SteamUserStats'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|79|undefined reference to `SteamScreenshots'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|80|undefined reference to `SteamRemoteStorage'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|81|undefined reference to `SteamController'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::Shutdown()':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|407|undefined reference to `SteamAPI_Shutdown'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::PublishFile(std::string, std::string, std::string, std::string const&, std::vector >&, int, int (*)(float), int, int)':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|582|undefined reference to `SteamAPI_RunCallbacks'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|597|undefined reference to `SteamAPI_RunCallbacks'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::InitializeController()':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|717|undefined reference to `SteamController'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::UpdateController()':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|729|undefined reference to `SteamController'|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|732|undefined reference to `SteamController'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::TriggerHapticPulse(int, int, int)':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|791|undefined reference to `SteamController'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetUserPublishedWorkshopFiles(std::vector >&, EWorkshopEnumerationType, unsigned int, unsigned int, std::vector >, std::vector >)':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|965|undefined reference to `SteamAPI_RunCallbacks'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetAllWorkshopPackages(std::vector >&, EWorkshopEnumerationType, unsigned int, unsigned int, std::vector >, std::vector >)':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1051|undefined reference to `SteamAPI_RunCallbacks'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetUserWorkshopFiles(unsigned int)':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1094|undefined reference to `SteamAPI_RunCallbacks'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetSubscribedWorkshopPackages(std::vector >&, unsigned int)':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1126|undefined reference to `SteamAPI_RunCallbacks'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `Leadwerks::Steamworks::GetFileInfo(unsigned long long, RemoteStorageGetPublishedFileDetailsResult_t&)':|/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1165|undefined reference to `SteamAPI_RunCallbacks'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o):/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp|1217|more undefined references to `SteamAPI_RunCallbacks' follow|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageFileShareResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStoragePublishFileResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateUserPublishedFilesResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateWorkshopFilesResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateUserSubscribedFilesResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageGetPublishedFileDetailsResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageDownloadUGCResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageDeletePublishedFileResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageUpdatePublishedFileResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageUnsubscribePublishedFileResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageSubscribePublishedFileResult_t*, bool))':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|193|undefined reference to `SteamAPI_UnregisterCallResult'|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|200|undefined reference to `SteamAPI_RegisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|/home/codeape/.steam/steam/SteamApps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o)||In function `CCallResult::Cancel()':|/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h|212|undefined reference to `SteamAPI_UnregisterCallResult'|||More errors follow but not being shown.|||Edit the max errors limit in compiler options...|||=== Build failed: 50 error(s), 47 warning(s) (0 minute(s), 12 second(s)) ===|
  18. Awesome! Thanks JKnife.
  19. Sorry for late answer. Thank you macklebee. That fixed it.
  20. bool App::Loop() { //Close the window to end the program if (window->Closed()) return false; //Press escape to end freelook mode if (window->KeyHit(Key::Escape)) { window->ShowMouse(); return false; } context->SetColor(1,0,0); context->DrawLine(0,0,200,200); context->SetColor(0,1,0); context->DrawRect(0,0,100,100); Leadwerks::Time::Update(); world->Update(); world->Render(); context->Sync(false); return true; } When I run this code (the default code) I only see the default map but no 2D Line or Rectangle: I have also tried adding Clear() from the Command reference examples (could not find any doc on Clear though, is it OpenGL context clear?): context->SetColor(0,0,0); context->Clear(); context->SetColor(1,0,0); context->DrawLine(0,0,200,200); context->SetColor(0,1,0); context->DrawRect(0,0,100,100); I run Ubuntu 14:04: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty
  21. Well check this video: Leadwerks Animation Pipeline Improvements http://www.leadwerks.com/werkspace/blog/1/entry-1256-animation-pipeline-improvements/ It is probably what you want.
  22. There is no information about the character controller in the Command reference.
  23. I am running Kubuntu (well i installed Ubuntu and added the Kubuntu packages on top of that) ... KDE together with Leadwerks works well for me .
×
×
  • Create New...