Code Monkey home page Code Monkey logo

lgx2userspace's People

Contributors

baoulettes avatar buymymojo avatar chrisajs avatar larevehkaoja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lgx2userspace's Issues

Device is already producing framedata

I actually already know how to get around this, but I'm just wondering if there are any plans in the future to make it so that we don't have to unplug and replug our capture card?

Video Pass-through & Video format.

Hello.
So first let tell device and configuration:
GC550 LGX
Ubuntu 20.04
Gamecube with Prism hdmi adapter that goes in Digital out.

So for video pass-through it just do not work, I did setup a Nintendo Gamecube with HDMI out that work fine direction on monitor it work perfectly.
If I try to use video pass-through it just give no signal is it something know ? (I wanted it to do fast debuging without having to plug unplug hdmi from one monitor LGX.)


Now about the hard part of video format and frame size.
So far it work "good" I mean by default your source accept only 1920x1080 yet LGX do support just anything (on windows I remember it switch resolution itself to adapt what was in port "IN" is there) anything like that possible to do ?

Note:
I tweaked sources, no idea if you can see the fork I made ( I have no idea if these are public or not ) but I made all the texts and frame size as variable for testing purpose to tweak Frame Height and Width. and doing it to adapt to the formatI ahve in port "IN" work fine but what a pain to plug off and reload the script just for that (even more when you know Gamecube suck and send one different format for Boot, in game 50hz and another one for 60hz. (Pal console what a pain.)
So here I have a tiny request no idea how it would work I have no idea how SDL work but is it possible to create menu or even second window to change on the fly the frame size (not Window size but your size in SDL_CreateTexture(), SdlFrameOutput::videoFrameAvailable() and the one used in V4LFrame) ?

I am trying to learn how to do it myself but meh my brain melt a bit by trying lol

LGX (GC550) isn't happy when restarting application after initial bootstrap

Might be worth attempting to detect whether device is bootstrapped before bootstrapping?

Strategy could involve attempting a read with a rather low timeout; if the operation times out, we need to bootstrap, otherwise we're good to go?

The lowtech solution is to close the application and unplug and plug in the USB cable and restart the application.

Currently the audio comes through ok, but the video frames don't seem to update (the device is sending the same frame over and over or no start/end frame identifiers? Not investigated...)

Cmake error when compiling on Arch

  1. I have installed all dependencies
  2. I have been able to compile this project before

Cmake throws me an error when "Building CXX object src/gtk/CMakeFiles/lgx2userspace-gtk.dir/src/lgxsession.cpp.o (at 96%)".

error

[BUG] GC551 Issue with resolutions other than full HD

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Connect another device
  2. Set video output to 720p
  3. See garbage image

Screenshots

Desktop (please complete the following information):

  • OS: Ubuntu 22.04

Details system information (Linux)

Bus 002 Device 004: ID 07ca:0551 AVerMedia Technologies, Inc. GC551       
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x07ca AVerMedia Technologies, Inc.
  idProduct          0x0551 
  bcdDevice            2.07
  iManufacturer           1 AVerMedia
  iProduct                2 GC551       
  iSerial                 3 202498700414
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0060
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              400mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           6
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      HIRD Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   3
      Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat           0 micro seconds
    bU2DevExitLat           0 micro seconds
Device Status:     0x0000
  (Bus Powered)

Linux 6.5.0-1022-oem #23-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 25 13:29:45 UTC 2024

HDMI pass-thru doesn't work if lgx2userspace is not started

Since I used lgx2userspace, HDMI pass-thru only works if I start lgx2userspace once. I can even close it again, it still works.
That might be an issue of not de-initialising (#18), just a guess, tho^^
I still didn't try Windows again...

  1. Unplug LGX2 USB cable (For me, the unplugged time was always over night)
  2. Plug LGX2 USB cable
  3. Don't start lgx2userspace
  4. Check if pass-thru works
  5. Start lgx2userspace
  6. Pass-thru should work now

Flickering screen when using LGX GC550

I have followed README's installation instructions but there seems to be problems when capturing LGX GC550. Sound is working (I accidentally deleted it from video so it can't be heard) but picture is flickering. This happens with both CLI and GTK versions of lgx2userspace. Any ideas what I may have missed or what is wrong?

About my Linux distribution

  • Vanilla Arch
  • Qtile window manager with Xorg
untitled.mp4

Build for Arch

Arch user here. Is there any way that I could build this for my distro? Here's what happens when I attempt to make it:
`
[ 6%] Building CXX object CMakeFiles/lgx2userspace.dir/src/main.cpp.o
[ 13%] Building CXX object CMakeFiles/lgx2userspace.dir/src/lgxdevice.cpp.o
[ 20%] Building CXX object CMakeFiles/lgx2userspace.dir/src/commanddata_lgx2.cpp.o
[ 26%] Building CXX object CMakeFiles/lgx2userspace.dir/src/commanddata_lgx.cpp.o
[ 33%] Building CXX object CMakeFiles/lgx2userspace.dir/src/UsbStream.cpp.o
/home/wayne/lgx2userspace/src/UsbStream.cpp: In member function ‘virtual void libusb::UsbStream::streamSetupCommands()’:
/home/wayne/lgx2userspace/src/UsbStream.cpp:69:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
69 | if (actualLength != commandLength) {
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
[ 40%] Building CXX object CMakeFiles/lgx2userspace.dir/src/SdlFrameOutput.cpp.o
[ 46%] Building CXX object CMakeFiles/lgx2userspace.dir/src/FrameBuilder.cpp.o
[ 53%] Building CXX object CMakeFiles/lgx2userspace.dir/src/V4LFrameOutput.cpp.o
[ 60%] Building CXX object CMakeFiles/lgx2userspace.dir/src/PulseAudioOutput.cpp.o
[ 66%] Building CXX object CMakeFiles/lgx2userspace.dir/src/NOOPLogger.cpp.o
/home/wayne/lgx2userspace/src/NOOPLogger.cpp: In member function ‘virtual void NOOPLogger::logTimeStart(const std::string&)’:
/home/wayne/lgx2userspace/src/NOOPLogger.cpp:3:50: warning: unused parameter ‘name’ [-Wunused-parameter]
3 | void NOOPLogger::logTimeStart(const std::string &name) {}
| ~~~~~~~~~~~~~~~~~~~^~~~
/home/wayne/lgx2userspace/src/NOOPLogger.cpp: In member function ‘virtual void NOOPLogger::logTimeEnd(const std::string&, const std::string&)’:
/home/wayne/lgx2userspace/src/NOOPLogger.cpp:5:48: warning: unused parameter ‘name’ [-Wunused-parameter]
5 | void NOOPLogger::logTimeEnd(const std::string &name, const std::string &message) {}
| ~~~~~~~~~~~~~~~~~~~^~~~
/home/wayne/lgx2userspace/src/NOOPLogger.cpp:5:73: warning: unused parameter ‘message’ [-Wunused-parameter]
5 | void NOOPLogger::logTimeEnd(const std::string &name, const std::string &message) {}
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
[ 73%] Building CXX object CMakeFiles/lgx2userspace.dir/src/ChronoLogger.cpp.o
[ 80%] Building CXX object CMakeFiles/lgx2userspace.dir/src/OptionParser.cpp.o
[ 86%] Linking CXX executable lgx2userspace
/usr/bin/ld: cannot find -lSDL2_gfx: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/lgx2userspace.dir/build.make:273: lgx2userspace] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/lgx2userspace.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

`

New feature No-Video mode

Hi,
I used the LGX2 since 2018 on Windows and started to use Linux mainly and for convenience I want the LGX2 to work on Linux. (And found this, thank you!)
A lot of times I use the capture just for viewing or even just for the audio. The normal output is pretty fine for this, but my notebook has performance issues regarding the LGX2.
Glitchy frames and cracked sound. Watch the video.

2022-08-08.02-41-04.mp4

On the CPU this tool adds like 5% load.
On the GPU this tool adds like 25% load.
And my CPU temperature wents up to 90°C. (Even with cooling down to 80°C the performance is not better.)
I compared the loads with firefox while playing youtube videos.
On the CPU firefox adds like 10% load.
On the GPU firefox adds like 45% load.
And thats whats confusing me. The CPU temperature doesn't goes above 70°C. (GPU is always max'd at 60°C.)

So I fear, that there are some optimization potential here.
Also weird, that my CPU (and GPU) is the AMD Ryzen 7 5875U. So it should have enough power for this task.

Coming to the point now :D
So I would appreciate a mode, where the video is disabled and only audio is handled. Or some cheap downscaling option which is easier to do than displaying the raw frames.

I also tried @Baoulettes fork, which has options to downscale the window and frames, but that didn't help (much?). (Also mentioning them, since issues are disabled on that fork.)

Thank you for the work on this!

Audio slowly desyncs over time

First of all, this program is amazing! Thanks for that!

I run this program with my GC550 to capture graphics from my Nintendo Switch, and I often leave the program on for a long time. When I come back to the computer again (maybe after an hour), the audio de-synchronizes from the video. It is late for about a second.

Mac OS X Support?

Mac OS X support seems perfectly viable with the macosx branch demonstrating how the application can build and run output both video and audio to the screen and speakers respectively.

Virtual webcam support needs to be built in if possible though, but otherwise would work great as a way of using a Mac as a display output for a HDMI device.

Currently only tested on a Mac Mini 2018.

Cross-compile for Windows

Mainly as a flex but also because apparently the devices (LGX and LGX2) aren't supported on Windows 11? (Not verified)

MingW + CMake guide

libusb windows libraries

SDL2 libraries

SDL2 linker options:

lmingw32 -lSDL2main -lSDL2 -mwindows -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -static-libgcc -lsetupapi

Guard around Linux specific code with #ifdef __MINGW32__/#endif

Use following directives to make CMake statically link by default:

set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_EXE_LINKER_FLAGS "-static")

Prevent stack overflow exceptions on startup by modifying FrameBuilder to not attempt to statically allocate 1920x1080x4 bytes for the video frame buffer, use dynamic allocation instead (boo).

Document the process of using something like Zadig to create a 'driver' on Windows that can be used to claim the device so that libusb can be used to send and receive data from the device.

[FEATURE] Turn LGX off?

Is your feature request related to a problem? Please describe.
Right now, every time I close lgx2userspace and re-launch it again, I'll have to unplug and replug my GC550 in order for it to be able to be bootstrapped. The problem with replugging is that physical damage can build up easily over time.

The light of the LGX turn from red to blue when I launch lgx2userspace, but never from blue back to red.

Describe the solution you'd like
Some way to unbootstrap the LGX, turning its light from blue back to red.

Describe alternatives you've considered
Cut the power to LGX, but this can only be done physically or you have to use an extra USB hub that supports per-port power switching.

Can we bypass conan?

So my problem is the requirement of enforcing conan as a build requirement. May I ask why it's as requirement on Linux? I can understand for other platforms, but what does conan as a build requirement is supposed to bring to the table for the linux build? Especially if dependencies are met.

I guess what I'm trying to ask, is there a method to bypass the need for conan after the dependencies have been met?

[BUG]

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. install for arch from aur or follow cmake
  2. on cmake it has error that libsdl.org does not exists

Expected behaviour
building successfully

Screenshots
xorg/system: System requirements: already installed

======== Installing packages ========
egl/system: Already installed! (1 of 34)
expat/2.5.0: Already installed! (2 of 34)
glad/0.1.36: Already installed! (3 of 34)
libcap/2.66: Already installed! (4 of 34)
libffi/3.4.3: Already installed! (5 of 34)
libiconv/1.17: Already installed! (6 of 34)
libudev/system: Already installed! (7 of 34)
m4/1.4.19: Already installed! (8 of 34)
m4/1.4.19: Appending PATH environment variable: /home/chiakuma/.conan2/p/m4328c8d04ee36f/p/bin
ogg/1.3.5: Already installed! (9 of 34)
opengl/system: Already installed! (10 of 34)
openssl/1.1.1t: Already installed! (11 of 34)
opus/1.3.1: Already installed! (12 of 34)
xkeyboard-config/system: Already installed! (13 of 34)
xorg/system: Already installed! (14 of 34)
xz_utils/5.4.0: Already installed! (15 of 34)
zlib/1.2.13: Already installed! (16 of 34)
libmp3lame/3.100: Already installed! (17 of 34)
pkgconf/1.9.3: Already installed! (18 of 34)
pkgconf/1.9.3: Appending PATH env var: /home/chiakuma/.conan2/p/pkgcod729a37c3fef7/p/bin
pkgconf/1.9.3: Setting PKG_CONFIG env var: /home/chiakuma/.conan2/p/pkgcod729a37c3fef7/p/bin/pkgconf
pkgconf/1.9.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
pkgconf/1.9.3: Appending AUTOMAKE_CONAN_INCLUDES env var: /home/chiakuma/.conan2/p/pkgcod729a37c3fef7/p/bin/aclocal
mpg123/1.31.2: Already installed! (19 of 34)
mpg123/1.31.2: Appending PATH environment variable: /home/chiakuma/.conan2/p/mpg12bdf5d43fe1eb0/p/bin
libalsa/1.2.7.2: Already installed! (20 of 34)
autoconf/2.71: Already installed! (21 of 34)
autoconf/2.71: Defining AC_MACRODIR environment variable: /home/chiakuma/.conan2/p/autoc84ad36d1c05b9/p/res/autoconf
autoconf/2.71: Defining autom4te_perllibdir environment variable: /home/chiakuma/.conan2/p/autoc84ad36d1c05b9/p/res/autoconf
autoconf/2.71: Defining AUTOCONF environment variable: /home/chiakuma/.conan2/p/autoc84ad36d1c05b9/p/bin/autoconf
autoconf/2.71: Defining AUTORECONF environment variable: /home/chiakuma/.conan2/p/autoc84ad36d1c05b9/p/bin/autoreconf
autoconf/2.71: Defining AUTOHEADER environment variable: /home/chiakuma/.conan2/p/autoc84ad36d1c05b9/p/bin/autoheader
autoconf/2.71: Defining AUTOM4TE environment variable: /home/chiakuma/.conan2/p/autoc84ad36d1c05b9/p/bin/autom4te
flac/1.4.2: Already installed! (22 of 34)
flac/1.4.2: Appending PATH environment variable: /home/chiakuma/.conan2/p/flac51168071d30f7/p/bin
glfw/3.3.8: Already installed! (23 of 34)
libunwind/1.6.2: Already installed! (24 of 34)
libusb/1.0.26: Already installed! (25 of 34)
vorbis/1.3.7: Already installed! (26 of 34)
libxml2/2.10.3: Already installed! (27 of 34)
libxml2/2.10.3: Appending PATH environment variable: /home/chiakuma/.conan2/p/libxma49011520f16a/p/bin
automake/1.16.5: Already installed! (28 of 34)
libsndfile/1.2.0: Already installed! (29 of 34)
wayland/1.21.0: Already installed! (30 of 34)
libtool/2.4.7: Already installed! (31 of 34)
libtool/2.4.7: Appending PATH env: bin_path/home/chiakuma/.conan2/p/libto9b444149dd982/p/bin
libtool/2.4.7: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
libtool/2.4.7: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.
xkbcommon/1.4.1: Already installed! (32 of 34)
xkbcommon/1.4.1: Appending PATH environment variable: /home/chiakuma/.conan2/p/xkbcocbb12125510f9/p/bin
pulseaudio/14.2: Already installed! (33 of 34)
sdl/2.26.1: WARN: Trying to remove corrupted source folder
sdl/2.26.1: WARN: This can take a while for big packages
sdl/2.26.1: Calling source() in /home/chiakuma/.conan2/p/sdl7f7c8fb6bac8c/s/src
ERROR: Error downloading file https://www.libsdl.org/release/SDL2-2.26.1.tar.gz: 'HTTPSConnectionPool(host='www.libsdl.org', port=443): Max retries exceeded with url: /release/SDL2-2.26.1.tar.gz (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7feb928e45e0>, 'Connection to www.libsdl.org timed out. (connect timeout=30)'))'
Waiting 5 seconds to retry...
ERROR: Error downloading file https://www.libsdl.org/release/SDL2-2.26.1.tar.gz: 'HTTPSConnectionPool(host='www.libsdl.org', port=443): Max retries exceeded with url: /release/SDL2-2.26.1.tar.gz (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7feb928e4d30>, 'Connection to www.libsdl.org timed out. (connect timeout=30)'))'
Waiting 5 seconds to retry...
ERROR: sdl/2.26.1: Error in source() method, line 194
get(self, **self.conan_data["sources"][self.version], strip_root=True,
ConanException: Error downloading file https://www.libsdl.org/release/SDL2-2.26.1.tar.gz: 'HTTPSConnectionPool(host='www.libsdl.org', port=443): Max retries exceeded with url: /release/SDL2-2.26.1.tar.gz (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7feb928f25b0>, 'Connection to www.libsdl.org timed out. (connect timeout=30)'))'
CMake Error at build/conan.cmake:651 (message):
Conan install failed='1'
Call Stack (most recent call first):
dependencies.cmake:28 (conan_cmake_install)
src/liblgx/liblgx-common/CMakeLists.txt:5 (include)

Desktop (please complete the following information):

  • OS: EndeavorOS (ARCH)

Details system information (Linux)
If possible provide the output of:

Linux 6.2.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 07 Apr 2023 02:10:43 +0000

Unable to compile

Whenever I attempt to use "cmake ..", I get this:

Dangerous LGX (GC550) support will not be compiled into the lgx2userspace executable.
CMake Error at build/conan.cmake:73 (message):
Please specify in command line CMAKE_BUILD_TYPE
(-DCMAKE_BUILD_TYPE=Release)
Call Stack (most recent call first):
build/conan.cmake:444 (_conan_detect_build_type)
dependencies.cmake:26 (conan_cmake_autodetect)
src/liblgx/liblgx-common/CMakeLists.txt:5 (include)

-- Configuring incomplete, errors occurred!

Am I doing something wrong?
I use Arch Linux, so updates may have changed the way I need to use it.

Capture does not always start at 60fps and when it doesn't, audio is garbage

When the capture begins, if the speed at which the initial frame captures are received are 'not correct'?, future frame captures will also not be correct, leading to a degraded video speed of 30 fps, meaning only half the frame data is being processed, resulting in only 50% of audio data being processed.

Current work around involves restarting the application multiple times until 60 fps is achieved.

In a case where severe system stutter occurs, then 60 fps may be lost and a degraded video capture of 30 fps may occur also.

New GTK is glitchy

After building this updated version, I'm having issues with the new GTK version glitching out. Is there something I did wrong?

Sound and Video glitched out

I just updated Arch Linux (yeah I know I probably shouldn't have). Now the audio and video are completely glitched out. Here's what the video looks like.
image

Does the released build support GC550?

TSIA. I'm on Windows 11, which has no native support for the GC550. I can't use the official software at all.

I'm encountering some strange issues trying to use the Windows release out of the box; no audio and after just a couple of minutes the display bugs out. Pictures related.

image

image

If the GC550 isn't supported in the build (per the readme, it's disabled by default, I think?), how do I build it with support for that device from Windows?

Thank you.

Windows building unable to make

Hey,
I tried building on windows using the steps provided in WINDOWS.md (Without any modification to sources files yet)
I was able to do most of it till the "make" every time what ever the directory I tried on it show the error :
make: *** No targets specified and no makefile found. Stop.

Tried on both Windows 10/11 machine
with both terminal and powershell (admin and non admin do no change anything :) )
I do not own Clion to try on it.

No idea what I did wrong there

Here full logs in case it could help :)

CMake Warning:
 Ignoring extra path from command line:

  "C:/Users/Administrator/Documents/GitHub/lgx2userspace/TC-Mingw.cmake"


CMake Warning:
 Ignoring extra path from command line:

  "../TC-Mingw.cmake"


-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
Dangerous LGX (GC550) support will not be compiled into the lgx2userspace executable.
Detected non-linux system
Building liblgx for Windows
-- Conan: Using autogenerated Findlibusb.cmake
-- Library libusb-1.0 found C:/Users/Administrator/.conan/data/libusb/1.0.26/_/_/package/5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b/lib/libusb-1.0.lib
-- Found: C:/Users/Administrator/.conan/data/libusb/1.0.26/_/_/package/5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b/lib/libusb-1.0.lib
-- Conan: Using autogenerated FindSDL2.cmake
-- Library SDL2main found C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2main.lib
-- Found: C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2main.lib
-- Library SDL2 found C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2.lib
-- Found: C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2.lib
-- Library SDL2 found C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2.lib
-- Found: C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2.lib
-- Library SDL2main found C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2main.lib
-- Found: C:/Users/Administrator/.conan/data/sdl/2.0.20/_/_/package/fa88e8551f1d81168eeb9f59d3a183e3a584c5f1/lib/SDL2main.lib
PLATFORM LIBS mingw32;SDL2::SDL2main;SDL2::SDL2;libusb::libusb;-static-libgcc;-mwindows
Building Windows executable
GTK+ frontend only supported on Linux
-- Conan: Detected VS runtime: MD
-- Conan: checking conan executable
-- Conan: Found program C:/Users/Administrator/AppData/Local/Programs/Python/Python310/Scripts/conan.exe
-- Conan: Version found Conan version 1.56.0
-- Conan executing: C:/Users/Administrator/AppData/Local/Programs/Python/Python310/Scripts/conan.exe install . --remote conancenter --build missing --settings arch=x86_64 --settings build_type=Release --settings compiler=Visual Studio --settings compiler.version=17 --settings compiler.runtime=MD --settings compiler.cppstd=14 --settings os=Windows
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=14
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

conanfile.txt: Installing package
Requirements
   libusb/1.0.26 from 'conancenter' - Cache
   sdl/2.0.20 from 'conancenter' - Cache
Packages
   libusb/1.0.26:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
   sdl/2.0.20:fa88e8551f1d81168eeb9f59d3a183e3a584c5f1 - Cache

Installing (downloading, building) binaries...
libusb/1.0.26: Already installed!
sdl/2.0.20: Already installed!
conanfile.txt: Generator txt created conanbuildinfo.txt
conanfile.txt: Generator cmake_find_package created Findlibusb.cmake
conanfile.txt: Generator cmake_find_package created FindSDL2.cmake
conanfile.txt: Aggregating env generators
conanfile.txt: Generated conaninfo.txt
conanfile.txt: Generated graphinfo
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Administrator/Documents/GitHub/lgx2userspace/winbuild
PS C:\Users\Administrator\Documents\GitHub\lgx2userspace\winbuild> make
make: *** No targets specified and no makefile found.  Stop.```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.