General questions regarding the usage of CodeLite
			
		
		
			
				
																			
								Valentine 							 
						CodeLite Curious 			
		Posts:  4Joined:  Sun Sep 14, 2014 7:50 amGenuine User:  YesIDE Question:  c++
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by Valentine  Sun Sep 14, 2014 7:55 am 
			
			
			
			
			Hi,
I wanted to try Codelite for C/C++ but there is a problem which is annoying.
The MinGW which is comes with Codelite doesn't have GTK and it has'nt any terminal or something like that. So when i tried to compile , it gives me :
Code: Select all 
gcc.exe: error: `pkg-config: No such file or directory
gcc.exe: error: gtk+-2.0`: No such file or directory
gcc.exe: error: unrecognized command line option '--cflags'
mingw32-make.exe[1]: *** [Debug/main.c.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
so what can i do for this, any ideas ?
 
		 
				
		
		 
	 
				
		
		
			
				
								eranif 							 
						CodeLite Plugin 			
		Posts:  6376Joined:  Wed Feb 06, 2008 9:29 pmGenuine User:  YesIDE Question:  C++
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by eranif  Sun Sep 14, 2014 12:17 pm 
			
			
			
			
			You can modify the project settings and provide the GTK arguments needed on Windows.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								Valentine 							 
						CodeLite Curious 			
		Posts:  4Joined:  Sun Sep 14, 2014 7:50 amGenuine User:  YesIDE Question:  c++
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by Valentine  Sun Sep 14, 2014 4:08 pm 
			
			
			
			
			@eranif
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
								eranif 							 
						CodeLite Plugin 			
		Posts:  6376Joined:  Wed Feb 06, 2008 9:29 pmGenuine User:  YesIDE Question:  C++
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by eranif  Sun Sep 14, 2014 6:15 pm 
			
			
			
			
			Valentine wrote:  By the way on linux it works just fine .
Yes, this is what I wrote - I only tested it on Linux.
A quick google search yield this document:
http://www.gtk.org/download/win32_tutorial.php  - which seems to include a working pkg-config for Windows
Eran
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								Valentine 							 
						CodeLite Curious 			
		Posts:  4Joined:  Sun Sep 14, 2014 7:50 amGenuine User:  YesIDE Question:  c++
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by Valentine  Mon Sep 15, 2014 7:37 am 
			
			
			
			
			eranif wrote: Valentine wrote:  By the way on linux it works just fine .
Yes, this is what I wrote - I only tested it on Linux.
A quick google search yield this document:
http://www.gtk.org/download/win32_tutorial.php  - which seems to include a working pkg-config for Windows
Eran
I already did that , is that supposed to fix that ? if it is still have a problem which is annoying  
 
		 
				
		
		 
	 
				
		
		
			
				
								eranif 							 
						CodeLite Plugin 			
		Posts:  6376Joined:  Wed Feb 06, 2008 9:29 pmGenuine User:  YesIDE Question:  C++
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by eranif  Mon Sep 15, 2014 10:31 pm 
			
			
			
			
			There seems to be a problem with the way backticks are handled by the Makefile.
So, here is a short tutorial on how to make it work:
 Download the All-In-One GTK3 Bundle  
 Extract the zip file (for this example, I will assume that you have installed it under: C:\src\gtk ) 
 Open codelite and define a GTK3.0/C project 
 Open project settings->common settings->compiler and replace this:
with this line:
Code: Select all 
$(shell pkg-config --cflags gtk+-3.0) 
 Open project settings->common settings->linker and replace this:
with this line:
Code: Select all 
$(shell pkg-config --libs gtk+-3.0) 
 Add GTK bin folder into the path, from the codelite's main menu: settings->environment variablesNOTE : Replcae C:\src\gtk with your installation path 
 Compile and run it   
Eran
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								Valentine 							 
						CodeLite Curious 			
		Posts:  4Joined:  Sun Sep 14, 2014 7:50 amGenuine User:  YesIDE Question:  c++
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by Valentine  Tue Sep 16, 2014 3:45 am 
			
			
			
			
			eranif wrote: There seems to be a problem with the way backticks are handled by the Makefile.
So, here is a short tutorial on how to make it work:
 Download the All-In-One GTK3 Bundle  
 Extract the zip file (for this example, I will assume that you have installed it under: C:\src\gtk ) 
 Open codelite and define a GTK3.0/C project 
 Open project settings->common settings->compiler and replace this:
with this line:
Code: Select all 
$(shell pkg-config --cflags gtk+-3.0) 
 Open project settings->common settings->linker and replace this:
with this line:
Code: Select all 
$(shell pkg-config --libs gtk+-3.0) 
 Add GTK bin folder into the path, from the codelite's main menu: settings->environment variablesNOTE : Replcae C:\src\gtk with your installation path 
 Compile and run it   
Eran
That Worked ! god bless you.