Jump to content

jmf

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by jmf

  1. If there were to be a solution like this that's more "cross platform" or whatever, cmake would be the answer. VSCode can use cmake out of the box via terminal, but much easier with the cmaketools plugin. cmake can generate project files for IDE's: cmake .. -G"Visual Studio 10" cmake .. -G"CodeBlocks - Unix Makefiles" I've personally never used this, so I have no clue how effective it is.
  2. I've found that opening up the file intellisense isn't detecting will usually solve the issue pretty quick as long as the IncludePath is set properly. If you get an issue where the #include says one of it's includes can't be opened, ctrl + click into the #include to open it up, prioritizing intellisense's parsing of that specific file. If you make structural changes of nearly any size, it can confuse the heck out of intellisense and take forever to catch up with the changes, red squiggling everything. sometimes when this happens, I ctrl+shift+p start typing intellisense, and click "restart intellisense for active file", or if you made huge changes, "reset intellisense database". I absolutely hate the way vscode handles intellisense. The important thing to note with vs code is that intellisense is not connected to the linker, unless you use cmake and select the option to configure intellisense with cmake.. So you can see red squiggles when intellisense can't find the file even though the makefile is configured properly. Using cmake doesn't solve the problem though, unfortunately. it's far superior to make for a few reason, but the relevant one is because if you have a designated "build" directory, you can just delete the build directory when intellisense loses it's mind, and save the CmakeLists file to auto generate the cmake files that intellisense uses when configured with cmake. Hopefully that's clear and makes sense.
  3. jmf

    Linux Issues

    Hi, I'm just getting started with Ultra App Kit from steam and I'm having a number of issue on Linux that I didn't notice right away, due to not using certain commands. I've tested and troubleshooted these issue in Manjaro, Ubuntu, and openSuse, with the same results on all three platforms. 1. In the new project dialog the ... ellipse folder picker button does nothing. 2. Application menus don't seem to work, straight copy pasted from the examples on the website(aside from minor changes where environment detection was done for plugin loading). When I click one of the menu items, e.g. "File", the menu appears near the center of the window detached from the menu bar, and clicking a menu item causes the program to hang. GDB doesn't show any output when this happens for a few seconds, before displaying "Warning: MapNotify is taking a long time to be received. This may cause window errors." I've tried breaking on any handled exception but I don't get any output. "(gdb) catch throw" aside from one instance in the "Advance Application Interface" tutorial, where I found that I needed to install "curl" and "zenity", but again failed when accessing the application menu. ctrl+c quitting the app and getting a backtrace, "(gdb) bt" doesn't show anything useful, because it's just related to the WaitEvent() in the while loop. $ gdb -q testapp_d Reading symbols from testapp_d... (gdb) run Starting program: /home/jmf/Documents/Ultra Engine/Projects/testapp/testapp_d [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Detaching after vfork from child process 68533] [Detaching after vfork from child process 68535] [Detaching after vfork from child process 68537] [Detaching after vfork from child process 68539] [Detaching after vfork from child process 68541] [Detaching after vfork from child process 68543] Loading icon "https://raw.githubusercontent.com/Leadwerks/Documentation/master/Assets/Icons/open.svg" [Detaching after vfork from child process 68545] Loading icon "https://raw.githubusercontent.com/Leadwerks/Documentation/master/Assets/Icons/save.svg" [Detaching after vfork from child process 68547] Loading icon "https://raw.githubusercontent.com/Leadwerks/Documentation/master/Assets/Icons/settings.svg" [Detaching after vfork from child process 68549] Loading icon "https://raw.githubusercontent.com/Leadwerks/Documentation/master/Assets/Icons/help.svg" [Detaching after vfork from child process 68551] [Detaching after vfork from child process 68553] [Detaching after vfork from child process 68560] [Detaching after vfork from child process 68562] [Detaching after vfork from child process 68600] Warning: MapNotify is taking a long time to be received. This may cause window errors. ^C # I use ctrl+c, program is hanging. Program received signal SIGINT, Interrupt. 0x00007ffff77a21e4 in __GI___clock_nanosleep (clock_id=<optimized out>, clock_id@entry=0, flags=flags@entry=0, req=0x7fffffffd6d0, rem=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78 78 ../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory. (gdb) bt #0 0x00007ffff77a21e4 in __GI___clock_nanosleep (clock_id=<optimized out>, clock_id@entry=0, flags=flags@entry=0, req=0x7fffffffd6d0, rem=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78 #1 0x00007ffff77a7ef7 in __GI___nanosleep (requested_time=<optimized out>, remaining=<optimized out>) at nanosleep.c:27 #2 0x0000000000433185 in UltraEngine::Sleep (milliseconds=1) at Source/Functions.cpp:1610 #3 0x000000000043bdfd in UltraEngine::EventQueue::Wait () at Source/Classes/GUI/EventQueue.cpp:279 #4 0x000000000043b79f in UltraEngine::WaitEvent () at Source/Classes/GUI/EventQueue.cpp:51 #5 0x0000000000411401 in main (argc=1, argv=0x7fffffffe0c8) at Source/main.cpp:228 (gdb) q 3. the compiler flags in the settings.json file for Linux should be: "makeArgs": ["CONFIGNAME=Debug","PRODUCT_SUFFIX=_d","CONFIGFLAGS=\"-ggdb\""]" 4. The Image Viewer tutorial seems to be missing a plugin, "FreeImage.so", (I can't determine where I'm supposed to be able to find plugins if there is a place), but that's just a guess, assuming it's not just necessary for windows (the dll version is there). The debug info is of no use. $ gdb -q testapp_d Reading symbols from testapp_d... (gdb) run Starting program: ~/Documents/Ultra Engine/Projects/testapp/testapp_d [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Loading plugin "Plugins/FITextureLoader.so" Error: Failed to load library "~/Documents/Ultra Engine/Projects/testapp/Plugins/FITextureLoader.so". Unloading plugin "Plugins/FITextureLoader.so". Failed to load FreeImage plugin. [Inferior 1 (process 69341) exited normally] (gdb) bt No stack. (gdb) All the output shown here is from a fresh & clean install of ubuntu 20.04.4 with all listed prerequisites installed + gdb, libc6 sources (for gdb), curl, and zenity. The output shown here is the same that I was getting on manjaro and opensuse. For this ubuntu test, I generated a new project from the launcher. Any info or guidance I can get would be greatly appreciated. Thank You.
×
×
  • Create New...