Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Run the compiler externally

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 12th May 2014 14:53 Edited at: 12th May 2014 15:03
Hi

I would like to know if there is a way to run the compiler (with a file.agc for example) and compile the file, but not with the official IDE.

For exemple, if I create a New IDE, can I run the compiler to run the example I have made with my IDE ?

I have found that :


SO in purebasic, I use :


but, when I try to compile, I have the error (the tow lines) :


Any idea ?

Thank you

http://www.dracaena-studio.com
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th May 2014 15:06 Edited at: 12th May 2014 15:10
hi, see my thread notepad++ as ide at Menu Execute...
$(FULL_CURRENT_PATH) is the main.agc without "
http://forum.thegamecreators.com/?m=forum_view&t=210971&b=41

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 12th May 2014 15:31
Thanks for your answer

When I try to compile with :
"agkcompiler -run $(G:\dev\games\GameCreator\_branch\compiler\AGk\main.agc)"

I have the message :
"Compiler can not write to project folder. Compiler requires administrator privileges"

(I'm on an administrator session, of crouse ).

When I use :
"agkcompiler -run G:\dev\games\GameCreator\_branch\compiler\AGk\main.agc"

It doesn't works completely, I don't have the sourcecode.txt, in the media menu, and some other files.

http://www.dracaena-studio.com
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th May 2014 16:42 Edited at: 12th May 2014 22:58
not $() , this was notepad++ syntax.
"Compiler requires administrator privileges" comes also
if the compiler do not understand the path parameter.
i believe the sourcecode.txt is a temp file, the compiler create
at compile.
i start the compiler from a user session, not as admin.
u get compiler message or output from it?

"D:\The Game Creators\AGK108.21\IDE\Compiler\AGKCompiler.exe" -run G:\dev\games\GameCreator\_branch\compiler\AGk\main.agc

maybe u need a cd to the project path first.
the normal compiler call from agk ide is just
"D:\The Game Creators\AGK108.21\IDE\Compiler\AGKCompiler.exe" -run main.agc

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 12th May 2014 18:32 Edited at: 12th May 2014 18:33
Hi

Thank you for your answer.

I have found how to run the compiler in purebasic :



http://www.dracaena-studio.com
IronGiant
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 27th Feb 2012
Location: the great state of madness
Posted: 12th May 2014 19:00
that is cool info Markus and Blender,

I found out that the IDE I used for Javascript, RJ TextEd also allows the adding of other programming languages,

But now I might scan the Purebasic forums for an IDE editor and see what I can do with one.

Just wish the new AppGameKit IDE was out, damn I want code folding more than Miley Cyrus wants attention.

It's Bird! , It's Plane!, No its a rocket powered Squirrel holding some acorns and a smile!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th May 2014 23:00 Edited at: 12th May 2014 23:02
@IronGiant
see my thread with notepad++ as ide, it have code folding
and function list. all u need is there.
http://forum.thegamecreators.com/?m=forum_view&t=210971&b=41

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670

Login to post a reply

Server time is: 2024-04-28 07:08:18
Your offset time is: 2024-04-28 07:08:18