jaPBe for PB 3.91 Beta

Developed or developing a new product in PureBasic? Tell the world about it.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Paul's installed worked perfectly for me. I do have some strange stuff in that compilers dir though!

http://www.k-billing.com/screen1.jpg
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

@Paul,
Thanks. I am tring it now.

After receiving the install from Paul, I can now debug, but I get the LINKER ERROR : < No Message > error. :x
Still getting closer. I will look into this further.
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Karbon wrote:Paul's installed worked perfectly for me.
Oh, good. Do you save you old "destroyed" PB-jaPBe-PureVision-Install-Combo? When yes: Please compare. What is diffrent?
I do have some strange stuff in that compilers dir though!
No.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1290
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

@ RJP Computing

Compile the same code in the PB-IDE. If your code contains API calls that are macros, like ImageList_AddIcon_()

PB-IDE will give you a linker error complaining about the macro while jaPBe will give you LINKER ERROR : < No Message > error.


Maybe GPI must adjust jaPBe to deal with PB's new linker and linker messages to avoid more confusion :)
Image Image
nhokem
User
User
Posts: 60
Joined: Fri Mar 19, 2004 10:30 pm
Contact:

Post by nhokem »

GPI wrote:Thats good news: A good error-message. Can you please report the files in the purebasic\pbcompilers\ - directory?
yep, will do...though it'll have to wait until tomorrow when I get back to work. i still get the "no message" linker error on my pc at home (haven't done the full uninstall/re-install here yet).

Cid
nhokem
User
User
Posts: 60
Joined: Fri Mar 19, 2004 10:30 pm
Contact:

Post by nhokem »

GPI wrote:Thats good news: A good error-message. Can you please report the files in the purebasic\pbcompilers\ - directory?
okay, here's a pic of the dir after I get that POLINK error:

Image

hope this helps...Cid
Cid
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Hm, not really. You can delete the Linker.out, because it is not needed anymore.

Try follow. hold shift and click on "restart compiler" (don't release), the Compiler-Window should appear. Then load your source. Now again hold shift and start compile. My fake-linker should open and show additional messages. Maybe there is something intressting...
nhokem
User
User
Posts: 60
Joined: Fri Mar 19, 2004 10:30 pm
Contact:

Post by nhokem »

okay, here's what's in the fake linker window:

Code: Select all

/OUT:"C:\My | Documents\_pbfiles\test.exe" | /ENTRY:start | Start.o | /SUBSYSTEM:Windows | /LIBPATH:"..\PureLibraries\Windows\Libraries" | PureBasic.obj | SystemBase.lib | CRTDLL.lib | KERNEL32.lib | USER32.lib | GDI32.lib | COMDLG32.lib | ADVAPI32.lib | COMCTL32.lib | 1.lib | 2.lib | 3.obj | 4.lib | 5.obj | 6.lib | 7.lib | 8.lib | 9.lib | 10.lib | 11.lib | 12.lib | 13.lib | 14.lib | 15.lib | 16.lib | ODBC32.LIB | USER32.LIB | KERNEL32.LIB |  | 
Before Link
len:390
/OUT:"C:\My Documents\_pbfiles\test.exe" /ENTRY:start Start.o /SUBSYSTEM:Window
s /LIBPATH:"..\PureLibraries\Windows\Libraries" PureBasic.obj SystemBase.lib CR
TDLL.lib KERNEL32.lib USER32.lib GDI32.lib COMDLG32.lib ADVAPI32.lib COMCTL32.l
ib 1.lib 2.lib 3.obj 4.lib 5.obj 6.lib 7.lib 8.lib 9.lib 10.lib 11.lib 12.lib 1
3.lib 14.lib 15.lib 16.lib ODBC32.LIB USER32.LIB KERNEL32.LIB _jaPBe_0.res

exitcode:1
here's what the compiler screen looks like:

Image

and finally, an actual pic of the error too:

Image
Cid
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

First @fred:

Code: Select all

/OUT:"C:\My | Documents\_pbfiles\test.exe"
The first lines shows all the "programParamter()", seperated by a "|". It seems, that the out-parameter is here splited between "c:\MY" and "Documents". Mybe a bug of programparamter() or a bug in the pbcompiler.

@nhokem:
It seems, that no _japbe_0.rc is created (does xp-Style enable work?)

open the _jaPBe_0.rc (in the pbcompilers-directory) with jaPBe and try to compile this one.
nhokem
User
User
Posts: 60
Joined: Fri Mar 19, 2004 10:30 pm
Contact:

Post by nhokem »

GPI wrote:@nhokem:
It seems, that no _japbe_0.rc is created (does xp-Style enable work?)
enabling xp-skin causes the same error (with and without an icon selected).
GPI wrote:open the _jaPBe_0.rc (in the pbcompilers-directory) with jaPBe and try to compile this one.
when i compile the _jaPBe_0.rc, i get no errors but the _jaPBe_0.res file is not in the pbcompilers directory (should it be there?)
Cid
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

nhokem wrote:when i compile the _jaPBe_0.rc, i get no errors but the _jaPBe_0.res file is not in the pbcompilers directory (should it be there?)
Ok, open the Dos-Box and go to the Purebasic-compiler-directory

type then

"porc _japbe_0.rc"

What happend then?

(Btw: can you post the _japbe_0.rc?)
nhokem
User
User
Posts: 60
Joined: Fri Mar 19, 2004 10:30 pm
Contact:

Post by nhokem »

GPI wrote:type then

"porc _japbe_0.rc"

What happend then?
that worked! it created the necessary _japbe_0.res file (although i did get a "warning: No newline at end of file."). when i tried compiling my app with japbe, there was no errors and my app had the icon!!!

However, i need to manually compile _japbe_0.rc with porc everytime i use an icon or i'll get the same icon everytime (since _japbe_0.rc doesn't seem to compile from japbe, the _japbe_0.res doesn't change until i manually run porc). btw, the _japbe_0.res file doesn't seem to get deleted anymore either (assuming it did before)...
GPI wrote:(Btw: can you post the _japbe_0.rc?)
here's the contents of my current _japbe_0.rc:

Code: Select all

LANGUAGE 0x0, 0x0
1 Icon "C:\\My Documents\\_pbfiles\\dc\\waiting.ico"
for now, to get around this, i've added a tool for Porc to compile _jaPBe_0.rc (once i've corrected the icon path).

thanks for walking me through all this, GPI...hopefully it narrows things down for you...
Cid
GPI
PureBasic Expert
PureBasic Expert
Posts: 1400
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

ok, good (or bad). I don't know, why jaPBe don't start porc correct...

@All with jaPBe-Compile-Problems.

Are any Spaces in the path of Purebasic or in the path of jaPBe?
When yes: Can you copy all the files of Purebasic and of jaPBe in a path without Spaces? Don't forget to set the new compiler-path in the japbe-preferences. Did this solve the problem?

Edit:
@
>although i did get a "warning: No newline at end of file."

Ignore this.

>1 Icon "C:\\My Documents\\_pbfiles\\dc\\waiting.ico"

You must not correct the path (the \\ in \). Why? This is a c-String. A \n will be replaced to chr(13)+chr(10). When you write

>1 Icon "C:\NewIcon.ico"

porc will not find the icon.
Last edited by GPI on Fri Jun 11, 2004 7:05 pm, edited 1 time in total.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

That may very well be why Paul's install works - there are no spaces in his paths.

Virtually every PB install is going to go into c:\Program Files\PureBasic though - so I'm surprised that more people aren't having trouble if that is the cause.. It might be that not many are using 3.91, though..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
nhokem
User
User
Posts: 60
Joined: Fri Mar 19, 2004 10:30 pm
Contact:

Post by nhokem »

GPI wrote:You must not correct the path (the \\ in \). Why? This is a c-String. A \n will be replaced to chr(13)+chr(10). When you write

>1 Icon "C:\NewIcon.ico"

porc will not find the icon.
heh, i meant changing the path/filename TO the new icon...

i used to program in c/c++ back in the ol' DOS days...nothing major, mind you...in fact, I still have most of my half-written old code lying about (incl. a rogue-like rpg that never got beyond the map generator)...i do miss being forced to define variables, and those lovely CLASS structures... :)

unfortunately (or maybe fortunately since i've found better programming environments) i could never get the hang of VC++...nor do i like programming in VB. i prefer coding in a nice, clean, simple-looking editor...with all the bells and whistles optional (which is why i LOVE jaPBe; the fact that you can easily add-on any tools YOU want is very nice...not to mention FOLDING!!!). I never liked working with VB's form designer and found getting from that to the actual code annoying...

(how's that for going OT...)
Cid
Post Reply