DWF

DWF

Reply
Active Member
timofey.tatarinov
Posts: 7
Registered: ‎02-16-2011
Message 1 of 2 (1,158 Views)
Accepted Solution

DWF Toolkit compiling on Ubuntu 10.10

1158 Views, 1 Replies
02-16-2011 01:05 AM

Hi, All!

 

I have a problem with creation of DWF Toolkit library files from source code on my machine with Ubuntu 10.10 64bit.

When I do "make" command I receive next message:

 

In file included from Core.cpp:60:
../../dwfcore/config.h:114: warning: "_DWFCORE_X64_SYSTEM" redefined
../../dwfcore/Core.h:58: note: this is the location of the previous definition
Core.cpp: In function ‘int DWFCore::AtomicIncrement(volatile int*)’:
Core.cpp:91: error: ‘atomic_t’ was not declared in this scope
Core.cpp:91: error: expected ‘;’ before ‘tValue’
Core.cpp:92: error: ‘tValue’ was not declared in this scope
Core.cpp:92: error: ‘atomic_set’ was not declared in this scope
Core.cpp:99: error: ‘atomic_read’ was not declared in this scope
Core.cpp: In function ‘int DWFCore::AtomicDecrement(volatile int*)’:
Core.cpp:108: error: ‘atomic_t’ was not declared in this scope
Core.cpp:108: error: expected ‘;’ before ‘tValue’
Core.cpp:109: error: ‘tValue’ was not declared in this scope
Core.cpp:109: error: ‘atomic_set’ was not declared in this scope
Core.cpp:116: error: ‘atomic_read’ was not declared in this scope

In file included from Core.cpp:60:../../dwfcore/config.h:114: warning: "_DWFCORE_X64_SYSTEM" redefined../../dwfcore/Core.h:58: note: this is the location of the previous definitionCore.cpp: In function ‘int DWFCore::AtomicIncrement(volatile int*)’:Core.cpp:91: error: ‘atomic_t’ was not declared in this scopeCore.cpp:91: error: expected ‘;’ before ‘tValue’Core.cpp:92: error: ‘tValue’ was not declared in this scopeCore.cpp:92: error: ‘atomic_set’ was not declared in this scopeCore.cpp:99: error: ‘atomic_read’ was not declared in this scopeCore.cpp: In function ‘int DWFCore::AtomicDecrement(volatile int*)’:Core.cpp:108: error: ‘atomic_t’ was not declared in this scopeCore.cpp:108: error: expected ‘;’ before ‘tValue’Core.cpp:109: error: ‘tValue’ was not declared in this scopeCore.cpp:109: error: ‘atomic_set’ was not declared in this scopeCore.cpp:116: error: ‘atomic_read’ was not declared in this scope

 

 

I tried to reolve atomic.h problem manually. I downloaded linux-headers and copied 'asm' folder with 'atomic.h' to my /usr/include/. But I haven't had a successfull result.

 

If anyone know solution or DWF Toolkit compilation help document?

 

Thanks in advance for reply,

Timofey Tatarinov

I found a solution.

The problem was in the file "atomic.h". I installed "libasound2-dev" and problem was solved.

 

The question is closed

Active Member
timofey.tatarinov
Posts: 7
Registered: ‎02-16-2011
Message 2 of 2 (1,152 Views)

Re: DWF Toolkit compiling on Ubuntu 10.10

02-16-2011 05:54 AM in reply to: timofey.tatarinov

I found a solution.

The problem was in the file "atomic.h". I installed "libasound2-dev" and problem was solved.

 

The question is closed

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.