Skip to content

ChaChaEatsFruits/C-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

1. wsl-open or opening the saved image from wsl ubuntu with the windows photo app

Run all these commands being at the root

mkdir -p ~/bin
echo '[[ -e ~/bin ]] && export PATH=$PATH:~/bin' >> ~/.bashrc
curl -o ~/bin/wsl-open https://raw.githubusercontent.com/4U6U57/wsl-open/master/wsl-open.sh
source ~/.bashrc

3. gtk-4 installation in ubuntu

sudo apt-get install libgtk-4-dev

gtk-4 installation in Mac OS

brew install gtk4 pkg-config

4. updated gtk-4 main.c file

5. XLaunch is required to run the GUI alongside the windows

Link for the XLaunch[https://sourceforge.net/projects/vcxsrv/]

Compile Command:

gcc main.c helpers.c -o image_editor pkg-config --cflags --libs gtk4 -lm

Run command:

./image_filter

To see the ouput image two ways can be followed

The repo has to be cloned in the Ubuntu

  1. In windows system :
    Go to File Explorer, click on the address bar and then type \\wsl$ and hit Enter
    Click on the Ubuntu-24.04 -> home -> -> Ubuntu-24.04
    Choose the Project Folder and then choose the output image.
  2. In Ubuntu System:
    Install wsl-open using the above procedure and then use the command wsl-open filtered-image.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors