Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
95 user(s) are online (80 user(s) are browsing Forums)

Members: 2
Guests: 93

Kamelito, sailor, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3)
Re: SVG datatype/library linked pthreads problems
Just can't stay away
Just can't stay away


See User information
@Raziel

I don't have a PATH variable but I don't think that is the problem. According to Snoopy it's trying to execute the commands with the '@' character included:
Quote:

02479 : sh : FAIL = Lock("gcc:bin/@mkdir",SHARED) [152uS]
02480 : sh : FAIL = Lock("SDK:C/@mkdir",SHARED) [70uS]
02481 : sh : FAIL = Lock("SDK:Local/C/@mkdir",SHARED) [69uS]
02482 : sh : FAIL = Lock("SDK:Local/newlib/bin/@mkdir",SHARED) [130uS]
02483 : sh : FAIL = Lock("SDK:Local/clib2/bin/@mkdir",SHARED) [114uS]
02484 : sh : FAIL = Lock("C:@mkdir",SHARED) [141uS]
02485 : sh : FAIL = Lock("Development:Projects/Libraries/netsurf/libwapcaplet/@mkdir",SHARED) [80uS]
02486 : sh : FAIL = Lock("gcc:bin/@echo",SHARED) [105uS]
02487 : sh : FAIL = Lock("SDK:C/@echo",SHARED) [67uS]
02488 : sh : FAIL = Lock("SDK:Local/C/@echo",SHARED) [72uS]
02489 : sh : FAIL = Lock("SDK:Local/newlib/bin/@echo",SHARED) [68uS]
02490 : sh : FAIL = Lock("SDK:Local/clib2/bin/@echo",SHARED) [72uS]
02491 : sh : FAIL = Lock("C:@echo",SHARED) [90uS]
02492 : sh : FAIL = Lock("Development:Projects/Libraries/netsurf/libwapcaplet/@echo",SHARED) [68uS]X

Go to top
Re: SVG datatype/library linked pthreads problems
Amigans Defender
Amigans Defender


See User information
Quote:

salass00 wrote:

I don't have a PATH variable but I don't think that is the problem. According to Snoopy it's trying to execute the commands with the '@' character included:


Well, that clearly isn't going to work (might on Windows though). I've never seen it happen before, so don't know what to suggest. Are the commands in the makefile themselves prefixed with @, or are they variables with @ in front of them?

Come to think of it, I never use "make install" so if it's only the "install" bit failing, that doesn't actually surprise me. Install it by hand.

Go to top
Re: SVG datatype/library linked pthreads problems
Home away from home
Home away from home


See User information
That (the @ symbol) looks to me like a non configured section of the makefile.

Typicaly sysmbols that need replacing on configuration are surroounded by @ in the configuration process. If it was manually configured, maybe whoever did it just didn't get that far....


Go to top
Re: SVG datatype/library linked pthreads problems
Amigans Defender
Amigans Defender


See User information
the @ symbol iirc is to avoid echo on sh shell

so @mkdir will not print the line

i'm really tired...
Go to top
Re: SVG datatype/library linked pthreads problems
Just can't stay away
Just can't stay away


See User information
Looks like I need to build and install the buildsystem using make as well and not just create a soft link to the buildsystem.git clone directory in /SDK/local/newlib/share as I have done currently.

Edit: I did it but I still have the same problem installing libwapcaplet. If I knew what the version is supposed to be I could just create the .pc file manually from the .pc.in file

Edit: Just found the version info in the Makefile.


Edited by salass00 on 2012/11/26 17:00:04
Go to top
Re: SVG datatype/library linked pthreads problems
Just can't stay away
Just can't stay away


See User information
I compiled and installed all the dependency libs. Now it complains about:
Quote:

9.Development:Projects/Libraries/netsurf/libsvgtiny> gmake PREFIX=/SDK/local/newlib CC=gcc
COMPILE: src/svgtiny.c
cc1: warnings being treated as errors
src/svgtiny.c: In function '_svgtiny_parse_color':
src/svgtiny.c:1229: warning: implicit declaration of function 'strdup'
src/svgtiny.c:1229: warning: nested extern declaration of 'strdup'
src/svgtiny.c:1229: warning: assignment makes pointer from integer without a cast
src/svgtiny.c: In function 'svgtiny_add_shape':
src/svgtiny.c:1445: warning: implicit declaration of function 'lroundf'
src/svgtiny.c:1445: warning: incompatible implicit declaration of built-in function 'lroundf'
gmake: *** [build-amiga-amiga-release-lib-static/src_svgtiny.o] Error 1
9.Development:Projects/Libraries/netsurf/libsvgtiny>


math.h and string.h are both included at the top of the svgtiny.c file so I have no idea why it gives these warnings.

Edit: Adding
Quote:

# AmigaOS needs this to avoid warnings
ifeq ($(TARGET),amiga)
CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
endif

to the Makefile got rid of the above warnings but now I get these errors instead:
Quote:

9.Development:Projects/Libraries/netsurf/libsvgtiny> gmake PREFIX=/SDK/local/newlib CC=gcc
COMPILE: src/svgtiny.c
cc1: warnings being treated as errors
src/svgtiny.c: In function 'svgtiny_parse_position_attributes':
src/svgtiny.c:1050: warning: passing argument 1 of 'dom_element_get_attribute' discards qualifiers from pointer target type
src/svgtiny.c:1056: warning: passing argument 1 of 'dom_element_get_attribute' discards qualifiers from pointer target type
src/svgtiny.c:1062: warning: passing argument 1 of 'dom_element_get_attribute' discards qualifiers from pointer target type
src/svgtiny.c:1069: warning: passing argument 1 of 'dom_element_get_attribute' discards qualifiers from pointer target type
gmake: *** [build-amiga-amiga-release-lib-static/src_svgtiny.o] Error 1
9.Development:Projects/Libraries/netsurf/libsvgtiny>


Go to top
Re: SVG datatype/library linked pthreads problems
Amigans Defender
Amigans Defender


See User information
You need to remove -Werror. My makefile has this:

Quote:
# BeOS/Haiku/AmigaOS standard library headers create warnings
ifneq ($(TARGET),beos)
ifneq ($(TARGET),amiga)
WARNFLAGS := $(WARNFLAGS) -Werror
endif
endif


That should be in the repo one already.

I just copy and rename the .pc.in files without editing them, pkg-config seems quite happy with that

Go to top
Re: SVG datatype/library linked pthreads problems
Just can't stay away
Just can't stay away


See User information
@Chris

In the Makefile there was:
Quote:

ifneq ($(TARGET),beos)
ifneq ($(TARGET),AmigaOS)
WARNFLAGS := $(WARNFLAGS) -Werror
endif
endif


After changing "AmigaOS" to "amiga" in the ifneq statement it compiles libsvgtiny successfully.

Go to top
Re: SVG datatype/library linked pthreads problems
Amigans Defender
Amigans Defender


See User information
@salass00

I must have changed that locally and not changed it on the PC in order to push it. I'll make a point of fixing that next time I turn the PC on.

Go to top

  Register To Post
« 1 2 (3)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project