loserboy
March 3rd, 2011, 10:28 PM
following this tutorial here http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html.
I'm getting stuck converting a glade file to .c at this part in the tutorial
/*
First run tutorial.glade through gtk-builder-convert with this command:
gtk-builder-convert tutorial.glade tutorial.xml
Then save this file as main.c and compile it using this command
(those are backticks, not single quotes):
gcc -Wall -g -o tutorial main.c `pkg-config --cflags --libs gtk+-2.0` -export-dynamic
Then execute it using:
./tutorial
*/
i converted the glade to xml, but then running the second command throws this error
$ gcc -Wall -g -o tutorial main.c `pkg-config --cflags --libs gtk+-2.0` -export-dynamic
gcc: main.c: No such file or directory
i can only assume it's because that command doesn't include saving the xml as main.c, so i did that by copying and renaming the file but im sure thats not right and it didn't work.
so yea what am i missing?
edit to add:
also having a problem when trying to run it through python
$ ./tutorial.py
File "./tutorial.py", line 14
<?xml version="1.0"?>
^
SyntaxError: invalid syntax
I'm getting stuck converting a glade file to .c at this part in the tutorial
/*
First run tutorial.glade through gtk-builder-convert with this command:
gtk-builder-convert tutorial.glade tutorial.xml
Then save this file as main.c and compile it using this command
(those are backticks, not single quotes):
gcc -Wall -g -o tutorial main.c `pkg-config --cflags --libs gtk+-2.0` -export-dynamic
Then execute it using:
./tutorial
*/
i converted the glade to xml, but then running the second command throws this error
$ gcc -Wall -g -o tutorial main.c `pkg-config --cflags --libs gtk+-2.0` -export-dynamic
gcc: main.c: No such file or directory
i can only assume it's because that command doesn't include saving the xml as main.c, so i did that by copying and renaming the file but im sure thats not right and it didn't work.
so yea what am i missing?
edit to add:
also having a problem when trying to run it through python
$ ./tutorial.py
File "./tutorial.py", line 14
<?xml version="1.0"?>
^
SyntaxError: invalid syntax