Author Topic: autorevision.h problem  (Read 8674 times)

djapal

  • Guest
autorevision.h problem
« on: April 27, 2006, 07:13:09 pm »
Hello, I'm new to this thread and i find cb a great project for C programming! I tried to compile the svn exported fproject but the error log is the following

src\appglobals.cpp:15: autorevision.h: No such file or directory
src\appglobals.cpp:20: error: expected `,' or `;' before "SVN_REVISION"
src\appglobals.cpp:21: error: expected `,' or `;' before "SVN_REVISION"

any ideas??

(Working in windows)

I also got the following message when compiling widgets

g++ -c -o gcc_mswudll\monodll_dummy.o  -O2 -mthreads  -DHAVE_W32API_H -D__WXMSW__      -D_UNICODE  -I..\..\include -I..\..\lib\gcc_dll\mswu -W -Wall -
I..\..\src\tiff -I..\..\src\jpeg -I..\..\src\png -I..\..\src\zlib -I..\..\src\regex -I..\..\src\expat\lib -DwxUSE_BASE=1 -DWXMAKINGDLL   -Wno-ctor-dto
r-privacy   -MTgcc_mswudll\monodll_dummy.o -MFgcc_mswudll\monodll_dummy.o.d -MD ../../src/msw/dummy.cpp
windres --use-temp-file -i../../src/msw/version.rc -ogcc_mswudll\monodll_version_rc.o   --define __WXMSW__      --define _UNICODE  --include-dir ..\..
/include --include-dir ..\..\lib\gcc_dll\mswu --define WXDLLNAME=wxmsw26u_gcc_custom
windres: installation problem, cannot exec `%s' gcc: Permission denied

Pls help!!

Thnx in advance!

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: autorevision.h problem
« Reply #1 on: April 27, 2006, 07:23:12 pm »
I don't understand exactly what you're doing there, since I don't know what an exported fproject is, and the stuff showing up on your commandline is a bit weird, too.

However, the error is quite clear:
You are missing the file autorevision.h. This file is not under revision control, but is generated during the build.

Under "normal" conditions, there is nothing you have to do for that to happen, the autorevision tool is built as the first thing, and it is invoked as a pre-build step for the SDK target.
Since the SDK target is built before the Src target (appglobals.h belongs to Src), I wonder why you see the error at this location. If the file is missing, the build should already abort during the SDK target.

Can you tell what exactly you did to get the sources, and what exactly you did to build them (and what compiler system you use)?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

djapal

  • Guest
Re: autorevision.h problem
« Reply #2 on: April 27, 2006, 08:01:11 pm »
I use the ReactOS build environment (http://blight.reactos.at/reactos-be) which has all the stuff needed.
I use Tortoise SVN and i got the latest (2388 I think) source release. I exported it to a folder and i had to another folder the widgets files.
I put the 2 commands for the widgets into a bat file, ran it and got the previous message I posted after a lot of lines of  other messages.
I then opened the project with the 2380 build, put the variable for wx and tried to run it but i got the errors I said before.

djapal

  • Guest
Re: autorevision.h problem
« Reply #3 on: April 27, 2006, 08:06:21 pm »
after some attempts i managed to overpass this problem...
BUT

the next problem is the following...

ld.exe:: cannot find -lwxmsw26u

 :shock:

takeshimiya

  • Guest
Re: autorevision.h problem
« Reply #4 on: April 27, 2006, 08:11:18 pm »
ld.exe:: cannot find -lwxmsw26u
You need to add the path where the lib is located.

ie. -LC:\wxWidgets\lib\gcc_dll

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: autorevision.h problem
« Reply #5 on: April 27, 2006, 08:17:17 pm »
ld.exe:: cannot find -lwxmsw26u
You need to add the path where the lib is located.

ie. -LC:\wxWidgets\lib\gcc_dll
Well, first of all he will have to build it. As described in his first post, this failed, so there is no library...
That's something which we won't be able to fix easily. As the error message already suggests, it is likely a setup problem, so the best would be to reinstall the compiler.

The other issue (regarding autorevision) could be due to the fact that you exported the sources rather than checking out. Although this should work (revision string should be ""), I have never actually tested whether that is really the case.
Exporting is not what you normally want to do, since then you don't have revision information available (and it is a lot harder to update, too).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

djapal

  • Guest
Re: autorevision.h problem
« Reply #6 on: April 27, 2006, 08:20:35 pm »
thanx guys. i thought so too. i'll try to fix the widgets problem and i think after that i'll not have any other problems!

djapal

  • Guest
Re: autorevision.h problem
« Reply #7 on: April 27, 2006, 09:37:27 pm »
I don't get it. All went ok at my laptop. BUT....

When i started the newly created CB, it didn't find resources.zip and as i looked into that folder all the zip files and many dirs where missing.

Any ideas for this one? should I just copy them from an old distro?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: autorevision.h problem
« Reply #8 on: April 27, 2006, 10:01:06 pm »
Quote
Any ideas for this one? should I just copy them from an old distro?
Spending two minutes reading the documentation could help... run update.bat.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

djapal

  • Guest
Re: autorevision.h problem
« Reply #9 on: April 27, 2006, 10:22:06 pm »
Well u were right. All worked fine! Sorry but too many hours in front of a pc and too many tries to achieve sth!

No more questions from me about this subject. Maybe another time about how to handle with the common controls and the IE stuff on commctrl.h because nothing happens there. Well, not now! thnx again!