Cheb писал(а):и, по возможности, upx
Собирал ли в линуксе, и если да, то как решал вопрос с нахождением программой каталога в которой она запущена? Я ничего лучше чем при запуске передавать пожатому upx бинарнику путь в командной строке не придумал.
Модератор: Модераторы
Cheb писал(а):и, по возможности, upx
Cheb писал(а):Сначала никак не решалось - только не использовать upx.
#!/bin/sh
p=`(echo ${BASH_SOURCE[0]}) 2>&1`
p=${p%%:*}
d=${p%/*}
bin/./fyle $d'/' fyle
Cheb писал(а):Откуда, планируемый состав базовой поставки - только Win32
SET PATH=c:\lazarus-1.4.4-fpc-2.6.4-win64\fpc\2.6.4\bin\x86_64-win64;%PATH%
del demo*.o
del ..\..\..\src\*.o
del ..\..\..\src\*.ppu
fpc demo15.pas -Fu../../../lib/*/x86_64-win64 -Fu../../../lib/msvcrt/x86_64 -Fu../../../headers -Fi../../../headers -Fu../../../extra -Fu../../../src -FuC:\lazarus-1.4.4-fpc-2.6.4-win64\fpc\2.6.4\units\x86_64-win64\* -TWIN64 -Px86_64 -WG -O3 -XsX -CX -Sd
set FPC_VER=3.0.4
rem set FPC_VER=2.6.4
set COLDPATH=%PATH%
set PATH=c:\FPC\%FPC_VER%\bin\i386-win32\;..\..\..\bin\;%COLDPATH%
set CGE64_OPT=-Twin64 -gl -gs -gp -dcge -dnotlaz -dcge_rc_directly -Mobjfpc -Rintel
set CODE64_OPT=-O3 -Opathlon64 -CfSSE64 -Co -Cr -Ct -Sa -Sh -Sc
set MOTHER64_OPT=%CGE64_OPT% %CODE64_OPT% %THRID_PARTY_PATHS% -FE..\..\..\tmp\main-x86_64\ -FU..\..\..\tmp\main-x86_64\ -Fu..\..\..\tmp\main-x86_64\
set MOTHERDBG64_OPT=-ddebug_build -Co -Cr %CGE64_OPT% %CODE64_OPT% %THRID_PARTY_PATHS% -FE..\..\..\tmp\main-x86_64-debug\ -FU..\..\..\tmp\main-x86_64-debug\ -Fu..\..\..\tmp\main-x86_64-debug\
set DLL64_OPT=-dcgemodule -dcgehub %CGE64_OPT% %CODE64_OPT% -FU..\..\..\tmp\%MODNAME%-x86_64\ -Fu..\..\..\tmp\%MODNAME%-x86_64\
rem -a -al -Amasm -sh to get intel assembler output (but no actual exe)
set CGE32_OPT=-Twin32 -gl -gs -gp -dcge -dnotlaz -dcge_rc_directly -Mobjfpc -Rintel
set CODE32_OPT=-O3 -OpPentiumM -CfSSE2 -vq -Sa -Sh -Sc -Xi -XX
set MOTHER32_OPT=%CGE32_OPT% %CODE32_OPT% -CX -FU..\..\..\tmp\main\ -FE..\..\..\ %THRID_PARTY_PATHS%
set MOTHERDBG32_OPT=-ddebug_build -Co -Cr -CX %CGE32_OPT% %CODE32_OPT% -FU..\..\..\tmp\main-debug\ -FE..\..\..\ %THRID_PARTY_PATHS%
set DLL32_OPT=-dcgemodule -dcgehub %CGE32_OPT% %CODE32_OPT% -FU..\..\..\tmp\%MODNAME%\ -Fu..\..\..\tmp\%MODNAME%\
ppcrossx64 chentrah.lpr %MOTHER64_OPT%
if errorlevel 1 goto err
incbuild build.h
move ..\..\..\tmp\main-x86_64\chentrah.exe ..\..\..\chentrah-x86_64.exe
extractdwrflnfo-x86_64 ..\..\..\chentrah-x86_64.exe ..\bin\lineinfo\
if "%NOSTRIP%" == "0" (
x86_64-win64-strip ..\..\..\chentrah-x86_64.exe --verbose
upx -9 --force ..\..\..\chentrah-x86_64.exe
)
finalizedwrflnfo ..\..\..\chentrah-x86_64.exe ..\bin\lineinfo\
del /Q ..\..\..\chentrah.exe
ppc386 chentrah.lpr %MOTHER32_OPT%
if errorlevel 1 goto err
incbuild build.h
extractdwrflnfo ..\..\..\chentrah.exe ..\bin\lineinfo\
if "%NOSTRIP%" == "0" (
strip ..\..\..\chentrah.exe --verbose
rem --only-keep-debug --strip-unneeded
upx -9 --force ..\..\..\chentrah.exe
)
finalizedwrflnfo ..\..\..\chentrah.exe ..\bin\lineinfo\
<----=* ERROR! ---- (look below for details) *=---->
Found a screened exception, going BSOD...
119AFEA9h is D:chentrahtemporary-filesbin_hub.dll, base 11940000h
..file "D:chentrahtemporary-filesbin_hub.zstabs", exists=True..
found 37120 Stabs and 795 Kbytes of strings. Base 11940000h, image base 10000000h.
================== Error message: ==================
Failure in threads synchronization for render routine
Rendering subroutine failure
Call stack:
mo_logic.pp:823 (TLogic.Render) in _hub.dll
mo_threads.pp:612 (LogicDoRender) in _hub.dll
mo_threads.pp:637 (TThreadManager.CallLogicForRender) in _hub.dll
mo_module.pp:208 (TModule.Pulse) in _hub.dll
_hub.lpr:115 (Pulse) in _hub.dll
cl_module.inc:764 (TModule.Pulse) in debug-chentrah.exe
framework_basic.pp:410 (TBasicFramework.Pulse) in debug-chentrah.exe
framework_winapi.pp:1322 (TWinApiFramework.Heartbeat) in debug-chentrah.exe
framework_basic.pp:558 (TBasicFramework.MainThreadMainLoop) in debug-chentrah.exe
cl_main.inc:448 (Run) in debug-chentrah.exe
chentrah.lpr:99 ($main) in debug-chentrah.exe
Mother has passed an unhandled exception to the module in thread main thread
SEH caught C0000005h, Access Violation,
Attempt to read from the NULL address
un_fixed_font.inc:117 (FixedFont.SetRenderState) in _hub.dll
====================================================
THE MODULE HAD BEEN UNLOADED.
PRESS "SPACE BAR" TO RESTART THE MODULE,
"F12" + "BACKSPACE" TO CHOOSE ANOTHER MODULE
OR "ESC" TO EXIT THE PROGRAM.
<----=* ERROR! ---- (look below for details) *=---->
================== Error message: ==================
VEH caught E0465043h, (unknown code E0465043h)
at 7FEFDC3A06Dh in KERNELBASE.dll
(no debug info available: doesn't include this address range; the RTL function failed to find built-in Stabs line info)
Module logic thread #0:
VEH caught E0465043h, (unknown code E0465043h)
at 7FEFDC3A06Dh in KERNELBASE.dll
(no debug info available: doesn't include this address range; the RTLfunction failed to find built-in Stabs line info)
Failed to register class THubLogic
VEH caught E0465043h, (unknown code E0465043h)
at 7FEFDC3A06Dh in KERNELBASE.dll
(no deug info available: doesn't include this address range; the RTL function failed to find built-in Stabs line info)
VEH caught E0465043h, (unknown code E0465043h)
at 7FEFDC3A06Dh n KERNELBASE.dll
(no debug info available: doesn't include this address range; the RTL function failed to find built-in Stabs line info)
Crashed while preparing data for savin.
VEH caught C0000005h, Access Violation,
Attempt to read from 0000004D12814808h
04D12813000h..7FEDD34FFFFh (8261905652K): free;
04D12814000h..7FEDD34FFFFh (826190648K): free;
7FEDD350000h..7FEDD351000h (4K): committed by ig4icd64.dll, shared, read only.
at 0011000770Ah in _hub-x86_64.dll
(no debug info available: No valid externa files with Dwarf2 debug info found for C:windowsSYSTEM32ntdll.dll; No valid external files with Dwarf2 debug info found for C:windowssystem32KERNELBASE.dll; the RTL functio failed to find built-in Stabs line info)
VEH caught E0465043h, (unknown code E0465043h)
at 7FEFDC3A06Dh in KERNELBASE.dll
(no debug info available: doesn't include this addess range; the RTL function failed to find built-in Stabs line info)
Failed to register class THubLogic
VEH caught E0465043h, (unknown code E0465043h)
at 7FEFDC3A06Dh in KERNEBASE.dll
(no debug info available: doesn't include this address range; the RTL function failed to find built-in Stabs line info)
VEH caught E0465043h, (unknown code E0465043h) at 7FEFDC3A06Dh in KERNELBASE.dll
(no debug info available: No valid external files with Dwarf2 debug info found for C:windowsSYSTEM32ntdll.dll; No valid external files wih Dwarf2 debug info found for C:windowssystem32KERNELBASE.dll; the RTL function failed to find built-in Stabs line info)
Crashed while preparing data for saving.
EAccessViolaion: Access violation
at 0011000770Ah in _hub-x86_64.dll
(no debug info available: No valid external files with Dwarf2 debug info found for C:windowsSYSTEM32ntdll.dll; theRTL function failed to find built-in Stabs line info)
Call stack:
0011003831Eh in _hub-x86_64.dll
001100385BDh in _hub-x86_64.dll
0011004F998h in _hub-x86_64.dll
0011004E4Ah in _hub-x86_64.dll
00110057264h in _hub-x86_64.dll
001100459EBh in _hub-x86_64.dll
00110060470h in _hub-x86_64.dll
00110065647h in _hub-x86_64.dll
00110001B03h in _hb-x86_64.dll
00110060291h in _hub-x86_64.dll
0011005B382h in _hub-x86_64.dll
00110065502h in _hub-x86_64.dll
001100657FBh in _hub-x86_64.dll
00110001B74h in _hub-x86_64.ll
0011006024Ch in _hub-x86_64.dll
0011005B382h in _hub-x86_64.dll
0011009BF8Eh in _hub-x86_64.dll
0011009C255h in _hub-x86_64.dll
0011008B8BDh in _hub-x86_64.dll
0011001BA6h in _hub-x86_64.dll
VEH caught C0000005h, Access Violation,
Attempt to read from 0000004D12814808h
04D12813000h..7FEDD34FFFFh (8261905652K): free;
04D1281400h..7FEDD34FFFFh (8261905648K): free;
7FEDD350000h..7FEDD351000h (4K): committed by ig4icd64.dll, shared, read only.
at 0011000770Ah in _hub-x86_64.dll
(no debug info avilable: No valid external files with Dwarf2 debug info found for C:windowsSYSTEM32ntdll.dll; the RTL function failed to find built-in Stabs line info)
VEH caught C0000005h, Acess Violation,
Attempt to read from FFFFFFFFFFFFFFFFh
at 00077C6B766h in ntdll.dll
(no debug info available: No valid external files with Dwarf2 debug info found for CwindowsSYSTEM32ntdll.dll; the RTL function failed to find built-in Stabs line info)
Mother has passed an unhandled exception to the module in thread Module logic thread #0
VE caught C0000005h, Access Violation,
Attempt to read from 0000004D12814808h
04D12813000h..7FEDD34FFFFh (8261905652K): free;
04D12814000h..7FEDD34FFFFh (8261905648K) free;
7FEDD350000h..7FEDD351000h (4K): committed by ig4icd64.dll, shared, read only.
at 0011000770Ah in _hub-x86_64.dll
(no debug info available: ; the RTL function faied to find built-in Stabs line info)
====================================================
THE MODULE HAD BEEN UNLOADED.
PRESS "SPACE BAR" TO RESTART THE MODULE,
"F12" + "BACKSPACE" TO CHOOSE ANOTHER MODULE
OR "ESC" TO EXIT THE PROGRAM.
<----=* ERROR! ---- (look below for details) *=---->
Found a screened exception, going BSOD...
001100A222Eh is D:\chentrah\temporary-files\bin\_hub-x86_64.dll, base 00110000000h
..file "D:\chentrah\temporary-files\bin\_hub-x86_64.zstabs", exists=True..
found 37461 Stabs and 786 Kbytes of strings. Base 00110000000h, image base 00110000000h.
================== Error message: ==================
Failure in threads synchronization for render routine
Rendering subroutine failure
Call stack:
mo_logic.pp:823 (TLogic.Render) in _hub-x86_64.dll
mo_threads.pp:612 (LogicDoRender) in _hub-x86_64.dll
mo_threads.pp:648 (TThreadManager.CallLogicForRender) in _hub-x86_64.dll
mo_module.pp:208 (TModule.Pulse) in _hub-x86_64.dll
_hub.lpr:115 (Pulse) in _hub-x86_64.dll
00000472536h in debug-chentrah-x86_64.exe
000005059ABh in debug-chentrah-x86_64.exe
00000506463h in debug-chentrah-x86_64.exe
00000479B17h in debug-chentrah-x86_64.exe
00000401A7Eh in debug-chentrah-x86_64.exe
Mother has passed an unhandled exception to the module in thread main thread
VEH caught C0000005h, Access Violation,
Attempt to read from the NULL address
at 0000041C299h in debug-chentrah-x86_64.exe
(no debug info available: doesn't include this address range; the RTL function failed to find built-in Stabs line info)
VEH caught C0000005h, Access Violation,
Attempt to read from the NULL address
un_fixed_font.inc:117 (FixedFont.SetRenderState) in _hub-x86_64.dll
====================================================
THE MODULE HAD BEEN UNLOADED.
PRESS "SPACE BAR" TO RESTART THE MODULE,
"F12" + "BACKSPACE" TO CHOOSE ANOTHER MODULE
OR "ESC" TO EXIT THE PROGRAM.
================== Error message: ==================
Failed to load the module lib_hub-armv7l.so.
Call stack:
cl_module.inc:357 (TModule___LoadMeDll) in chentrah-armv7l
cl_module.inc:123 (TModule__Load) in chentrah-armv7l
cl_module.inc:610 (TModule__Pulse) in chentrah-armv7l
framework_basic.pp:410 (TBasicFramework__Pulse) in chentrah-armv7l
cl_main.inc:448 (Run) in chentrah-armv7l
chentrah.lpr:99 ($main) in chentrah-armv7l
====================================================
================== Error message: ==================
Failed to load the module lib_hub-armv7l.so.
dlopen() returned NULL
(/home/cheb/raid2000/chentrah/temporary-files/bin/lib_hub-armv7l.so: undefined symbol: TC_SYSTEM_ISLIBRARY)
Call stack:
cl_module.inc:357 (TModule___LoadMeDll) in chentrah-armv7l
cl_module.inc:123 (TModule__Load) in chentrah-armv7l
cl_module.inc:610 (TModule__Pulse) in chentrah-armv7l
framework_basic.pp:410 (TBasicFramework__Pulse) in chentrah-armv7l
framework_basic.pp:560 (TBasicFramework__MainThreadMainLoop) in chentrah-armv7l
cl_main.inc:448 (Run) in chentrah-armv7l
chentrah.lpr:99 ($main) in chentrah-armv7l
76C91294h in libc.so.6
====================================================
Здесь кончаются края, мне на веки верные,
Распрощаемся, друзья, здесь на веки вечные!
procedure TRect.Render;
procedure RenderRect(bev: GLfloat);
begin
glBegin(GL_LINE_LOOP);
glVertex2f(x + bev, y - bev);
glVertex2f(x + Width.Current - bev, y - bev);
glVertex2f(x + Width.Current + bev, y + bev);
glVertex2f(x + Width.Current + bev, y + Height.Current - bev);
glVertex2f(x + Width.Current - bev, y + Height.Current + bev);
glVertex2f(x + bev, y + Height.Current + bev);
glVertex2f(x - bev, y + Height.Current - bev);
glVertex2f(x - bev, y + bev);
glEnd();
end;
begin
inherited;
glDisable(GL_TEXTURE_2D);
glEnable(GL_LINE_SMOOTH);
glEnable(GL_BLEND);
glDisable(GL_ALPHA_TEST);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glLineWidth(RectShadeThickness());
glColor4f(0, 0, 0, Color.Current[3]);
RenderRect(2);
glLineWidth(RectLineThickness());
glColor4f(Color.Current[0]*Mother^.Display.FadeIn, Color.Current[1]*Mother^.Display.FadeIn, Color.Current[2]*Mother^.Display.FadeIn, Color.Current[3]);
RenderRect(2);
end;
procedure TRectControl.Render;
procedure RenderRect(bev: GLfloat);
var
x0, x1, x2, x3, y0, y1, y2, y3: GLfloat;
Mesh: TDumbUniMesh;
c: TVector4f;
begin
x0:=x;
x1:=x0 + bev;
x3:=x + Width.Current;
x2:=x3 - bev;
y0:= y;
y1:= y0 + bev;
y3:= y + Height.Current;
y2:= y3 - bev;
c:= Color.Current * Mother^.Display.FadeIn;
c[3]:= Color.Current[3];
Mesh:= TDumbUniMesh.Create;
Mesh.Color(c);
Mesh.SetLineTexCoords;
Mesh.AddLineLoop([x1, y0, x2, y0, x3, y1, x3, y2, x2, y3, x1, y3, x0, y2, x0, y1], RectShadeThickness());
Mesh.Render;
Mesh.Free;
end;
begin
inherited;
TGAPI.SwitchToDefaultShader(gadesh_FlatGUI);
if HasBorder then RenderRect(2);
end;
Error at startup.
Crashed trying to analyze OpenGL 2.1 quirks
Crashed trying texture formats combo texformat_Depth16 / GL_DEPTH_COMPONENT / GL_DEPTH_COMPONENT / GL_HALF_FLOAT
EInvalidOp: Invalid floating point operation
at 00007F2360B0E6F7h in nouveau_dri.so
(no debug info available: No valid external files with Dwarf2 debug info found for /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so; the RTL function failed to find built-in Stabs line info)
Call stack:
0000000000436364h in debug-chentrah-x86_64
0000000000435F89h in debug-chentrah-x86_64
000000000045CA88h in debug-chentrah-x86_64
...........................Chentrah log end
Вернуться в Разработки на нашем сайте
Сейчас этот форум просматривают: Lucifer и гости: 10